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: 

How to convert week to Period

0 Kudos

Hello All,

I have a requirement in BW to convert the value into 0FISCPER, 0FISCYEAR and 0FISCPER3, do we have any standard FM to meet that requirement.

Ex:

Source data: Week 52 FY18, this we have to convert and get 0FISCPER, 0FISCYEAR and 0FISCPER3.

Please provide your suggestions and thanks in advance for your help.

Regards,

DRKR.

1 REPLY 1

raymond_giuseppi
Active Contributor
0 Kudos

Remember that the result of this conversion depends on Customizing (company code or CO area calendar) in some case a week can belong to two periods. You MUST also provide 0FISCVARNT to your transformation and use a rule of type TIME.

Hint: If for some shady reason you want to code it in Abap, look for methods like GET_FIRST_DATE_OF_WEEK and GET_FISCPER_FROM_DATE of class CL_RS_TIME_SERVICE.