SAP EHS_VIEW_MAINTENANCE_CALL Function Module for
EHS_VIEW_MAINTENANCE_CALL is a standard ehs view maintenance call 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 ehs view maintenance call FM, simply by entering the name EHS_VIEW_MAINTENANCE_CALL 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 EHS_VIEW_MAINTENANCE_CALL 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 'EHS_VIEW_MAINTENANCE_CALL'".
EXPORTING
CATALOG = "
* VARIANT_FOR_SELECTION = ' ' "
* COMPLEX_SELCONDS_USED = ' ' "
ACTION = "
* CORR_NUMBER = ' ' "
* GENERATE_MAINT_TOOL_IF_MISSING = ' ' "
* SHOW_SELECTION_POPUP = ' ' "
VIEW_NAME = "
* NO_WARNING_FOR_CLIENTINDEP = ' ' "
* RFC_DESTINATION_FOR_UPGRADE = ' ' "
* CLIENT_FOR_UPGRADE = ' ' "
TABLES
* DBA_SELLIST = "
* EXCL_CUA_FUNCT = "
EXCEPTIONS
CLIENT_REFERENCE = 1 ONLY_SHOW_ALLOWED = 10 SYSTEM_FAILURE = 11 UNKNOWN_FIELD_IN_DBA_SELLIST = 12 VIEW_NOT_FOUND = 13 FOREIGN_LOCK = 2 INVALID_ACTION = 3 NO_CLIENTINDEPENDENT_AUTH = 4 NO_DATABASE_FUNCTION = 5 NO_EDITOR_FUNCTION = 6 NO_SHOW_AUTH = 7 NO_TVDIR_ENTRY = 8 NO_UPD_AUTH = 9
IMPORTING Parameters details for EHS_VIEW_MAINTENANCE_CALL
CATALOG -
Data type: EHS00_QCATALOGOptional: No
Call by Reference: No ( called with pass by value option)
VARIANT_FOR_SELECTION -
Data type: TVIMV-VARIANTDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
COMPLEX_SELCONDS_USED -
Data type: TVDIR-FLAGDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
ACTION -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CORR_NUMBER -
Data type: E070-TRKORRDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
GENERATE_MAINT_TOOL_IF_MISSING -
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
SHOW_SELECTION_POPUP -
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
VIEW_NAME -
Data type: DD02V-TABNAMEOptional: No
Call by Reference: No ( called with pass by value option)
NO_WARNING_FOR_CLIENTINDEP -
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
RFC_DESTINATION_FOR_UPGRADE -
Data type: RFCDES-RFCDESTDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
CLIENT_FOR_UPGRADE -
Data type: SY-MANDTDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for EHS_VIEW_MAINTENANCE_CALL
DBA_SELLIST -
Data type: VIMSELLISTOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCL_CUA_FUNCT -
Data type: VIMEXCLFUNOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CLIENT_REFERENCE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ONLY_SHOW_ALLOWED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SYSTEM_FAILURE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
UNKNOWN_FIELD_IN_DBA_SELLIST -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
VIEW_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FOREIGN_LOCK -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_ACTION -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_CLIENTINDEPENDENT_AUTH -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_DATABASE_FUNCTION -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_EDITOR_FUNCTION -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_SHOW_AUTH -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_TVDIR_ENTRY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_UPD_AUTH -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EHS_VIEW_MAINTENANCE_CALL 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_catalog | TYPE EHS00_QCATALOG, " | |||
| lt_dba_sellist | TYPE STANDARD TABLE OF VIMSELLIST, " | |||
| lv_client_reference | TYPE VIMSELLIST, " | |||
| lv_only_show_allowed | TYPE VIMSELLIST, " | |||
| lv_variant_for_selection | TYPE TVIMV-VARIANT, " ' ' | |||
| lv_system_failure | TYPE TVIMV, " | |||
| lv_complex_selconds_used | TYPE TVDIR-FLAG, " ' ' | |||
| lv_unknown_field_in_dba_sellist | TYPE TVDIR, " | |||
| lv_view_not_found | TYPE TVDIR, " | |||
| lv_action | TYPE TVDIR, " | |||
| lv_foreign_lock | TYPE TVDIR, " | |||
| lt_excl_cua_funct | TYPE STANDARD TABLE OF VIMEXCLFUN, " | |||
| lv_corr_number | TYPE E070-TRKORR, " ' ' | |||
| lv_invalid_action | TYPE E070, " | |||
| lv_no_clientindependent_auth | TYPE E070, " | |||
| lv_generate_maint_tool_if_missing | TYPE E070, " ' ' | |||
| lv_no_database_function | TYPE E070, " | |||
| lv_show_selection_popup | TYPE E070, " ' ' | |||
| lv_view_name | TYPE DD02V-TABNAME, " | |||
| lv_no_editor_function | TYPE DD02V, " | |||
| lv_no_show_auth | TYPE DD02V, " | |||
| lv_no_warning_for_clientindep | TYPE DD02V, " ' ' | |||
| lv_no_tvdir_entry | TYPE DD02V, " | |||
| lv_rfc_destination_for_upgrade | TYPE RFCDES-RFCDEST, " ' ' | |||
| lv_no_upd_auth | TYPE RFCDES, " | |||
| lv_client_for_upgrade | TYPE SY-MANDT. " ' ' |
|   CALL FUNCTION 'EHS_VIEW_MAINTENANCE_CALL' " |
| EXPORTING | ||
| CATALOG | = lv_catalog | |
| VARIANT_FOR_SELECTION | = lv_variant_for_selection | |
| COMPLEX_SELCONDS_USED | = lv_complex_selconds_used | |
| ACTION | = lv_action | |
| CORR_NUMBER | = lv_corr_number | |
| GENERATE_MAINT_TOOL_IF_MISSING | = lv_generate_maint_tool_if_missing | |
| SHOW_SELECTION_POPUP | = lv_show_selection_popup | |
| VIEW_NAME | = lv_view_name | |
| NO_WARNING_FOR_CLIENTINDEP | = lv_no_warning_for_clientindep | |
| RFC_DESTINATION_FOR_UPGRADE | = lv_rfc_destination_for_upgrade | |
| CLIENT_FOR_UPGRADE | = lv_client_for_upgrade | |
| TABLES | ||
| DBA_SELLIST | = lt_dba_sellist | |
| EXCL_CUA_FUNCT | = lt_excl_cua_funct | |
| EXCEPTIONS | ||
| CLIENT_REFERENCE = 1 | ||
| ONLY_SHOW_ALLOWED = 10 | ||
| SYSTEM_FAILURE = 11 | ||
| UNKNOWN_FIELD_IN_DBA_SELLIST = 12 | ||
| VIEW_NOT_FOUND = 13 | ||
| FOREIGN_LOCK = 2 | ||
| INVALID_ACTION = 3 | ||
| NO_CLIENTINDEPENDENT_AUTH = 4 | ||
| NO_DATABASE_FUNCTION = 5 | ||
| NO_EDITOR_FUNCTION = 6 | ||
| NO_SHOW_AUTH = 7 | ||
| NO_TVDIR_ENTRY = 8 | ||
| NO_UPD_AUTH = 9 | ||
| . " EHS_VIEW_MAINTENANCE_CALL | ||
ABAP code using 7.40 inline data declarations to call FM EHS_VIEW_MAINTENANCE_CALL
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 VARIANT FROM TVIMV INTO @DATA(ld_variant_for_selection). | ||||
| DATA(ld_variant_for_selection) | = ' '. | |||
| "SELECT single FLAG FROM TVDIR INTO @DATA(ld_complex_selconds_used). | ||||
| DATA(ld_complex_selconds_used) | = ' '. | |||
| "SELECT single TRKORR FROM E070 INTO @DATA(ld_corr_number). | ||||
| DATA(ld_corr_number) | = ' '. | |||
| DATA(ld_generate_maint_tool_if_missing) | = ' '. | |||
| DATA(ld_show_selection_popup) | = ' '. | |||
| "SELECT single TABNAME FROM DD02V INTO @DATA(ld_view_name). | ||||
| DATA(ld_no_warning_for_clientindep) | = ' '. | |||
| "SELECT single RFCDEST FROM RFCDES INTO @DATA(ld_rfc_destination_for_upgrade). | ||||
| DATA(ld_rfc_destination_for_upgrade) | = ' '. | |||
| "SELECT single MANDT FROM SY INTO @DATA(ld_client_for_upgrade). | ||||
| DATA(ld_client_for_upgrade) | = ' '. | |||
Search for further information about these or an SAP related objects