Fonction SAP BKK_PAYM_ITEM_PREPARE_REVERSE - Prepares Payment Item Reversal

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_BKKRS BKKIT-BKKRS C 4 Bank Area to Be Reversed
I_DOCNO BKKIT-DOCNO N 12 Document Number to Be Reversed
I_ITEM_NO IBKK_ITEM-ITEM_NO N 5 Temporary Number of Reversal Item
I_POSNO BKKIT-POSNO N 3 X Document Position. Initial = All Positions
I_POSTDATE IBKK_ITEM-DATE_POST D 8 X Posting Date if Reversal for Backdated Posting
I_REMARK IBKK_ITEM-REMARK C 50 X

Paramètre Reférence Type Long. Description
E_ITEM IBKKAPIEXP u 1141 Export Structure of Payment Item

Exception Description
PARAMETER_ERROR

Functionality
This function module prepares the reversal of a payment item that is
already posted.
The processing steps are as follows:

  • Select all relevant positions of the payment item

  • Determine the internal medium

  • Determine the posting date

  • Set status "Deleted" in the original payment item and enter a temporary
  • reference to the reversal item
    • Create reversal item (set reversal indicator, change the +/- signs of
    • the amounts)
      • Read the payment notes from the database

      • Prepare the data update for changing the original payment item

      • Prepare the data update for posting the reversal item

      • Process Business Transaction Event 00010035
      • Notes
        Once the document numbers are drawn from BKK_PAYM_ITEM_UPDATE_ITEM inthe context of the data update, the temporary reference is changed insuch a way that the original payment item and the reversal item eachrefer to the other.

        Further information
        Event 00010035

        Further information
        Bank area

        Further information
        Document number of the payment item

        Description
        Temporary number of the new reversal item.

        Further information
        Temporary number of the payment item

        Further information
        Position within the payment item

        Value range
        If I_POSNO reflects value 1 or if I_POSNO is blank, all the positions
        are selected.

        Description
        A backdated posting date with which a payment item is to be posted.

        Notes
        Specifying the posting date is only relevant when a backdated paymentitem is reversed via the menu. The user can choose whether to make thereversal with the new or old posting date.
        When reversing in the context of other processes (transfer posting,return and so on), the reversal is always made with the currentposting date.