cancel
Showing results for 
Search instead for 
Did you mean: 

Reading business service name in mapping

Former Member
0 Kudos

Hi,

Is there any way of getting business service name in mapping?

Regards,

Vishal

Accepted Solutions (1)

Accepted Solutions (1)

former_member200962
Active Contributor
0 Kudos

Use this UDF:

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

service = (String) map.get(StreamTransformationConstants.SENDER_SERVICE); 
return service;

If you want to get the receiver service then use RECEIVER_SERVICE instead of SENDER_SERVICE.

Regards,

Abhishek.

Answers (5)

Answers (5)

prasannakrishna_mynam
Contributor
0 Kudos

Hello Vishal,

In your UDF you can use StreamTransformationConstants interface's static constants via Container. For instance

String sender_service=(String)map.get(StreamTransformationConstants.SENDER_SERVICE).

Information on other constants refer this link

http://help.sap.com/javadocs/NW04/current/pi/com/sap/aii/mapping/api/StreamTransformationConstants.h...

Regards,

Prasanna

Former Member
0 Kudos

access the mapping runtime constants in udf


String headerField;
String key ="SenderService"

java.util.Map map;

map = container.getTransformationParameters();

headerField = (String) map.get(key);

Former Member
0 Kudos

Hi,

YOu can get Runtime Constants in UDFs. Please see the below link.

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

Shweta.

Former Member
0 Kudos

In the mapping you have access to the XI Header part where these information are stored.

For example the standard functions sender and receiver are available under category Constants.

Regards,

Volker

prateek
Active Contributor
0 Kudos

You may access the following Runtime Constants.

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

Regards,

Prateek