on ‎2016 Mar 11 8:31 AM
Hi All,
Anyone can explain how to check step wise execution time in BADI.
In SAP BPC 7.5 NW, SP11
Which step is taking how much time,
Thanks you for help.
Regards,
Devi
Request clarification before answering.
hi Devi,
you can use GET RUNTIME command in ABAP. Let assume you have a GET_DATA method in your BADI and you want to see how many seconds it takes.
method GET_DATA.
DATA: T1 TYPE I,
T2 TYPE I,
ELAPSED TYPE I,
elapsed_s type string,
msg type string.
* Write this code to the beggining of GET_DATA method
* Get the time and put in T1.
GET RUN TIME FIELD T1.
* YOUR GET_DATA LOGIC FLOW HERE......
* END OF YOUR GET_DATA METHOD.
* Get the time and put in T2.
GET RUN TIME FIELD T2.
* Calculate the different between T2 and T1.
ELAPSED = T2 - T1. " In microseconds.
ELAPSED = ELAPSED / 1000000. " In seconds.
* Display the runtime.
elapsed_s = elapsed.
concatenate 'Get_DATA method total runtime : ' elapsed_s ' seconds' into msg separated by space.
CL_UJK_LOGGER=>LOG( msg ).
endmethod.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Devi,
You can include simple code inside the badi that will write timestamps for some steps in the package log.
Vadim
P.S. And for sure you have to debug badi execution to ensure that the correct data scope is used on each step...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 17 | |
| 7 | |
| 7 | |
| 6 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.