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

Function EHHSS_API_FSI_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 'EHHSS_API_FSI_IMPORT'"Import API for Safety Instructions.
EXPORTING
* IV_TEST_MODE = ABAP_TRUE "Run in Test mode
IT_ROOT = "Root table API import of Safety Instructions
* IT_FACTORYAREAS = "Factory area table API import of Safety Instructions
* IT_BUILDINGS = "building table API import of Safety Instructions
IT_CHAPTERS = "Chapter table API import of Safety Instructions
* IT_IMAGES = "Image table API import of Safety Instructions
* IT_JOBS = "Job table API import of Safety Instructions
* IT_PRODUCTION = "Production table API import of Safety Instructions
* IT_EQUIPMENTS = "Equipment table API import of Safety Instructions
IMPORTING
ET_MESSAGE = "Return message table
ET_MAP_ROOT_MIGR = "
IMPORTING Parameters details for EHHSS_API_FSI_IMPORT
IV_TEST_MODE - Run in Test mode
Data type: EHFND_BOOLEANDefault: ABAP_TRUE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IT_ROOT - Root table API import of Safety Instructions
Data type: EHHSST_FSI_API_IMPORT_ROOTOptional: No
Call by Reference: Yes
IT_FACTORYAREAS - Factory area table API import of Safety Instructions
Data type: EHHSST_FSI_API_IMPORT_FAAREAOptional: Yes
Call by Reference: Yes
IT_BUILDINGS - building table API import of Safety Instructions
Data type: EHHSST_FSI_API_IMPORT_BLDOptional: Yes
Call by Reference: Yes
IT_CHAPTERS - Chapter table API import of Safety Instructions
Data type: EHHSST_FSI_API_IMPORT_CHPTROptional: No
Call by Reference: Yes
IT_IMAGES - Image table API import of Safety Instructions
Data type: EHHSST_FSI_API_IMPORT_IMGOptional: Yes
Call by Reference: Yes
IT_JOBS - Job table API import of Safety Instructions
Data type: EHHSST_FSI_API_IMPORT_JOBOptional: Yes
Call by Reference: Yes
IT_PRODUCTION - Production table API import of Safety Instructions
Data type: EHHSST_FSI_API_IMPORT_PRDOptional: Yes
Call by Reference: Yes
IT_EQUIPMENTS - Equipment table API import of Safety Instructions
Data type: EHHSST_FSI_API_IMPORT_EQPOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for EHHSS_API_FSI_IMPORT
ET_MESSAGE - Return message table
Data type: FS4MIG_T_BAPIRET2Optional: No
Call by Reference: Yes
ET_MAP_ROOT_MIGR -
Data type: EHFNDT_S4_MIGR_SRC_TGT_MAPOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for EHHSS_API_FSI_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_et_message | TYPE FS4MIG_T_BAPIRET2, " | |||
| lv_iv_test_mode | TYPE EHFND_BOOLEAN, " ABAP_TRUE | |||
| lv_it_root | TYPE EHHSST_FSI_API_IMPORT_ROOT, " | |||
| lv_et_map_root_migr | TYPE EHFNDT_S4_MIGR_SRC_TGT_MAP, " | |||
| lv_it_factoryareas | TYPE EHHSST_FSI_API_IMPORT_FAAREA, " | |||
| lv_it_buildings | TYPE EHHSST_FSI_API_IMPORT_BLD, " | |||
| lv_it_chapters | TYPE EHHSST_FSI_API_IMPORT_CHPTR, " | |||
| lv_it_images | TYPE EHHSST_FSI_API_IMPORT_IMG, " | |||
| lv_it_jobs | TYPE EHHSST_FSI_API_IMPORT_JOB, " | |||
| lv_it_production | TYPE EHHSST_FSI_API_IMPORT_PRD, " | |||
| lv_it_equipments | TYPE EHHSST_FSI_API_IMPORT_EQP. " |
|   CALL FUNCTION 'EHHSS_API_FSI_IMPORT' "Import API for Safety Instructions |
| EXPORTING | ||
| IV_TEST_MODE | = lv_iv_test_mode | |
| IT_ROOT | = lv_it_root | |
| IT_FACTORYAREAS | = lv_it_factoryareas | |
| IT_BUILDINGS | = lv_it_buildings | |
| IT_CHAPTERS | = lv_it_chapters | |
| IT_IMAGES | = lv_it_images | |
| IT_JOBS | = lv_it_jobs | |
| IT_PRODUCTION | = lv_it_production | |
| IT_EQUIPMENTS | = lv_it_equipments | |
| IMPORTING | ||
| ET_MESSAGE | = lv_et_message | |
| ET_MAP_ROOT_MIGR | = lv_et_map_root_migr | |
| . " EHHSS_API_FSI_IMPORT | ||
ABAP code using 7.40 inline data declarations to call FM EHHSS_API_FSI_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_test_mode) | = ABAP_TRUE. | |||
Search for further information about these or an SAP related objects