cancel
Showing results for 
Search instead for 
Did you mean: 

Link between PI message ID and BCM Batch number ?

Farid
Active Participant
0 Kudos

Hello,

We are using SAP PI 711 to send payments files from SAP ECC6, the BCM Module has been activated.

The users on ECC6 are monitoring their payment via the transaction BNK_MONI.

They usually use "batch number" to identify their files

On our side we are monitoring the PI XML files through the RWB , we do not refer to any batch number but to the PI messages ID.

The problem is that we are speaking two different languages.

I couldn't find any easy way to assign a BCM Batch number to a PI message ID.

The only thing wecan base yourself on is the timeframe.

So weu2019ll have to know when (more or less) when the file has been sent ...

Do any of you know how we can link a BCM batch number to a PI message ID ?

Thank you

Regards

Accepted Solutions (1)

Accepted Solutions (1)

former_member854360
Active Contributor
0 Kudos

Hi you can add PI MsgID in filename or in any field

refer this blog

http://wiki.sdn.sap.com/wiki/display/Snippets/UDFtoReadMessageIDofaPIMessage

also SEE

Defining Variables for Attributes in the Message Header
       5.      If the variable refers to an attribute of the message header, add the prefix message: to the name of the variable under Reference.

You can specify the following attributes of the message header:

u25CB     sender_party, sender_service, receiver_party, receiver_service, interface_name, interface_namespace

u25CB     message_id (message ID with hyphens, for example 9fbe1ff1-9a0d-11d9-8665-cbf10a126331)

u25CB     message_id_hex (message ID in hexadecimal format, for example 9fbe1ff19a0d11d98665cbf10a126331)

u25CB     If one of the message attributes contains characters that are not permitted in a file name, for example \, /, :, *, ?, ", <, >, |, these characters are replaced by an underscore ("_").



For example, if you want to specify the interface name from the message header in the target directory or in the file name scheme, enter message:interface_name as the reference.

http://help.sap.com/saphelp_nwpi711/helpdata/en/44/6a316af5a23672e10000000a114a6b/frameset.htm

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Since the message ID in PI is a unique number that is auto generated in the AE, we do not have any control over its generation or link to to some other ID or data.

Think what Debashis has suggested above is the best solution. Try providing the PI message id in the target payload generated in PI which can be used for better monitoring.

Regards