Application Development and Automation 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: 
Read only

Any function module for getting fiscal year week numbers

Former Member
0 Likes
1,108

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

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
Read only

Former Member
0 Likes
889

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

Read only

LucianoBentiveg
Active Contributor
0 Likes
889

Try FM DATE_GET_WEEK.

Regards.

Read only

0 Likes
889

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 ?

Read only

former_member181966
Active Contributor
889

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"

Read only

0 Likes
889

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