2007 Dec 05 1:17 AM
I have a program to report the result of MRP. It need to process 8000 materials. I used loop to process them one by one. Now, I want to know the processing leadtime for each material. I placed following code
loop at out_put.
write: <b>sy-timlo</b>, out_put-matnr, /.
endloop.
But, unfortunately the timestamp in output is all same though the program ran for 10 minuties.
So, anyone can told me how can I get the actual execution time for each material. Thanks.
2007 Dec 05 1:21 AM
You need to use the GET TIME syntax.
Like:
DATA: L_ST_TIME TYPE T,
L_ED_TIME TYPE T.
DO 10 TIMES.
GET TIME FIELD L_ST_TIME . " << start time
WRITE: / L_ST_TIME.
WAIT UP TO 1 SECONDS.
GET TIME FIELD L_ED_TIME . " << end time
WRITE: L_ED_TIME.
ENDDO.
Regards,
Naimesh Patel
2007 Dec 05 1:21 AM
You need to use the GET TIME syntax.
Like:
DATA: L_ST_TIME TYPE T,
L_ED_TIME TYPE T.
DO 10 TIMES.
GET TIME FIELD L_ST_TIME . " << start time
WRITE: / L_ST_TIME.
WAIT UP TO 1 SECONDS.
GET TIME FIELD L_ED_TIME . " << end time
WRITE: L_ED_TIME.
ENDDO.
Regards,
Naimesh Patel
2007 Dec 05 1:33 AM