SAP BAPI_ACCSTMT_CREATEFROMSAMEDAY Function Module for Create Bank Statement/Today's Data









BAPI_ACCSTMT_CREATEFROMSAMEDAY is a standard bapi accstmt createfromsameday SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create Bank Statement/Today's Data processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for bapi accstmt createfromsameday FM, simply by entering the name BAPI_ACCSTMT_CREATEFROMSAMEDAY into the relevant SAP transaction such as SE37 or SE38.

Function Group: 4499
Program Name: SAPL4499
Main Program: SAPL4499
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function BAPI_ACCSTMT_CREATEFROMSAMEDAY pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'BAPI_ACCSTMT_CREATEFROMSAMEDAY'"Create Bank Statement/Today's Data
EXPORTING
BANK_ACCOUNT = "Transfer Structure Object 4499: Account Statement
STMT_HEADER = "Transfer Structure Object 4499: Account Statement Header
STMT_ADDAMOUNTS = "Transfer Structure Object 4499: Account Statement Amounts
* TESTRUN = "Test run (data is not stored)

IMPORTING
STMT_KEY = "Short key (surrogate)

TABLES
* STMT_ITEM = "Transfer Structure Object 4499: Account Statement Single Rec
* STMT_TEXT_ITEM = "Transfer Structure Objt 4499: Acct Stat. Single Record Text
* EXTENSION1 = "Enhancement 1
* EXTENSION2 = "Enhancement 2
* EXTENSION3 = "Enhancement 3
* RETURN = "Return parameter
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPL4499_001 AccountStatement (PrevDay) Object Generation
EXIT_SAPL4499_002 AccountStatement (SameDay) Object Generation
EXIT_SAPL4499_003 AccountStatement (Balance) Object Generation
EXIT_SAPL4499_004 AccountStatement (Lockbox) Object Generation

IMPORTING Parameters details for BAPI_ACCSTMT_CREATEFROMSAMEDAY

BANK_ACCOUNT - Transfer Structure Object 4499: Account Statement

Data type: BAPI4499_0
Optional: No
Call by Reference: No ( called with pass by value option)

STMT_HEADER - Transfer Structure Object 4499: Account Statement Header

Data type: BAPI4499_1
Optional: No
Call by Reference: No ( called with pass by value option)

STMT_ADDAMOUNTS - Transfer Structure Object 4499: Account Statement Amounts

Data type: BAPI4499_4
Optional: No
Call by Reference: No ( called with pass by value option)

TESTRUN - Test run (data is not stored)

Data type: TESTRUN
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for BAPI_ACCSTMT_CREATEFROMSAMEDAY

STMT_KEY - Short key (surrogate)

Data type: BF_KUKEYEB
Optional: No
Call by Reference: Yes

TABLES Parameters details for BAPI_ACCSTMT_CREATEFROMSAMEDAY

STMT_ITEM - Transfer Structure Object 4499: Account Statement Single Rec

Data type: BAPI4499_2
Optional: Yes
Call by Reference: No ( called with pass by value option)

STMT_TEXT_ITEM - Transfer Structure Objt 4499: Acct Stat. Single Record Text

Data type: BAPI4499_3
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXTENSION1 - Enhancement 1

Data type: BAPIEXT
Optional: Yes
Call by Reference: Yes

EXTENSION2 - Enhancement 2

Data type: BAPIEXT
Optional: Yes
Call by Reference: Yes

EXTENSION3 - Enhancement 3

Data type: BAPIEXT
Optional: Yes
Call by Reference: Yes

RETURN - Return parameter

Data type: BAPIRET2
Optional: Yes
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for BAPI_ACCSTMT_CREATEFROMSAMEDAY Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_stmt_key  TYPE BF_KUKEYEB, "   
lt_stmt_item  TYPE STANDARD TABLE OF BAPI4499_2, "   
lv_bank_account  TYPE BAPI4499_0, "   
lv_stmt_header  TYPE BAPI4499_1, "   
lt_stmt_text_item  TYPE STANDARD TABLE OF BAPI4499_3, "   
lt_extension1  TYPE STANDARD TABLE OF BAPIEXT, "   
lv_stmt_addamounts  TYPE BAPI4499_4, "   
lv_testrun  TYPE TESTRUN, "   
lt_extension2  TYPE STANDARD TABLE OF BAPIEXT, "   
lt_extension3  TYPE STANDARD TABLE OF BAPIEXT, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2. "   

  CALL FUNCTION 'BAPI_ACCSTMT_CREATEFROMSAMEDAY'  "Create Bank Statement/Today's Data
    EXPORTING
         BANK_ACCOUNT = lv_bank_account
         STMT_HEADER = lv_stmt_header
         STMT_ADDAMOUNTS = lv_stmt_addamounts
         TESTRUN = lv_testrun
    IMPORTING
         STMT_KEY = lv_stmt_key
    TABLES
         STMT_ITEM = lt_stmt_item
         STMT_TEXT_ITEM = lt_stmt_text_item
         EXTENSION1 = lt_extension1
         EXTENSION2 = lt_extension2
         EXTENSION3 = lt_extension3
         RETURN = lt_return
. " BAPI_ACCSTMT_CREATEFROMSAMEDAY




ABAP code using 7.40 inline data declarations to call FM BAPI_ACCSTMT_CREATEFROMSAMEDAY

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!