SAP IMPORT_ITEM_DATA_PROPOSE Function Module for NOTRANSL: Vorschlag von Importdaten für die Position









IMPORT_ITEM_DATA_PROPOSE is a standard import item data propose 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: Vorschlag von Importdaten für die Position 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 item data propose FM, simply by entering the name IMPORT_ITEM_DATA_PROPOSE into the relevant SAP transaction such as SE37 or SE38.

Function Group: V50E
Program Name: SAPLV50E
Main Program: SAPLV50E
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function IMPORT_ITEM_DATA_PROPOSE 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_ITEM_DATA_PROPOSE'"NOTRANSL: Vorschlag von Importdaten für die Position
EXPORTING
EXNUM = "Internal identification of import segments
* I_EINA = ' ' "Purchasing Info Record: General Data
* I_EINE = ' ' "Purchasing Info Record - Purchasing Organization Data
* I_EKPO = ' ' "
* I_EKKO = ' ' "
* I_FT_BASIS = ' ' "
* I_VERLD = ' ' "Country of dispatch
EXPOS = "Line item number of the import seg
HLAND = "Local country of the importing com
* I_EXART = ' ' "Business transaction type
* I_EXPRF = ' ' "Import proced.
* I_HERKL = ' ' "Country of Departure
* I_HERKR = ' ' "Region of origin
* I_STAWN = ' ' "Commodity code
* I_T001W = ' ' "

IMPORTING
COMPLETE = "Indicator whether import data is complete
NEXNUM = "Internal identification of import segments
E_DATALOSS = "Flag: Dialog - Data Loss
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLV50E_001 SD documents - Header: User exit for default of Foreign Trade header data
EXIT_SAPLV50E_002 MM documents - header: User exit for default of import header data
EXIT_SAPLV50E_003 SD documents - Item: User exit for export item data default
EXIT_SAPLV50E_004 MM document - Item: User exit for import item data default
EXIT_SAPLV50E_005 Foreign Trade data - Header: User exit: Check completeness of data
EXIT_SAPLV50E_006 Foreign Trade data - Item: User exit - Check completeness of data

IMPORTING Parameters details for IMPORT_ITEM_DATA_PROPOSE

EXNUM - Internal identification of import segments

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

I_EINA - Purchasing Info Record: General Data

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

I_EINE - Purchasing Info Record - Purchasing Organization Data

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

I_EKPO -

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

I_EKKO -

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

I_FT_BASIS -

Data type: EIKP-AHBAS
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_VERLD - Country of dispatch

Data type: EIPO-VERLD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPOS - Line item number of the import seg

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

HLAND - Local country of the importing com

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

I_EXART - Business transaction type

Data type: EIPO-EXART
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_EXPRF - Import proced.

Data type: EIPO-EXPRF
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_HERKL - Country of Departure

Data type: EIPO-HERKL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_HERKR - Region of origin

Data type: EIPO-HERKR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_STAWN - Commodity code

Data type: EIPO-STAWN
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_T001W -

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

EXPORTING Parameters details for IMPORT_ITEM_DATA_PROPOSE

COMPLETE - Indicator whether import data is complete

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

NEXNUM - Internal identification of import segments

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

E_DATALOSS - Flag: Dialog - Data Loss

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

Copy and paste ABAP code example for IMPORT_ITEM_DATA_PROPOSE 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_exnum  TYPE EIKP-EXNUM, "   
lv_complete  TYPE VBUP-UVALL, "   
lv_i_eina  TYPE EINA, "   SPACE
lv_i_eine  TYPE EINE, "   SPACE
lv_i_ekpo  TYPE EKPO, "   SPACE
lv_i_ekko  TYPE EKKO, "   SPACE
lv_i_ft_basis  TYPE EIKP-AHBAS, "   ' '
lv_i_verld  TYPE EIPO-VERLD, "   SPACE
lv_expos  TYPE EIPO-EXPOS, "   
lv_nexnum  TYPE EIKP-EXNUM, "   
lv_hland  TYPE T001W-LAND1, "   
lv_e_dataloss  TYPE R185D-DATALOSS, "   
lv_i_exart  TYPE EIPO-EXART, "   SPACE
lv_i_exprf  TYPE EIPO-EXPRF, "   SPACE
lv_i_herkl  TYPE EIPO-HERKL, "   SPACE
lv_i_herkr  TYPE EIPO-HERKR, "   SPACE
lv_i_stawn  TYPE EIPO-STAWN, "   SPACE
lv_i_t001w  TYPE T001W. "   SPACE

  CALL FUNCTION 'IMPORT_ITEM_DATA_PROPOSE'  "NOTRANSL: Vorschlag von Importdaten für die Position
    EXPORTING
         EXNUM = lv_exnum
         I_EINA = lv_i_eina
         I_EINE = lv_i_eine
         I_EKPO = lv_i_ekpo
         I_EKKO = lv_i_ekko
         I_FT_BASIS = lv_i_ft_basis
         I_VERLD = lv_i_verld
         EXPOS = lv_expos
         HLAND = lv_hland
         I_EXART = lv_i_exart
         I_EXPRF = lv_i_exprf
         I_HERKL = lv_i_herkl
         I_HERKR = lv_i_herkr
         I_STAWN = lv_i_stawn
         I_T001W = lv_i_t001w
    IMPORTING
         COMPLETE = lv_complete
         NEXNUM = lv_nexnum
         E_DATALOSS = lv_e_dataloss
. " IMPORT_ITEM_DATA_PROPOSE




ABAP code using 7.40 inline data declarations to call FM IMPORT_ITEM_DATA_PROPOSE

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 EXNUM FROM EIKP INTO @DATA(ld_exnum).
 
"SELECT single UVALL FROM VBUP INTO @DATA(ld_complete).
 
DATA(ld_i_eina) = ' '.
 
DATA(ld_i_eine) = ' '.
 
DATA(ld_i_ekpo) = ' '.
 
DATA(ld_i_ekko) = ' '.
 
"SELECT single AHBAS FROM EIKP INTO @DATA(ld_i_ft_basis).
DATA(ld_i_ft_basis) = ' '.
 
"SELECT single VERLD FROM EIPO INTO @DATA(ld_i_verld).
DATA(ld_i_verld) = ' '.
 
"SELECT single EXPOS FROM EIPO INTO @DATA(ld_expos).
 
"SELECT single EXNUM FROM EIKP INTO @DATA(ld_nexnum).
 
"SELECT single LAND1 FROM T001W INTO @DATA(ld_hland).
 
"SELECT single DATALOSS FROM R185D INTO @DATA(ld_e_dataloss).
 
"SELECT single EXART FROM EIPO INTO @DATA(ld_i_exart).
DATA(ld_i_exart) = ' '.
 
"SELECT single EXPRF FROM EIPO INTO @DATA(ld_i_exprf).
DATA(ld_i_exprf) = ' '.
 
"SELECT single HERKL FROM EIPO INTO @DATA(ld_i_herkl).
DATA(ld_i_herkl) = ' '.
 
"SELECT single HERKR FROM EIPO INTO @DATA(ld_i_herkr).
DATA(ld_i_herkr) = ' '.
 
"SELECT single STAWN FROM EIPO INTO @DATA(ld_i_stawn).
DATA(ld_i_stawn) = ' '.
 
DATA(ld_i_t001w) = ' '.
 


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!