Fonction SAP BAPI_ACCSTMT_CREATEFROMSAMEDAY - Create Bank Statement/Today's Data

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
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
Function module for creating a bank statement. In this case, today'sdata is imported. You are best advised to use the module to import thecurrent account balance and current transactions for a bank accountinto the system. You can usually identify the bank account using thebank ID and account number. It is important to specify the time forwhich the bank statement is valid, as well as the balance.
This type of bank statement is not used to create postings in FinancialAccounting. The information updates the cash position.

Notes
The following authorization object is checked for activity 01 (create):
o F_FEBB_BUK Bank account statement for company code
Checks
Bank statements for today are stored in the SAP system, accurate to thesecond. Bank statements which apply to the same day and time asinformation already stored for that account are rejected on the groundthat they already exist.
Messages are returned in the "Return" parameter. Refer to thedocumentation for this parameter for informantion on returned valuesand what they mean.

Further information
Weitere Informationen finden Sie in der R/3-Bibliothek unter'Elektronischer Kontoauszug'.
For more information, see the documentation on the Electronic BankStatement in the SAP Library.

Description
Object ID
Unique key for bank statements

Description
Bank Account ID
This structure contains all the fields used to identify a bank account.
Generally speaking, you can give a bank account a unique ID using onlythe following:
BANKKEY ,,Bank key
BANK_ACCT ,,Bank account
INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX

Description
Bank Account ID
This structure contains all the fields used to identify a bank account.
Generally speaking, you can give a bank account a unique ID using onlythe following:
BANKKEY ,,Bank key
BANK_ACCT ,,Bank account
INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX

Description
Bank Statement Validity and Balances
Important Fields
STMT_DATE ,,,,,,,,Statement date
BEGBALANCE/BEGBALSIGN,,,,Beginning balance
DEBIT_AMT,,,, ,,,,Total debits
CREDIT_AMT,,,,,,,,Total credits
ENDBALANCE/ENDBALSIGN,,,,Ending balance
The balances are checked against the amount totals for the items. Thebeginning balance is checked against the ending balance from theprevious statement.
INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX

Description
Indicates whether this is a test run. If it is, the function moduleruns in full, but no changes are written to the database.

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 005 Bank statement date incorrect: <(>&<)>
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: <(>&<)> <(>&<)><(>&<)>
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 <(>&<)>
E RQ 085 Planning type <(>&<)> not maintained
E FTCM 001 No memo record:
CC: <(>&<)> Acct: <(>&<)> Tx.: <(>&<)>
Crcy: <(>&<)>
Default


INCLUDE BAPI_ACCSTMT_CREATEFROMPREVDAYSTMT_ITEM OBJECT DOKU ID FU


INCLUDE BAPI_ACCSTMT_CREATEFROMPREVDAYSTMT_TEXT_ITEM OBJECT DOKU ID FU