Tuesday, February 22, 2022

Additional Message Headers in CPI

We can use the following headers under Message Header :

●SAP_ApplicationID

When you monitor the messages at runtime, you can search for all messages whose defined SAP_ApplicationID has a specific value (displayed as the MessageID attribute in the Message Monitoring editor).

●SAP_Sender

●SAP_Receiver


●SAP_MessageType

You can use this property to categorize messages.


●SAP_MessageProcessingLogID

Can use this property to read the ID of the message processing log (no write access supported).

If you have specified SAP_Sender or SAP_Receiver, the corresponding values are displayed in the message processing log. If you change the SAP_Receiver value during message processing, all values are added to the receiver field in the message processing log as a comma-separated list. If you don't want this behavior, you can specify the exchange property SAP_ReceiverOverwrite, as below:

-----------------------------------------------------------------------------------------------------------------------------

SAP_ReceiverOverwrite   (Exchange Property)

Headers that are added to a message using the SAP_Receiver header element during message processing are appended to the message processing log (MPL).

This behavior is helpful in scenarios like,the multicast pattern, for example, where a message is sent to several receivers and all receivers are to be collected in the MPL (not just the last added header).

By setting the SAP_ReceiverOverwrite exchange property to true, you can change this behavior in such a way that only the last added header is shown in the MPL. Note

Example configuration:Name: SAP_ReceiverOverwriteType: ConstantValue: True

-----------------------------------------------------------------------------------------------------------------------------



No comments:

Post a Comment