Fonction SAP BAPI_BUS1092_SAVREPMUL - EHS: Saving Replicated Reports

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CHANGE_NUMBER RCGADDINF-AENNR C 12 X Change number
COMPLETE_REPORT BAPISTDTYP-BOOLEAN C 1 X Transfer complete reports
DELETE_DATA BAPISTDTYP-BOOLEAN C 1 X Delete Reports
KEY_DATE RCGADDINF-VALDAT D 8 SY-DATUM X Selection date
MULTLANGU_PARAMS EHSLSADM u 1 X Language support parameters
SENDER ESTALE-LOGSYS C 10 Logical name of sending system

Paramètre Reférence Long. Facultatif Description
ALEPOINTER ESTALE 130 ALE pointer table
EXTENSION1_TAB BAPIREPEX1 1000 X Additional table 1 for user exits
EXTENSION2_TAB BAPIREPEX2 1000 X Additional table 2 for user exits
RECORD_SPLITT BAPIRECSPL 60 X Record splits for ALE
REP_HEADER BAPI1092DH 428 Report header
REP_HEADERX BAPIREPDHX 41 Change table for report header
REP_SUBJOIN BAPI1092DJ 271 X Specification assignment to reports
REP_SUBJOINX BAPIREPDJX 25 X Change table for specification assignment to reports
REP_SYMBOLS BAPI1092DL 208 X Document assignment to reports
REP_SYMBOLS_COND BAPI1092DLC 236 X
RETURN BAPIRET2 548 Table of recipient systems

Functionality from the viewpoint of the caller
The method BAPI_BUS1092_SAVREPMUL is used by a system in order toreplicate or modify the business object report from anothersystem. The method is used in Application Link Enabling (ALE).Distribution takes place asynchronously.
In the source system, the function module C14ALR_ALE_BUS1092_SAVREPMUL,which is generated from the interface of the existing function module,is used to trigger distribution. An example of this is the functionmodule BAPI_BUS1092_REPLICATE.
Notes
There is a checkbox structure for each report data table. The onlyfields in the report data table that are changed are those that have anX in the corresponding check field in the checkbox structure. The fieldnames in the data string and in the checkbox structure are identical.
REP_HEADER_TAB ,,REP_HEADERX_TAB
REP_SUBJOIN_TAB ,,REP_SUBJOINX_TAB
REP_SYMBOLS_TAB ,,REP_SYMBOLSX_TAB
REP_APLOBJ_TAB ,,REP_APPLOBJX_TAB

Rough Description of the Flow Logic
Preconditions

  • The Customizing tables for the object report must be set in the
  • target system.
    • If you want to use engineering change management in the target system,
    • the relevant change numbers you used for editing reports must becreated in the target system.
      Procedure
      At the start, you can use a user exit to edit additional data beforeposting or to carry out parameter filtering.
      Before the reports can be posted, the corresponding report categories,generation variants, and languages must be checked in the system andthen created or changed. Specifications and documents used in thereport must also be checked and created or changed if necessary.
      All new reports are created using the method BAPI_BUS1092_CREATE,taking into account the checkbox structures.
      For all existing reports, the system checks whether each data recordalready exists in the system. It does this using the logical system andthe key values of the fields RECN and ACTN in the source system.
      All known phrases are changed using the method BAPI_BUS1091_CHANGE.Here the checkbox structures are taken into account.
      Subsequent Conditions
      The documents specified in the interface are posted in the database.
      If an error occurs, it is described in the RETURN parameter or theparameter contains a reference to the application log.
      Possible Exceptions
      None

      Further information

      • BAPI programming guide

      • ALE programming guide

      • (SAPscript hints)

        Description
        INCLUDE EHS_SAF_50A_BAPI_CHANGE_NUMB OBJECT DOKU ID TX

        Description
        This import parameter causes a complete report to be posted.
        INCLUDE EHS_SAF_50A_BAPI_PARA OBJECT DOKU ID TX
        INCLUDE EHS_SAF_50A_BAPI_SAVREPMUL5 OBJECT DOKU ID TX

        Description
        This indicator specifies that data transferred at the interface isdeleted.
        INCLUDE EHS_SAF_50A_BAPI_PARA OBJECT DOKU ID TX
        INCLUDE EHS_SAF_50A_BAPI_SAVREPMUL5 OBJECT DOKU ID TX

        Description
        This method expects a validity date to be specified to be able toidentify an existing report uniquely.
        The reports to be distributed are selected according to the date.

        Default
        This parameter is assigned the system date as default.

        Description
        INCLUDE EHS_25A_SAF_BAPI_LS OBJECT DOKU ID TX

        Description
        This import parameter specifies the logical name of the sending system.

        Description
        This import parameter specifies the ALE entries from the sendingsystem.
        INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX
        INCLUDE EHS_SAF_50A_BAPI_SAVREPMUL5 OBJECT DOKU ID TX

        Description
        INCLUDE EHS_SAF_50A_BAPI_TAB_EXT4 OBJECT DOKU ID TX

        Description
        INCLUDE EHS_SAF_50A_BAPI_TAB_EXT4 OBJECT DOKU ID TX

        Description
        INCLUDE EHS_SAF_50A_BAPI_REC_SPLITT OBJECT DOKU ID TX
        INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX
        INCLUDE EHS_SAF_50A_BAPI_SAVREPMUL5 OBJECT DOKU ID TX

        Description
        INCLUDE EHS_SAF_50A_BAPI_TAB5 OBJECT DOKU ID TX

        Description
        INCLUDE EHS_SAF_50A_BAPI_TABX5 OBJECT DOKU ID TX

        Description
        INCLUDE EHS_SAF_50A_BAPI_TAB5 OBJECT DOKU ID TX

        Description
        INCLUDE EHS_SAF_50A_BAPI_TABX5 OBJECT DOKU ID TX

        Description
        INCLUDE EHS_SAF_50A_BAPI_TAB5 OBJECT DOKU ID TX

        Description
        INCLUDE BAPI_TABLE OBJECT DOKU ID TX
        The error messages occurred while saving the report data to bedistributed. Other error messages can be found in ALE monitoring.