Fonction SAP BAPI_ACCSTMT_CREATEFROMPREVDAY - Create Bank Statement/Day-End Statement

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_HEADER BAPI4499_1 u 135 Transfer Structure Object 4499: Account Statement Header
TESTRUN TESTRUN C 1 X Test run (data is not stored)

Paramètre Reférence Type Long. Description
STMT_KEY BF_KUKEYEB N 8 Short key (surrogate)

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
STMT_ITEM BAPI4499_2 516 X Transfer Structure Object 4499: Account Statement Single Rec
STMT_TEXT_ITEM BAPI4499_3 73 X Transfer Structure Objt 4499: Acct Stat. Single Record Text

Functionality
This function module is used to create bank statements. Here, the datathe data from the previous day or a number or days is imported. It is agood idea to use this module to import saved transactions from the bankaccount into the SAP system. The bank account can usually be identifiedusing the bank ID and the account number. It is important to specifythe balances and the date to which the bank statement applies.
This type of bank statement is used generate postings in financialaccounting.

Notes
The following authorization with activity 01 (create) is checked:
o F_FEBB_BUK Company Code Bank Statement
Checks
Check for past days are stored, accurate to the day, in the SAP system.Bank statements that apply to the same day as information alreadystored for that accoun are rejected.
Messages are returned in the "Return" parameter. Read the parameterdocumentation for details of the return codes and what they mean.

Further information
Weitere Informationen finden Sie in der R/3-Bibliothek unter'Elektronischer Kontoauszug'.

Description
Object ID
Unique key for bank statements

Description
Bank account identification
This structure contains all the fields that identify a bank account.
A bank account can usually be identified by the following two fields:
BANKKEY ,,Bank key
BANK_ACCT ,,Bank account
INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX

Description
Validity and balances for the bank account
Important fields:
STMT_DATE ,,,,,,,,Statement date
BEGBALANCE/BEGBALSIGN,,,,Starting balance amount
DEBIT_AMT,,,,,,,, Total of debits
CREDIT_AMT,,,,,,,,Total of credits
ENDBALANCE/ENDBALSIGN,,,,End balance amount
The system checks the balances against the amount totals for items. Thestarting balance is checked agains the end balance from the previousstatement.
INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX

Description
Indicator showing whether this is a test run. In test mode, thefunction module is executed in full, but no changes are written to thedatabase.

Description
Enhancement

Description
Enhancement

Description
Enhancement
Description
INCLUDE BAPI_TABLE OBJECT DOKU ID TX
Value range
Messages re authorization
Type ID Number Message
A 00 149 No authorization for object <(>&<)>
Messages re input checks
Type ID Number Message
A B1 547 No currency key found for ISO code
<(>&<)> in field <(>&<)>.
E B1 536 Currency amount <(>&<)> <(>&<)> in field<(>&<)> could not be converted.
A BAPI4499 002 The bank statement already exists:
<(>&<)> <(>&<)> <(>&<)> <(>&<)> <(>&<)>
A BAPI4499 003 The bank statement(FEBVW) already
exists:<(>&<)> <(>&<)> <(>&<)> <(>&<)>
A BAPI4499 004 Previous bank statement missing:
<(>&<)> <(>&<)> <(>&<)> <(>&<)>
A BAPI4499 005 Bank statement date incorrect: <(>&<)>
A BAPI4499 006 Opening balance not the same as closingbalance <(>&<)> in previous statement
A BAPI4499 007 No bank statement number could be
allocated
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: <(>&<)> <(>&<)><(>&<)>
A BAPI4499 013 Debit total <(>&<)> different from total
of debit items
A BAPI4499 014 Credit total <(>&<)> different from total
of credit items
Messages re incorrect settings in Customizing
Type ID Number Message
E FB 759 Bank details <(>&<)> <(>&<)> not in tableT028B
E FB 915 Entry <(>&<)> <(>&<)> missing from tableT035D
E FB 882 No G/L account maintained for house
bank account <(>&<)> <(>&<)>
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 allowed 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
posting rule is missing
E FB 866 No posting rule could be found for
external transaction <(>&<)>
Default

Description
You want to use this structure to explain a transaction (posting in abank account).
Important fields:
VALUE_DATE Value date (date on which the amount is
debited/credited)
TRAMOUNT/DB_CR_IND Amount (with plus or minus sign)
TRANS_CODE Transaction type identification, in coded
form (examples: BAI code, BTC)
or
EXT_TRANS Transaction type idenditification (27 characters)
BANK_CHKNO Check number/reference number
BANK_REFNO Bank reference

Description
Transaction text
Use this function to transfer information that exists in text form onlyto the transaction.