on 01-08-2009 2:17 PM
Hello,
in PI 7.1 Java mappings the way of getting the trace object has changed from:
trace = (AbstractTrace) param.get(StreamTransformationConstants.MAPPING_TRACE);
to:
getTrace();
Because the Java mapping class definition changed from
implements StreamTransformation
to
extends AbstractTransformation
Is there something similar to get the message ID or do i have to use the old way:
public void setParameter(Map param) {
this.param = param;
if (param == null) {
this.param = new HashMap();
}
}
...
String MessageID = (String) param.get(StreamTransformationConstants.MESSAGE_ID);
Thanks and best regards,
Benjamin
In PI 7.1 use:
java.util.Map map;
map = container.getTransformationParameters();
String messageID= (String) map.get(StreamTransformationConstants.MESSAGE_ID);
while container is the SAP pre-defined input parameter of you UDF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.