Application Development 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: 

Time between sevaral statements.

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

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

Regards,

Atish

9 REPLIES 9

Former Member
0 Kudos

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^

Former Member
0 Kudos

Hi,

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

Regards,

Atish

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

Hello Dieter,

Check this thread:

-> SET RUN TIME CLOCK RESOLUTION LOW

then get run time field s_time. returns milliseconds

Regards,

Walter

0 Kudos

Hi,

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

Regards,

Atish

0 Kudos

Hi Walter,

that's it. thanks.

Regards, Dieter