SAP EHS00STATUSQUEST Function Module for
EHS00STATUSQUEST is a standard ehs00statusquest 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 ehs00statusquest FM, simply by entering the name EHS00STATUSQUEST into the relevant SAP transaction such as SE37 or SE38.
Function Group: EHS00ANSWQ
Program Name: SAPLEHS00ANSWQ
Main Program: SAPLEHS00ANSWQ
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EHS00STATUSQUEST 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 'EHS00STATUSQUEST'".
EXPORTING
RELTYPE = "
EXTERNALNO = "
IMPORTING
RETURN_VALUE = "
COMPLETE = "
SCANFB = "
PRINTFB = "
TRA_STRUVARIABLE = "
CREATE_DATE = "
IDENTIFICATION = "
MAINTAIN = "
EXCEPTIONS
QUESTIONNAIRE_NOT_FOUND = 1
IMPORTING Parameters details for EHS00STATUSQUEST
RELTYPE -
Data type: T7EHS00_QRELTYP-TYPEOptional: No
Call by Reference: No ( called with pass by value option)
EXTERNALNO -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for EHS00STATUSQUEST
RETURN_VALUE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
COMPLETE -
Data type: T7EHS00_RESQUEST-COMPLETEOptional: No
Call by Reference: No ( called with pass by value option)
SCANFB -
Data type: T7EHS00_RESQUEST-SCANFBOptional: No
Call by Reference: No ( called with pass by value option)
PRINTFB -
Data type: T7EHS00_RESQUEST-PRINTFBOptional: No
Call by Reference: No ( called with pass by value option)
TRA_STRUVARIABLE -
Data type: EHS00QTEXTVARIBLEOptional: No
Call by Reference: No ( called with pass by value option)
CREATE_DATE -
Data type: DATSOptional: No
Call by Reference: No ( called with pass by value option)
IDENTIFICATION -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MAINTAIN -
Data type: T7EHS00_RESQINFO-MAINTAINOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
QUESTIONNAIRE_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EHS00STATUSQUEST 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_reltype | TYPE T7EHS00_QRELTYP-TYPE, " | |||
| lv_return_value | TYPE T7EHS00_QRELTYP, " | |||
| lv_questionnaire_not_found | TYPE T7EHS00_QRELTYP, " | |||
| lv_complete | TYPE T7EHS00_RESQUEST-COMPLETE, " | |||
| lv_externalno | TYPE T7EHS00_RESQUEST, " | |||
| lv_scanfb | TYPE T7EHS00_RESQUEST-SCANFB, " | |||
| lv_printfb | TYPE T7EHS00_RESQUEST-PRINTFB, " | |||
| lv_tra_struvariable | TYPE EHS00QTEXTVARIBLE, " | |||
| lv_create_date | TYPE DATS, " | |||
| lv_identification | TYPE DATS, " | |||
| lv_maintain | TYPE T7EHS00_RESQINFO-MAINTAIN. " |
|   CALL FUNCTION 'EHS00STATUSQUEST' " |
| EXPORTING | ||
| RELTYPE | = lv_reltype | |
| EXTERNALNO | = lv_externalno | |
| IMPORTING | ||
| RETURN_VALUE | = lv_return_value | |
| COMPLETE | = lv_complete | |
| SCANFB | = lv_scanfb | |
| PRINTFB | = lv_printfb | |
| TRA_STRUVARIABLE | = lv_tra_struvariable | |
| CREATE_DATE | = lv_create_date | |
| IDENTIFICATION | = lv_identification | |
| MAINTAIN | = lv_maintain | |
| EXCEPTIONS | ||
| QUESTIONNAIRE_NOT_FOUND = 1 | ||
| . " EHS00STATUSQUEST | ||
ABAP code using 7.40 inline data declarations to call FM EHS00STATUSQUEST
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_reltype). | ||||
| "SELECT single COMPLETE FROM T7EHS00_RESQUEST INTO @DATA(ld_complete). | ||||
| "SELECT single SCANFB FROM T7EHS00_RESQUEST INTO @DATA(ld_scanfb). | ||||
| "SELECT single PRINTFB FROM T7EHS00_RESQUEST INTO @DATA(ld_printfb). | ||||
| "SELECT single MAINTAIN FROM T7EHS00_RESQINFO INTO @DATA(ld_maintain). | ||||
Search for further information about these or an SAP related objects