Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Any function module for getting fiscal year week numbers

Former Member
0 Kudos

can any one provide me function module for getting fiscal year week numbers ? if no function module please let me know work around.

Thanks!

Lakshmikandh

5 REPLIES 5

Former Member
0 Kudos

What do you mean by fiscal year week numbers? The number of the current week in the current fiscal year?

LucianoBentiveg
Active Contributor
0 Kudos

Try FM DATE_GET_WEEK.

Regards.

0 Kudos

Hi guys,

Thanks for the reply. lets say, fiscal year start with mar 06 first week will be Week # 1, if i would like to findout week # for May 06, how do i find out ?

former_member181966
Active Contributor

Also see

GET_WEEK_INFO_BASED_ON_DATE

call function 'DATE_GET_WEEK'

exporting

date = sy-datum

importing

week = year_week

  • EXCEPTIONS

  • DATE_INVALID = 1

  • OTHERS = 2

Hope this’ll give you idea!!

<b>P.S award the points.!!! !!!</b>

Good luck

Thanks

Saquib Khan

"Some are wise and some are otherwise"

0 Kudos

hi,

Use FM <b>'DATE_GET_WEEK'</b>...

parameter D1 LIKE SCAL-DATE.

Data w like scal-week.

CALL FUNCTION <b>'DATE_GET_WEEK'</b>

EXPORTING

date = D1

IMPORTING

WEEK = W

  • EXCEPTIONS

  • DATE_INVALID = 1

  • OTHERS = 2

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

write W+4(2).

Regards,

Santosh