cancel
Showing results for 
Search instead for 
Did you mean: 

Get Sender Service Name during Mapping

Former Member
0 Kudos

Hi Guys! I would like to send the Sender Service Name to the Receiver System. Is it possible to get the Sender Service Name during Mapping ?

thanks

Julio

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You can get the Sender Service value from StreamTransformationConstants. write an UDF.

//code snippet

String output = "";

java.util.Map map = container.getTransformationParameters();

output = (String) map.get(StreamTransformationConstants.SENDER_SERVICE);

return output;

Import the necessary java APIs.

Answers (2)

Answers (2)

GabrielSagaya
Active Contributor
0 Kudos

sender --> gets the name of the sender business system.

Test_Sender_System is output when you test the message mapping in the Integration Builder.

http://help.sap.com/saphelp_nw04/helpdata/en/2c/2d8c4024d26e1de10000000a1550b0/frameset.htm

or

in UDF

String headerField;

java.util.Map map = container.getTransformationParameters();

headerField = (String) map.get(

StreamTransformationConstants.SENDER_SERVICE);

return headerField;

justin_santhanam
Active Contributor
0 Kudos

Julio,

Ofcourse you can do it. Go thru this link,

http://help.sap.com/saphelp_nw70/helpdata/EN/b3/9a2aeb24dc4ab6b1855c99157529e4/content.htm

If you need any further info,let us know.

raj.

Former Member