on 04-19-2006 1:55 AM
Hi,
When I do a system.out.println in a user defined function of mapping, why would the program not print anything when running in test ? Any settings needs to done
mad
Hi,
This prinln statement writes the output to the console.
In case you need to check this output, without using a trace, you could copy the code to a file(.java)and exceute it at command prompt.
REgards,
Smitha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
System.out wont work there. You need to write something like this in your UDF.
AbstractTrace trace = container.getTrace();
...
trace.addDebugMessage("retrieved the value");
Regards,
Amol
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I thing the System.out.println will be printed on the CONSOLE of the XI server and so, you cannot see the Output.
You can use the TRACE option, to print tany info that you want just like SOP.
<i>import com.sap.aii.mapping.api.AbstractTrace;
AbstractTrace trace= (AbstractTrace) param.get(StreamTransformationConstants.MAPPING_TRACE);
trace.addWarning("This is replacing SOP");</i>
Regards,
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.