SAP EHS00_QUESTIONNAIRE Function Module for General questionnaire
EHS00_QUESTIONNAIRE is a standard ehs00 questionnaire SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for General questionnaire 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 ehs00 questionnaire FM, simply by entering the name EHS00_QUESTIONNAIRE into the relevant SAP transaction such as SE37 or SE38.
Function Group: HREHS02
Program Name: SAPLHREHS02
Main Program: SAPLHREHS02
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EHS00_QUESTIONNAIRE 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_QUESTIONNAIRE'"General questionnaire.
EXPORTING
APPL = "Assignment object
* MODE = 'U' "
* IM_POS = ' ' "
* IM_MULTI_ENTRY = ' ' "
* IM_USER_EXIT = ' ' "
* IM_ICON = 'ICON_LINK' "
* IM_ICON_INFO = 'USER EXIT' "
* IM_TRANS = "
* IM_WHEREUSED_FB = "
EXCEPTIONS
MODE_NOT_EXISTS = 1 APPLICATION_NOT_EXISTS = 2
IMPORTING Parameters details for EHS00_QUESTIONNAIRE
APPL - Assignment object
Data type: T7EHS00_QRELTYP-TYPEOptional: No
Call by Reference: No ( called with pass by value option)
MODE -
Data type:Default: 'U'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IM_POS -
Data type: BOOLEANDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IM_MULTI_ENTRY -
Data type: BOOLEANDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IM_USER_EXIT -
Data type: BOOLEANDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IM_ICON -
Data type: ICON-NAMEDefault: 'ICON_LINK'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IM_ICON_INFO -
Data type: ICONT-QUICKINFODefault: 'USER EXIT'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IM_TRANS -
Data type: SY-TCODEOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_WHEREUSED_FB -
Data type: RS38L-NAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
MODE_NOT_EXISTS - Session does not exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
APPLICATION_NOT_EXISTS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EHS00_QUESTIONNAIRE 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_appl | TYPE T7EHS00_QRELTYP-TYPE, " | |||
| lv_mode_not_exists | TYPE T7EHS00_QRELTYP, " | |||
| lv_mode | TYPE T7EHS00_QRELTYP, " 'U' | |||
| lv_application_not_exists | TYPE T7EHS00_QRELTYP, " | |||
| lv_im_pos | TYPE BOOLEAN, " SPACE | |||
| lv_im_multi_entry | TYPE BOOLEAN, " SPACE | |||
| lv_im_user_exit | TYPE BOOLEAN, " SPACE | |||
| lv_im_icon | TYPE ICON-NAME, " 'ICON_LINK' | |||
| lv_im_icon_info | TYPE ICONT-QUICKINFO, " 'USER EXIT' | |||
| lv_im_trans | TYPE SY-TCODE, " | |||
| lv_im_whereused_fb | TYPE RS38L-NAME. " |
|   CALL FUNCTION 'EHS00_QUESTIONNAIRE' "General questionnaire |
| EXPORTING | ||
| APPL | = lv_appl | |
| MODE | = lv_mode | |
| IM_POS | = lv_im_pos | |
| IM_MULTI_ENTRY | = lv_im_multi_entry | |
| IM_USER_EXIT | = lv_im_user_exit | |
| IM_ICON | = lv_im_icon | |
| IM_ICON_INFO | = lv_im_icon_info | |
| IM_TRANS | = lv_im_trans | |
| IM_WHEREUSED_FB | = lv_im_whereused_fb | |
| EXCEPTIONS | ||
| MODE_NOT_EXISTS = 1 | ||
| APPLICATION_NOT_EXISTS = 2 | ||
| . " EHS00_QUESTIONNAIRE | ||
ABAP code using 7.40 inline data declarations to call FM EHS00_QUESTIONNAIRE
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 TYPE FROM T7EHS00_QRELTYP INTO @DATA(ld_appl). | ||||
| DATA(ld_mode) | = 'U'. | |||
| DATA(ld_im_pos) | = ' '. | |||
| DATA(ld_im_multi_entry) | = ' '. | |||
| DATA(ld_im_user_exit) | = ' '. | |||
| "SELECT single NAME FROM ICON INTO @DATA(ld_im_icon). | ||||
| DATA(ld_im_icon) | = 'ICON_LINK'. | |||
| "SELECT single QUICKINFO FROM ICONT INTO @DATA(ld_im_icon_info). | ||||
| DATA(ld_im_icon_info) | = 'USER EXIT'. | |||
| "SELECT single TCODE FROM SY INTO @DATA(ld_im_trans). | ||||
| "SELECT single NAME FROM RS38L INTO @DATA(ld_im_whereused_fb). | ||||
Search for further information about these or an SAP related objects