SAP Function Modules

BAPI_BANKDETAIL_CHANGE SAP Function module - Change Bank Details







BAPI_BANKDETAIL_CHANGE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name BAPI_BANKDETAIL_CHANGE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: PBNK
Released Date: 16.09.1997
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM BAPI_BANKDETAIL_CHANGE - BAPI BANKDETAIL CHANGE





CALL FUNCTION 'BAPI_BANKDETAIL_CHANGE' "Change Bank Details
  EXPORTING
    employeenumber =            " bapip0009-pernr  Personnel number
    subtype =                   " bapip0009-subty  Subtype
    objectid =                  " bapip0009-objps  Object ID
    lockindicator =             " bapip0009-sprps  Lock indicator for HR master record
    validitybegin =             " bapip0009-begda  Valid from date
    validityend =               " bapip0009-endda  Valid To Date
    recordnumber =              " bapip0009-seqnr  Number of Infotype Record
*   paymentmethod =             " bapip0009-zlsch  Payment method
*   payee =                     " bapip0009-emftx  Recipient text
*   payeestreet =               " bapip0009-street  House Number and Street
*   payeepostalcodecity =       " bapip0009-bkplz  Postal code
*   payeecity =                 " bapip0009-bkort  City
*   payeeregion =               " bapip0009-region  Region (State, Province, County)
*   bankcountry =               " bapip0009-banks  Country key of bank
*   bankkey =                   " bapip0009-bankl  Bank Key
*   accountno =                 " bapip0009-bankn  Bank account number
*   bankreference =             " bapip0009-bank_ref  Reference specifications for bank details
*   standardvalue =             " bapip0009-betrg  Standard value
*   currency =                  " bapip0009-waers  Currency Key
*   standardpercent =           " bapip0009-anzhl  Standard percentage
*   timeunit =                  " bapip0009-zeinh  Time/measurement unit
*   checkdigit =                " bapip0009-bankp  Check digit for bank/account numbers
*   controlkey =                " bapip0009-bkont  Bank Control Key
*   purpose =                   " bapip0009-zweck  Purpose of bank transfers
*   debit =                     " bapip0009-debit  Automatic Debit Authorization Indicator
*   nocommit =                  " bapi_stand-no_commit  COMMIT control at BAPI interface
*   standardvaluecurr =         " bapicurr-bapicurr  Currency Amount of BAPI Interfaces
*   iban =                      " bapip0009-iban  IBAN (International Bank Account Number)
  IMPORTING
    return =                    " bapireturn1   Structure for return code
    .  "  BAPI_BANKDETAIL_CHANGE

ABAP code example for Function Module BAPI_BANKDETAIL_CHANGE





The ABAP code below is a full code listing to execute function module BAPI_BANKDETAIL_CHANGE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_return  TYPE BAPIRETURN1 .


DATA(ld_employeenumber) = Check type of data required

DATA(ld_subtype) = some text here

DATA(ld_objectid) = some text here

DATA(ld_lockindicator) = some text here

DATA(ld_validitybegin) = 20210129

DATA(ld_validityend) = 20210129

DATA(ld_recordnumber) = Check type of data required

DATA(ld_paymentmethod) = some text here

DATA(ld_payee) = some text here

DATA(ld_payeestreet) = some text here

DATA(ld_payeepostalcodecity) = some text here

DATA(ld_payeecity) = some text here

DATA(ld_payeeregion) = some text here

DATA(ld_bankcountry) = some text here

DATA(ld_bankkey) = some text here

DATA(ld_accountno) = some text here

DATA(ld_bankreference) = some text here

DATA(ld_standardvalue) = 20.50

DATA(ld_currency) = Check type of data required

DATA(ld_standardpercent) = Check type of data required

DATA(ld_timeunit) = some text here

DATA(ld_checkdigit) = some text here

DATA(ld_controlkey) = some text here

DATA(ld_purpose) = some text here

DATA(ld_debit) = some text here

DATA(ld_nocommit) = some text here

DATA(ld_standardvaluecurr) = Check type of data required

