cancel
Showing results for 
Search instead for 
Did you mean: 

Determine parent msg id starting from child msg id

Former Member
0 Kudos

Hi guys,

I am implementing a interface ABAP proxy to  file.

The scenario includes a message split in interface determination, so that from 1 source message 2 result messages are created.

In case of errors an alert is created and the status of the message in the sender system is updated.

For this update the message id which is known by the sender system is used.

This scenario works fine if the error occurs before the message split e.g. no receiver found

But wehn th error arises after the message split e.g. in file adapter, the client message id is present in the alert and is used

for the status update. But this message id is not know by the sender system so the update of the status fails.

Therefore I have to determine the parent message id out of the client message id and use this for the status update.

I found some threads that normally these relationship could be retrieved via table SXMSPMAST.

But when I looked in se16 there are no entries in this table for the client messages.

How could this detemination be made?

Any help appreciated.

thanks in advance,

Jochen

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi guys,

I find a solution for my problem.

In table SXMS_MULTIM_REF there is the relationship between child and parent messages available, which could be used to get the message id of the according parent message

thanks for support

Best,

Jochen

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Gugel,

Even I have faced this issue when I am developing 1..N scenario.  I have posted the same in sdn.  Below is the link.  You have to send the parent message id to both receivers right.  Please check the below link.

http://scn.sap.com/message/10613210

Thanks,

Satish.

Former Member
0 Kudos

Hi Satish,

I already saw your thread beforehand, but the database select using table SXMSPMAST is not working because there is not entry with the msgid = child message id.

@gagan in the column there is no value shown

no matter what msg id I use in sxmb_moni, either parent, child 1 or child 2, I always find one single message

As receiver interface the system uses automatically InterfaceCollection of namespace http://sap.com/xi/XI/System

any other thoughts on that?

Best,

Jochen

gagandeep_batra
Active Contributor
0 Kudos

Hi Gugel

in SXMB_Moni i can see one column which have name "Parent Message Id " that may can help you.....

generate alert for that ..............

regards

gagan