SAP EHS00_GETQUESTTEXT01 Function Module for









EHS00_GETQUESTTEXT01 is a standard ehs00 getquesttext01 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 ehs00 getquesttext01 FM, simply by entering the name EHS00_GETQUESTTEXT01 into the relevant SAP transaction such as SE37 or SE38.

Function Group: HREHS01
Program Name: SAPLHREHS01
Main Program: SAPLHREHS01
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function EHS00_GETQUESTTEXT01 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 'EHS00_GETQUESTTEXT01'"
EXPORTING
* IM_SPRAS = SY-LANGU "
* IM_LTXT = 'X' "
* IM_RELTYP = "

TABLES
IM_QUEST_CATALOG = "
IM_QUEST_GROUP = "
IM_QUEST_ID = "
EX_QUEST_TEXT = "

EXCEPTIONS
EMPTY_TABLE_CATALOG = 1 EMPTY_TABLE_GROUP = 2 EMPTY_TABLE_ID = 3 EMPTY_EX_TABLE = 4
.



IMPORTING Parameters details for EHS00_GETQUESTTEXT01

IM_SPRAS -

Data type: EHS00_SPRAS
Default: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_LTXT -

Data type: BOOLEAN
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_RELTYP -

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

TABLES Parameters details for EHS00_GETQUESTTEXT01

IM_QUEST_CATALOG -

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

IM_QUEST_GROUP -

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

IM_QUEST_ID -

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

EX_QUEST_TEXT -

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

EXCEPTIONS details

EMPTY_TABLE_CATALOG -

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

EMPTY_TABLE_GROUP -

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

EMPTY_TABLE_ID -

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

EMPTY_EX_TABLE -

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

Copy and paste ABAP code example for EHS00_GETQUESTTEXT01 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_im_spras  TYPE EHS00_SPRAS, "   SY-LANGU
lt_im_quest_catalog  TYPE STANDARD TABLE OF EHS00_QCATALOG_RANGE, "   
lv_empty_table_catalog  TYPE EHS00_QCATALOG_RANGE, "   
lv_im_ltxt  TYPE BOOLEAN, "   'X'
lt_im_quest_group  TYPE STANDARD TABLE OF EHS00_QGROUP_RANGE, "   
lv_empty_table_group  TYPE EHS00_QGROUP_RANGE, "   
lv_im_reltyp  TYPE EHS00_RELTYPE, "   
lt_im_quest_id  TYPE STANDARD TABLE OF EHS00_QUESTID_RANGE, "   
lv_empty_table_id  TYPE EHS00_QUESTID_RANGE, "   
lt_ex_quest_text  TYPE STANDARD TABLE OF EHSQU_QTEXT, "   
lv_empty_ex_table  TYPE EHSQU_QTEXT. "   

  CALL FUNCTION 'EHS00_GETQUESTTEXT01'  "
    EXPORTING
         IM_SPRAS = lv_im_spras
         IM_LTXT = lv_im_ltxt
         IM_RELTYP = lv_im_reltyp
    TABLES
         IM_QUEST_CATALOG = lt_im_quest_catalog
         IM_QUEST_GROUP = lt_im_quest_group
         IM_QUEST_ID = lt_im_quest_id
         EX_QUEST_TEXT = lt_ex_quest_text
    EXCEPTIONS
        EMPTY_TABLE_CATALOG = 1
        EMPTY_TABLE_GROUP = 2
        EMPTY_TABLE_ID = 3
        EMPTY_EX_TABLE = 4
. " EHS00_GETQUESTTEXT01




ABAP code using 7.40 inline data declarations to call FM EHS00_GETQUESTTEXT01

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.

DATA(ld_im_spras) = SY-LANGU.
 
 
 
DATA(ld_im_ltxt) = 'X'.
 
 
 
 
 
 
 
 


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!