‎2006 Aug 15 9:04 PM
HI
i need to count and display the week number like 32 week , 33 week in the year(total 52 weeks).
can any body tell me the logic or do we have any function module available for this counting?.
appreciated your help.
praveen.
‎2006 Aug 15 9:08 PM
Hi Praveen,
Please check this FM <b>DISP_WEEK_GET</b>.
Hope this will help.
Regards,
Ferry Lianto
‎2006 Aug 15 9:10 PM
REPORT ZSRIM_TEMP7.
data : v_weeks type i,
v_days type i.
v_days = 16.
v_weeks = ceil( v_days / 7 ) + 1.
write : v_weeks.
now V_WEEKS will have current week no.
Regards
srikanth
Message was edited by: Srikanth Kidambi
‎2006 Aug 15 9:10 PM
‎2006 Aug 15 10:38 PM
or use GET_WEEK_INFO_BASED_ON_DATE which will also tell you the Monday of that week and the coming sunday date as well.
‎2006 Aug 16 5:24 AM
Hello Praveen
Function group SCAL an FB00 contain several quite useful calendar functions.
Regards
Uwe
‎2006 Aug 16 5:32 AM
Hi,
You can use the FM <b>GET_WEEK_INFO_BASED_ON_DATE</b> , which Srinivas Mentioned, pass the date you get the week number, monday (date)of the week, and sunday(date) of the week.
Regards
vijay