SAP EHS00ANSWQUESTIONNAIRE Function Module for









EHS00ANSWQUESTIONNAIRE is a standard ehs00answquestionnaire 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 ehs00answquestionnaire FM, simply by entering the name EHS00ANSWQUESTIONNAIRE 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 EHS00ANSWQUESTIONNAIRE 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 'EHS00ANSWQUESTIONNAIRE'"
EXPORTING
RELTYPE = "
EXTERNALNO = "
FBMODUS = "
* DEFAULTLANGU = "
* TRA_STRUVARIABLE = "

IMPORTING
RETURN_VALUE = "
COMPLETE = "
SCANFB = "
PRINTFB = "
MAINTAIN = "

TABLES
* ITAB_FB = "
* I_PROT_TAB = "Health Surv. Protocols for a Med. Service
.



IMPORTING Parameters details for EHS00ANSWQUESTIONNAIRE

RELTYPE -

Data type: T7EHS00_QRELTYP-TYPE
Optional: 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)

FBMODUS -

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

DEFAULTLANGU -

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

TRA_STRUVARIABLE -

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

EXPORTING Parameters details for EHS00ANSWQUESTIONNAIRE

RETURN_VALUE -

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

COMPLETE -

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

SCANFB -

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

PRINTFB -

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

MAINTAIN -

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

TABLES Parameters details for EHS00ANSWQUESTIONNAIRE

ITAB_FB -

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

I_PROT_TAB - Health Surv. Protocols for a Med. Service

Data type: T7EHS00_SRV_PROT
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for EHS00ANSWQUESTIONNAIRE 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_itab_fb  TYPE STANDARD TABLE OF EHS00FBITAB, "   
lv_reltype  TYPE T7EHS00_QRELTYP-TYPE, "   
lv_return_value  TYPE T7EHS00_QRELTYP, "   
lv_complete  TYPE T7EHS00_RESQUEST-COMPLETE, "   
lv_externalno  TYPE T7EHS00_RESQUEST, "   
lt_i_prot_tab  TYPE STANDARD TABLE OF T7EHS00_SRV_PROT, "   
lv_scanfb  TYPE T7EHS00_RESQUEST-SCANFB, "   
lv_fbmodus  TYPE T7EHS00_RESQUEST, "   
lv_printfb  TYPE T7EHS00_RESQUEST-PRINTFB, "   
lv_defaultlangu  TYPE SY-LANGU, "   
lv_maintain  TYPE T7EHS00_RESQINFO-MAINTAIN, "   
lv_tra_struvariable  TYPE EHS00QTEXTVARIBLE. "   

  CALL FUNCTION 'EHS00ANSWQUESTIONNAIRE'  "
    EXPORTING
         RELTYPE = lv_reltype
         EXTERNALNO = lv_externalno
         FBMODUS = lv_fbmodus
         DEFAULTLANGU = lv_defaultlangu
         TRA_STRUVARIABLE = lv_tra_struvariable
    IMPORTING
         RETURN_VALUE = lv_return_value
         COMPLETE = lv_complete
         SCANFB = lv_scanfb
         PRINTFB = lv_printfb
         MAINTAIN = lv_maintain
    TABLES
         ITAB_FB = lt_itab_fb
         I_PROT_TAB = lt_i_prot_tab
. " EHS00ANSWQUESTIONNAIRE




ABAP code using 7.40 inline data declarations to call FM EHS00ANSWQUESTIONNAIRE

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 LANGU FROM SY INTO @DATA(ld_defaultlangu).
 
"SELECT single MAINTAIN FROM T7EHS00_RESQINFO INTO @DATA(ld_maintain).
 
 


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!