cancel
Showing results for 
Search instead for 
Did you mean: 

how to read xml proxy payload usingFM SXMB_READ_MESSAGE_VERSION_RAW

former_member1240896
Participant
0 Kudos

hi ,

i would like to read a XML proxy paylaod in APO system from an ABAP program ?

Please let me know how do i need to read the data using FM SXMB_READ_MESSAGE_VERSION_RAW or any other method.

To use the FM what are parameters that i need to pass to it ?

Regards,

Chandan

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184681
Active Contributor
0 Kudos

Hi,

If you only need the payload, use FM SXMB_GET_MESSAGE_PAYLOAD with:

IM_MSGKEY-MSGID = message ID

IM_MSGKEY-PID = pipeline ID (for instance "CENTRAL")

You can find both: message ID and pipeline ID in SXI_MONITOR, for instance.

Regards,

Greg

former_member1240896
Participant
0 Kudos

hi Greg,

i need to get the data in XML, how should i get it by calling the FM.

Also message ID and PID are unique for each payload , how can i use them ?

Regards,

Chandan

former_member184681
Active Contributor
0 Kudos

>>> i need to get the data in XML, how should i get it by calling the FM.

You simply get an XSTRING variable that already contains this data in XML format.

>>> Also message ID and PID are unique for each payload , how can i use them ?

You need to know the message ID and PID of that particular message you want to get the payload for.

Regards,

Greg

former_member1240896
Participant
0 Kudos

are you saying that message id and PID are unique for a particular message comming from PI ?

the proxy name is /SCA/II_BIF_PROACT_IN, i need to call the FM in the program to get the data, so if i know the message id and PID , can i hard code them in the program ?

former_member184681
Active Contributor
0 Kudos

>>> can i hard code them in the program ?

Well, it's not really the best idea, since I guess you would like to download a different message each time you run your program.

Regards,

Greg