Page tree
Skip to end of metadata
Go to start of metadata

Editing Messages  in PI 7.O

Use
You usually edit a message when errors occurred during its processing and it is possible to restart the message. You use the message editor to edit a message. If you have the required authorization, you can use the message editor to edit the header data or the payload of a message, or both. You can save changed messages and process them again.

Prerequisites
You need the following authorizations to use the message editor:

 On Java Side

       edit_header & edit_payload  roles are required.

On ABAP Side

       SAP_XI_MESSAGE_MODIFY, SAP_XI_BPE_MONITOR_ABAP roles are required,  Both are parts of SAP_XI_MONITOR_ENHANCED composite roles.

If you have both roles, all the message data for editing is displayed. If you do not have either role, you cannot call the message editor.

Procedure with an example

Suppose one message got failed in XI, as shown below
   

 

Here the problem is following mandatory fields are missing.

<CustomerName>aaaaaaaaaaaa</CustomerName>

<CustomerDate>1967-08-13</CreatedDate>

<CustomerTime>14:20:00:0Z</CustomerTime>

You can use the message editor to edit the data:

Go to Runtime Work Bench(RWB) , message monitoring tab, use search criteria, you can view the failed messages , as shown below


Select the message and click " MessageEditor".
We can view the message in Message Editor as follows

Add the mandatory fields   as shown above and click on save button. It will show the message "  a new version of message was loaded for further processing"

Once you have edited the payload, you can exit the message editor.Choose Log Off to exit the message editor. The message is then immediately available to other users. If you only close the browser window, the message only becomes accessible when you close your session in the central monitor server

We can monitor the changed document in monitoring (SXI_MONITOR), we can see it as changed manually.

Restart the message, we can see the success flag as below.

 

In the message payload we can see the added payload

Drawbacks 
It may create data inconsistency between sender and receiver systems, so be careful before editing messages.

1 Comment

  1. Unknown User (101nheipv)

    Nice to Know 

    Thanks

    Liang