SAP /SEHS/BAPI_BUS1091_REPLICATE Function Module for EHS: Request to Replicate Phrase Data









/SEHS/BAPI_BUS1091_REPLICATE is a standard /sehs/bapi bus1091 replicate SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for EHS: Request to Replicate Phrase Data processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for /sehs/bapi bus1091 replicate FM, simply by entering the name /SEHS/BAPI_BUS1091_REPLICATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: /SEHS/1091
Program Name: /SEHS/SAPL1091
Main Program: /SEHS/SAPL1091
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function /SEHS/BAPI_BUS1091_REPLICATE pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION '/SEHS/BAPI_BUS1091_REPLICATE'"EHS: Request to Replicate Phrase Data
EXPORTING
* KEY_DATE = SY-DATUM "Selektionsdatum
* PHRASE = "Phrasenschlüssel für Phrasenselektion
* CATALOGUE = "Phrasenkatalog für Phrasenselektion
* GROUP = "Phrasengruppe für Phrasenselektion
* SELECTION_SET = "Phrasen-AWM für Phrasenselektion

TABLES
* PHRASELIST = "Liste von zu verteilenden Phrasen
* SAVEREPLICARECIPIENTS = "Empfänger der Phrasendaten (logische Systeme)
RETURN = "Meldungen der Bearbeitung
.



IMPORTING Parameters details for /SEHS/BAPI_BUS1091_REPLICATE

KEY_DATE - Selektionsdatum

Data type: /SEHS/BAS_ADDINF-VALDAT
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

PHRASE - Phrasenschlüssel für Phrasenselektion

Data type: /SEHS/PHS_BAPI1091PH-PHRASE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CATALOGUE - Phrasenkatalog für Phrasenselektion

Data type: /SEHS/PHS_BAPI1091PH-PHRLIB
Optional: Yes
Call by Reference: No ( called with pass by value option)

GROUP - Phrasengruppe für Phrasenselektion

Data type: /SEHS/PHS_BAPI1091PH-PHRGRP
Optional: Yes
Call by Reference: No ( called with pass by value option)

SELECTION_SET - Phrasen-AWM für Phrasenselektion

Data type: /SEHS/PHS_BAPI1091PS-PHRASE_SET
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for /SEHS/BAPI_BUS1091_REPLICATE

PHRASELIST - Liste von zu verteilenden Phrasen

Data type: /SEHS/PHS_BAPIPHR_01
Optional: Yes
Call by Reference: No ( called with pass by value option)

SAVEREPLICARECIPIENTS - Empfänger der Phrasendaten (logische Systeme)

Data type: BDI_LOGSYS
Optional: Yes
Call by Reference: No ( called with pass by value option)

RETURN - Meldungen der Bearbeitung

Data type: BAPIRET2
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for /SEHS/BAPI_BUS1091_REPLICATE Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_key_date  TYPE /SEHS/BAS_ADDINF-VALDAT, "   SY-DATUM
lt_phraselist  TYPE STANDARD TABLE OF /SEHS/PHS_BAPIPHR_01, "   
lv_phrase  TYPE /SEHS/PHS_BAPI1091PH-PHRASE, "   
lt_savereplicarecipients  TYPE STANDARD TABLE OF BDI_LOGSYS, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_catalogue  TYPE /SEHS/PHS_BAPI1091PH-PHRLIB, "   
lv_group  TYPE /SEHS/PHS_BAPI1091PH-PHRGRP, "   
lv_selection_set  TYPE /SEHS/PHS_BAPI1091PS-PHRASE_SET. "   

  CALL FUNCTION '/SEHS/BAPI_BUS1091_REPLICATE'  "EHS: Request to Replicate Phrase Data
    EXPORTING
         KEY_DATE = lv_key_date
         PHRASE = lv_phrase
         CATALOGUE = lv_catalogue
         GROUP = lv_group
         SELECTION_SET = lv_selection_set
    TABLES
         PHRASELIST = lt_phraselist
         SAVEREPLICARECIPIENTS = lt_savereplicarecipients
         RETURN = lt_return
. " /SEHS/BAPI_BUS1091_REPLICATE




ABAP code using 7.40 inline data declarations to call FM /SEHS/BAPI_BUS1091_REPLICATE

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

"SELECT single VALDAT FROM /SEHS/BAS_ADDINF INTO @DATA(ld_key_date).
DATA(ld_key_date) = SY-DATUM.
 
 
"SELECT single PHRASE FROM /SEHS/PHS_BAPI1091PH INTO @DATA(ld_phrase).
 
 
 
"SELECT single PHRLIB FROM /SEHS/PHS_BAPI1091PH INTO @DATA(ld_catalogue).
 
"SELECT single PHRGRP FROM /SEHS/PHS_BAPI1091PH INTO @DATA(ld_group).
 
"SELECT single PHRASE_SET FROM /SEHS/PHS_BAPI1091PS INTO @DATA(ld_selection_set).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!