Fonction SAP BAPI_BUS1092_REPLICATE - Request Copies of Original Object

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
GENVARIANT BAPI1092DH-GENVAR C 10 X Generation variant
INTVERSION BAPI1092DH-INTVERSION N 5 X Indicator: Internal version
KEY_DATE BAPI1092DH-VAL_DATE D 8 SY-DATUM X Selection Date
LANGUAGE BAPI1092DH-LANGU C 1 X Language
REPORTTYPE BAPI1092DH-REPORTTYPE C 10 X Report category
SUBSTANCE BAPI1092DH-SUBSTANCE C 12 X Specification key

Paramètre Reférence Long. Facultatif Description
REPORTLIST BAPIREP_01 31 X List of reports to be distributed
RETURN BAPIRET2 548 Messages from processing
SAVEREPLICARECIPIENTS BDI_LOGSYS 10 X Recipients of Report Data (Logical Systems)

Functionality from the viewpoint of the caller
This method is used to send copies of instances of the business objectreport by Application Link Enabling (ALE) in a system. Here youcan use the method either to request report data by pushing ordistribute reports by pulling.
The prepared instances are then saved in the target system togetherwith the method BAPI_BUS1092_SAVREPMUL (SAVEREPLICAMULTIPLE).
Distribution takes place asynchronously.

Rough Description of the Flow Logic
Preconditions
The ALE distribution model must be set if recipient determination is touse the method.
Procedure

  • General authorization check

  • Determination of the reports to be distributed

  • Read the complete report header for recipient determination

  • Determination of all existing combinations of filter objects. The
  • recipient is determined from the respective filter combination. Perfilter combination and per report, anintermediate document(IDoc) is created that contains the report data. Their own IDocs arecreated for the corresponding documents. Both the IDoc with the reportdata and the IDoc with the corresponding documents are sent to thedetermined recipient systems.
    • ALE recipient determination if recipient not specified as parameter

    • The following steps must be performed for each report to bedistributed:
      • Read report data using BAPI

      • Read corresponding documents

      • Set checkbox structures for document shipping (all set apart from
      • admin. fields)
        • Call user exit for document shipping

        • Trigger distribution of documents per filter combination and report by
        • call of function module MASTERIDOC_CREATE_DOCMAS
          • Set checkbox structures for report shipping (all set apart from admin.
          • fields)
            • Call user exit for report shipping

            • Trigger distribution of report data per filter object combination by
            • call of generated function module C14ALR_ALE_BUS1092_SAVREPMUL
              Subsequent Conditions
              Asynchronous distribution of the report data and documents is startedfor the specified reports.
              Possible Exceptions
              None

              Further information

              • Specification EH&S - ALE

              • BAPI programming guide

              • ALE programming guide

              • (SAPscript hints)

                Description
                This import parameter specifies the report generation variant that isassigned to a report.
                INCLUDE EHS_SAF_50A_BAPI_REPLICATE6 OBJECT DOKU ID TX

                Description
                This import parameter specifies the internal version of the report.
                INCLUDE EHS_SAF_50A_BAPI_REPLICATE6 OBJECT DOKU ID TX

                Description
                This import parameter specifies the selection date for selecting thereports to be distributed.

                Default
                This parameter is assigned the system date as default.

                Description
                This import parameter specifies the report language that is assigned toa report.
                INCLUDE EHS_SAF_50A_BAPI_REPLICATE6 OBJECT DOKU ID TX

                Description
                This import parameter specifies the report category that is assigned toa report.
                INCLUDE EHS_SAF_50A_BAPI_REPLICATE6 OBJECT DOKU ID TX

                Description
                This import parameter specifies the specification that is assigned to areport.
                INCLUDE EHS_SAF_50A_BAPI_REPLICATE6 OBJECT DOKU ID TX

                Description
                This table parameter contains the list of reports that are to bedistributed. If this parameter is specified with entries, no search isrun.
                INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX
                INCLUDE EHS_SAF_50A_BAPI_REPLICATE6 OBJECT DOKU ID TX

                Description
                INCLUDE BAPI_TABLE OBJECT DOKU ID TX
                The error messages occurred at the start of sending report data. Othererror messages can be found in ALE monitoring. ALE-Monitoring zuentnehmen.

                Description
                This table parameter identifies the logical systems in which the reportobjects are to be replicated. If this parameter is set to INITIAL
                , the recipient systems are determined by means of the ALEdistribution model.
                INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX
                INCLUDE EHS_SAF_50A_BAPI_REPLICATE6 OBJECT DOKU ID TX