‎2007 Jan 19 11:19 AM
Hello
I want to control the time processing of the events from a programm. After the events I have writen the system variable sy-uzeit. But when I run the programm by background progress (job) and I look for the detailed log I always see the same hour for the variable sy-uzeit, and I certanly know that the hour between the events has changed.
For example I have the following source code.
<b>START-OF-SELECTION</b>.
PERFORM CALCULATE_ITEM_1.
<b>WRITE SY-UZEIT</b>.
<b>GET PERNR</b>.
PERFORM CALCULATE_ITEM_2.
<b>END-OF-SELECTION</b>.
<b>WRITE SY-UZEIT</b>.
‎2007 Jan 19 11:38 AM
Hi,
use abap command GET TIME:
START-OF-SELECTION.
PERFORM CALCULATE_ITEM_1.
WRITE SY-UZEIT.
GET PERNR.
PERFORM CALCULATE_ITEM_2.
END-OF-SELECTION.
<b>GET TIME.</b>
WRITE SY-UZEIT.
A.
‎2007 Jan 19 11:38 AM
Hi,
use abap command GET TIME:
START-OF-SELECTION.
PERFORM CALCULATE_ITEM_1.
WRITE SY-UZEIT.
GET PERNR.
PERFORM CALCULATE_ITEM_2.
END-OF-SELECTION.
<b>GET TIME.</b>
WRITE SY-UZEIT.
A.
‎2007 Jan 19 11:44 AM
just before writing sy-uzeit, give the statement get time.
or get time field <f>, it will give in the format HHMMSS
<f> is a variable, by the above statement none of the system fields are updated.
regds,
kiran