2008 Aug 01 11:15 AM
1) How to get the current week number?That is it, can be from 1 to 52... 1 is this first week of January, and 52 should be the last week in December
2008 Aug 01 11:17 AM
2008 Aug 01 11:17 AM
2008 Aug 01 11:18 AM
Hi,
Use this FM-
GET_WEEK_INFO_BASED_ON_DATE
And DATE_GET_WEEK.
Check this link for coding
http://abaplovers.blogspot.com/2008/05/sap-abap-function-module-te-get-week.html
2008 Aug 01 11:18 AM
2008 Aug 01 11:19 AM
Hi,
chk this
REPORT ztest_cha5.
DATA : week like scal-week.
call function 'DATE_GET_WEEK'
exporting
date = sy-datum
importing
week = week
exceptions
date_invalid = 1
others = 2.
WRITE : / 'week No' , week+4(2).
2008 Aug 01 11:20 AM
CALL FUNCTION 'DATE_GET_WEEK'
EXPORTING
DATE = sy-datum
IMPORTING
WEEK = week.
2008 Aug 01 11:24 AM
As also said by others use
DATE_GET_WEEK
will return the week that a date is in.
With luck,
Pritam.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |