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

Time between sevaral statements.

Former Member
0 Likes
1,132

Hi,

how can i get the time between several statements in abap.

SY-UZEIT is not possible.

example:

start.

select ...

select ...

select ...

end.

i will get the time between start and end.

Thanks.

Regards, Dieter

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,097

Hi,

Do you want this in ABAP program or just need to check after the program execution.

Regards,

Atish

Hi,

how can i get the time between several statements in abap.

SY-UZEIT is not possible.

example:

start.

select ...

select ...

select ...

end.

i will get the time between start and end.

Thanks.

Regards, Dieter

9 REPLIES 9
Read only

Former Member
0 Likes
1,097

hi

good

go through this link,hope this ll help you to solve your problem

http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3564358411d1829f0000e829fbfe/content.htm

thanks

mrutyun^

Read only

Former Member
0 Likes
1,098

Hi,

Do you want this in ABAP program or just need to check after the program execution.

Regards,

Atish

Read only

0 Likes
1,097

Hi Atish,

i will get the Information in Abap and write it when the Report is finished.

Example:

get the starttime

do anything.

get the endtime.

difference = endtime - starttime.

write: starttime, endtime, difference.

Inporting for me is specially the difference in sec.

Regards, Dieter

Read only

0 Likes
1,097

Hi,

Why can't you get the value of sy-uzeit and use it?

starttime = sy-uzeit.

Perform processing.

endtime = sy-uzeit.

difference = endtime - starttime.

Will this not solve your problem?

Regards,

Sharmila

Read only

0 Likes
1,097

Hi,

i do this:

TABLES: MARA.

DATA: UZEIT0 LIKE SY-UZEIT.

DATA: UZEIT1 LIKE SY-UZEIT.

<b>UZEIT0 = SY-UZEIT</b>.

SELECT * FROM MARA.

ENDSELECT.

<b>UZEIT1 = SY-UZEIT</b>.

WRITE: UZEIT0, UZEIT1.

uzeit0 and uzeit1 have the same value!

Regards, Dieter

Read only

0 Likes
1,097

Hi,

Sy-uzeit will not solve your purpose as it will have time upto seconds only and you need the system variable which stores the time in milliseconds. i am not in front of system so can't tell you the exact variable but you can search in syst if any variable you can use or check the program of ST05, how they store the milliseconds, you may get some idea.

Regards,

Atish

Read only

0 Likes
1,097

Hello Dieter,

Check this thread:

-> SET RUN TIME CLOCK RESOLUTION LOW

then get run time field s_time. returns milliseconds

Regards,

Walter

Read only

0 Likes
1,097

Hi,

I think you can use GET TIME STAMP FIELD.. just check for the correct syntax.

Regards,

Atish

Read only

0 Likes
1,097

Hi Walter,

that's it. thanks.

Regards, Dieter