Fonction SAP BAPI_BUS1091_SAVREPMUL - EHS: Saving Replicated Phrases

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CHANGE_NUMBER RCGADDINF-AENNR C 12 X Change number
COMPLETE_PHRASE BAPISTDTYP-BOOLEAN C 1 X Transfer whole phrases
DELETE_DATA BAPISTDTYP-BOOLEAN C 1 X Delete transferred phrases
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 BAPIPHREX1 1000 X Additional table 1 for user exits
EXTENSION2_TAB BAPIPHREX2 1000 X Additional table 2 for user exits
LONG_TXT BAPI1091PL 210 X Phrase long texts
LONG_TXTX BAPIPHRPLX 12 X Change table for phrase long texts
PHR_HEADER BAPI1091PH 310 Phrase header data
PHR_HEADERX BAPIPHRPHX 30 Change table for phrase header data
POSITION BAPI1091PP 481 X Phrase items
POSITIONX BAPIPHRPPX 33 X Change table for phrase items
RECORD_SPLITT BAPIRECSPL 60 X Record splits for ALE
REFERENCES BAPI1091PO 230 X Phrase references
REFERENCESX BAPIPHRPOX 27 X Change table for phrase references
RETURN BAPIRET2 548 Table of recipient systems
SELSET_PH BAPI1091PJ 253 X Phrase set - phrase header assignment
SELSET_PHX BAPIPHRPJX 27 X Change table for phrase set - phrase header assignment
SEL_SET BAPI1091PS 299 X Phrase set
SEL_SETX BAPIPHRPSX 26 X Change table for phrase set
SEL_SET_TXT BAPI1091PT 252 X Language-dependent name of phrase set
SEL_SET_TXTX BAPIPHRPTX 27 X Change table for language-dependent name of phrase set

Functionality from the viewpoint of the caller
The method BAPI_BUS1091_SAVREPMUL is used by a system in order toreplicate or modify the business object phrase from anothersystem. The method is used in Application Link Enabling (ALE).Distribution takes place asynchronously.
In the source system, the function module C14ALP_ALE_BUS1091_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_BUS1091_REPLICATE.
Notes
There is a checkbox structure for each phrase data table. The onlyfields in the phrase 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.
PHR_HEADER_TAB ,,PHR_HEADERX_TAB
POSITION_TAB ,,POSITIONX_TAB
LONG_TXT_TAB ,,LONG_TXTX_TAB
REFERENCES_TAB ,,REFERENCESX_TAB
SELSET_PH_TAB ,,SELSET_PHX_TAB
SEL_SET_TAB ,,SEL_SETX_TAB
SEL_SET_TXT_TAB ,,SEL_SET_TXTX_TAB

Rough Description of the Flow Logic
Preconditions

  • The Customizing tables for the object phrase 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 phrases 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.
      You can then post passive phrases in the active library of thereceiving system by deleting all phrase set details and all referencephrases with the library of the receiving system.
      Before the phrases can be posted, the corresponding phrase sets must becreated or modified in the system so that the foreign key entries (ofthe phrase set assignment table ESTPJ) can subsequently be adjustedcorrectly. The system then checks whether the phrase references usedexist. They are initially created only with their header data if theyare subsequently going to be posted as a phrase.
      All new phrases are created using the method BAPI_BUS1091_CREATE,taking into account the checkbox structures.
      For all existing phrases, 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 existing data records are changed using the methodBAPI_BUS1091_CHANGE. Here the checkbox structures are taken intoaccount.
      Subsequent Conditions
      The phrases 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 (object EHAL,subobject PHR).
      Possible Exceptions
      None

      Further information

      • Specification EH&S - ALE

      • BAPI programming guide

      • ALE programming guide

      • (SAPscript hints)

        Description
        INCLUDE EHS_SAF_50A_BAPI_CHANGE_NUMB OBJECT DOKU ID TX

        Description
        This parameter causes a complete phrase to be posted. If the indicatoris not set, delta distribution is run.
        INCLUDE EHS_SAF_50A_BAPI_PARA OBJECT DOKU ID TX
        INCLUDE EHS_SAF_50A_BAPI_SAVREPMUL4 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_SAVREPMUL4 OBJECT DOKU ID TX

        Description
        INCLUDE EHS_SAF_50A_BAPI_PHR_KEY OBJECT DOKU ID TX
        The phrases 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
        If data records were not originally created in the sending system, therelevant extract from the ALE (Application Link Enabling) pointer table(ESTALE) is contained in this table.
        INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX
        INCLUDE EHS_SAF_50A_BAPI_SAVREPMUL4 OBJECT DOKU ID TX

        Description
        INCLUDE EHS_SAF_50A_BAPI_TAB_EXT3 OBJECT DOKU ID TX

        Description
        INCLUDE EHS_SAF_50A_BAPI_TAB_EXT3 OBJECT DOKU ID TX

        Description
        INCLUDE EHS_SAF_50A_BAPI_TAB4 OBJECT DOKU ID TX

        Description
        INCLUDE EHS_SAF_50A_BAPI_TABX4 OBJECT DOKU ID TX

        Description
        INCLUDE EHS_SAF_50A_BAPI_TAB4 OBJECT DOKU ID TX

        Description
        INCLUDE EHS_SAF_50A_BAPI_TABX4 OBJECT DOKU ID TX

        Description
        INCLUDE EHS_SAF_50A_BAPI_TAB4 OBJECT DOKU ID TX

        Description
        INCLUDE EHS_SAF_50A_BAPI_TABX4 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_SAVREPMUL4 OBJECT DOKU ID TX

        Description
        INCLUDE EHS_SAF_50A_BAPI_TAB4 OBJECT DOKU ID TX

        Description
        INCLUDE EHS_SAF_50A_BAPI_TABX4 OBJECT DOKU ID TX

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

        Description
        INCLUDE EHS_SAF_50A_BAPI_TAB4 OBJECT DOKU ID TX

        Description
        INCLUDE EHS_SAF_50A_BAPI_TABX4 OBJECT DOKU ID TX

        Description
        INCLUDE EHS_SAF_50A_BAPI_TAB4 OBJECT DOKU ID TX

        Description
        INCLUDE EHS_SAF_50A_BAPI_TABX4 OBJECT DOKU ID TX

        Description
        INCLUDE EHS_SAF_50A_BAPI_TAB4 OBJECT DOKU ID TX

        Description
        INCLUDE EHS_SAF_50A_BAPI_TABX4 OBJECT DOKU ID TX