SAP BAPI_CHEQUE_ORDER Function Module for BCA: Request or Create Checks









BAPI_CHEQUE_ORDER is a standard bapi cheque order SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for BCA: Request or Create Checks 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 cheque order FM, simply by entering the name BAPI_CHEQUE_ORDER into the relevant SAP transaction such as SE37 or SE38.

Function Group: FBA7
Program Name: SAPLFBA7
Main Program: SAPLFBA7
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_CHEQUE_ORDER 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_CHEQUE_ORDER'"BCA: Request or Create Checks
EXPORTING
* I_BANKAREA = "Bank Area
* I_NCHEQUES = "Number of Checks
* I_COUNTRY = "Bank Country
* I_BANKCODE = "Bank Key (Bank Identification Number)
I_CHEQTYPE = "Check Type
I_ACCOUNT = "Account Number
* I_ISSUEDATE = SY-DATUM "Issue Date
* I_FLG_CREATE_NUMBERS = "'X': Check Numbers Issued
* I_CHEQNOFROM = "Check Number From
* I_CHEQNOTO = "Check number to

IMPORTING
E_RETURN = "0: Everything OK, <>0: Errors (See Long Text)
E_CHEQNOFROM = "Check Number From
E_CHEQNOTO = "Check number to
E_NCHEQUES = "Number of Checks
.



IMPORTING Parameters details for BAPI_CHEQUE_ORDER

I_BANKAREA - Bank Area

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

I_NCHEQUES - Number of Checks

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

I_COUNTRY - Bank Country

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

I_BANKCODE - Bank Key (Bank Identification Number)

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

I_CHEQTYPE - Check Type

Data type: IBKKAKEYEX-CASHBTYPE
Optional: No
Call by Reference: No ( called with pass by value option)

I_ACCOUNT - Account Number

Data type: IBKKAKEYEX-ACCOUNT
Optional: No
Call by Reference: No ( called with pass by value option)

I_ISSUEDATE - Issue Date

Data type: BKKA1-CASHB_IDAT
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_CREATE_NUMBERS - 'X': Check Numbers Issued

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

I_CHEQNOFROM - Check Number From

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

I_CHEQNOTO - Check number to

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

EXPORTING Parameters details for BAPI_CHEQUE_ORDER

E_RETURN - 0: Everything OK, <>0: Errors (See Long Text)

Data type: IBKK_MISC-RC2
Optional: No
Call by Reference: No ( called with pass by value option)

E_CHEQNOFROM - Check Number From

Data type: IBKKAKEYEX-CASHBNO
Optional: No
Call by Reference: No ( called with pass by value option)

E_CHEQNOTO - Check number to

Data type: IBKKAKEYEX-CASHBNO
Optional: No
Call by Reference: No ( called with pass by value option)

E_NCHEQUES - Number of Checks

Data type: IBKK_CHEQ-NCHEQUES
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for BAPI_CHEQUE_ORDER 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_e_return  TYPE IBKK_MISC-RC2, "   
lv_i_bankarea  TYPE IBKKAKEYEX-BKKRS, "   
lv_i_ncheques  TYPE IBKK_CHEQ-NCHEQUES, "   
lv_i_country  TYPE IBKK_BKKRS-BANKS, "   
lv_e_cheqnofrom  TYPE IBKKAKEYEX-CASHBNO, "   
lv_e_cheqnoto  TYPE IBKKAKEYEX-CASHBNO, "   
lv_i_bankcode  TYPE IBKK_BKKRS-BANKL, "   
lv_e_ncheques  TYPE IBKK_CHEQ-NCHEQUES, "   
lv_i_cheqtype  TYPE IBKKAKEYEX-CASHBTYPE, "   
lv_i_account  TYPE IBKKAKEYEX-ACCOUNT, "   
lv_i_issuedate  TYPE BKKA1-CASHB_IDAT, "   SY-DATUM
lv_i_flg_create_numbers  TYPE BOOLE-BOOLE, "   
lv_i_cheqnofrom  TYPE IBKKAKEYEX-CASHBNO, "   
lv_i_cheqnoto  TYPE IBKKAKEYEX-CASHBNO. "   

  CALL FUNCTION 'BAPI_CHEQUE_ORDER'  "BCA: Request or Create Checks
    EXPORTING
         I_BANKAREA = lv_i_bankarea
         I_NCHEQUES = lv_i_ncheques
         I_COUNTRY = lv_i_country
         I_BANKCODE = lv_i_bankcode
         I_CHEQTYPE = lv_i_cheqtype
         I_ACCOUNT = lv_i_account
         I_ISSUEDATE = lv_i_issuedate
         I_FLG_CREATE_NUMBERS = lv_i_flg_create_numbers
         I_CHEQNOFROM = lv_i_cheqnofrom
         I_CHEQNOTO = lv_i_cheqnoto
    IMPORTING
         E_RETURN = lv_e_return
         E_CHEQNOFROM = lv_e_cheqnofrom
         E_CHEQNOTO = lv_e_cheqnoto
         E_NCHEQUES = lv_e_ncheques
. " BAPI_CHEQUE_ORDER




ABAP code using 7.40 inline data declarations to call FM BAPI_CHEQUE_ORDER

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.

"SELECT single RC2 FROM IBKK_MISC INTO @DATA(ld_e_return).
 
"SELECT single BKKRS FROM IBKKAKEYEX INTO @DATA(ld_i_bankarea).
 
"SELECT single NCHEQUES FROM IBKK_CHEQ INTO @DATA(ld_i_ncheques).
 
"SELECT single BANKS FROM IBKK_BKKRS INTO @DATA(ld_i_country).
 
"SELECT single CASHBNO FROM IBKKAKEYEX INTO @DATA(ld_e_cheqnofrom).
 
"SELECT single CASHBNO FROM IBKKAKEYEX INTO @DATA(ld_e_cheqnoto).
 
"SELECT single BANKL FROM IBKK_BKKRS INTO @DATA(ld_i_bankcode).
 
"SELECT single NCHEQUES FROM IBKK_CHEQ INTO @DATA(ld_e_ncheques).
 
"SELECT single CASHBTYPE FROM IBKKAKEYEX INTO @DATA(ld_i_cheqtype).
 
"SELECT single ACCOUNT FROM IBKKAKEYEX INTO @DATA(ld_i_account).
 
"SELECT single CASHB_IDAT FROM BKKA1 INTO @DATA(ld_i_issuedate).
DATA(ld_i_issuedate) = SY-DATUM.
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_flg_create_numbers).
 
"SELECT single CASHBNO FROM IBKKAKEYEX INTO @DATA(ld_i_cheqnofrom).
 
"SELECT single CASHBNO FROM IBKKAKEYEX INTO @DATA(ld_i_cheqnoto).
 


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!