Fonction SAP BAPI_BROKERREP_GETOPENITEMS - Selection of Open Items in Broker Collections

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CLEARINGCURRENCY BAPIDFKKCL-CURRENCY C 5 X Transaction Currency
CLEARINGCURRENCYISO BAPIDFKKCL-CURRENCY_ISO C 3 X ISO Currency Code
CLEARINGDATE BAPIDFKKCL-DOC_DATE D 8 SY-DATUM Document Date in Document
INVOICINGPERIOD BAPIBROKER_PERIOD u 16 X Broker Report. BAPI Structure Invoicing Period for BR
NO_AUTH_CHECK BAPIBROKREPCTRL-NO_AUTH_CHECK C 1 X
REPORTID BAPIBROKREPHEADER-REPORT C 12 Broker Report Identification
SELECTION BAPIBROKREPOPENITEMSELECT u 254 Selection Structure for Open Items in Broker Collections
SHOW_POSTLOCK_ITEMS BAPIBROKREPCTRL-SHOW_POSTLOCK_ITEMS C 1 SPACE X

Paramètre Reférence Long. Facultatif Description
EXTENSIONIN BAPIPAREX 990 X Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
EXTENSIONOUT BAPIPAREX 990 X Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
OPENITEMS BAPIDFKKCL 1500 X Clearing Items for Document in Contract A/R + A/P
RETURN BAPIRET2 548 X Return Parameters

Functionality
The method selects open items in broker collections:

  • In the REPORTID field, specify the broker report for which open
  • items are to be selected.
    • In the SELECTION parameter, enter the selection criteria.

    • You specify the clearing currency in the CLEARINGCURRENCY or
    • CLEARINGCURRENCY_ISO parameter.
      • In the CLEARINGDATE parameter, enter the clearing date.

      • In the INVOICINGPERIOD field, specify the period for which open
      • items are to be selected.

        Notes

        • You require the authorization to display a broker report (activity 03 in
        • the I_VVBR_STM authorization object).
          • Event V520 runs after the selection of open
          • items, in which you can reduce or increase the number of selected openitems.
            INCLUDE BAPI_CD_BROREP_CLEARINGCURR OBJECT DOKU ID TX

            Description
            Clearing Currency for Open Items (ISO Code)

            Description
            Clearing date for open items
            Note
            The clearing date is used when selecting open items, to check businesslocks and withholding tax exemptions.
            For example, an open item with a payment lock for the clearing date isnot selected.

            Description
            Open items are selected, whose due date lies within the specifiedinvoicing period. If no invoicing period is specified, items areselected with a user-defined due date.
            INCLUDE BAPI_CD_BROREP_BROREPID OBJECT DOKU ID TX

            • Broker report specification is optional.

            • If no broker report is specified, or if no broker report exists, error
            • message W024(IBRO) is output to the RETURN parameter.
              • The broker report header data is passed on to event
              • V520.
                INCLUDE BAPI_CD_BROREP_SELECTION OBJECT DOKU ID TX

                Description
                The parameter can be checked for event V590and processed further for event V591

                Description
                Insurance-specific and customer-specific information about the importedopen items is written to the ExtensionOut parameter.

                • The corresponding Table Extension is BAPI_TE_DFKKOP

                • The STRUCTURE field is filled with the value BAPI_TE_DFKKOP

                • The values for the insurance-specific and customer-specific fields are
                • written to the remaining fields
                  • The link to the line item takes place using the key fields for the line
                  • item
                    You can se event V591 to write additionalinformation.
                    INCLUDE BAPI_CD_BROREP_OPENITEM OBJECT DOKU ID TX
                    INCLUDE BAPI_CD_BROREP_RETURN OBJECT DOKU ID TX