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

Function Module to pull current accounting period

Former Member
0 Likes
648

Hi,

Is there any Function Module to pull current accounting period

Thanks & Regards,

Adithya M.

2 REPLIES 2
Read only

GauthamV
Active Contributor
0 Likes
548

hi,

check this fm.

GET_ACCOUNT_OF_PERIODS

Read only

RaymondGiuseppi
Active Contributor
0 Likes
548

You may use function module DATE_TO_PERIOD_CONVERT, using current date and your current company code

   SELECT SINGLE periv INTO i_periv
     FROM t001                                   
     WHERE bukrs = i_-bukrs.                        
   CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'        
        EXPORTING                                
             i_date  = sy-datum
             i_periv = i_periv                     
        IMPORTING                                
             e_buper = monat.

Regards