cancel
Showing results for 
Search instead for 
Did you mean: 

Container Object in Java Class

Former Member
0 Kudos

Hello ,

I have a Mapping program using java class type (Java SAX in this case). I need to access some Runtime constants and the mapping trace object.

In message mapping is simple. We can use the container object that is pass to a UDF and the GlobalContainer Object.

But how can I access the Runtime constants and mapping trace without a container object ?.

Any ideas...?

Thanks in advance.

Yuvan D.

Accepted Solutions (1)

Accepted Solutions (1)

GabrielSagaya
Active Contributor
0 Kudos

in Your java mapping class

you should import import com.sap.aii.mapping.api.*;

public void execute(InputStream input, OutputStream output)

throws StreamTransformationException {

AbstractTrace trace = null;

String RESULT = new String();

trace =

(AbstractTrace) param.get(

StreamTransformationConstants.MAPPING_TRACE);

..........

trace.addInfo(doc.toString());

}

http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm

Former Member
0 Kudos

Thanks Gabriel. It solved my problem.

Answers (0)