Fonction SAP BAPI_BUS1077_REPLICATE - EHS: Request to Replicate Specification Data

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
IDENTIFIER BAPI1077RI-IDENTIFIER C 132 X Identifier for specification selection
IDENTIFIER_CATEGORY BAPI1077RI-ID_CATEGRY C 10 X Identifier type for specification selection
IDENTIFIER_TYPE BAPI1077RI-ID_TYPE C 10 X Identifier category for specification selection
KEY_DATE RCGADDINF-VALDAT D 8 SY-DATUM X Selection date
MATERIAL BAPI1077MJ-MATERIAL C 18 X Material for specification selection
MATERIAL_EVG BAPIMGVMATNR u 82 X Long Material Number
SUBLIST BAPI1077RL-SUBLIST C 10 X Specification list for specification selection
SUBSTANCE BAPI1077RH-SUBSTANCE C 12 X Specification key for specification selection

Paramètre Reférence Long. Facultatif Description
RETURN BAPIRET2 548 Messages from processing
SAVEREPLICARECIPIENTS BDI_LOGSYS 10 X Recipient of specification data (logical systems)
SUBSTANCELIST BAPISUB_01 184 X List of specifications to be distributed

Functionality from the viewpoint of the caller
This method is used to send copies of instances of the business objectspecification by Application Link Enabling (ALE) in a system.Here you can use the method either to request specification data bypushing or distribute specification data by pulling.
The prepared instances are then saved in the target system togetherwith the method BAPI_BUS1077_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 (C_SHES_TRH, 59, Distribute)

  • Determination of the specifications to be distributed

  • The following must be done for each specification to be distributed:
    • ALE recipient determination if recipient not specified as parameter

    • Read specification data using BAPI (with authorization check)

    • Read and enter the specification keys for specification referencing
    • (ESTRR and ESTVP)
      • Set checkbox structures (all set apart from admin. fields)

      • Trigger distribution by call of generated function module
      • C14ALE_ALE_BUS1077_SAVREPMUL
        Subsequent Conditions
        Asynchronous distribution of the specification data is started for thespecified specifications.
        Possible Exceptions
        None

        Further information

        • Specification EH&S - ALE

        • BAPI programming guide

        • ALE programming guide

        • (SAPscript hints)

          Description
          This import parameter specifies the identifiers according to which thespecifications to be distributed are to be selected.
          INCLUDE EHS_SAF_50A_BAPI_REPLICATE4 OBJECT DOKU ID TX
          INCLUDE EHS_SAF_50A_BAPI_REPLICATE3 OBJECT DOKU ID TX

          Description
          This import parameter specifies the identifier types according to whichthe specifications to be distributed are to be selected.
          INCLUDE EHS_SAF_50A_BAPI_REPLICATE4 OBJECT DOKU ID TX
          INCLUDE EHS_SAF_50A_BAPI_REPLICATE3 OBJECT DOKU ID TX

          Description
          This import parameter specifies the identifier categories according towhich the specifications to be distributed are to be selected.
          INCLUDE EHS_SAF_50A_BAPI_REPLICATE4 OBJECT DOKU ID TX
          INCLUDE EHS_SAF_50A_BAPI_REPLICATE3 OBJECT DOKU ID TX

          Description
          This method expects a selection date to be specified to be able toselect uniquely the specifications to be distributed.
          INCLUDE EHS_SAF_50A_BAPI_SPEZ_KEY OBJECT DOKU ID TX

          Default
          This parameter is assigned the system date as default.

          Description
          This import parameter specifies the material numbers according to whichthe specifications to be distributed are to be selected.
          INCLUDE EHS_SAF_50A_BAPI_REPLICATE4 OBJECT DOKU ID TX
          INCLUDE EHS_SAF_50A_BAPI_REPLICATE3 OBJECT DOKU ID TX

          Description
          This import parameter specifies regulatory lists according to which thespecifications to be distributed are to be selected.
          INCLUDE EHS_SAF_50A_BAPI_REPLICATE4 OBJECT DOKU ID TX
          INCLUDE EHS_SAF_50A_BAPI_REPLICATE3 OBJECT DOKU ID TX

          Description
          This import parameter specifies the specification keys according towhich the specifications to be distributed are to be selected.
          INCLUDE EHS_SAF_50A_BAPI_REPLICATE4 OBJECT DOKU ID TX
          INCLUDE EHS_SAF_50A_BAPI_REPLICATE3 OBJECT DOKU ID TX

          Description
          INCLUDE BAPI_TABLE OBJECT DOKU ID TX
          The error messages occurred at the start of sending specification data.Other error messages can be found in ALE monitoring.

          Description
          This table parameter identifies the logical systems in which thespecification objects are to be replicated. If this parameter is set toINITIAL, the recipient systems are determined by means of theALE distribution model.
          INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX
          INCLUDE EHS_SAF_50A_BAPI_REPLICATE3 OBJECT DOKU ID TX

          Description
          This table parameter contains the list of specifications 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_REPLICATE3 OBJECT DOKU ID TX