SAP Function Modules

BAPIBANKDETAILSIMULATECREATINL SAP Function module - Simulation: Create Bank Details







BAPIBANKDETAILSIMULATECREATINL 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 BAPIBANKDETAILSIMULATECREATINL into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: PBNK_NL
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM BAPIBANKDETAILSIMULATECREATINL - BAPIBANKDETAILSIMULATECREATINL





CALL FUNCTION 'BAPIBANKDETAILSIMULATECREATINL' "Simulation: Create Bank Details
  EXPORTING
    employeenumber =            " bapip0009-pernr  Personnel Number
    validitybegin =             " bapip0009-begda  Valid From Date
    validityend =               " bapip0009-endda  Valid To Date
*   banktype =                  " bapip0009-bnksa  Type of Bank Details Record
*   paymentmethod =             " bapip0009-zlsch  Payment Method
*   payee =                     " bapip0009-emftx  Payee Text
*   payeepostalcodecity =       " bapip0009-bkplz  Postal Code
*   payeecity =                 " bapip0009-bkort  Location
*   bankcountry =               " bapip0009-banks  Country Key of Bank
*   bankkey =                   " bapip0009-bankl  Bank Key
*   accountno =                 " bapip0009-bankn  Bank Account Number
*   standardvalue =             " bapip0009-betrg  Default 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  Note to Payee on Bank Transfers
*   nocommit =                  " bapi_stand-no_commit  COMMIT Control at BAPI Interface
*   standardvaluecurr =         " bapicurr-bapicurr  Currency Amount in BAPI Interfaces
*   iban =                      " bapip0009-iban
  IMPORTING
    return =                    " bapireturn1   Structure for Return Parameter
    employeenumber =            " bapip0009-pernr  Personnel Number
    subtype =                   " bapip0009-subty  Subtype
    objectid =                  " bapip0009-objps  Object Identification
    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
    .  "  BAPIBANKDETAILSIMULATECREATINL

ABAP code example for Function Module BAPIBANKDETAILSIMULATECREATINL





The ABAP code below is a full code listing to execute function module BAPIBANKDETAILSIMULATECREATINL 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 ,
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 .


DATA(ld_employeenumber) = Check type of data required

DATA(ld_validitybegin) = 20210129

DATA(ld_validityend) = 20210129

DATA(ld_banktype) = some text here

DATA(ld_paymentmethod) = some text here

DATA(ld_payee) = some text here

DATA(ld_payeepostalcodecity) = some text here

DATA(ld_payeecity) = some text here

DATA(ld_bankcountry) = some text here

DATA(ld_bankkey) = some text here

DATA(ld_accountno) = 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_nocommit) = some text here

DATA(ld_standardvaluecurr) = Check type of data required

DATA(ld_iban) = some text here . CALL FUNCTION 'BAPIBANKDETAILSIMULATECREATINL' EXPORTING employeenumber = ld_employeenumber validitybegin = ld_validitybegin validityend = ld_validityend * banktype = ld_banktype * paymentmethod = ld_paymentmethod * payee = ld_payee * payeepostalcodecity = ld_payeepostalcodecity * payeecity = ld_payeecity * bankcountry = ld_bankcountry * bankkey = ld_bankkey * accountno = ld_accountno * standardvalue = ld_standardvalue * currency = ld_currency * standardpercent = ld_standardpercent * timeunit = ld_timeunit * checkdigit = ld_checkdigit * controlkey = ld_controlkey * purpose = ld_purpose * nocommit = ld_nocommit * standardvaluecurr = ld_standardvaluecurr * iban = ld_iban IMPORTING return = ld_return employeenumber = ld_employeenumber subtype = ld_subtype objectid = ld_objectid lockindicator = ld_lockindicator validitybegin = ld_validitybegin validityend = ld_validityend recordnumber = ld_recordnumber . " BAPIBANKDETAILSIMULATECREATINL
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_employeenumber  TYPE BAPIP0009-PERNR ,
ld_validitybegin  TYPE BAPIP0009-BEGDA ,
ld_subtype  TYPE BAPIP0009-SUBTY ,
ld_validityend  TYPE BAPIP0009-ENDDA ,
ld_objectid  TYPE BAPIP0009-OBJPS ,
ld_banktype  TYPE BAPIP0009-BNKSA ,
ld_lockindicator  TYPE BAPIP0009-SPRPS ,
ld_paymentmethod  TYPE BAPIP0009-ZLSCH ,
ld_validitybegin  TYPE BAPIP0009-BEGDA ,
ld_payee  TYPE BAPIP0009-EMFTX ,
ld_payeepostalcodecity  TYPE BAPIP0009-BKPLZ ,
ld_validityend  TYPE BAPIP0009-ENDDA ,
ld_recordnumber  TYPE BAPIP0009-SEQNR ,
ld_payeecity  TYPE BAPIP0009-BKORT ,
ld_bankcountry  TYPE BAPIP0009-BANKS ,
ld_bankkey  TYPE BAPIP0009-BANKL ,
ld_accountno  TYPE BAPIP0009-BANKN ,
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_nocommit  TYPE BAPI_STAND-NO_COMMIT ,
ld_standardvaluecurr  TYPE BAPICURR-BAPICURR ,
ld_iban  TYPE BAPIP0009-IBAN .


ld_employeenumber = Check type of data required

ld_validitybegin = 20210129

ld_validityend = 20210129

ld_banktype = some text here

ld_paymentmethod = some text here

ld_payee = some text here

ld_payeepostalcodecity = some text here

ld_payeecity = some text here

ld_bankcountry = some text here

ld_bankkey = some text here

ld_accountno = 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_nocommit = some text here

ld_standardvaluecurr = Check type of data required

ld_iban = some text here

SAP Documentation for FM BAPIBANKDETAILSIMULATECREATINL


You can use this method to simulate creating a datarecord for infotype Bank Details (0009). ...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 BAPIBANKDETAILSIMULATECREATINL or its description.