SAP BAPI_BUS1091_GETDETAIL Function Module for EHS: Read Phrase
BAPI_BUS1091_GETDETAIL is a standard bapi bus1091 getdetail 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: Read 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 getdetail FM, simply by entering the name BAPI_BUS1091_GETDETAIL 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_GETDETAIL 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_GETDETAIL'"EHS: Read Phrase.
EXPORTING
* PHRASE_LANGUAGE = ' ' "Language indicator for texts
* FLG_PHRASE_HEADER = "Read phrase header data
* FLG_PHRASE_TEXT = "Read phrase texts
* FLG_PHRASE_LONGTEXT = "Read phrase long texts
* FLG_PHRASE_REFERENCES = "Read phrase references
* FLG_PHRASE_SELECTIONSET = "Read phrases from phrase sets
* FLG_SELECTIONSET = "Read administration data for phrase sets
* FLG_SELECTIONSET_TEXT = "Read phrase set texts
* FLG_LOCK_CATALOG = "Lock library
* SCENARIO = "Selection criteria for data
* KEY_DATE = SY-DATUM "Object validity date
* 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
* FLG_RETURN_WHOLE_INTERVAL = "Indicator: Read the entire time interval
* MULTLANGU_PARAMS = "Language support parameters
TABLES
* RETURN = "Confirmations
* PHRASE_HEADER = "Phrase header data
* PHRASE_TEXT = "Phrase texts
* PHRASE_LONGTEXT = "Phrase long texts
* PHRASE_REFERENCES = "Phrase references
* PHRASE_SELECTIONSET = "Phrase sets
* SELECTIONSET = "Phrase sets
* SELECTIONSET_TEXT = "Phrase set texts
IMPORTING Parameters details for BAPI_BUS1091_GETDETAIL
PHRASE_LANGUAGE - Language indicator for texts
Data type: TCG65-PHRLANGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
FLG_PHRASE_HEADER - Read phrase header data
Data type: BAPISTDTYP-BOOLEANOptional: Yes
Call by Reference: No ( called with pass by value option)
FLG_PHRASE_TEXT - Read phrase texts
Data type: BAPISTDTYP-BOOLEANOptional: Yes
Call by Reference: No ( called with pass by value option)
FLG_PHRASE_LONGTEXT - Read phrase long texts
Data type: BAPISTDTYP-BOOLEANOptional: Yes
Call by Reference: No ( called with pass by value option)
FLG_PHRASE_REFERENCES - Read phrase references
Data type: BAPISTDTYP-BOOLEANOptional: Yes
Call by Reference: No ( called with pass by value option)
FLG_PHRASE_SELECTIONSET - Read phrases from phrase sets
Data type: BAPISTDTYP-BOOLEANOptional: Yes
Call by Reference: No ( called with pass by value option)
FLG_SELECTIONSET - Read administration data for phrase sets
Data type: BAPISTDTYP-BOOLEANOptional: Yes
Call by Reference: No ( called with pass by value option)
FLG_SELECTIONSET_TEXT - Read phrase set texts
Data type: BAPISTDTYP-BOOLEANOptional: Yes
Call by Reference: No ( called with pass by value option)
FLG_LOCK_CATALOG - Lock library
Data type: BAPISTDTYP-BOOLEANOptional: Yes
Call by Reference: No ( called with pass by value option)
SCENARIO - Selection criteria for data
Data type: BAPISTDTYP-SCENARIOOptional: Yes
Call by Reference: No ( called with pass by value option)
KEY_DATE - Object validity date
Data type: RCGADDINF-VALDATDefault: SY-DATUM
Optional: 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)
FLG_RETURN_WHOLE_INTERVAL - Indicator: Read the entire time interval
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)
TABLES Parameters details for BAPI_BUS1091_GETDETAIL
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 sets
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_GETDETAIL 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_phrase_language | TYPE TCG65-PHRLANG, " SPACE | |||
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_scenario | TYPE BAPISTDTYP-SCENARIO, " | |||
lt_phrase_header | TYPE STANDARD TABLE OF BAPI1091PH, " | |||
lv_key_date | TYPE RCGADDINF-VALDAT, " SY-DATUM | |||
lt_phrase_text | TYPE STANDARD TABLE OF BAPI1091PP, " | |||
lv_change_number | TYPE RCGADDINF-AENNR, " | |||
lt_phrase_longtext | TYPE STANDARD TABLE OF BAPI1091PL, " | |||
lv_valfr | TYPE RCGADDINF-VALDAT, " | |||
lt_phrase_references | TYPE STANDARD TABLE OF BAPI1091PO, " | |||
lv_valto | TYPE RCGADDINF-VALDAT, " | |||
lt_phrase_selectionset | TYPE STANDARD TABLE OF BAPI1091PJ, " | |||
lt_selectionset | TYPE STANDARD TABLE OF BAPI1091PS, " | |||
lv_flg_key_date_switch_only | TYPE BAPISTDTYP-BOOLEAN, " | |||
lt_selectionset_text | TYPE STANDARD TABLE OF BAPI1091PT, " | |||
lv_flg_return_whole_interval | TYPE BAPISTDTYP-BOOLEAN, " | |||
lv_multlangu_params | TYPE EHSLSADM. " |
  CALL FUNCTION 'BAPI_BUS1091_GETDETAIL' "EHS: Read Phrase |
EXPORTING | ||
PHRASE_LANGUAGE | = lv_phrase_language | |
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 | |
SCENARIO | = lv_scenario | |
KEY_DATE | = lv_key_date | |
CHANGE_NUMBER | = lv_change_number | |
VALFR | = lv_valfr | |
VALTO | = lv_valto | |
FLG_KEY_DATE_SWITCH_ONLY | = lv_flg_key_date_switch_only | |
FLG_RETURN_WHOLE_INTERVAL | = lv_flg_return_whole_interval | |
MULTLANGU_PARAMS | = lv_multlangu_params | |
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_GETDETAIL |
ABAP code using 7.40 inline data declarations to call FM BAPI_BUS1091_GETDETAIL
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 PHRLANG FROM TCG65 INTO @DATA(ld_phrase_language). | ||||
DATA(ld_phrase_language) | = ' '. | |||
"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 SCENARIO FROM BAPISTDTYP INTO @DATA(ld_scenario). | ||||
"SELECT single VALDAT FROM RCGADDINF INTO @DATA(ld_key_date). | ||||
DATA(ld_key_date) | = SY-DATUM. | |||
"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_return_whole_interval). | ||||
Search for further information about these or an SAP related objects