‎2009 Oct 27 8:16 AM
Hello Experts,
this part is working well
write : / sy-uzeit.
wait up to X seconds
write : / sy-uzeit.
but for next example is another behaviour
i have simpler an report, but the time for start is the same as for the end
write : / sy-uzeit.
SELECT *
FROM table ....
CALL FUNCTION 'XXX
ENDSELECT.
write : / sy-uzeit.
Thanks for advice
Martin
‎2009 Oct 27 8:35 AM
Hi ,
since select stament takes milisecond in execution and sy-uzeit format is hh:mm:ss , thats why both the time are same.
if u use the statement
get tim stamp into var1
write var1.
select * ...
get time stamp into var2
write var2 .
now u will get different time .
‎2009 Oct 27 8:18 AM
Hi,
Are you saying that the first SY-UZEIT is same as the second SY-UZEIT.
Thanks,
Harini
‎2009 Oct 27 8:21 AM
yes, first and second sy-uzeit are the same in the second example ( sy-uzeit select and end select sy-uzeit)
‎2009 Oct 27 8:29 AM
Hello Martin,
I think you can make use of the ABAP stmt:
GET RUN TIME FIELD
Do an F1 on this & SAP documentation has a very good example how to use this.
Also there is a class CL_ABAP_RUNTIME & method GET_RUNTIME which you can utilise.
BR,
Suhas
‎2009 Oct 27 8:29 AM
Hi,
If both the SY-UZEIT are same it means that your select statement did not take any time to process.
Thanks,
Harini
‎2009 Oct 27 8:35 AM
Hi ,
since select stament takes milisecond in execution and sy-uzeit format is hh:mm:ss , thats why both the time are same.
if u use the statement
get tim stamp into var1
write var1.
select * ...
get time stamp into var2
write var2 .
now u will get different time .
‎2009 Oct 27 8:56 AM
FYI - select statement took OVER seconds.
but statement get time field is working well
thanks