cancel
Showing results for 
Search instead for 
Did you mean: 

How do I retirve Message Id

Former Member
0 Kudos

Hi,

Can anybody explain, how do we retrive message Id in Message Mapping.

Cheers.,

Stallin

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Jai,

My case is a non BPM scenario... Its a simple File to IDOC scenario.

Cheers.,

Stallin

bhavesh_kantilal
Active Contributor
0 Kudos

Test it in the runimte. Do not test it from Interface Mapping in the IR

regards

Bhavesh

Former Member
0 Kudos

Hi Stallin,

Check this on Accessing the Message ID:

http://help.sap.com/saphelp_nw70/helpdata/en/2a/a4033eec2bc452e10000000a114084/frameset.htm

Regards,

Subhasha

bhavesh_kantilal
Active Contributor
0 Kudos

Check this link,

http://help.sap.com/saphelp_nw04/helpdata/en/b3/9a2aeb24dc4ab6b1855c99157529e4/content.htm

String headerField;
java.util.Map map;

// get runtime constant map

map = container.getTransformationParameters();

// get value of header field by using variable key

headerField = (String) map.get("MessageId");

regards

Bhavesh

Former Member
0 Kudos

Hey Bhavesh,

If I'm using above code, It doesn't retrive anything and gives the null value.

Cheeers.,

Stallin

Former Member
0 Kudos

Do you use this code inside a BPM transformation step?

Try this in a mapping outside BPM.

Regards,

Jai Shankar

Former Member
0 Kudos

Are you using the code in ADapter module / Java mapping???

regards

krishna