SAP EXPIMP_GENERAL_DATA_MAINTAIN Function Module for NOTRANSL: Pflege Kopfdaten Export/Import









EXPIMP_GENERAL_DATA_MAINTAIN is a standard expimp general data maintain 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: Pflege Kopfdaten Export/Import 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 expimp general data maintain FM, simply by entering the name EXPIMP_GENERAL_DATA_MAINTAIN into the relevant SAP transaction such as SE37 or SE38.

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



Function EXPIMP_GENERAL_DATA_MAINTAIN 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 'EXPIMP_GENERAL_DATA_MAINTAIN'"NOTRANSL: Pflege Kopfdaten Export/Import
EXPORTING
EXNUM = "Internal identification of export data
* I_INTERNET = "
* I_STAT_COMPLETE_MANDATORY = ' ' "
* I_REDUCED_UI = ' ' "
HLAND = "Country of the exporting/importing company
* LAND = ' ' "Country of the partner for display
* NAME1 = ' ' "Name of the partner for display
* PARTNER = ' ' "Identification of the partner for display
TRTYP = "Transaction type
* I_AUSFU = ' ' "
* I_AUSFU_WERKS = ' ' "
* I_FT_BASIS = ' ' "

IMPORTING
COMPLETE = "Indicator whether export/import data are complete
K_FLAG = "Flag: Header Level
NEXNUM = "Reassigned ID of Export Data
E_DATALOSS = "Flag: Dialog - Data Loss
E_FCODE = "Function Code

TABLES
* I_T_XVBRP = "

EXCEPTIONS
NO_EXPORT_DATA = 1
.




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 EXPIMP_GENERAL_DATA_MAINTAIN

EXNUM - Internal identification of export data

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

I_INTERNET -

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

I_STAT_COMPLETE_MANDATORY -

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

I_REDUCED_UI -

Data type: XFELD
Default: ' '
Optional: Yes
Call by Reference: Yes

HLAND - Country of the exporting/importing company

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

LAND - Country of the partner for display

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

NAME1 - Name of the partner for display

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

PARTNER - Identification of the partner for display

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

TRTYP - Transaction type

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

I_AUSFU -

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

I_AUSFU_WERKS -

Data type: T001W-WERKS
Default: ' '
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)

EXPORTING Parameters details for EXPIMP_GENERAL_DATA_MAINTAIN

COMPLETE - Indicator whether export/import data are complete

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

K_FLAG - Flag: Header Level

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

NEXNUM - Reassigned ID of Export Data

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)

E_FCODE - Function Code

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

TABLES Parameters details for EXPIMP_GENERAL_DATA_MAINTAIN

I_T_XVBRP -

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

EXCEPTIONS details

NO_EXPORT_DATA - There is no export data

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

Copy and paste ABAP code example for EXPIMP_GENERAL_DATA_MAINTAIN 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, "   
lt_i_t_xvbrp  TYPE STANDARD TABLE OF VBRPVB, "   
lv_no_export_data  TYPE VBRPVB, "   
lv_i_internet  TYPE C, "   
lv_i_stat_complete_mandatory  TYPE C, "   ' '
lv_i_reduced_ui  TYPE XFELD, "   ' '
lv_hland  TYPE T001W-LAND1, "   
lv_k_flag  TYPE RL50E-K_FLAG, "   
lv_land  TYPE KNA1-LAND1, "   ' '
lv_nexnum  TYPE EIKP-EXNUM, "   
lv_name1  TYPE KNA1-NAME1, "   ' '
lv_e_dataloss  TYPE R185D-DATALOSS, "   
lv_e_fcode  TYPE SY-UCOMM, "   
lv_partner  TYPE KNA1-KUNNR, "   ' '
lv_trtyp  TYPE T180-TRTYP, "   
lv_i_ausfu  TYPE EKKO-LIFNR, "   ' '
lv_i_ausfu_werks  TYPE T001W-WERKS, "   ' '
lv_i_ft_basis  TYPE EIKP-AHBAS. "   ' '

  CALL FUNCTION 'EXPIMP_GENERAL_DATA_MAINTAIN'  "NOTRANSL: Pflege Kopfdaten Export/Import
    EXPORTING
         EXNUM = lv_exnum
         I_INTERNET = lv_i_internet
         I_STAT_COMPLETE_MANDATORY = lv_i_stat_complete_mandatory
         I_REDUCED_UI = lv_i_reduced_ui
         HLAND = lv_hland
         LAND = lv_land
         NAME1 = lv_name1
         PARTNER = lv_partner
         TRTYP = lv_trtyp
         I_AUSFU = lv_i_ausfu
         I_AUSFU_WERKS = lv_i_ausfu_werks
         I_FT_BASIS = lv_i_ft_basis
    IMPORTING
         COMPLETE = lv_complete
         K_FLAG = lv_k_flag
         NEXNUM = lv_nexnum
         E_DATALOSS = lv_e_dataloss
         E_FCODE = lv_e_fcode
    TABLES
         I_T_XVBRP = lt_i_t_xvbrp
    EXCEPTIONS
        NO_EXPORT_DATA = 1
. " EXPIMP_GENERAL_DATA_MAINTAIN




ABAP code using 7.40 inline data declarations to call FM EXPIMP_GENERAL_DATA_MAINTAIN

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_stat_complete_mandatory) = ' '.
 
DATA(ld_i_reduced_ui) = ' '.
 
"SELECT single LAND1 FROM T001W INTO @DATA(ld_hland).
 
"SELECT single K_FLAG FROM RL50E INTO @DATA(ld_k_flag).
 
"SELECT single LAND1 FROM KNA1 INTO @DATA(ld_land).
DATA(ld_land) = ' '.
 
"SELECT single EXNUM FROM EIKP INTO @DATA(ld_nexnum).
 
"SELECT single NAME1 FROM KNA1 INTO @DATA(ld_name1).
DATA(ld_name1) = ' '.
 
"SELECT single DATALOSS FROM R185D INTO @DATA(ld_e_dataloss).
 
"SELECT single UCOMM FROM SY INTO @DATA(ld_e_fcode).
 
"SELECT single KUNNR FROM KNA1 INTO @DATA(ld_partner).
DATA(ld_partner) = ' '.
 
"SELECT single TRTYP FROM T180 INTO @DATA(ld_trtyp).
 
"SELECT single LIFNR FROM EKKO INTO @DATA(ld_i_ausfu).
DATA(ld_i_ausfu) = ' '.
 
"SELECT single WERKS FROM T001W INTO @DATA(ld_i_ausfu_werks).
DATA(ld_i_ausfu_werks) = ' '.
 
"SELECT single AHBAS FROM EIKP INTO @DATA(ld_i_ft_basis).
DATA(ld_i_ft_basis) = ' '.
 


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!