SAP Function BKK_PAYM_ORDER_ACCOUNT_CLOSING - Create and Post Payment Order for Account Closure

Parameter Reference Type Length Default Optional Text
I_ACNUM_INT IBKKPOIT-ACNUM_INT C 10 Internal Account Number
I_BKKRS IBKKPOIT-BKKRS C 4 Bank Area
I_DATE_POST BKKPOHD-DATE_POST D 8 Posting Date
I_DATE_VALUE BKKPOIT-DATE_VALUE D 8 Value Date
I_XTRACE BOOLE-BOOLE C 1 X
I_X_IN_UPDATE_TASK BKK_XFELD C 1 X In Update Task
I_X_NO_CORR_BAL BOOLE-BOOLE C 1 X
I_X_NO_LIM_CHECK BOOLE-BOOLE C 1 X No Limit Check

Parameter Reference Type Length Text
E_PAORN IBKKPOHD-PAORN N 12 Payment Order Number
E_RC SYST-SUBRC I 4 Error Code (See Long Text)
E_STATUS_ITEMS SYST-SUBRC I 4 Status of Generated Item (See Long Text)

Parameter Reference Length Optional Text
T_NUMBERS BKKP_TAB_ITEM_NUMBERS 0 X Numbers of Generated Items

Functionality
The function module creates a payment order when the account is closed.
Credit or debit positions from the account to be closed are posted to areference account.

Description
Error code:

  • 0: No error

  • 1: Error during preparation of payment order (PREPARE)

  • 2: Error during check on payment order (CHECK)

  • 4: Error during authorization check

  • 5: Error while parking payment order

  • 6: Error during payment order posting

  • 7: Fehler beim Erstellen Zahlungsposten

  • 8: Error during payment item check

  • 9: Error during payment item posting

  • 11: Error during balance correction

  • 16: NO ERROR: Balance already at zero, therefore, no balancing posting.
  • Description
    Returns the payment item status:

    • '0' - All payment items posted successfully

    • '1' - At least one of the recipient payment items could only be parked
    • due to an error, and must be postprocessed by user.
      • '2' - At least one of the recipients is external, therefore,
      • all the payment items were transferred to the payment transactionsystem. Only the ordering party item was posted by this function module.