2023年11月29日发(作者:)

T-CODE

ALRTCATDEF

可以新建ALERT分类

PI Alert Message下建立Alert Categories

定义Alert属性

定义Alert变量

定义Alert变量

常用变量列表

Element Name Short ABAP Type

SXMS_MSG_GUID SXMS_MSG_GUID Message SXMSMGUIDC

SXMS_RULE_NAME SXMS_RULE_NAME DescriptioSXMSDESCR

Descript

ID

n of the

alert rule

Error SXMSERRCAT SXMS_ERROR_CAT SXMS_ERROR_CAT

category

SXMS_ERROR_CODE SXMS_ERROR_CODE Error code CHAR70

SXMS_FROM_PARTY SXMS_FROM_PARTY Sender SXI_FROM_PARTY

SXMS_FROM_SERVICE SXMS_FROM_SERVICE Sender SXI_FROM_SERVICE

SXMS_FROM_NAMESPACE SXMS_FROM_NAMESPACSender SXI_FROM_ACTION_N

SXMS_FROM_INTERFACE SXMS_FROM_INTERFACE Sender SXI_FROM_ACTION

SXMS_TO_PARTY SXMS_TO_PARTY Receiver SXI_TO_PARTY

SXMS_TO_SERVICE SXMS_TO_SERVICE Receiver SXI_TO_SERVICE

SXMS_TO_NAMESPACE SXMS_TO_NAMESPACE Receiver SXI_TO_ACTION_NS

消息ID: &SXMS_MSG_GUID&

错误描述: &SXMS_ERROR_CAT&/&SXMS_ERROR_CODE&

Adapter 类型: &SXMS_TO_ADAPTER_TYPE&

Adapter 错误信息: &SXMS_TO_ADAPTER_ERRTXT&

Long Text(E-Mail,Fax)

发送方:&SXMS_FROM_SERVICE&

发送方Interface: &SXMS_FROM_INTERFACE&

接收方: &SXMS_TO_SERVICE&

接收方Interface: &SXMS_TO_INTERFACE&

消息ID: &SXMS_MSG_GUID&

错误描述: &SXMS_ERROR_CAT&/&SXMS_ERROR_CODE&

Adapter 类型: &SXMS_TO_ADAPTER_TYPE&

Adapter 错误信息: &SXMS_TO_ADAPTER_ERRTXT&

配置接受用户(可选“指定到具体用户”或“指定到具体角色”

进入PI网页端的 > Alert Configuration

Runtime Workbench

在最下面Select Alert Category(先要update table)选中刚刚创建的Alert Category

填写系统信息和接口信息等,也可用*代替

输入完成 Add Rule

在最上面可看到刚刚新添加的 AlertRule

按照Alert Rule的配置,如果PI发生异常,则会捕捉异常信息到Alert Inbox

t-codeSU01,配置SAP用户的E-Mail Address

t-codeSCOT,配置SMTP

配置SMTP

Alert Inbox中配置Personalization

选中Time-Independent Delivery Mail

当有Exception发生时,就会发送邮件:

问题1:点击Personalization时可能报如下错误:

The following error text was processed in the system:

BSP exception: Cannot start application sap/alertpersonalize_rules. Use transaction SICF

to create application node. gsknoten an.

解决方法:

For this, you Just you need to run the Report BSP_UNLOCK_LONG_APP in SAP XI by using

SE38 and mention the BSP application which you need to unlock ,

ALERTPERSONALIZE_RULES and ALERTSUBSCRIPTION.

问题2:点击“Alert Configuration”页面显示不出来:

解决方法:

其实缺的就是RZ10维护全域名

ExchangeProfile里面修改RWB相关的东西

sicf里面激活相关的服务

alert那里我记得应该有说

/message/7855385#7855385