BASIS--Monitoring in SAP Event Management

本文介绍了一系列 SAP Event Management (EM) 的监控与维护交易代码,用于监测 EM 对象状态、处理消息错误、调度后台作业及进行 RFC 监控等。这些工具能够帮助管理员快速定位并解决系统中出现的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Event Management Objects
The following transactions are used to monitor SAP Event Management objects.
  • /SAPTRX/EH_LIST – Event Handler List
The Event Handler List provides details about an Event Handler. It’s the equivalent of WE05 for Idocs.
    1. EH status
    2. Event Messages
    3. Error messages
    4. Parameters
    5. Tasks executed
    6. History
    7. Measurements, …
  • /SAPTRX/EE_MON - Expected Events Monitor
Scheduled background job to continuously identify expected events that are past their expected date as set in the expected event extractor / expected event profile. If an event has exceeded the expected date, it’s status is updated to “Overdue” and any defined  expected event monitor activity will be executed e.g. Send an alert, email, …
  • /SAPTRX/EVM_STATUS - Event Message Processing Status List
Lists system generated messages and data related errors for event messages
  • /SAPTRX/ER_MS_LIST - Event Message Processing Error List
Lists problems during the event message process
  • /SAPTRX/LOCKED_PROC - Process Event Messages for Locked Event Handler
  • /SAPTRX/LOCKED_PSET - Process Locked Event Handler Sets
  • /SAPTRX/EMJOBS – Schedule background jobs for SAP EM
Can check the overview of the related jobs using this transaction
  • /SAPTRX/ASAPLOG – Application log
Use this transaction in the application System to view the details of errors during the creation of Application Object Types and Event Types
  • /SAPTRX/CONS_CHECK - Consistency Checks in Customizing
 
qRFC Monitoring
If you don’t use synchronous processing the SAP EM will make use of qRFC to communicate backwards and forwards with the Application System (AS)
  • SMQ1 – Outbound qRFC monitor
The queue name here is determined in the BAdI on the AS that initiates the call to the SAP EM interface. See the documentation surrounding queuing in SAP EM.
  • SMQ2 – Inbound qRFC monitor

General Monitoring
The following are transactions that can also be used to help identify issues on the system.
  • SM58 - Transaction RFC monitor
If you use tRFC to communicate with SAP EM from the AS the use this to process through any errors in this process
  • SM59 – RFC Definition
Gain access to the RFC Trace file
  • SM37 – Job Monitor
Check that the SAP EM jobs are correctly scheduled
  • SM21 – System Log
  • ST22 – Short Dumps
  • SM12 – Lock table
  • SM13 – Update errors
  • SM50, SM51, SM66 – Monitor Work processes on the system

URL: http://erpgenie.com/index.php?option=com_content&task=blogcategory&id=75&Itemid=98 

### 3.1 配置 Web 服务客户端 在使用 sap-bc-client.jar 调用 SAP 系统时,首先需要配置 Web 服务客户端。SAP 提供的 Web 服务通常通过 WSDL 文件进行描述,开发人员可以通过工具从 WSDL 文件生成 Java 客户端类。这一步可以通过 JDK 自带的 `wsimport` 工具完成。 ```bash wsimport -keep -p com.sap.bc.client http://<sap-host>:<port>/sap/bc/srt/wsdl/flv_<service-id>/bndg_url/sap/bc/srt/rfc/sap/<service-name>/<version>/<namespace>/<service-name>?sap-client=<client> ``` 生成的客户端类将用于后续的 Web 服务调用。 ### 3.2 编写调用代码 在 Java 项目中引入 sap-bc-client.jar,并编写如下代码调用 SAP Web 服务: ```java import com.sap.bc.client.ZcsWs001_Service; import com.sap.bc.client.ZcsWs001; public class SapWebServiceClient { public static void main(String[] args) { ZcsWs001_Service service = new ZcsWs001_Service(); ZcsWs001 port = service.getZcsWs001(); // 设置用户名和密码 ((BindingProvider) port).getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "username"); ((BindingProvider) port).getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "password"); // 调用 Web 服务方法 String result = port.someMethod("inputParameter"); System.out.println("Response: " + result); } } ``` ### 3.3 身份验证与会话管理 在调用 Web 服务时,需要进行 SAP 系统的身份验证,并维护会话状态。可以通过设置用户名和密码来实现身份验证。 ### 3.4 部署与运行 将生成的客户端类与 sap-bc-client.jar 一起打包部署到 Java 应用中,并确保网络可以访问 SAP 系统的 Web 服务端点。 ### 3.5 注意事项 - 确保 SAP 系统允许外部访问 Web 服务,并已配置相应的用户权限。 - 使用 HTTPS 可提升通信安全性,建议在生产环境中启用 SSL/TLS。 - 通常需要与 SAP Basis 团队协作,确保服务端点、参数和身份验证方式配置正确。 ###
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值