Ansicht
Dokumentation

/SEHS/BAPI_BUS1091_SAVREPMUL - EHS: Save Replicated Phrases

/SEHS/BAPI_BUS1091_SAVREPMUL - EHS: Save Replicated Phrases

Fill RESBD Structure from EBP Component Structure   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality from the Viewpoint of the Caller

The method BAPI_BUS1091_SAVREPMUL is used by a system in order to replicate or modify the business object phrase from another system. 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 function module BAPI_BUS1091_REPLICATE.

Notes

There is a checkbox structure for each phrase data table. The only fields in the phrase data table that are changed are those that have an X in the corresponding check field in the checkbox structure. The field names 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 be created in the target system.

Procedure

At the start, you can use a user exit to edit additional data before posting or to carry out parameter filtering.

You can then post passive phrases in the active library of the receiving system by deleting all phrase set details and all reference phrases with the library of the receiving system.

Before the phrases can be posted, the corresponding phrase sets must be created or modified in the system so that the foreign key entries (of the phrase set assignment table ESTPJ) can subsequently be adjusted correctly. The system then checks whether the phrase references used exist. They are initially created only with their header data if they are 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 record already exists in the system. It does this using the logical system and the key values of the fields RECN and ACTN in the source system.

All existing data records are changed using the method BAPI_BUS1091_CHANGE. Here the checkbox structures are taken into account.

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 the parameter 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)





Parameters

ALEPOINTER
CHANGE_NUMBER
COMPLETE_PHRASE
DELETE_DATA
EXTENSION1_TAB
EXTENSION2_TAB
KEY_DATE
LONG_TXT
LONG_TXTX
MULTLANGU_PARAMS
PHR_HEADER
PHR_HEADERX
POSITION
POSITIONX
RECORD_SPLITT
REFERENCES
REFERENCESX
RETURN
SELSET_PH
SELSET_PHX
SEL_SET
SEL_SETX
SEL_SET_TXT
SEL_SET_TXTX
SENDER

Exceptions

Function Group

S/SAPL1091

CPI1466 during Backup   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 6738 Date: 20240523 Time: 063026     sap01-206 ( 70 ms )