cancel
Showing results for 
Search instead for 
Did you mean: 

Java Mapping: Retreiving Sender System

Former Member
0 Kudos

Hi,

I am doing java mapping. I have to write a code to get the "sender system" from XI. So could anyone please help me in this to retrieve the sender system using Java.

Regards,

Murugavel.S

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member190389
Active Contributor
0 Kudos

Hi,

For java mapping use

param.get(StreamTransformationConstants.SENDER_SYSTEM);

where param gets the value from setParameter() method in mapping

For UDF you can use

Map param = container.getTransformationParameters();

String str = (String)param.get(StreamTransformationConstants.SENDER_SYSTEM);

santhosh_kumarv
Active Contributor
0 Kudos

Hi,

Sender System is referred as the SenderService in the XI runtime.

Use this Java Coding.

map = container.getTransformationParameters();
String sendersystem = (String) map.get(SenderService);

Thanks

SaNv...

Former Member
0 Kudos
java.util.Map map;
// get runtime constant map
map = container.getTransformationParameters();

return (String) map.get("SenderSystem");

Regards Mario

former_member181985
Active Contributor
0 Kudos

Hi

Check these links,

[for Dynamic Configuration|http://help.sap.com/search/highlightContent.jsp]

[Special Access to Mapping Runtime Constants|http://help.sap.com/saphelp_nw04/helpdata/en/b3/9a2aeb24dc4ab6b1855c99157529e4/content.htm]

The above links are pretty straight forward, Let us know if you still need help.

Thanks,

Gujjeti

Edited by: Praveen Gujjeti on Aug 11, 2008 8:50 AM