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: 

Function Module to pull current accounting period

Former Member
0 Kudos
251

Hi,

Is there any Function Module to pull current accounting period

Thanks & Regards,

Adithya M.

2 REPLIES 2

GauthamV
Active Contributor
0 Kudos
151

hi,

check this fm.

GET_ACCOUNT_OF_PERIODS

raymond_giuseppi
Active Contributor
0 Kudos
151

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