Fonction SAP BAPI_BROKERREP_CLOSE - Closing a Broker Report

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
NO_AUTH_CHECK BAPIBROKREPCTRL-NO_AUTH_CHECK C 1 X
REPORTID BAPIBROKREPHEADER-REPORT C 12 Broker Report - BAPI Structure Broker Report Header
TESTRUN BAPIBROKREPCTRL-TESTRUN C 1 X Switch to Simulation Mode for Write BAPIs

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
RETURN BAPIRET2 548 X Return Parameters

Functionality
The method closes a broker report.

  • In the REPORTIDfield, enter the identification of the
  • BrokerReport Business Object that you want to change.
    • A broker report can only be changed if it has one of the following
    • statuses:
      Items can still be added (manual processing)
      Report processed with BAPI
      • The method is executed in the test run if you fill the TESTRUN
      • parameter with 'X'.
        • Event V597 is executed at the end of the method, in which processing can
        • be cancelled or additional processing tasks can be executed and theExtensionOutparameter can be filled.

          Notes
          You require the authorization to close a broker report (activity 01 inthe I_VVBR_STM authorization object).
          INCLUDE BAPI_CD_BROREP_BROREPID OBJECT DOKU ID TX
          INCLUDE BAPI_CD_BROREP_TESTRUN OBJECT DOKU ID TX

          Description
          The parameter can be checked for event V597and processed further.

          Description
          The parameter can be filled for event V597.
          INCLUDE BAPI_CD_BROREP_RETURN OBJECT DOKU ID TX
          After being called, the RETURN parameter contains:
          o Information method I501 (IBRO) - if the method was called in thetest run.
          o Success message S002 (BAPI) - if the broker report was closed.
          o Error message E003 (BAPI) - if the broker report was not closed - aswell as an appropriate error message about why the broker report was notclosed.