Fonction SAP BKK_PAYM_ITEM_BAPI_POST_RCV - Check and Post Recipient Items Triggered Externally

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_XCHK IBKK_XCHK u 6 SPACE X Indicator: Which Checks Are Deactivated?
I_XREPETITION IBKK_MISC-XREPETITION C 1 SPACE X X: Repeated Presentation
I_XREVERSE IBKK_ITEM-XREVERSE C 1 SPACE X Flagged for Reversal
I_X_IN_UPDATE_TASK BKK_XFELD C 1 SPACE X
I_X_SIMUL BKK_XFELD C 1 SPACE X Simulation Indicator

Paramètre Reférence Type Long. Description
E_RETURN SYST-SUBRC I 4 0: No Errors

Paramètre Reférence Long. Facultatif Description
E_TAB_XCHECK IBKK_XCHECK_ITEM 21 X Structure for Checks and Results for Payment Items
T_PAYM_NOTE IBKK_PYNOT 81 X Payment Notes
T_RECEIVER IBKK_PSTBK 1021 Recipient Import Structure

Functionality
The individual processing steps are as follows:

  • Initialization of the global variables and internal tables

  • Check if the data records have already been updated by a previous call
  • if the XREPETITION indicator is set
    • Determine whether a credit or a debit is involved

    • Copy payment notes to internal structure (IBKK_NOTE)

    • Check recipient data (BKK_PAYM_ITEM_CHECK_ITEM)

    • Evaluation of the check:

    • No errors:
      Prepare posting of payment item (BKK_PAYM_ITEM_PREPARE_POST)
      Rectifiable error occurred:
      If the account balance table could not be locked for the limit check orif there is a lock due to currency changeover, the payment item isparked (BKK_PAYM_ITEM_ENQ_CREATE_ITM)
      Otherwise, parking of the payment item is prepared(BKK_PAYM_ITEM_PREPARE_PREPOST)
      Account does not exist:
      Depending on the transaction currency, the CpD (suspense) account storedin the Customizing settings is determined and posting of the paymentitem is prepared (BKK_PAYM_ITEM_PREPARE_POST)
      Other errors:
      Terminate processing
      • Update data on the database (BKK_PAYM_ITEM_UPDATE_ITEM)
      • Further information

        • Structure:

        • IBKK_NOTE
          • Function modules:

          • BKK_PAYM_ITEM_CHECK_ITEM
            BKK_PAYM_ITEM_ENQ_CREATE_ITM
            BKK_PAYM_ITEM_PREPARE_POST
            BKK_PAYM_ITEM_PREPARE_PREPOST
            BKK_PAYM_ITEM_UPDATE_ITEM

            Description
            Result of processing the recipient items

            Value range
            Possible return codes:

            • 0 No errors

            • 3 Invalid data transferred

            • 4 System error
            • Further information
              Indicator: Repeated presentation

              Further information
              Reverse indicator

              Further information
              Payment notes