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

need to reduce 45 minutes from enterd time. - function module

Former Member
0 Likes
456

hi,

Scenario is :

User enters time 'A' as 10:00:00 (24 hrs clock).

i need to calculate time 'B' as 45 minutes less than the time 'A'.

Can you please let me know function module name.

thanks.

2 REPLIES 2
Read only

Former Member
0 Likes
432

REPORT z_test.

I dont' know if there is a FM available, however u can use this logic

parameters:

w_time type sy-uzeit.

data:

w_result type sy-uzeit,

w_temp type sy-uzeit value '004500'.

w_result = w_time - w_temp.

write:w_result.

Read only

Former Member
0 Likes
432

There is no such FM which reduces time by 45 minutes.

Or else create your own FM and write the logic there.

Subtract '004500' from the time field. You will get the desired output.

Regards,

Pavan P.