得到公司代码记账日期的会计年度和会计期间

CALL FUNCTION 'BAPI_COMPANYCODE_GET_PERIOD'
       EXPORTING
            COMPANYCODEID = P_BUKRS
            POSTING_DATE  = SY-DATUM
       IMPORTING
            FISCAL_YEAR   = P_RYEAR
            FISCAL_PERIOD = P_POPER
            RETURN        = L_RETURN1.

Test for function group      FACS
Function module              FI_PERIOD_DETERMINE
Upper/lower case

Runtime:        831 Microseconds


  Import parameters               Value

  I_BUDAT                         2008/10/15
  I_BUKRS                         SBJA
  I_PERIV
  I_GJAHR
  I_MONAT                         00
  X_XMO16


  Export parameters               Value

  E_GJAHR                         2008
  E_MONAT                         10
  E_POPER                         010


你可能感兴趣的:(得到公司代码记账日期的会计年度和会计期间)