Fonction SAP BAPI_BKK_ACCNT_CLOSURE - Close Account

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
BANKAREA BAPI_IBKK_ACCNT_IDENTIF-BANKAREA C 4 Bank Area
EXTACCOUNTNR BAPI_IBKK_ACCNT_IDENTIF-EXTERNALACCOUNTNR C 35 External Account Number
NO_BTE BAPI_IBKK_ACCNT_COMM_PARAM-NO_BTE C 1 X Skip BTE Event for Account Statement ('X' = Yes)
PROCESS_EXTENSION BAPI_IBKK_ACCNT_COMM_PARAM-PROCESS_EXTENSION C 1 X Indicator, Extension IN/OUT
REFERENCEACCOUNT BAPI_IBKK_REF_ACCOUNT_IN u 646 X Account Reference Account
TESTRUN BAPI_IBKK_ACCNT_COMM_PARAM-TESTRUN C 1 X Execution in Test Run Mode ('X' = Yes, ' '= No)

Paramètre Reférence Type Long. Description
ACCOUNTIDENTIFICATION BAPI_IBKK_ACCNT_IDENTIF u 162 Account Identification
ADD_ACCOUNT_STATUS BAPI_IBKK_ACCNT_ADD_STATUS u 29 Extended Account Status
BANKSTATEMENT_HEADER BAPI_IBKK_STAT_HEADER u 722 Account Statement: Header

Paramètre Reférence Long. Facultatif Description
BANKSTATEMENT_AB_DATA BAPI_IBKK_STAT_BAL_DATA 210 X Bank Statement: Balancing Data
BANKSTATEMENT_ADRESS_INT BAPI_IBKK_STAT_ADRESS 1825 X Bank Statement: Address
BANKSTATEMENT_ADRESS_INT2 BAPI_IBKK_STAT_ADRESS_INT 648 X Bank Statement: Bank Internal Addresses
BANKSTATEMENT_EXT_IFACE_TO BAPI_IBKK_STAT_TURN_OVER 819 X Bank Statement: Turn Over
BANKSTATEMENT_PAYM_NOTES BAPI_IBKK_STAT_PAYM_NOTES 88 X Bank Statement: Payment Notes
CLOSURE_POSTINGS BAPI_IBKK_PAYMENT_ITEM 894 X Payment Items
EXTENSIONIN BAPIPAREX 990 X Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
EXTENSIONOUT BAPIPAREX 990 X Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
RETURN BAPIRET2 548 X Return Parameter

