Fonction SAP BAPI_BUS1091_REPLICATE - EHS: Request to Replicate Phrase Data

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CATALOGUE BAPI1091PH-PHRLIB C 5 X Phrase library for phrase selection
GROUP BAPI1091PH-PHRGRP C 10 X Phrase group for phrase selection
KEY_DATE RCGADDINF-VALDAT D 8 SY-DATUM X Selection date
PHRASE BAPI1091PH-PHRASE C 15 X Phrase key for phrase selection
SELECTION_SET BAPI1091PS-PHRASE_SET C 30 X Phrase set for phrase selection

Paramètre Reférence Long. Facultatif Description
PHRASELIST BAPIPHR_01 20 X List of phrases to be distributed
RETURN BAPIRET2 548 Messages from processing
SAVEREPLICARECIPIENTS BDI_LOGSYS 10 X Recipient of phrase data (logical systems)

Functionality from the viewpoint of the caller
This method is used to send copies of instances of the business objectphrase by Application Link Enabling (ALE) in a system. Here youcan use the method either to request phrase data by pushing ordistribute phrase data by pulling.
The prepared instances are then saved in the target system togetherwith the method BAPI_BUS1091_SAVREPMUL (SAVEREPLICAMULTIPLE).
Distribution takes place asynchronously and as mass processing, that isall phrases are sent to the systems entered in the distribution modelfor each filter object combination.

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_TPG, 59, Distribute)

  • Determination of the phrases to be distributed

  • Read the complete phrase header for subsequent recipient determination

  • Determination of all existing combinations of filter objects. Per
  • combination, an intermediatedocument (IDoc) is created in mass processing that contains the datafor all phrases that fulfill the criteria of the filter objectcombination scanned in the distribution model. This IDoc is thus sentto all systems entered in the distribution model.
    • ALE recipient determination if recipient not specified as parameter

    • The following must be done for each phrase to be distributed accordingto the filter objects:
      • Read phrase data using BAPI (with authorization check)

      • Set checkbox structures (all set apart from admin. fields)

      • Pass on phrase data to the user exit for further processing

      • Collect phrase data in collecting tables (ctab)

      • Trigger distribution per filter object combination by call of generated
      • function module C14ALP_ALE_BUS1091_SAVREPMUL
        Subsequent Conditions
        Asynchronous distribution of the phrase data is started for thespecified phrases.
        Possible Exceptions
        None

        Further information

        • Specification EH&S - ALE

        • BAPI programming guide

        • ALE programming guide

        • (SAPscript hints)

          Description
          This import parameter specifies the phrase libraries according to whichthe phrases to be distributed are to be selected.
          INCLUDE EHS_SAF_50A_BAPI_REPLICATE4 OBJECT DOKU ID TX
          INCLUDE EHS_SAF_50A_BAPI_REPLICATE5 OBJECT DOKU ID TX

          Description
          This import parameter specifies the phrase groups according to whichthe phrases to be distributed are to be selected.
          INCLUDE EHS_SAF_50A_BAPI_REPLICATE4 OBJECT DOKU ID TX
          INCLUDE EHS_SAF_50A_BAPI_REPLICATE5 OBJECT DOKU ID TX

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

          Default
          This parameter is assigned the system date as default.

          Description
          This import parameter specifies the phrase keys according to which thephrases to be distributed are to be selected.
          INCLUDE EHS_SAF_50A_BAPI_REPLICATE4 OBJECT DOKU ID TX
          INCLUDE EHS_SAF_50A_BAPI_REPLICATE5 OBJECT DOKU ID TX

          Description
          This import parameter specifies the phrase sets according to which thephrases to be distributed are to be selected.
          INCLUDE EHS_SAF_50A_BAPI_REPLICATE4 OBJECT DOKU ID TX
          INCLUDE EHS_SAF_50A_BAPI_REPLICATE5 OBJECT DOKU ID TX

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

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

          Description
          This table parameter identifies the logical systems in which the phraseobjects 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_REPLICATE5 OBJECT DOKU ID TX