2007 Jul 12 6:29 AM
Hi ,
Is there any standard function module that gives me time reduced by 30 minutes?
Hi,
if your problem is solved, please assign points and close the thread.
Regards,
Vinodh.
2007 Jul 12 6:31 AM
Hi,
You can use this method cl_abap_tstmp=>subtractsec to subtract the desired minutes. Convert the minutes into seconds and then pass it to the method
CALL METHOD cl_abap_tstmp=>subtractsecs
EXPORTING
tstmp = l_curr_timestamp
secs = l_secs
RECEIVING
r_tstmp =
Regards,
Vinodh.
2007 Jul 12 6:31 AM
Try using the FM CONVERT_TIME_TERMS. Kindly let me know the result.
Reward if this is the Solution.
Regards,
abhay
2007 Jul 12 6:32 AM
Try this also:-
'GET_DELTA_TIME_FROM_DT'
And do let me know that is it working or no.
Rewarsd point if helpful...
ABhay.
2007 Jul 12 6:35 AM
PARAMETERS: p1 TYPE sy-uzeit.
DATA min_45 TYPE i.
min_45 = 45 * 60. " Transform it from minut to second
WRITE: p1.
p1 = p1 - min_45.
WRITE: p1.
2007 Jul 12 6:36 AM
data: c1 type sy-timlo.
data: c2 type sy-timlo.
c1 = sy-timlo.
c2 = c1 - 1800.
write: c1.
WRITE /.
write: c2.
reward points if helpful
2007 Jul 12 6:52 AM
Hi,
Try this program
PARAMETERS: p1 TYPE sy-uzeit.
DATA min_45 TYPE i.
min_45 = 45 * 60. " Transform it from minut to second
WRITE: p1.
p1 = p1 - min_45.
WRITE: p1.
2007 Jul 12 6:53 AM
hi,
1. Difference is always returned in SECONDS.
2. use this code
data : t1 type sy-uzeit.
data : t2 type sy-uzeit.
DATA : DIFF TYPE I.
t1 = '090000'.
t2 = '100000'.
DIFF = T2 - T1.
WRITE :/ DIFF.u can manipulate the DIFF.
Regards
REshma
2007 Jul 18 12:08 PM
Hi,
if your problem is solved, please assign points and close the thread.
Regards,
Vinodh.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |