Google Search - Blog...........

ABAP - Function Module To Fetch Week Number - 'DATE_GET_WEEK'.

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).

No comments:

Post a Comment