Functionality
Use this method to close an account in Bank Customer Accounts(BCA). The method returns the following details:

  • Account status enhancement

  • Bank statement up to the date of closure

  • Account identification details

  • The method logs the errors that occurred during the processing in thereturn parameter (RETURN).
    To close an account, it is mandatory to specify the Bank Area (BANKAREA)and the External Account Number (EXTACCOUNTNR). If you have not alreadyspecified a reference account for account closure, it is mandatory tospecify values in the Reference Account (REFERENCEACCOUNT) importparameter.
    ,,

    Notes
    This method works with buffering. This means that other change methodsof instances created or changed by this method can be executed in thesame Logical Unit of Work (LUW), without a prior posting beingnecessary.
    Customer Enhancements
    INCLUDE BAPI_CUST1
    INCLUDE BAPI_CUST_INOUT
    INCLUDE BAPI_CUST2
    Return Messages
    INCLUDE BAPI_RET

    Description
    This parameter returns details of the account identifiers (such as theinternal and external account numbers).
    For further information about the individual parameter fields, see thedata element documentation in the ABAP Dictionary.

    Description
    This parameter returns the extendedaccount status.

    Value range
    The value range for this parameter corresponds to the values that youdefine in the IMG activity Define Status.

    Description
    This parameter returns basic details about the bank statement such asthe bank statement period, the external account number, and the accountcurrency.
    For further information about the individual parameter fields, see thedata element documentation in the ABAP Dictionary.

    Description
    This parameter transfers the bank area for anaccount and is a mandatory value. The system returns an error message ifyou specify an invalid value.

    Value range
    The value range for this parameter corresponds to the values that youdefine in the IMG activity Define BankArea.

    Description
    The external account number parameter contains theunique identifier for an account and is a mandatory value to close anaccount.
    The system returns an error message if you specify an invalid value.

    Description
    This parameter allows you to specify if the Business Transaction Event(BTE) 10510 is to be called at the end of the account closure process.

    Value range
    ' ' (no value)
    This value means that the BTE is not called.
    'X'
    This value means that the BTE is called.

    Description
    This parameter specifies whether the details entered by the customers ina Business Add-In (BAdI) of this method, must be retrieved.
    You will find information on the meaning of the parameter in thedocumentation for the data element Execute Extension(s)(BAdI).

    Value range
    ' ' (no value)
    This value means that the customer enhancements are not executed.
    'X'
    This value means that the customer enhancements are executed.

    Description
    This parameter contains the identification details of the referenceaccount for account closure. The system transfers the account balance onclosure to this account. If you have not already specified a referenceaccount for account closure, it is mandatory to specify values in thisparameter.
    For specifying an internal reference account, transfer values for thefollowing fields:

    • Bank area for internal reference account (REFACCBANKAREA)

    • Account number for internal or external reference account
    • (REFACCACCOUNTEXTNUMBER)
      • Account holder (REFACCACCOUNTHOLDER)

      • For specifying an external reference account, transfer values for thefollowing fields:
        • Country key (REFACCCOUNTRYKEY)

        • Bank key (REFACCBANKKEY)

        • Account number for internal or external reference account
        • (REFACCACCOUNTEXTNUMBER)
          • Account holder (REFACCACCOUNTHOLDER)

          • You can only specify 01 as the reference account category(REFERENCEACCOUNTCATEGORY).

            Description
            If this parameter is set, the method will only be executed in the testrun. All checks are then carried out, without an entry being made in thedatabase.
            This is used for write BAPIs to check the entries for the objectinstance in the database before actually creating the instance. Theobject instance is not actually created; it is merely simulated.

            Value range
            ' ' (no value)
            This value means that the database is updated.
            'X'
            This value means that the method is called in simulation mode and thatno data is written to the database.

            Description
            This table contains details about the period for which the bankstatement is generated and other balancing data such as the accountbalance, account currency and details about the reference account forbalancing.
            For further information about the individual parameter fields, see thedata element documentation in the ABAP Dictionary.

            Description
            This table contains details about the correspondence addresses of thebank statement recipients. The parameter also contains dispatch detailsabout the bank statement such as the dispatch type and the format.
            For further information about the individual parameter fields, see thedata element documentation in the ABAP Dictionary.

            Description
            This table contains basic address details of the bank statementrecipients such as the first name, the last name, and the contactdetails.
            For further information about the individual parameter fields, see thedata element documentation in the ABAP Dictionary.

            Description
            This table contains details about the payment items that were posted tothe account from the last bank statement date.
            For further information about the individual parameter fields, see thedata element documentation in the ABAP Dictionary.

            Description
            This table contains details of the payment notes that are created foreach payment item during the account closure process.
            For further information about the individual parameter fields, see thedata element documentation in the ABAP Dictionary.

            Description
            This table contains details of the payment items that are created duringthe account closure process.
            For further information about the individual parameter fields, see thedata element documentation in the ABAP Dictionary.
            INCLUDE BAPI_EXTIN
            INCLUDE BAPI_EXTOUT

            Description
            INCLUDE BAPI_TABLE

            Value range
            Messages for Value Checks
            Type ID,, Message Number,, Messages
            1E,, 036,, Account closure date is before account opening date
            1E,, 146,, Account &1 cannot be closed on &2 because it is still in thehierarchy
            1E,, 174,, Checks found for account &1
            1E,, 181,, Account &1 is a reference account
            1E,, 289,, Items found in post processing for account &1
            1E,, 335,, Account &1: Bank Area &2: Planned items &3 have been found
            1E,, 700,, Account &2: bank area &1: Item &3 with value date &4 >closure date
            Additional Messages
            Type ID,, Message Number,, Messages
            1E,, 089,, SYST: Error in import parameter check
            1BKKBAPI,, 100,, BAPI call has been processed successfully
            1BKKBAPI,, 101,, BAPI call failed
            1BKKBAPI,, 218,, Message protocol could not be opened
            1BKKBAPI,, 012,, Instance of BADI definition &1 could not be created
            1BKKBAPI,, 013,, Error on opening instance of object type &1. Externalreference &2 &3