SAP BAPI_BKK_ACCNT_CREATE Function Module for Account Creation
BAPI_BKK_ACCNT_CREATE is a standard bapi bkk accnt create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Account Creation 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 bkk accnt create FM, simply by entering the name BAPI_BKK_ACCNT_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: FB_ACCOUNT_BAPI
Program Name: SAPLFB_ACCOUNT_BAPI
Main Program: SAPLFB_ACCOUNT_BAPI
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_BKK_ACCNT_CREATE 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_BKK_ACCNT_CREATE'"Account Creation.
EXPORTING
BANKAREA = "Bank Area
* EXTERNALACCOUNTNR = "External Account Number
PRODUCTNAME = "External Product ID
* ACCMASTERDATAIN = "Account Master Data
* ACCOPERATIVEDATAIN = "Account Operative Data
* NOTICEONAMOUNT_RULEIN = "Amount Notices
* TERMRULEIN = "Fixed-Term Deposits Master Data
* PROCESS_EXTENSION = "Execute Customer Enhancements
* TESTRUN = ' ' "Execution in Test Run Mode
IMPORTING
ACCOUNTIDENTIFICATION = "Account Identification
TABLES
* REFERENCEACCOUNTSIN = "Reference Accounts
* ACCOUNTTIMEPERIODSIN = "Account Periodicity
* TERMIN = "Fixed-Term Deposits Term Data
* HOLDIN = "Holds
* NOTICEIN = "Notes
* EXTENSIONIN = "Reference Structure for BAPI parameter ExtensionIn
* EXTENSIONOUT = "Reference Structure for BAPI parameter ExtensionOut
* RETURN = "Return Parameter
* ACCOUNTLOCKSIN = "Locking Reasons
* BUSINESSPARTNERIN = "Business Partners
* DEBITORDERIN = "Direct Debit Orders
* CONTROLINDICATORBALANCEIN = "Bank Account Data
* INDIVIDUALCONDITIONHEADERIN = "Individual Conditions: Header
* INDIVIDUALCONDITIONPOSITIONIN = "Individual Conditions: Position
* POSITIONTYPESCHECKSIN = "Checks (PF)
* LIMITSIN = "Account Limits
IMPORTING Parameters details for BAPI_BKK_ACCNT_CREATE
BANKAREA - Bank Area
Data type: BAPI_IBKK_ACCNT_IDENTIF-BANKAREAOptional: No
Call by Reference: No ( called with pass by value option)
EXTERNALACCOUNTNR - External Account Number
Data type: BAPI_IBKK_ACCNT_IDENTIF-EXTERNALACCOUNTNROptional: Yes
Call by Reference: No ( called with pass by value option)
PRODUCTNAME - External Product ID
Data type: BAPI_IBKK_PROD_EXTIDENTIF-PRODUCTNAMEOptional: No
Call by Reference: No ( called with pass by value option)
ACCMASTERDATAIN - Account Master Data
Data type: BAPI_IBKK_ACCNT_MDATAINOptional: Yes
Call by Reference: No ( called with pass by value option)
ACCOPERATIVEDATAIN - Account Operative Data
Data type: BAPI_IBKK_ACCNT_OP_MDATAINOptional: Yes
Call by Reference: No ( called with pass by value option)
NOTICEONAMOUNT_RULEIN - Amount Notices
Data type: BAPI_IBKK_NOTICE_RULEOptional: Yes
Call by Reference: No ( called with pass by value option)
TERMRULEIN - Fixed-Term Deposits Master Data
Data type: BAPI_IBKK_TERM_RULEINOptional: Yes
Call by Reference: No ( called with pass by value option)
PROCESS_EXTENSION - Execute Customer Enhancements
Data type: BAPI_IBKK_ACCNT_COMM_PARAM-PROCESS_EXTENSIONOptional: Yes
Call by Reference: No ( called with pass by value option)
TESTRUN - Execution in Test Run Mode
Data type: BAPI_IBKK_ACCNT_COMM_PARAM-TESTRUNDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_BKK_ACCNT_CREATE
ACCOUNTIDENTIFICATION - Account Identification
Data type: BAPI_IBKK_ACCNT_IDENTIFOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_BKK_ACCNT_CREATE
REFERENCEACCOUNTSIN - Reference Accounts
Data type: BAPI_IBKK_REF_ACCOUNT_INOptional: Yes
Call by Reference: Yes
ACCOUNTTIMEPERIODSIN - Account Periodicity
Data type: BAPI_IBKK_ACCNT_PERIODINOptional: Yes
Call by Reference: Yes
TERMIN - Fixed-Term Deposits Term Data
Data type: BAPI_IBKK_TERMINOptional: Yes
Call by Reference: Yes
HOLDIN - Holds
Data type: BAPI_IBKK_HOLD_INOptional: Yes
Call by Reference: Yes
NOTICEIN - Notes
Data type: BAPI_IBKK_ACCNT_NOTICEOptional: Yes
Call by Reference: Yes
EXTENSIONIN - Reference Structure for BAPI parameter ExtensionIn
Data type: BAPIPAREXOptional: Yes
Call by Reference: Yes
EXTENSIONOUT - Reference Structure for BAPI parameter ExtensionOut
Data type: BAPIPAREXOptional: Yes
Call by Reference: Yes
RETURN - Return Parameter
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
ACCOUNTLOCKSIN - Locking Reasons
Data type: BAPI_IBKK_ACCNT_LOCKSINOptional: Yes
Call by Reference: Yes
BUSINESSPARTNERIN - Business Partners
Data type: BAPI_IBKK_BUS_PARTNER_INOptional: Yes
Call by Reference: Yes
DEBITORDERIN - Direct Debit Orders
Data type: BAPI_IBKK_DIR_DEBIT_ORDERINOptional: Yes
Call by Reference: Yes
CONTROLINDICATORBALANCEIN - Bank Account Data
Data type: BAPI_IBKK_BAL_CTRLINOptional: Yes
Call by Reference: Yes
INDIVIDUALCONDITIONHEADERIN - Individual Conditions: Header
Data type: BAPI_IBKK_IND_CONDITION_INOptional: Yes
Call by Reference: Yes
INDIVIDUALCONDITIONPOSITIONIN - Individual Conditions: Position
Data type: BAPI_IBKK_IND_COND_POS_INOptional: Yes
Call by Reference: Yes
POSITIONTYPESCHECKSIN - Checks (PF)
Data type: BAPI_IBKK_CHECKSINOptional: Yes
Call by Reference: Yes
LIMITSIN - Account Limits
Data type: BAPI_IBKK_ACCNT_LIMITINOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for BAPI_BKK_ACCNT_CREATE 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_bankarea | TYPE BAPI_IBKK_ACCNT_IDENTIF-BANKAREA, " | |||
| lt_referenceaccountsin | TYPE STANDARD TABLE OF BAPI_IBKK_REF_ACCOUNT_IN, " | |||
| lv_accountidentification | TYPE BAPI_IBKK_ACCNT_IDENTIF, " | |||
| lt_accounttimeperiodsin | TYPE STANDARD TABLE OF BAPI_IBKK_ACCNT_PERIODIN, " | |||
| lt_termin | TYPE STANDARD TABLE OF BAPI_IBKK_TERMIN, " | |||
| lt_holdin | TYPE STANDARD TABLE OF BAPI_IBKK_HOLD_IN, " | |||
| lt_noticein | TYPE STANDARD TABLE OF BAPI_IBKK_ACCNT_NOTICE, " | |||
| lt_extensionin | TYPE STANDARD TABLE OF BAPIPAREX, " | |||
| lt_extensionout | TYPE STANDARD TABLE OF BAPIPAREX, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lt_accountlocksin | TYPE STANDARD TABLE OF BAPI_IBKK_ACCNT_LOCKSIN, " | |||
| lv_externalaccountnr | TYPE BAPI_IBKK_ACCNT_IDENTIF-EXTERNALACCOUNTNR, " | |||
| lv_productname | TYPE BAPI_IBKK_PROD_EXTIDENTIF-PRODUCTNAME, " | |||
| lt_businesspartnerin | TYPE STANDARD TABLE OF BAPI_IBKK_BUS_PARTNER_IN, " | |||
| lt_debitorderin | TYPE STANDARD TABLE OF BAPI_IBKK_DIR_DEBIT_ORDERIN, " | |||
| lv_accmasterdatain | TYPE BAPI_IBKK_ACCNT_MDATAIN, " | |||
| lv_accoperativedatain | TYPE BAPI_IBKK_ACCNT_OP_MDATAIN, " | |||
| lt_controlindicatorbalancein | TYPE STANDARD TABLE OF BAPI_IBKK_BAL_CTRLIN, " | |||
| lv_noticeonamount_rulein | TYPE BAPI_IBKK_NOTICE_RULE, " | |||
| lt_individualconditionheaderin | TYPE STANDARD TABLE OF BAPI_IBKK_IND_CONDITION_IN, " | |||
| lv_termrulein | TYPE BAPI_IBKK_TERM_RULEIN, " | |||
| lt_individualconditionpositionin | TYPE STANDARD TABLE OF BAPI_IBKK_IND_COND_POS_IN, " | |||
| lv_process_extension | TYPE BAPI_IBKK_ACCNT_COMM_PARAM-PROCESS_EXTENSION, " | |||
| lt_positiontypeschecksin | TYPE STANDARD TABLE OF BAPI_IBKK_CHECKSIN, " | |||
| lv_testrun | TYPE BAPI_IBKK_ACCNT_COMM_PARAM-TESTRUN, " SPACE | |||
| lt_limitsin | TYPE STANDARD TABLE OF BAPI_IBKK_ACCNT_LIMITIN. " |
|   CALL FUNCTION 'BAPI_BKK_ACCNT_CREATE' "Account Creation |
| EXPORTING | ||
| BANKAREA | = lv_bankarea | |
| EXTERNALACCOUNTNR | = lv_externalaccountnr | |
| PRODUCTNAME | = lv_productname | |
| ACCMASTERDATAIN | = lv_accmasterdatain | |
| ACCOPERATIVEDATAIN | = lv_accoperativedatain | |
| NOTICEONAMOUNT_RULEIN | = lv_noticeonamount_rulein | |
| TERMRULEIN | = lv_termrulein | |
| PROCESS_EXTENSION | = lv_process_extension | |
| TESTRUN | = lv_testrun | |
| IMPORTING | ||
| ACCOUNTIDENTIFICATION | = lv_accountidentification | |
| TABLES | ||
| REFERENCEACCOUNTSIN | = lt_referenceaccountsin | |
| ACCOUNTTIMEPERIODSIN | = lt_accounttimeperiodsin | |
| TERMIN | = lt_termin | |
| HOLDIN | = lt_holdin | |
| NOTICEIN | = lt_noticein | |
| EXTENSIONIN | = lt_extensionin | |
| EXTENSIONOUT | = lt_extensionout | |
| RETURN | = lt_return | |
| ACCOUNTLOCKSIN | = lt_accountlocksin | |
| BUSINESSPARTNERIN | = lt_businesspartnerin | |
| DEBITORDERIN | = lt_debitorderin | |
| CONTROLINDICATORBALANCEIN | = lt_controlindicatorbalancein | |
| INDIVIDUALCONDITIONHEADERIN | = lt_individualconditionheaderin | |
| INDIVIDUALCONDITIONPOSITIONIN | = lt_individualconditionpositionin | |
| POSITIONTYPESCHECKSIN | = lt_positiontypeschecksin | |
| LIMITSIN | = lt_limitsin | |
| . " BAPI_BKK_ACCNT_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_BKK_ACCNT_CREATE
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 BANKAREA FROM BAPI_IBKK_ACCNT_IDENTIF INTO @DATA(ld_bankarea). | ||||
| "SELECT single EXTERNALACCOUNTNR FROM BAPI_IBKK_ACCNT_IDENTIF INTO @DATA(ld_externalaccountnr). | ||||
| "SELECT single PRODUCTNAME FROM BAPI_IBKK_PROD_EXTIDENTIF INTO @DATA(ld_productname). | ||||
| "SELECT single PROCESS_EXTENSION FROM BAPI_IBKK_ACCNT_COMM_PARAM INTO @DATA(ld_process_extension). | ||||
| "SELECT single TESTRUN FROM BAPI_IBKK_ACCNT_COMM_PARAM INTO @DATA(ld_testrun). | ||||
| DATA(ld_testrun) | = ' '. | |||
Search for further information about these or an SAP related objects