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

Function EHS00MDATAUPL_IMPORT 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 'EHS00MDATAUPL_IMPORT'".
EXPORTING
* IV_SRV_NUMBER = "Number of Medical Service
* IV_FLG_APPLOG = 'X' "
* IV_FLG_FILE_DIALOG = 'X' "
* IT_IMPORT_DATA = "
* IV_FLG_RESULT_DIALOG = 'X' "
IV_EXAM_GROUP = "Examination Category
* IV_EXAM_CODE = "Examination number
* IV_EXAM_COUNT = "Number of Individual Examinations
* IV_TEST_NO = "Medical Test Number
* IV_EXAM_IMP_DBTAB_NAME = "Database Table for Saving Imported Examination Results
* IV_EXAM_IMP_STRUC_NAME = "Structure Name for Import of Examination Results
* IV_EXAM_IMP_TTYP_NAME = "Table Type Name for Imported Examination Results
* IV_EXAM_IMP_SEPARATOR = "Separator for Import of Medical Data (Examination Results)
IMPORTING
ET_IMPORT_DATA = "Table with Imported Data
ET_DB_DATA = "Table with Saved Data
ES_EXAM = "
EV_FLG_ERROR = "
ET_MESSAGES = "
EXCEPTIONS
INVALID_PARAMETER = 1 IMP_COMPONENT_ERROR = 10 NO_UPLREF = 2 NO_VALID_SERVICE = 3 NO_VALID_EXAM = 4 MULTIPLE_VALID_EXAM = 5 NO_VALID_TABNAME = 6 NO_VALID_IMPORT_DATA_TAB = 7 IMPORT_DIALOG_ERROR = 8 BADI_IMPL_ERROR = 9
IMPORTING Parameters details for EHS00MDATAUPL_IMPORT
IV_SRV_NUMBER - Number of Medical Service
Data type: EHS00_SRVNUMBEROptional: Yes
Call by Reference: Yes
IV_FLG_APPLOG -
Data type: ESP1_BOOLEANDefault: 'X'
Optional: Yes
Call by Reference: Yes
IV_FLG_FILE_DIALOG -
Data type: ESP1_BOOLEANDefault: 'X'
Optional: Yes
Call by Reference: Yes
IT_IMPORT_DATA -
Data type: ANYOptional: Yes
Call by Reference: Yes
IV_FLG_RESULT_DIALOG -
Data type: ESP1_BOOLEANDefault: 'X'
Optional: Yes
Call by Reference: Yes
IV_EXAM_GROUP - Examination Category
Data type: EHS00_EGROUPOptional: No
Call by Reference: Yes
IV_EXAM_CODE - Examination number
Data type: EHS00_ECODEOptional: Yes
Call by Reference: Yes
IV_EXAM_COUNT - Number of Individual Examinations
Data type: EHS00_EXAMCOUNTOptional: Yes
Call by Reference: Yes
IV_TEST_NO - Medical Test Number
Data type: EHS00_TESTNOOptional: Yes
Call by Reference: Yes
IV_EXAM_IMP_DBTAB_NAME - Database Table for Saving Imported Examination Results
Data type: EHS00E_EXAM_IMP_DBTABOptional: Yes
Call by Reference: Yes
IV_EXAM_IMP_STRUC_NAME - Structure Name for Import of Examination Results
Data type: EHS00E_EXAM_IMP_STRUCOptional: Yes
Call by Reference: Yes
IV_EXAM_IMP_TTYP_NAME - Table Type Name for Imported Examination Results
Data type: EHS00E_EXAM_IMP_TTYPOptional: Yes
Call by Reference: Yes
IV_EXAM_IMP_SEPARATOR - Separator for Import of Medical Data (Examination Results)
Data type: EHS00E_EXAM_IMP_SEPARATOROptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for EHS00MDATAUPL_IMPORT
ET_IMPORT_DATA - Table with Imported Data
Data type: ANYOptional: No
Call by Reference: Yes
ET_DB_DATA - Table with Saved Data
Data type: ANYOptional: No
Call by Reference: Yes
ES_EXAM -
Data type: T7EHS00_EGROUPOptional: No
Call by Reference: Yes
EV_FLG_ERROR -
Data type: ESP1_BOOLEANOptional: No
Call by Reference: Yes
ET_MESSAGES -
Data type: EHS00Y_EXAM_IMP_KEY_VALUESOptional: No
Call by Reference: Yes
EXCEPTIONS details
INVALID_PARAMETER - Errors in passing parameters
Data type:Optional: No
Call by Reference: Yes
IMP_COMPONENT_ERROR -
Data type:Optional: No
Call by Reference: Yes
NO_UPLREF -
Data type:Optional: No
Call by Reference: Yes
NO_VALID_SERVICE -
Data type:Optional: No
Call by Reference: Yes
NO_VALID_EXAM -
Data type:Optional: No
Call by Reference: Yes
MULTIPLE_VALID_EXAM -
Data type:Optional: No
Call by Reference: Yes
NO_VALID_TABNAME -
Data type:Optional: No
Call by Reference: Yes
NO_VALID_IMPORT_DATA_TAB -
Data type:Optional: No
Call by Reference: Yes
IMPORT_DIALOG_ERROR -
Data type:Optional: No
Call by Reference: Yes
BADI_IMPL_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for EHS00MDATAUPL_IMPORT 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_iv_srv_number | TYPE EHS00_SRVNUMBER, " | |||
| lv_et_import_data | TYPE ANY, " | |||
| lv_invalid_parameter | TYPE ANY, " | |||
| lv_iv_flg_applog | TYPE ESP1_BOOLEAN, " 'X' | |||
| lv_imp_component_error | TYPE ESP1_BOOLEAN, " | |||
| lv_iv_flg_file_dialog | TYPE ESP1_BOOLEAN, " 'X' | |||
| lv_it_import_data | TYPE ANY, " | |||
| lv_iv_flg_result_dialog | TYPE ESP1_BOOLEAN, " 'X' | |||
| lv_no_uplref | TYPE ESP1_BOOLEAN, " | |||
| lv_et_db_data | TYPE ANY, " | |||
| lv_iv_exam_group | TYPE EHS00_EGROUP, " | |||
| lv_es_exam | TYPE T7EHS00_EGROUP, " | |||
| lv_iv_exam_code | TYPE EHS00_ECODE, " | |||
| lv_no_valid_service | TYPE EHS00_ECODE, " | |||
| lv_ev_flg_error | TYPE ESP1_BOOLEAN, " | |||
| lv_iv_exam_count | TYPE EHS00_EXAMCOUNT, " | |||
| lv_no_valid_exam | TYPE EHS00_EXAMCOUNT, " | |||
| lv_iv_test_no | TYPE EHS00_TESTNO, " | |||
| lv_et_messages | TYPE EHS00Y_EXAM_IMP_KEY_VALUES, " | |||
| lv_multiple_valid_exam | TYPE EHS00Y_EXAM_IMP_KEY_VALUES, " | |||
| lv_no_valid_tabname | TYPE EHS00Y_EXAM_IMP_KEY_VALUES, " | |||
| lv_iv_exam_imp_dbtab_name | TYPE EHS00E_EXAM_IMP_DBTAB, " | |||
| lv_iv_exam_imp_struc_name | TYPE EHS00E_EXAM_IMP_STRUC, " | |||
| lv_no_valid_import_data_tab | TYPE EHS00E_EXAM_IMP_STRUC, " | |||
| lv_import_dialog_error | TYPE EHS00E_EXAM_IMP_STRUC, " | |||
| lv_iv_exam_imp_ttyp_name | TYPE EHS00E_EXAM_IMP_TTYP, " | |||
| lv_badi_impl_error | TYPE EHS00E_EXAM_IMP_TTYP, " | |||
| lv_iv_exam_imp_separator | TYPE EHS00E_EXAM_IMP_SEPARATOR. " |
|   CALL FUNCTION 'EHS00MDATAUPL_IMPORT' " |
| EXPORTING | ||
| IV_SRV_NUMBER | = lv_iv_srv_number | |
| IV_FLG_APPLOG | = lv_iv_flg_applog | |
| IV_FLG_FILE_DIALOG | = lv_iv_flg_file_dialog | |
| IT_IMPORT_DATA | = lv_it_import_data | |
| IV_FLG_RESULT_DIALOG | = lv_iv_flg_result_dialog | |
| IV_EXAM_GROUP | = lv_iv_exam_group | |
| IV_EXAM_CODE | = lv_iv_exam_code | |
| IV_EXAM_COUNT | = lv_iv_exam_count | |
| IV_TEST_NO | = lv_iv_test_no | |
| IV_EXAM_IMP_DBTAB_NAME | = lv_iv_exam_imp_dbtab_name | |
| IV_EXAM_IMP_STRUC_NAME | = lv_iv_exam_imp_struc_name | |
| IV_EXAM_IMP_TTYP_NAME | = lv_iv_exam_imp_ttyp_name | |
| IV_EXAM_IMP_SEPARATOR | = lv_iv_exam_imp_separator | |
| IMPORTING | ||
| ET_IMPORT_DATA | = lv_et_import_data | |
| ET_DB_DATA | = lv_et_db_data | |
| ES_EXAM | = lv_es_exam | |
| EV_FLG_ERROR | = lv_ev_flg_error | |
| ET_MESSAGES | = lv_et_messages | |
| EXCEPTIONS | ||
| INVALID_PARAMETER = 1 | ||
| IMP_COMPONENT_ERROR = 10 | ||
| NO_UPLREF = 2 | ||
| NO_VALID_SERVICE = 3 | ||
| NO_VALID_EXAM = 4 | ||
| MULTIPLE_VALID_EXAM = 5 | ||
| NO_VALID_TABNAME = 6 | ||
| NO_VALID_IMPORT_DATA_TAB = 7 | ||
| IMPORT_DIALOG_ERROR = 8 | ||
| BADI_IMPL_ERROR = 9 | ||
| . " EHS00MDATAUPL_IMPORT | ||
ABAP code using 7.40 inline data declarations to call FM EHS00MDATAUPL_IMPORT
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_iv_flg_applog) | = 'X'. | |||
| DATA(ld_iv_flg_file_dialog) | = 'X'. | |||
| DATA(ld_iv_flg_result_dialog) | = 'X'. | |||
Search for further information about these or an SAP related objects