on 09-19-2006 1:40 PM
Hi mates,
i hv start date,end date, start time, end time of truck in ODS . with help of these KF need to update data in to total time in secenods in cube, so i hv write update routine to calculate the time.i hv writen code but its givening errors.
ranga.
Put the begin time and end time into time stamps and use the following. Please reward points.
DATA: STARTTIMESTAMP TYPE RSTIMESTMPL.
DATA: ENDTIMESTAMP TYPE RSTIMESTMPL.
DATA: L_TIME TYPE SYUZEIT.
DATA: L_SEC TYPE I.
DATA: L_DAY TYPE I.
DATA: L_MILISEC TYPE I.
DATA: DURATION TYPE RSDDKRUNTIME.
CALL FUNCTION 'RSSM_SUBSTRACT_TIMESTAMPS'
EXPORTING
TIMESTAMP1 = STARTTIMESTAMP
TIMESTAMP2 = ENDTIMESTAMP
IMPORTING
TIME = L_TIME
SECS = L_SEC
DAYS = L_DAY
MILISECS = L_MILISEC.
DURATION = L_DAY * 86400 + L_SEC + ( L_MILISEC / 10000000 ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hari,
Share your code please.
Regards
Vikash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
61 | |
9 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.