Show TOC

 Entry of a Payment with External Selections

To enter a payment with external selections, you must first execute the following actions:

  1. Define the structure CI_FKKEXC_CL with the required fields as follows, for example.

    Component Component Category

    MANDT MANDT

    OFFIC OFFIC_KK

    CHDSK CHDSK_KK

    … …

    .INCLUDE CI_FKKEXC_CL

    MYFIELD

  2. Add your entry/entries in the Implementation Guide for Contract Accounts Receivable and Payable under Start of the navigation path Basic Functions Next navigation step Open Item Management Next navigation step Define Selection Categories End of the navigation path . The field names must match the field names in structure CI_FKKEXC_CL and you must set the External Selection Criterion indicator for each field that you enter. In our example, add the following entry in Customizing:

    Application area R Selection category 1 Meaning Invoice Field name MYFIELD

  3. Define event 6210. That is, in this event, convert the external selection criteria into internal selection criteria. You can do this as follows, for example:

    FUNCTION Z_FKK_SAMPLE_0210.

    *"----------------------------------------------------------------------

    *"*"Local interface:

    *"   IMPORTING

    *"      VALUE(I_SELTAB) LIKE   ISELTAB STRUCTURE   ISELTAB

    *"   TABLES

    *"      T_SELTAB STRUCTURE   ISELTAB

    *"   EXCEPTIONS

    *"       UNKNOWN_SELECTION

    *"----------------------------------------------------------------------

    IF i_seltab-selfn = 'MYFIELD'.

     IF i_seltab-selcu = '0123456789'.

            t_Seltab-selnr = '0001'.

            t_seltab-selfn = 'OPBEL'.

            t_seltab-selcu = '000000004711'.

            APPEND t_seltab.

         ENDIF.

    ENDIF.

    ENDFUNCTION.