Showing posts with label sap cost center. Show all posts
Showing posts with label sap cost center. Show all posts

Get fiscal year and period


Get fiscal year and period

CALL FUNCTION 'BAPI_COMPANYCODE_GET_PERIOD'
    EXPORTING
      companycodeid = p_bukrs t001
      posting_date  = p_bedat posting date
    IMPORTING
      fiscal_year   = g_f_fiscaly
      fiscal_period = g_f_fiscalp.