Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

control the time processing of a programm

Former Member
0 Likes
401

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>.

1 ACCEPTED SOLUTION
Read only

andreas_mann3
Active Contributor
0 Likes
354

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.

2 REPLIES 2
Read only

andreas_mann3
Active Contributor
0 Likes
355

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.

Read only

Former Member
0 Likes
354

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