Hello Shankar,
I assume that you are running a report and at the end of the report you want to display to the user the total time it has taken to process the report for that particular run.
This information is not stored in any table, to my knowledge. I guess it is not too useful to store it since the runtime of a program depends on several factors.
There are some ABAP statements that help you measure the run time of the report. The following example should make it clear.
DATA: T1 TYPE I, T2 TYPE I, TMIN TYPE I. * All the global data declarations end at this point. START-OF-SELECTION. GET RUN TIME FIELD T1. * All the Processing logic comes here , I am using an example PERFORM GET_CUSTOMERS. PERFORM SELECT_SALES_ORDERS. PERFORM DETERMINE_OPEN_ORERS. PERFORM DISPLAY_CUSTOMERS_OPEN_ORDERS. * All the processing like database selection and application server processing is over by this point GET RUN TIME FIELD T2. T2 = T2 - T1. WRITE: 'The processing has taken', T2 'microseconds'.
Hope this was helpful.
Regards,
Anand Mandalika.
Hi Shankar,
You can use the transaction se30 to test the response time of a report.
Regards,
Shabarish
PS: assign point if this was helpful. 😊
Hi Anand,
That was a very helpful piece of code.
Shankar,
If u r planning use the response time in a program then anand's method wud be pretty useful.
Else if to chk the performance constraints SE30 will be helpful.You can chk the runtime of transactions, programs and FM by that.
Regards,
ShabZ
Add a comment