2013 Jan 31 4:16 PM
Hello,
Does anybody know any function module to retrieve a finish date and finish time according to the initial date, the initial time and the shift time?
I know:
I would like to get:
So, if the job begins at:
The function module should give the following result:
Is it possible?
Thanks in advance,
Oscar
Hello,
Does anybody know any function module to retrieve a finish date and finish time according to the initial date, the initial time and the shift time?
I know:
I would like to get:
So, if the job begins at:
The function module should give the following result:
Is it possible?
Thanks in advance,
Oscar
2013 Feb 01 10:46 AM
2013 Feb 01 11:30 AM
Hi Oscar,
There is no standard function module that suits your requirement
But refer to Standard function module CATT_ADD_TO_TIME and you can copy this function module to a custom function module.
The function module has the code as follows
DATA: LOW-DATE TYPE D VALUE '19000101'.
DATA: S(16) TYPE P.
S = ( IDATE - LOW-DATE ) * 86400 + ITIME.
S = S + STDAZ * 3600.
EDATE = LOW-DATE + ( S DIV 86400 ).
ETIME = S MOD 86400.
You will just need to replace the seconds 86400 to the seconds of the shift hours 5 hrs ( 18000 seconds).
Hope this helps. Let me know if additional info is required.
Thanks,
Tooshar Bendale
2013 Feb 01 1:41 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |