cancel
Showing results for 
Search instead for 
Did you mean: 

How to get parent message id in multimapping

former_member452321
Participant
0 Kudos


Hi,

I am generating for each line item a good receipt in multimapping. I have the message id . How do I get the parent message id

Thanks for your help

Accepted Solutions (0)

Answers (2)

Answers (2)

gagandeep_batra
Active Contributor
0 Kudos

Hi Mahesh,

Did you try to get the message ID before split, hope that work but never tried

other option is rfc lookup:

Regards

GB

former_member452321
Participant
0 Kudos

I am trying to get the parent message id with the following blog. could you pl help for the udf to get the parent id . I did the dynamic configuration.

http://scn.sap.com/thread/3380941

gagandeep_batra
Active Contributor
0 Kudos

Hi Mahesh

try this that may work:

-----------

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey key = DynamicConfigurationKey.create(" http://sap.com/xi/XI/System/ABC","XYZ");

String msgID = conf.get(key);

return msgID;

---------

regards

GB

former_member452321
Participant
0 Kudos


Thanks. Do we need to pass any arguments to udf ? I need this parent message id value in one of the target filed. getting mapping exception. cannot create target I didnot pass any arguments to udf

Harish
Active Contributor
0 Kudos

Hi Mahesh,

Did you tried the below UDF?

UDF to Read Message ID of a PI Message - Code Gallery - SCN Wiki

regards,

Harish

former_member452321
Participant
0 Kudos

I have that one. Is it the parent message id ?

Harish
Active Contributor
0 Kudos

I never tried with Multimapping, but i believe this should retrieve parent/first message id.

former_member452321
Participant
0 Kudos

I am using that get the message id. Not sure how to get the parent id

with that