Fonction SAP BAPI_ACCSTMT_CREATEFROMBALANCE - Store account balance/check debit information

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
BANK_ACCOUNT BAPI4499_0 u 250 Transfer Structure Object 4499: Account Statement
STMT_ADDAMOUNTS BAPI4499_4 u 74 Transfer Structure Object 4499: Account Statement Amounts
TESTRUN TESTRUN C 1 X Test run (data is not stored)

Paramètre Reférence Type Long. Description
STMT_KEY BF_KUKEYEB N 8 ID

Paramètre Reférence Long. Facultatif Description
EXTENSION1 BAPIEXT 332 X Enhancement 1
EXTENSION2 BAPIEXT 332 X Enhancement 2
EXTENSION3 BAPIEXT 332 X Enhancement 3
RETURN BAPIRET2 548 X Return parameter

Functionality
This is a function module for generating a bank statement. In thiscase, only account balances are imported. The module is best used toimport the current bank account balance into the system. The bankaccount can usually be identified using the bank ID and account number.It is important to specify the time for which the data is valid, aswell as the account balance.
At this time, you can use this module to handle the following balances:
- Current bank account balance
- Total of outgoing checks been deposited by the time of the firstreport (normally checks from this state)
- Total of outgoing checks deposited by the time of the second report(normally checks from out of state
- Overall total of all outgoung checks deposited today
- Amount of difference for outgoing checks on previous days

Notes
The system checks the following authorization object with activity 01(create):
o F_FEBB_BUK Company Code Bank Statement
Checks
Bank statements with balances for today are stored instantly in the SAPsystem. Bank account balance information which applies to the same dayand time as information already stored is rejected on that grounds thatit already exists.
Messages are returned to the "Return" parameter. Read the parameterdocumentation for the return codes and what they mean.

Further information
For more information, see the documentation on the electronic bankstatement in the SAP Library.

Description
Objeckt ID
Unique key for bank statements

Description
Bank account identification
This structure contains all the fields that identify a bank account.
You can usually create a unique ID for a bank account by using both ofthe following fields:
BANKKEY ,,Bank key
BANK_ACCT ,,Bank account
INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX

Description
Amounts for bank account
The structure is used only for bank statements for today. You shouldspecify the debit totals for outgoing checks and, generally, thecurrent balance in the bank account.
INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX

Description
Test run indicator. If you activate this indicator, the system runs thewhole function module, but not changes are written to the database.

Description
Enhancement

Description
Enhancement

Description
Enhancement
INCLUDE BAPI_TABLE OBJECT DOKU ID TX

Value range
Authorization Messages
Type ID Number Message
A 00 149 No authorization for object <(>&<)>
Input Verification Messages
Type ID Number Message
A B1 547 No currency key found for ISOcode <(>&<)>
E B1 536 Currency amount <(>&<)> <(>&<)> in field<(>&<)> could not be converted.
A BAPI4499 002 The bank statement already exists
<(>&<)> <(>&<)> <(>&<)> <(>&<)>
A BAPI4499 003 Bank statement (FEBVW) already exists:
<(>&<)> <(>&<)> <(>&<)> <(>&<)>
A BAPI4499 005 Bank statement date incorrect: <(>&<)>
A BAPI4499 007 Number could not be allocated for bank
statements.
A BAPI4499 008 Unknown error occurred.
S BAPI4499 009 Bank statement created: <(>&<)> <(>&<)><(>&<)> <(>&<)>
S BAPI4499 010 Test run completed successfully
Statement: <(>&<)> <(>&<)> <(>&<)><(>&<)>
W BAPI4499 011 No record written in cash management
(Customizing).
S BAPI4499 012 Cash management memo record written.
ID: <(>&<)> Statement: <(>&<)> <(>&<)><(>&<)>
Messages re Incorrect Settings in Customizing
Type ID Number Message
E FB 759 Bank details <(>&<)> <(>&<)> not in TableT028B
E FB 915 Entry <(>&<)> <(>&<)> missing in tableT035D.
E FB 882 No G/L account entered for house bankaccount <(>&<)> <(>&<)>.
E FB 736 House bank table: No entry with bank key
<(>&<)> and account <(>&<)>
A FB 735 Inconsistency between house bank account
table and house bank table.
A FB 755 Table T012 has no entry with bank key
<(>&<)>
E FV 141 Currency <(>&<)> not permitted in account<(>&<)> / <(>&<)>.
E FB 858 No bank account found for currency:
<(>&<)> <(>&<)> <(>&<)>
E FB 859 No bank account found for currency:
<(>&<)> <(>&<)> <(>&<)>
E FB 755 Table T012 has no entry with bank key
<(>&<)>
E FB 865 External transaction for determining the
posting rule is missing
E FB 866 No posting rule could be determined for
external transaction <(>&<)>
E RQ 085 Planning type <(>&<)> not maintained
E FTCM 001 No memo record found:
CC: <(>&<)> Acct: <(>&<)> Tx.: <(>&<)>Crcy: <(>&<)>