SAP BAPI_BANKNZ_CHANGE Function Module for Change bank details
BAPI_BANKNZ_CHANGE is a standard bapi banknz change SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Change bank details 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 banknz change FM, simply by entering the name BAPI_BANKNZ_CHANGE into the relevant SAP transaction such as SE37 or SE38.
Function Group: PBNK_NZ
Program Name: SAPLPBNK_NZ
Main Program: SAPLPBNK_NZ
Appliation area: P
Release date: 31-Jan-2000
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_BANKNZ_CHANGE 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_BANKNZ_CHANGE'"Change bank details.
EXPORTING
EMPLOYEENUMBER = "Personnel number
* PAYEEPOSTALCODECITY = "Postal code
* PAYEECITY = "City
* BANKCOUNTRY = "Country key of bank
* BANKKEY = "Bank Key
* ACCOUNTNO = "Bank account number
* STANDARDVALUE = "Standard value
* CURRENCY = "Currency key
* STANDARDPERCENT = "Standard percentage
* TIMEUNIT = "Time/measurement unit
* CHECKDIGIT = "Check digit for bank/account numbers
SUBTYPE = "Subtype
* CONTROLKEY = "Bank control key
* PURPOSE = "Purpose of bank transfers
* NOCOMMIT = "COMMIT control at BAPI interface
* STANDARDVALUECURR = "Currency Amount of BAPI Interfaces
* POSTOFFICEACCNUMBER = "Post office bank current account number
* IBAN = "IBAN (International Bank Account Number)
OBJECTID = "Object ID
LOCKINDICATOR = "Lock indicator for HR master record
VALIDITYBEGIN = "Valid from date
VALIDITYEND = "Valid to date
RECORDNUMBER = "Number of infotype record
* PAYMENTMETHOD = "Payment method
* PAYEE = "Recipient text
IMPORTING
RETURN = "Structure for return code
IMPORTING Parameters details for BAPI_BANKNZ_CHANGE
EMPLOYEENUMBER - Personnel number
Data type: BAPIP0009-PERNROptional: No
Call by Reference: No ( called with pass by value option)
PAYEEPOSTALCODECITY - Postal code
Data type: BAPIP0009-BKPLZOptional: Yes
Call by Reference: No ( called with pass by value option)
PAYEECITY - City
Data type: BAPIP0009-BKORTOptional: Yes
Call by Reference: No ( called with pass by value option)
BANKCOUNTRY - Country key of bank
Data type: BAPIP0009-BANKSOptional: Yes
Call by Reference: No ( called with pass by value option)
BANKKEY - Bank Key
Data type: BAPIP0009-BANKLOptional: Yes
Call by Reference: No ( called with pass by value option)
ACCOUNTNO - Bank account number
Data type: BAPIP0009-BANKNOptional: Yes
Call by Reference: No ( called with pass by value option)
STANDARDVALUE - Standard value
Data type: BAPIP0009-BETRGOptional: Yes
Call by Reference: No ( called with pass by value option)
CURRENCY - Currency key
Data type: BAPIP0009-WAERSOptional: Yes
Call by Reference: No ( called with pass by value option)
STANDARDPERCENT - Standard percentage
Data type: BAPIP0009-ANZHLOptional: Yes
Call by Reference: No ( called with pass by value option)
TIMEUNIT - Time/measurement unit
Data type: BAPIP0009-ZEINHOptional: Yes
Call by Reference: No ( called with pass by value option)
CHECKDIGIT - Check digit for bank/account numbers
Data type: BAPIP0009-BANKPOptional: Yes
Call by Reference: No ( called with pass by value option)
SUBTYPE - Subtype
Data type: BAPIP0009-SUBTYOptional: No
Call by Reference: No ( called with pass by value option)
CONTROLKEY - Bank control key
Data type: BAPIP0009-BKONTOptional: Yes
Call by Reference: No ( called with pass by value option)
PURPOSE - Purpose of bank transfers
Data type: BAPIP0009-ZWECKOptional: Yes
Call by Reference: No ( called with pass by value option)
NOCOMMIT - COMMIT control at BAPI interface
Data type: BAPI_STAND-NO_COMMITOptional: Yes
Call by Reference: No ( called with pass by value option)
STANDARDVALUECURR - Currency Amount of BAPI Interfaces
Data type: BAPICURR-BAPICURROptional: Yes
Call by Reference: No ( called with pass by value option)
POSTOFFICEACCNUMBER - Post office bank current account number
Data type: BAPIP0009-PSKTOOptional: Yes
Call by Reference: No ( called with pass by value option)
IBAN - IBAN (International Bank Account Number)
Data type: BAPIP0009-IBANOptional: Yes
Call by Reference: No ( called with pass by value option)
OBJECTID - Object ID
Data type: BAPIP0009-OBJPSOptional: No
Call by Reference: No ( called with pass by value option)
LOCKINDICATOR - Lock indicator for HR master record
Data type: BAPIP0009-SPRPSOptional: No
Call by Reference: No ( called with pass by value option)
VALIDITYBEGIN - Valid from date
Data type: BAPIP0009-BEGDAOptional: No
Call by Reference: No ( called with pass by value option)
VALIDITYEND - Valid to date
Data type: BAPIP0009-ENDDAOptional: No
Call by Reference: No ( called with pass by value option)
RECORDNUMBER - Number of infotype record
Data type: BAPIP0009-SEQNROptional: No
Call by Reference: No ( called with pass by value option)
PAYMENTMETHOD - Payment method
Data type: BAPIP0009-ZLSCHOptional: Yes
Call by Reference: No ( called with pass by value option)
PAYEE - Recipient text
Data type: BAPIP0009-EMFTXOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_BANKNZ_CHANGE
RETURN - Structure for return code
Data type: BAPIRETURN1Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_BANKNZ_CHANGE 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_return | TYPE BAPIRETURN1, " | |||
| lv_employeenumber | TYPE BAPIP0009-PERNR, " | |||
| lv_payeepostalcodecity | TYPE BAPIP0009-BKPLZ, " | |||
| lv_payeecity | TYPE BAPIP0009-BKORT, " | |||
| lv_bankcountry | TYPE BAPIP0009-BANKS, " | |||
| lv_bankkey | TYPE BAPIP0009-BANKL, " | |||
| lv_accountno | TYPE BAPIP0009-BANKN, " | |||
| lv_standardvalue | TYPE BAPIP0009-BETRG, " | |||
| lv_currency | TYPE BAPIP0009-WAERS, " | |||
| lv_standardpercent | TYPE BAPIP0009-ANZHL, " | |||
| lv_timeunit | TYPE BAPIP0009-ZEINH, " | |||
| lv_checkdigit | TYPE BAPIP0009-BANKP, " | |||
| lv_subtype | TYPE BAPIP0009-SUBTY, " | |||
| lv_controlkey | TYPE BAPIP0009-BKONT, " | |||
| lv_purpose | TYPE BAPIP0009-ZWECK, " | |||
| lv_nocommit | TYPE BAPI_STAND-NO_COMMIT, " | |||
| lv_standardvaluecurr | TYPE BAPICURR-BAPICURR, " | |||
| lv_postofficeaccnumber | TYPE BAPIP0009-PSKTO, " | |||
| lv_iban | TYPE BAPIP0009-IBAN, " | |||
| lv_objectid | TYPE BAPIP0009-OBJPS, " | |||
| lv_lockindicator | TYPE BAPIP0009-SPRPS, " | |||
| lv_validitybegin | TYPE BAPIP0009-BEGDA, " | |||
| lv_validityend | TYPE BAPIP0009-ENDDA, " | |||
| lv_recordnumber | TYPE BAPIP0009-SEQNR, " | |||
| lv_paymentmethod | TYPE BAPIP0009-ZLSCH, " | |||
| lv_payee | TYPE BAPIP0009-EMFTX. " |
|   CALL FUNCTION 'BAPI_BANKNZ_CHANGE' "Change bank details |
| EXPORTING | ||
| EMPLOYEENUMBER | = lv_employeenumber | |
| PAYEEPOSTALCODECITY | = lv_payeepostalcodecity | |
| PAYEECITY | = lv_payeecity | |
| BANKCOUNTRY | = lv_bankcountry | |
| BANKKEY | = lv_bankkey | |
| ACCOUNTNO | = lv_accountno | |
| STANDARDVALUE | = lv_standardvalue | |
| CURRENCY | = lv_currency | |
| STANDARDPERCENT | = lv_standardpercent | |
| TIMEUNIT | = lv_timeunit | |
| CHECKDIGIT | = lv_checkdigit | |
| SUBTYPE | = lv_subtype | |
| CONTROLKEY | = lv_controlkey | |
| PURPOSE | = lv_purpose | |
| NOCOMMIT | = lv_nocommit | |
| STANDARDVALUECURR | = lv_standardvaluecurr | |
| POSTOFFICEACCNUMBER | = lv_postofficeaccnumber | |
| IBAN | = lv_iban | |
| OBJECTID | = lv_objectid | |
| LOCKINDICATOR | = lv_lockindicator | |
| VALIDITYBEGIN | = lv_validitybegin | |
| VALIDITYEND | = lv_validityend | |
| RECORDNUMBER | = lv_recordnumber | |
| PAYMENTMETHOD | = lv_paymentmethod | |
| PAYEE | = lv_payee | |
| IMPORTING | ||
| RETURN | = lv_return | |
| . " BAPI_BANKNZ_CHANGE | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_BANKNZ_CHANGE
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 PERNR FROM BAPIP0009 INTO @DATA(ld_employeenumber). | ||||
| "SELECT single BKPLZ FROM BAPIP0009 INTO @DATA(ld_payeepostalcodecity). | ||||
| "SELECT single BKORT FROM BAPIP0009 INTO @DATA(ld_payeecity). | ||||
| "SELECT single BANKS FROM BAPIP0009 INTO @DATA(ld_bankcountry). | ||||
| "SELECT single BANKL FROM BAPIP0009 INTO @DATA(ld_bankkey). | ||||
| "SELECT single BANKN FROM BAPIP0009 INTO @DATA(ld_accountno). | ||||
| "SELECT single BETRG FROM BAPIP0009 INTO @DATA(ld_standardvalue). | ||||
| "SELECT single WAERS FROM BAPIP0009 INTO @DATA(ld_currency). | ||||
| "SELECT single ANZHL FROM BAPIP0009 INTO @DATA(ld_standardpercent). | ||||
| "SELECT single ZEINH FROM BAPIP0009 INTO @DATA(ld_timeunit). | ||||
| "SELECT single BANKP FROM BAPIP0009 INTO @DATA(ld_checkdigit). | ||||
| "SELECT single SUBTY FROM BAPIP0009 INTO @DATA(ld_subtype). | ||||
| "SELECT single BKONT FROM BAPIP0009 INTO @DATA(ld_controlkey). | ||||
| "SELECT single ZWECK FROM BAPIP0009 INTO @DATA(ld_purpose). | ||||
| "SELECT single NO_COMMIT FROM BAPI_STAND INTO @DATA(ld_nocommit). | ||||
| "SELECT single BAPICURR FROM BAPICURR INTO @DATA(ld_standardvaluecurr). | ||||
| "SELECT single PSKTO FROM BAPIP0009 INTO @DATA(ld_postofficeaccnumber). | ||||
| "SELECT single IBAN FROM BAPIP0009 INTO @DATA(ld_iban). | ||||
| "SELECT single OBJPS FROM BAPIP0009 INTO @DATA(ld_objectid). | ||||
| "SELECT single SPRPS FROM BAPIP0009 INTO @DATA(ld_lockindicator). | ||||
| "SELECT single BEGDA FROM BAPIP0009 INTO @DATA(ld_validitybegin). | ||||
| "SELECT single ENDDA FROM BAPIP0009 INTO @DATA(ld_validityend). | ||||
| "SELECT single SEQNR FROM BAPIP0009 INTO @DATA(ld_recordnumber). | ||||
| "SELECT single ZLSCH FROM BAPIP0009 INTO @DATA(ld_paymentmethod). | ||||
| "SELECT single EMFTX FROM BAPIP0009 INTO @DATA(ld_payee). | ||||
Search for further information about these or an SAP related objects