on 05-16-2013 10:41 AM
Hi,
I'm facing the following issue and I hope someone can suggest a solution:
I want to enable trace for BRFplus function calls I make out of ABAP in order to see the execution log later. I call the function with the following code:
cl_fdt_function_process=>process(
EXPORTING
iv_trace_mode = if_fdt_constants=>gc_trace_mode_lean
iv_function_id = lv_function_id
io_context = lo_context
iv_timestamp = lv_timestamp
IMPORTING
ea_result = <fs_result>
eo_trace = lo_trace
).
lo_lean_trace ?= lo_trace.
lo_lean_trace->save( ).
This gives me an exception in the save-method because the returned trace is in technical mode, although I requested lean mode in the process-call.
Supplied trace mode contradicts supplied trace instance
I checked the function with FDT_LEAN_TRACE_READY_CHECK and it says the function is lean trace ready. I tried gs_trace_mode_lean_required as an alternative, and now, I already get an exception in the process call:
Processing in generation mode is currently not possible
That leads to two question:
1) What is it that I'm missing to make the lean trace mode work?
2) If I can't get the lean mode working, is there a way to persist the technical trace so I can look at it in the workbench? I didn't find a class with a save-method
Thanks,
Tobias
Looks like your instance LO_TRACE has been used before and it was used in technical trace. Maybe do a clear on the instance and then call the process method.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your reply Carsten.
I tried to clear the variable but is doesn't change anything. Actually, it has always been initial when the process-method is called.
I did a little bit of further debugging and there seems to be a problem with the generated function. Within the process-method, no generated class can be found and interpretation mode is used as a fallback, which uses technical trace by default.
Therefore I looked at the "Generated Code"-tab of the function in the workbench and it looks weird: There are generated classes, trace support is checked, they are valid, but they don't have a name.
So I used the FDT_GENERATION_TOOL report to manually generate the class, and I receive the followeing error message:
Message no. FDT_CORE503
But I can't find a data object with that name in my application... Any idea how to solve this issue?
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
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.