Fonction SAP BAPI_BROKERREP_CREATE - Creating a Broker Report

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
BROKERREPORTHEADER BAPIBROKREPHEADER u 212 Broker Report - BAPI Structure Broker Report Header
NO_AUTH_CHECK BAPIBROKREPCTRL-NO_AUTH_CHECK C 1 X
PROPOSAL BAPIBROKREPCTRL-PROPOSAL C 1 X Create Automatic Proposal
TESTRUN BAPIBROKREPCTRL-TESTRUN C 1 X Switch to Simulation Mode for Write BAPIs

Paramètre Reférence Type Long. Description
REPORTID BAPIBROKREPHEADER-REPORT C 12 Broker Report Identification

Paramètre Reférence Long. Facultatif Description
BROKERREPORTDEFAULT BAPIBROKREPDEFAULT 42 X Broker Report - BAPI Structure Proposal Data
BROKERREPORTDEFAULTX BAPIBROKREPDEFAULTX 10 X Broker Report: BAPI Structure Proposal Data Changes
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
You create a broker report with this method.

  • The default data for the broker report is taken from the default values
  • specified in the Implementation Guide.
    In the BROKERREPORTDEFAULT parameter, you can specify defaultdata for the premium, commission, claim and costs categories. Thedefault values defined in the Implementation Guide are then overwritten.The field is then filled with a value if you have filled it with X inthe BROKERREPORTDEFAULTX parameter.
    • Broker report items are automatically created with a proposal for the
    • broker report, if you have filled the PROPOSAL parameter with'X'.
      • The method is executed as a test run if you fill the TESTRUN
      • parameter with 'X'.

        Notes

        • You require the authorization to create a broker report (activity 01 in
        • the I_VVBR_STM authorization object).
          • When creating broker report items by setting the PROPOSAL
          • parameter, the system uses the concept of Table Extensions to fillcustomer fields.
            • Event V580 also runs at the start of the
            • method, and you can use it to check the parameters for the method.
              • Event V592 runs at the end of the method, and
              • you can use it to fill the ExtensionOut parameter.
                INCLUDE BAPI_CD_BROREP_BROREPID OBJECT DOKU ID TX
                INCLUDE BAPI_CD_BROREP_HEADER OBJECT DOKU ID TX
                INCLUDE BAPI_CD_BROREP_PROPOSAL OBJECT DOKU ID TX
                INCLUDE BAPI_CD_BROREP_TESTRUN OBJECT DOKU ID TX
                INCLUDE BAPI_CD_BROREP_DEFAULT OBJECT DOKU ID TX
                When you specify default values, these overwrite the default values thatyou have defined in the Implementation Guide. Only those values that youhave filled with 'X' in the change structure are transferred.
                Create one line for each category.

                Description
                Change structure for broker report default values


                INCLUDE BAPI_CD_BROREP_EXTENSIONINP OBJECT DOKU ID TX

                Note
                You do not have to fill the value for the SUB_POSITION field intthe DDIC structure.
                After the customer fields are filled with the ExtensionIn parameter,event V546 runs to set the customer fields.

                Description
                The ExtensionOut parameter can be filled using theV592 event.


                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 S000 (BAPI) - if the broker report was created.

                  • Error message E001 (BAPI) - if the broker report was not created - as
                  • well as an appropriate error message about why the broker report was notcreated.