on 08-24-2009 11:29 AM
Hey,
I try to use trace in my UDF but can not see it in my test environment of graphical mapping.
Could it be, that the trace is only visibile in message monitoring sxmb_moni?
I thought I will also see it in Integration Repository.
MappingTrace importanttrace;
importanttrace = container.getTrace();
importanttrace.addWarning("Test");
If I cannot see it in Repository, why I can set up the trace level there?
Thanks in advanced.
Regards
Chris
Hello Christian,
MappingTrace importanttrace;
importanttrace = container.getTrace();
importanttrace.addWarning("Test");
You can see the trace at desgining level in Integration Repository, in order to view that you have to choose the trace option to All and before executing your text. For instance in your case you are addeding the warning to the trace, select the Trace level Warning/All before you run the test.
Regards,
Prasanna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chris,
If you want to trace the values at runtime use this below code in your UDF.
MappingTrace mt = container.getTrace();
mt.addInfo("<Some description>.." + <Trace_Variable_Name>);
Regards
Ramesh
Use Container Class
container.getTrace().addWarning("");
Rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
the udf should be triggered for the trace be displayed.
in the test instance window make sure you have provided the trace level to "ALL" so that you can see the trace messages you have included.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Mapping Trace Object:
This object enables you to transfer messages to the mapping trace. If the trace level is set correspondingly (see Displaying/Changing Configuration Data), then the trace is visible in message monitoring (transaction SXMB_MONI)
Source :http://help.sap.com/saphelp_nw04/helpdata/en/c8/98e7d5c1620642973565ea3dd319d1/frameset.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Trace will be available in runtime.
>If I cannot see it in Repository, why I can set up the trace level there?
You are setting trace because you want to make it available during runtime when something goes wrong you can analyze this trace.
Regards,
Gourav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.