DATA(ld_iban) = some text here . CALL FUNCTION 'BAPI_BANKDETAIL_CHANGE' EXPORTING employeenumber = ld_employeenumber subtype = ld_subtype objectid = ld_objectid lockindicator = ld_lockindicator validitybegin = ld_validitybegin validityend = ld_validityend recordnumber = ld_recordnumber * paymentmethod = ld_paymentmethod * payee = ld_payee * payeestreet = ld_payeestreet * payeepostalcodecity = ld_payeepostalcodecity * payeecity = ld_payeecity * payeeregion = ld_payeeregion * bankcountry = ld_bankcountry * bankkey = ld_bankkey * accountno = ld_accountno * bankreference = ld_bankreference * standardvalue = ld_standardvalue * currency = ld_currency * standardpercent = ld_standardpercent * timeunit = ld_timeunit * checkdigit = ld_checkdigit * controlkey = ld_controlkey * purpose = ld_purpose * debit = ld_debit * nocommit = ld_nocommit * standardvaluecurr = ld_standardvaluecurr * iban = ld_iban IMPORTING return = ld_return . " BAPI_BANKDETAIL_CHANGE
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_return  TYPE BAPIRETURN1 ,
ld_employeenumber  TYPE BAPIP0009-PERNR ,
ld_subtype  TYPE BAPIP0009-SUBTY ,
ld_objectid  TYPE BAPIP0009-OBJPS ,
ld_lockindicator  TYPE BAPIP0009-SPRPS ,
ld_validitybegin  TYPE BAPIP0009-BEGDA ,
ld_validityend  TYPE BAPIP0009-ENDDA ,
ld_recordnumber  TYPE BAPIP0009-SEQNR ,
ld_paymentmethod  TYPE BAPIP0009-ZLSCH ,
ld_payee  TYPE BAPIP0009-EMFTX ,
ld_payeestreet  TYPE BAPIP0009-STREET ,
ld_payeepostalcodecity  TYPE BAPIP0009-BKPLZ ,
ld_payeecity  TYPE BAPIP0009-BKORT ,
ld_payeeregion  TYPE BAPIP0009-REGION ,
ld_bankcountry  TYPE BAPIP0009-BANKS ,
ld_bankkey  TYPE BAPIP0009-BANKL ,
ld_accountno  TYPE BAPIP0009-BANKN ,
ld_bankreference  TYPE BAPIP0009-BANK_REF ,
ld_standardvalue  TYPE BAPIP0009-BETRG ,
ld_currency  TYPE BAPIP0009-WAERS ,
ld_standardpercent  TYPE BAPIP0009-ANZHL ,
ld_timeunit  TYPE BAPIP0009-ZEINH ,
ld_checkdigit  TYPE BAPIP0009-BANKP ,
ld_controlkey  TYPE BAPIP0009-BKONT ,
ld_purpose  TYPE BAPIP0009-ZWECK ,
ld_debit  TYPE BAPIP0009-DEBIT ,
ld_nocommit  TYPE BAPI_STAND-NO_COMMIT ,
ld_standardvaluecurr  TYPE BAPICURR-BAPICURR ,
ld_iban  TYPE BAPIP0009-IBAN .


ld_employeenumber = Check type of data required

ld_subtype = some text here

ld_objectid = some text here

ld_lockindicator = some text here

ld_validitybegin = 20210129

ld_validityend = 20210129

ld_recordnumber = Check type of data required

ld_paymentmethod = some text here

ld_payee = some text here

ld_payeestreet = some text here

ld_payeepostalcodecity = some text here

ld_payeecity = some text here

ld_payeeregion = some text here

ld_bankcountry = some text here

ld_bankkey = some text here

ld_accountno = some text here

ld_bankreference = some text here

ld_standardvalue = 20.50

ld_currency = Check type of data required

ld_standardpercent = Check type of data required

ld_timeunit = some text here

ld_checkdigit = some text here

ld_controlkey = some text here

ld_purpose = some text here

ld_debit = some text here

ld_nocommit = some text here

ld_standardvaluecurr = Check type of data required

ld_iban = some text here

SAP Documentation for FM BAPI_BANKDETAIL_CHANGE


You can use this method to change a Bank Details record (0009).

HINTS ...See here for full SAP fm documentation






Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BAPI_BANKDETAIL_CHANGE or its description.