SAP IMPORT_DETERMINE Function Module for NOTRANSL: Ermittlung importrelevanter Vorgang
IMPORT_DETERMINE is a standard import determine SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Ermittlung importrelevanter Vorgang 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 import determine FM, simply by entering the name IMPORT_DETERMINE into the relevant SAP transaction such as SE37 or SE38.
Function Group: V50EI
Program Name: SAPLV50EI
Main Program: SAPLV50EI
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function IMPORT_DETERMINE 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 'IMPORT_DETERMINE'"NOTRANSL: Ermittlung importrelevanter Vorgang.
EXPORTING
I_AHBAS = "FT basis doc. cat.
I_MODE = "
* I_FT_TRANSACT = ' ' "
* I_T001 = "Client table
* I_LFA1 = "Vendor Master
* I_EKKO = "Purchasing Document Header
* I_T160 = "SAP Transaction Control, Purchasing
* I_S_MSEG = "Foreign Trade: Determination Import Process - Basic Data GR
IMPORTING
XEGIMP = "
IMPORT = "Copy import data
EGIMP = "
E_IMPORT_PROCESS = "
E_DATA_DETERMINE = "
EXCEPTIONS
NO_WORKING_AREA = 1 NO_IMPORT_ALLOWED = 2 DIFFERENT_ORG_ENTITIES = 3 NO_IMPORT_COUNTRY = 4 NO_EXPORT_COUNTRY = 5
IMPORTING Parameters details for IMPORT_DETERMINE
I_AHBAS - FT basis doc. cat.
Data type: EIKP-AHBASOptional: No
Call by Reference: No ( called with pass by value option)
I_MODE -
Data type: T158-TRTYPOptional: No
Call by Reference: No ( called with pass by value option)
I_FT_TRANSACT -
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_T001 - Client table
Data type: T001Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LFA1 - Vendor Master
Data type: LFA1Optional: Yes
Call by Reference: No ( called with pass by value option)
I_EKKO - Purchasing Document Header
Data type: EKKOOptional: Yes
Call by Reference: No ( called with pass by value option)
I_T160 - SAP Transaction Control, Purchasing
Data type: T160Optional: Yes
Call by Reference: No ( called with pass by value option)
I_S_MSEG - Foreign Trade: Determination Import Process - Basic Data GR
Data type: IMP_S_MSEGOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for IMPORT_DETERMINE
XEGIMP -
Data type: T001-IMPDAOptional: No
Call by Reference: No ( called with pass by value option)
IMPORT - Copy import data
Data type: T001-IMPDAOptional: No
Call by Reference: No ( called with pass by value option)
EGIMP -
Data type: T001-IMPDAOptional: No
Call by Reference: No ( called with pass by value option)
E_IMPORT_PROCESS -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
E_DATA_DETERMINE -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_WORKING_AREA -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_IMPORT_ALLOWED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DIFFERENT_ORG_ENTITIES -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_IMPORT_COUNTRY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_EXPORT_COUNTRY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for IMPORT_DETERMINE 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_xegimp | TYPE T001-IMPDA, " | |||
| lv_i_ahbas | TYPE EIKP-AHBAS, " | |||
| lv_no_working_area | TYPE EIKP, " | |||
| lv_import | TYPE T001-IMPDA, " | |||
| lv_i_mode | TYPE T158-TRTYP, " | |||
| lv_no_import_allowed | TYPE T158, " | |||
| lv_egimp | TYPE T001-IMPDA, " | |||
| lv_i_ft_transact | TYPE T001, " ' ' | |||
| lv_different_org_entities | TYPE T001, " | |||
| lv_i_t001 | TYPE T001, " | |||
| lv_e_import_process | TYPE C, " | |||
| lv_no_import_country | TYPE C, " | |||
| lv_i_lfa1 | TYPE LFA1, " | |||
| lv_e_data_determine | TYPE C, " | |||
| lv_no_export_country | TYPE C, " | |||
| lv_i_ekko | TYPE EKKO, " | |||
| lv_i_t160 | TYPE T160, " | |||
| lv_i_s_mseg | TYPE IMP_S_MSEG. " |
|   CALL FUNCTION 'IMPORT_DETERMINE' "NOTRANSL: Ermittlung importrelevanter Vorgang |
| EXPORTING | ||
| I_AHBAS | = lv_i_ahbas | |
| I_MODE | = lv_i_mode | |
| I_FT_TRANSACT | = lv_i_ft_transact | |
| I_T001 | = lv_i_t001 | |
| I_LFA1 | = lv_i_lfa1 | |
| I_EKKO | = lv_i_ekko | |
| I_T160 | = lv_i_t160 | |
| I_S_MSEG | = lv_i_s_mseg | |
| IMPORTING | ||
| XEGIMP | = lv_xegimp | |
| IMPORT | = lv_import | |
| EGIMP | = lv_egimp | |
| E_IMPORT_PROCESS | = lv_e_import_process | |
| E_DATA_DETERMINE | = lv_e_data_determine | |
| EXCEPTIONS | ||
| NO_WORKING_AREA = 1 | ||
| NO_IMPORT_ALLOWED = 2 | ||
| DIFFERENT_ORG_ENTITIES = 3 | ||
| NO_IMPORT_COUNTRY = 4 | ||
| NO_EXPORT_COUNTRY = 5 | ||
| . " IMPORT_DETERMINE | ||
ABAP code using 7.40 inline data declarations to call FM IMPORT_DETERMINE
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 IMPDA FROM T001 INTO @DATA(ld_xegimp). | ||||
| "SELECT single AHBAS FROM EIKP INTO @DATA(ld_i_ahbas). | ||||
| "SELECT single IMPDA FROM T001 INTO @DATA(ld_import). | ||||
| "SELECT single TRTYP FROM T158 INTO @DATA(ld_i_mode). | ||||
| "SELECT single IMPDA FROM T001 INTO @DATA(ld_egimp). | ||||
| DATA(ld_i_ft_transact) | = ' '. | |||
Search for further information about these or an SAP related objects