cancel
Showing results for 
Search instead for 
Did you mean: 

How to access Parent Message ID

Former Member
0 Kudos

Hi,

I am having File – IDOC scenario and also we are having dynamic interface determination where base on some particular value in file we are generating two different IDOCs. The overall scenario is working fine.

Now in SXMB_moni I am getting one parent node and under that there are two sub nodes. Also for there are 3 different message ID (one for parent and 2 for sub node.) .

If we scroll sxmb_moni screen (<b>in alv grid</b>) there we are finding Message ID and Parent Message ID for sub node. I am able to access message id for subnode but <b>not able to access Parent Message ID</b>.

To access message ID, I am using following UDF.

String headerField="";

java.util.Map map;

// get constant map

map = container.getTransformationParameters();

headerField = (String) map.get(StreamTransformationConstants.MESSAGE_ID);

return headerField;

I have already tried all Runtime Constants in <a href="http://help.sap.com/saphelp_nw04/helpdata/en/b3/9a2aeb24dc4ab6b1855c99157529e4/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/b3/9a2aeb24dc4ab6b1855c99157529e4/frameset.htm</a>

If anyone guide me to access Parent message id then it would be really great….

Thanks,

Sunil

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Bin,

thanks for reply...

I have tried this but there is blank output.

Thanks,

Sunil Bhavsar

Former Member
0 Kudos

Hi Sunil,

Did you find the solution to this. Other than doing a lookup to XI ABAP stack and reading the entries in table SXMSPMAST. Is there any other simple way to solve this..

Regards,

Gowtham k.

0 Kudos

Hi,

try to use the "StreamTransformationConstants.REF_TO_MESSAGE_ID".

regards

Bin