cancel
Showing results for 
Search instead for 
Did you mean: 

how to calculate week number from system date

Former Member
0 Kudos

Hi experts,

how to calculate week number from system date ?

thanks.

SK

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member188080
Active Contributor
0 Kudos

Hi,

Check following thread as well

Thanks and regards

Kiran

Former Member
0 Kudos

hi,

Use FM DATE_GET_WEEK. Pass on the system date as input and the value of the week will be returned by this FM

regards,

Arvind.

Former Member
0 Kudos

hi,

thanx for your quick reply...couldn't i use formula in transformation rule ? if not, as you stated that FM how can i write the rutin?

thnx in advance..

Former Member
0 Kudos

hi,

The above FM can be used for BADI or customer exit, if it is design level then you can use formula as well, under formula date functions you can use DATE_TO_WEEK.

regards,

Arvind.

Former Member
0 Kudos

hi,

i will load from ODS to ICube..i added 0calweek io to IC..so what exactly will i write in formula ?

is DATE_TO_WEEK( SYST-DATUM ) enough without mapping any IO ?

Former Member
0 Kudos

hi,

yes that's correct. This will populate the records with the loading week.

regards,

Arvind.