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

calculate the time difference.

Former Member
0 Likes
872

Hi,

I have to develop a report which should provide the PO list which has been created in the last 30 min.

I can take the current time from SY-UZEIT.

Can anybody help me if there any FM for this to find the PO list which has been created in the last 30min.

Regards,

Prabu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
812

Hello,

Check this it is working fine.

move:'003000' to y_v_time.

y_v_time = sy-uzeit - y_v_time.

6 REPLIES 6
Read only

Former Member
0 Likes
812

NAST-UHRVR based on this field ,you can calculate PO list in 30 mins by passing the value I hope but I am not sure

Edited by: Gayathri G on May 8, 2009 2:05 PM

Read only

Former Member
0 Likes
812

Hi Prabu


I have to develop a report which should provide the PO list which has been created in the last 30 min.
I can take the current time from SY-UZEIT.

=> Check if the PO creation date and time is stored in some table and do comparison accordingly.

Can anybody help me if there any FM for this to find the PO list which has been created in the last 30min.

=> I dont think there is any FM for the same

Regards

Shital

Read only

Former Member
0 Likes
813

Hello,

Check this it is working fine.

move:'003000' to y_v_time.

y_v_time = sy-uzeit - y_v_time.

Read only

Former Member
0 Likes
812

Hi,

try like this.

w_time = sy_uzeit - 30.

so in w_time , u can get last 30 minutes.

Then using this w_time,

put query on ekbe table where cpudt = sy-datum and cputm = w_time.

Then use EKKO,EKPO table & display PO list.

Hope this will solve ur problem.

Thanks & Regards,

Anagha Deshmukh

Read only

Former Member
0 Likes
812

Hi Prabhu,

Try This

w_cur_time = sy-uzeit.

w_po_time = w_cur_time = 30.

select objectid from cdhdr into table t_tdhdr

where objectclass = 'EINKBELEG' and

udate = sy-datum

and utime in between w_cur_time , w_po_time and

tcode = 'ME21' and CHANGE_IND = 'I'.

Hope this works

Regards

Krishna

Read only

Former Member
0 Likes
812

Hi Everybody,

Thanks a lot of your information.

I solved this problem.

Regards,

Prabu