12-01-2006 4:37 PM
Need the FM for the week:
When i pass the should.
i want to get the total no of weeks and days.
12-01-2006 4:39 PM
Hi,
Please explain your requirement in detail..It's not clear..
THanks,
Naren
12-01-2006 5:43 PM
if what you're trying to do is enter a begin date and an end date and get the number of weeks and days between you could write:
v_days = v_endda - v_begda.
v_weeks = v_days / 7. ---Make sure v_weeks is integer and round down.
v_remain_days = v_days - (v_weeks * 7)
write: / 'total weeks:' , v_weeks.
write: / 'total days:' v_remain_days.
Warren
12-02-2006 5:03 AM
12-02-2006 5:35 AM
TRY THIS FM
CALL FUNCTION 'GET_WEEK_INFO_BASED_ON_DATE'
EXPORTING
DATE = I_EKET-EINDT
IMPORTING
WEEK = OUTWEEK
MONDAY =
SUNDAY = I_EKET-EINDT.
IF YOU PASS THE DAY (I_EKET-EINDT) IT WILL GIVE THE WEEK INFORMATION AND SUNDAY(1ST DAY).
REGARDS
SHIBA DUTTA
12-02-2006 6:12 AM
Hi,
Use the FM:
<b>HR_IE_NUM_PRSI_WEEKS</b>
Return the number of weeks between two dates.
Hope it helps.
Regards,
Sipra