Posted on Apr. 23, 2010 at 04.25 PM - Chennai, India
Sometimes, there is requirement to send certain SAP PI runtime constant to the target systems, like the sender system name or maybe the interface name. How do we do it? We can either:
Below is the example of using map object to retrieve the runtime constant.
...
GlobalContainer globalContainer;
String headerField;
java.util.Map map;
globalContainer = container.getGlobalContainer();
map = container.getTransformationParameters();
headerField = (String) map.get(
StreamTransformationConstants.INTERFACE_NAMESPACE);
AbstractTrace at = container.getTrace();
at.addInfo(headerField );
return a;
...
Life is beautiful! Let's make it meaningful and colorful!