SAP BAPI_BUS1091_CREATE Function Module for EHS: Create Phrase
BAPI_BUS1091_CREATE is a standard bapi bus1091 create 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: Create Phrase 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 bapi bus1091 create FM, simply by entering the name BAPI_BUS1091_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: 1091
Program Name: SAPL1091
Main Program: SAPL1091
Appliation area: M
Release date: 19-Mar-2002
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_BUS1091_CREATE 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 'BAPI_BUS1091_CREATE'"EHS: Create Phrase.
EXPORTING
* KEY_DATE = SY-DATUM "Key date
* FLG_PHRASE_HEADER = "Create phrase header data
* FLG_PHRASE_TEXT = "Create phrase texts
* FLG_PHRASE_LONGTEXT = "Create phrase long texts
* FLG_PHRASE_REFERENCES = "Create phrase references
* FLG_PHRASE_SELECTIONSET = "Create phrase-phrase set assignment
* FLG_SELECTIONSET = "Create phrase set
* FLG_SELECTIONSET_TEXT = "Create texts for phrase sets
* FLG_LOCK_CATALOG = "Lock only via library
* CHANGE_NUMBER = "Change number
* VALFR = "Lower Time Interval Limit
* VALTO = "Upper Time Interval Limit
* FLG_KEY_DATE_SWITCH_ONLY = "Indicator: Change key date and change number only
* MULTLANGU_PARAMS = "Language support parameters
* FLG_TESTRUN = "Simulate only
* FLG_BUFFER = "Buffer data
* FLG_OWNID_SRSID_KEEP = "Retain data origin and data provider
TABLES
* RETURN = "Confirmations
* PHRASE_HEADER = "Phrase header data
* PHRASE_TEXT = "Phrase texts
* PHRASE_LONGTEXT = "Phrase long texts
* PHRASE_REFERENCES = "Phrase references
* PHRASE_SELECTIONSET = "Phrase-phrase set assignment
* SELECTIONSET = "Phrase sets
* SELECTIONSET_TEXT = "Phrase set texts
IMPORTING Parameters details for BAPI_BUS1091_CREATE
KEY_DATE - Key date
Data type: RCGADDINF-VALDATDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
FLG_PHRASE_HEADER - Create phrase header data
Data type: BAPISTDTYP-BOOLEANOptional: Yes
Call by Reference: No ( called with pass by value option)
FLG_PHRASE_TEXT - Create phrase texts
Data type: BAPISTDTYP-BOOLEANOptional: Yes
Call by Reference: No ( called with pass by value option)
FLG_PHRASE_LONGTEXT - Create phrase long texts
Data type: BAPISTDTYP-BOOLEANOptional: Yes
Call by Reference: No ( called with pass by value option)
FLG_PHRASE_REFERENCES - Create phrase references
Data type: BAPISTDTYP-BOOLEANOptional: Yes
Call by Reference: No ( called with pass by value option)
FLG_PHRASE_SELECTIONSET - Create phrase-phrase set assignment
Data type: BAPISTDTYP-BOOLEANOptional: Yes
Call by Reference: No ( called with pass by value option)
FLG_SELECTIONSET - Create phrase set
Data type: BAPISTDTYP-BOOLEANOptional: Yes
Call by Reference: No ( called with pass by value option)
FLG_SELECTIONSET_TEXT - Create texts for phrase sets
Data type: BAPISTDTYP-BOOLEANOptional: Yes
Call by Reference: No ( called with pass by value option)
FLG_LOCK_CATALOG - Lock only via library
Data type: BAPISTDTYP-BOOLEANOptional: Yes
Call by Reference: No ( called with pass by value option)
CHANGE_NUMBER - Change number
Data type: RCGADDINF-AENNROptional: Yes
Call by Reference: No ( called with pass by value option)
VALFR - Lower Time Interval Limit
Data type: RCGADDINF-VALDATOptional: Yes
Call by Reference: No ( called with pass by value option)
VALTO - Upper Time Interval Limit
Data type: RCGADDINF-VALDATOptional: Yes
Call by Reference: No ( called with pass by value option)
FLG_KEY_DATE_SWITCH_ONLY - Indicator: Change key date and change number only
Data type: BAPISTDTYP-BOOLEANOptional: Yes
Call by Reference: No ( called with pass by value option)
MULTLANGU_PARAMS - Language support parameters
Data type: EHSLSADMOptional: Yes
Call by Reference: No ( called with pass by value option)
FLG_TESTRUN - Simulate only
Data type: BAPISTDTYP-BOOLEANOptional: Yes
Call by Reference: No ( called with pass by value option)
FLG_BUFFER - Buffer data
Data type: BAPISTDTYP-BOOLEANOptional: Yes
Call by Reference: No ( called with pass by value option)
FLG_OWNID_SRSID_KEEP - Retain data origin and data provider
Data type: BAPISTDTYP-BOOLEANOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_BUS1091_CREATE
RETURN - Confirmations
Data type: BAPIRET2Optional: Yes
Call by Reference: No ( called with pass by value option)
PHRASE_HEADER - Phrase header data
Data type: BAPI1091PHOptional: Yes
Call by Reference: No ( called with pass by value option)
PHRASE_TEXT - Phrase texts
Data type: BAPI1091PPOptional: Yes
Call by Reference: No ( called with pass by value option)
PHRASE_LONGTEXT - Phrase long texts
Data type: BAPI1091PLOptional: Yes
Call by Reference: No ( called with pass by value option)
PHRASE_REFERENCES - Phrase references
Data type: BAPI1091POOptional: Yes
Call by Reference: No ( called with pass by value option)
PHRASE_SELECTIONSET - Phrase-phrase set assignment
Data type: BAPI1091PJOptional: Yes
Call by Reference: No ( called with pass by value option)
SELECTIONSET - Phrase sets
Data type: BAPI1091PSOptional: Yes
Call by Reference: No ( called with pass by value option)
SELECTIONSET_TEXT - Phrase set texts
Data type: BAPI1091PTOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_BUS1091_CREATE 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: | ||||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_key_date | TYPE RCGADDINF-VALDAT, " SY-DATUM | |||
| lv_flg_phrase_header | TYPE BAPISTDTYP-BOOLEAN, " | |||
| lv_flg_phrase_text | TYPE BAPISTDTYP-BOOLEAN, " | |||
| lv_flg_phrase_longtext | TYPE BAPISTDTYP-BOOLEAN, " | |||
| lv_flg_phrase_references | TYPE BAPISTDTYP-BOOLEAN, " | |||
| lv_flg_phrase_selectionset | TYPE BAPISTDTYP-BOOLEAN, " | |||
| lv_flg_selectionset | TYPE BAPISTDTYP-BOOLEAN, " | |||
| lv_flg_selectionset_text | TYPE BAPISTDTYP-BOOLEAN, " | |||
| lv_flg_lock_catalog | TYPE BAPISTDTYP-BOOLEAN, " | |||
| lv_change_number | TYPE RCGADDINF-AENNR, " | |||
| lt_phrase_header | TYPE STANDARD TABLE OF BAPI1091PH, " | |||
| lv_valfr | TYPE RCGADDINF-VALDAT, " | |||
| lt_phrase_text | TYPE STANDARD TABLE OF BAPI1091PP, " | |||
| lv_valto | TYPE RCGADDINF-VALDAT, " | |||
| lt_phrase_longtext | TYPE STANDARD TABLE OF BAPI1091PL, " | |||
| lt_phrase_references | TYPE STANDARD TABLE OF BAPI1091PO, " | |||
| lv_flg_key_date_switch_only | TYPE BAPISTDTYP-BOOLEAN, " | |||
| lv_multlangu_params | TYPE EHSLSADM, " | |||
| lt_phrase_selectionset | TYPE STANDARD TABLE OF BAPI1091PJ, " | |||
| lv_flg_testrun | TYPE BAPISTDTYP-BOOLEAN, " | |||
| lt_selectionset | TYPE STANDARD TABLE OF BAPI1091PS, " | |||
| lv_flg_buffer | TYPE BAPISTDTYP-BOOLEAN, " | |||
| lt_selectionset_text | TYPE STANDARD TABLE OF BAPI1091PT, " | |||
| lv_flg_ownid_srsid_keep | TYPE BAPISTDTYP-BOOLEAN. " |
|   CALL FUNCTION 'BAPI_BUS1091_CREATE' "EHS: Create Phrase |
| EXPORTING | ||
| KEY_DATE | = lv_key_date | |
| FLG_PHRASE_HEADER | = lv_flg_phrase_header | |
| FLG_PHRASE_TEXT | = lv_flg_phrase_text | |
| FLG_PHRASE_LONGTEXT | = lv_flg_phrase_longtext | |
| FLG_PHRASE_REFERENCES | = lv_flg_phrase_references | |
| FLG_PHRASE_SELECTIONSET | = lv_flg_phrase_selectionset | |
| FLG_SELECTIONSET | = lv_flg_selectionset | |
| FLG_SELECTIONSET_TEXT | = lv_flg_selectionset_text | |
| FLG_LOCK_CATALOG | = lv_flg_lock_catalog | |
| CHANGE_NUMBER | = lv_change_number | |
| VALFR | = lv_valfr | |
| VALTO | = lv_valto | |
| FLG_KEY_DATE_SWITCH_ONLY | = lv_flg_key_date_switch_only | |
| MULTLANGU_PARAMS | = lv_multlangu_params | |
| FLG_TESTRUN | = lv_flg_testrun | |
| FLG_BUFFER | = lv_flg_buffer | |
| FLG_OWNID_SRSID_KEEP | = lv_flg_ownid_srsid_keep | |
| TABLES | ||
| RETURN | = lt_return | |
| PHRASE_HEADER | = lt_phrase_header | |
| PHRASE_TEXT | = lt_phrase_text | |
| PHRASE_LONGTEXT | = lt_phrase_longtext | |
| PHRASE_REFERENCES | = lt_phrase_references | |
| PHRASE_SELECTIONSET | = lt_phrase_selectionset | |
| SELECTIONSET | = lt_selectionset | |
| SELECTIONSET_TEXT | = lt_selectionset_text | |
| . " BAPI_BUS1091_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_BUS1091_CREATE
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 RCGADDINF INTO @DATA(ld_key_date). | ||||
| DATA(ld_key_date) | = SY-DATUM. | |||
| "SELECT single BOOLEAN FROM BAPISTDTYP INTO @DATA(ld_flg_phrase_header). | ||||
| "SELECT single BOOLEAN FROM BAPISTDTYP INTO @DATA(ld_flg_phrase_text). | ||||
| "SELECT single BOOLEAN FROM BAPISTDTYP INTO @DATA(ld_flg_phrase_longtext). | ||||
| "SELECT single BOOLEAN FROM BAPISTDTYP INTO @DATA(ld_flg_phrase_references). | ||||
| "SELECT single BOOLEAN FROM BAPISTDTYP INTO @DATA(ld_flg_phrase_selectionset). | ||||
| "SELECT single BOOLEAN FROM BAPISTDTYP INTO @DATA(ld_flg_selectionset). | ||||
| "SELECT single BOOLEAN FROM BAPISTDTYP INTO @DATA(ld_flg_selectionset_text). | ||||
| "SELECT single BOOLEAN FROM BAPISTDTYP INTO @DATA(ld_flg_lock_catalog). | ||||
| "SELECT single AENNR FROM RCGADDINF INTO @DATA(ld_change_number). | ||||
| "SELECT single VALDAT FROM RCGADDINF INTO @DATA(ld_valfr). | ||||
| "SELECT single VALDAT FROM RCGADDINF INTO @DATA(ld_valto). | ||||
| "SELECT single BOOLEAN FROM BAPISTDTYP INTO @DATA(ld_flg_key_date_switch_only). | ||||
| "SELECT single BOOLEAN FROM BAPISTDTYP INTO @DATA(ld_flg_testrun). | ||||
| "SELECT single BOOLEAN FROM BAPISTDTYP INTO @DATA(ld_flg_buffer). | ||||
| "SELECT single BOOLEAN FROM BAPISTDTYP INTO @DATA(ld_flg_ownid_srsid_keep). | ||||
Search for further information about these or an SAP related objects