We can find the first and last dates of the current Fiscal Period by using two funtional modules.
First, we have to call 'DATE_TO_PERIOD_CONVERT' importing sy-datum and Fiscal year variant.
Then call 'PERIOD_DAY_DETERMINE' importing the outputs from the previous functional module.
CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
EXPORTING
I_DATE = SY-DATUM
I_PERIV = GC_PERIV
IMPORTING
E_BUPER = LW_BUPER
E_GJAHR = LW_GJAHR.
LW_MONAT = LW_BUPER.
CALL FUNCTION 'PERIOD_DAY_DETERMINE'
EXPORTING
I_GJAHR = LW_GJAHR
I_MONAT = LW_MONAT
I_PERIV = GC_PERIV
IMPORTING
E_FDAY = LW_BEGDAT
E_LDAY = LW_ENDDAT
Requires Free Membership to View
When you register, you will start receiving targeted emails from my award-winning team of editorial writers. Our goal is to keep you informed on the hottest topics and biggest challenges faced by SAP professionals today.
Hannah Smalltree, Editorial DirectorThis was first published in April 2002
Join the conversationComment
Share
Comments
Results
Contribute to the conversation