Fonction SAP BAPI_BROKERREP_CHANGEITEM - Change a Broker Report Item

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
BROKERREPORTITEM BAPIBROKREPITEM u 332 Broker Report: BAPI Structure Item Data
BROKERREPORTITEMX BAPIBROKREPITEMX u 27 Broker Report: BAPI Structure Item Data Changes
NO_AUTH_CHECK BAPIBROKREPCTRL-NO_AUTH_CHECK C 1 X
REPLACE_SELECTED_ITEMS BAPIBROKREPCTRL-REPLACE_SELECTED_ITEMS C 1 SPACE X BAPI Broker Report: Replace Selected Open Items
REPORTID BAPIBROKREPHEADER-REPORT C 12 Broker Report - BAPI Structure Broker Report Header
SUB_POSITION BAPIBROKREPITEM_IDENT-SUB_POSITION N 6 Assignment key for broker report item
TESTRUN BAPIBROKREPCTRL-TESTRUN C 1 X Switch to Simulation Session for Write BAPIs

Paramètre Reférence Long. Facultatif Description
BROKERREPORTSELITEM BAPIBROKREPSELITEMC 73 X Broker Report: BAPI Structure Selected Items
EXTENSIONIN BAPIPAREX 990 X Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
EXTENSIONOUT BAPIPAREX 990 X Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
RETURN BAPIRET2 548 X Return Parameters

Functionality
The method changes an item for a broker report.

  • In the REPORTID parameter, you specify the ID of the
  • BrokerReport business object to which items are to be added.
    • The broker report must have one of the following statuses:

    • Items can still be added (manual processing)
      Report processed with BAPI
      • In the SUB_POSITION parameter, you specify the ID of the broker
      • report item that is to be changed.
        • The item data to be changed contains the BROKERREPORTITEM
        • parameter. You have to mark the fields to be changed with 'X' in theBROKERREPORTITEMX change parameter.
          • If you want to change the selected open items, you have to store the new
          • open items with their clearing information in theBROKERREPORTSELITEM parameter. You also have to fill theREPLACE_SELECTED_ITEMS parameter with 'X'.
            • If you want to change customer fields, you have to fill the
            • EXTENSIONIN parameter.
              • Event V545 runs to check the customer fields
              • for the broker report item.
                • The method is executed in the test run if you fill the TESTRUN
                • parameter with 'X'.
                  • Event V582 also runs at the start of the
                  • method, and you can use it to check the parameters for the method.

                    Notes

                    • You require the authorization to change a broker report (activity 02 in
                    • the I_VVBR_STM authorization object).
                      • If open items are specified for a broker report item, the clarification
                      • code is checked and set, if required:
                        If no clarification code is specified in the broker report item, theclarification code defined in the default data for the broker report isset, dependent on the relationship between the reported amount and theclearing amount for the selected open items (equal amounts, under- oroverpayment).
                        If a clarification code is specified in the broker report, a check ismade to see whether the clarification code is permitted for therelationship between the reported amount and the clearing amount for theselected open items (equal amounts, under- or overpayment). If this isnot the case, the system replaces the clarification code that is definedin the default data for the broker report.
                        If the clarification code is enhanced or replaced by the system,information message I055 (IBRO) is stored in the RETURNparameter.
                        INCLUDE BAPI_CD_BROREP_ITEM OBJECT DOKU ID TX
                        INCLUDE BAPI_CD_BROREP_ITEMX OBJECT DOKU ID TX
                        INCLUDE BAPI_CD_BROREP_REPLACE_SEL OBJECT DOKU ID TX
                        INCLUDE BAPI_CD_BROREP_BROREPID OBJECT DOKU ID TX
                        INCLUDE BAPI_CD_BROREP_SUBPOSITIONID OBJECT DOKU ID TX
                        INCLUDE BAPI_CD_BROREP_TESTRUN OBJECT DOKU ID TX
                        INCLUDE BAPI_CD_BROREP_SELITEM OBJECT DOKU ID TX
                        INCLUDE BAPI_CD_BROREP_EXTENSIONINP OBJECT DOKU ID TX
                        The parameter can be checked for event V582and processed for event V595.

                        Description
                        The parameter can be filled for event V595.
                        INCLUDE BAPI_CD_BROREP_RETURN OBJECT DOKU ID TX
                        After being called, the RETURN parameter contains:

                        • Information method I501 (IBRO) - if the method was called in the test
                        • run.
                          • Success message S522 (IBRO) - if the broker report item was changed.

                          • Error message E523 (IBRO) - if the broker report item was not changed -
                          • as well as an appropriate error message about why the broker reportitems were not changed.