Fonction SAP BAPI_GL_GETGLACCPERIODBALANCES - Posting period balances for each G/L account

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
COMPANYCODE BAPI1028_0-COMP_CODE C 4 Company code
CURRENCYTYPE BAPI1028_5-CURR_TYPE C 2 Currency type
FISCALYEAR BAPI1028_4-FISC_YEAR N 4 Fiscal year
GLACCT BAPI1028_0-GL_ACCOUNT C 10 G/L account number

Paramètre Reférence Type Long. Description
BALANCE_CARRIED_FORWARD BAPI1028_4-BALANCE P 12 Balance carried forward from previous year
RETURN BAPIRETURN u 452 Return code

Paramètre Reférence Long. Facultatif Description
ACCOUNT_BALANCES BAPI1028_4 76 G/L account balances

Functionality
For a G/L account, the method provides the balances per company codefor the fiscal year selected.
The user selects whether the balance is provided in the transaction orcompany code currency. Exceptions are G/L accounts kept in varioustransaction currencies. In this case, only the company code currencycan be used.
The balance determined by the system and the currency are provided.Should problems arise, they are reported in a return code.

Notes
The same authorizations as those for display authorization in the R/3transaction are also carried out.
The entry parameter COMPANYCODE is not converted so that leading zerosin this parameter are not cleared. This is also the case for parameterGLACCT. G/L account numbers have to be entered with leading zeros (forexample, 0000113100).
Messages are provided in the parameter RETURN. You can find the returnvalues and their meanings in the documentation for this parameter.

Description
Carry forward account balance to the previous fiscal year. The currencyis found in the table containing details on the balance.

Description
The return code of the method is provided in a structure with fivefields. You can find information on the meaning of the individualfields in the related data element documentation.
Structure setup
TYPE Message type
CODE Message code
MESSAGE Message text
LOG_NO Application log: Log number
LOG_MSG_NO Application log: Current number of message

Description
You can find information on the meaning of company code in the relateddata element documentation:
Company code

Description
You can find information on the meaning of currency type in the relateddata element documentation:
Currency type

Value range
00 = Balance in transaction currency
10 = Balance in local currency

Description
You can find information on the meaning of the G/L account number inthe corresponding data element documentation.
Fiscal year

Description
You can find information on the meaning of the G/L account number inthe related data element documentation.
G/L account number

Description
The balances of the G/L accounts per company code are provided in thistable. You can find information on the meaning of these parameters inthe corresponding data element documentation.
Table structure
COMP_CODE Company code
GL_ACCOUNT G/L account number
FISC_YEAR Fiscal year
FIS_PERIOD Fiscal period
DEBITS_MTH Total debit postings for the month
CREDIT_MTH Total credit postings for the month
MNTH_SALES Sales for the month
BALANCE Account balance
CURRENCY Currency key