SAP FUNCTION_IMPORT_DOKU Function Module for









FUNCTION_IMPORT_DOKU is a standard function import doku 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 function import doku FM, simply by entering the name FUNCTION_IMPORT_DOKU into the relevant SAP transaction such as SE37 or SE38.

Function Group: SUNI
Program Name: SAPLSUNI
Main Program: SAPLSUNI
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function FUNCTION_IMPORT_DOKU 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 'FUNCTION_IMPORT_DOKU'"
EXPORTING
FUNCNAME = "Name of the function module
* LANGUAGE = SY-LANGU "SAP R/3 System, Current Language
* WITH_ENHANCEMENTS = 'X' "
* IGNORE_SWITCHES = ' ' "

IMPORTING
GLOBAL_FLAG = "Global interface
REMOTE_CALL = "Function module can be called with
UPDATE_TASK = "Function module luft in the update
SHORT_TEXT = "Short text for function module
FREEDATE = "
EXCEPTION_CLASS = "
REMOTE_BASXML_SUPPORTED = "

TABLES
DOKUMENTATION = "Short description of parameters
* ENHA_TBL_PARAMETER = "
* ENHA_DOKUMENTATION = "
EXCEPTION_LIST = "Table of exceptions
EXPORT_PARAMETER = "Table of export parameters
IMPORT_PARAMETER = "Table of import parameters
* CHANGING_PARAMETER = "
TABLES_PARAMETER = "Table of tables
* ENHA_EXP_PARAMETER = "
* ENHA_IMP_PARAMETER = "
* ENHA_CHA_PARAMETER = "

EXCEPTIONS
ERROR_MESSAGE = 1 FUNCTION_NOT_FOUND = 2 INVALID_NAME = 3
.



IMPORTING Parameters details for FUNCTION_IMPORT_DOKU

FUNCNAME - Name of the function module

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

LANGUAGE - SAP R/3 System, Current Language

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

WITH_ENHANCEMENTS -

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

IGNORE_SWITCHES -

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

EXPORTING Parameters details for FUNCTION_IMPORT_DOKU

GLOBAL_FLAG - Global interface

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

REMOTE_CALL - Function module can be called with

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

UPDATE_TASK - Function module luft in the update

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

SHORT_TEXT - Short text for function module

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

FREEDATE -

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

EXCEPTION_CLASS -

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

REMOTE_BASXML_SUPPORTED -

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

TABLES Parameters details for FUNCTION_IMPORT_DOKU

DOKUMENTATION - Short description of parameters

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

ENHA_TBL_PARAMETER -

Data type: RSTBL
Optional: Yes
Call by Reference: Yes

ENHA_DOKUMENTATION -

Data type: FUNCT
Optional: Yes
Call by Reference: Yes

EXCEPTION_LIST - Table of exceptions

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

EXPORT_PARAMETER - Table of export parameters

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

IMPORT_PARAMETER - Table of import parameters

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

CHANGING_PARAMETER -

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

TABLES_PARAMETER - Table of tables

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

ENHA_EXP_PARAMETER -

Data type: RSEXC
Optional: Yes
Call by Reference: Yes

ENHA_IMP_PARAMETER -

Data type: RSIMP
Optional: Yes
Call by Reference: Yes

ENHA_CHA_PARAMETER -

Data type: RSCHA
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

ERROR_MESSAGE - X

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

FUNCTION_NOT_FOUND - Function module does not exist

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

INVALID_NAME - Invalid function module

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

Copy and paste ABAP code example for FUNCTION_IMPORT_DOKU 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_funcname  TYPE RS38L-NAME, "   
lv_global_flag  TYPE RS38L-GLOBAL, "   
lt_dokumentation  TYPE STANDARD TABLE OF FUNCT, "   
lv_error_message  TYPE FUNCT, "   
lt_enha_tbl_parameter  TYPE STANDARD TABLE OF RSTBL, "   
lt_enha_dokumentation  TYPE STANDARD TABLE OF FUNCT, "   
lv_language  TYPE SY-LANGU, "   SY-LANGU
lv_remote_call  TYPE RS38L-REMOTE, "   
lt_exception_list  TYPE STANDARD TABLE OF RSEXC, "   
lv_function_not_found  TYPE RSEXC, "   
lv_update_task  TYPE RS38L-UTASK, "   
lv_invalid_name  TYPE RS38L, "   
lt_export_parameter  TYPE STANDARD TABLE OF RSEXP, "   
lv_with_enhancements  TYPE CHAR1, "   'X'
lv_short_text  TYPE TFTIT-STEXT, "   
lv_ignore_switches  TYPE CHAR1, "   SPACE
lt_import_parameter  TYPE STANDARD TABLE OF RSIMP, "   
lv_freedate  TYPE ENLFDIR-FREEDATE, "   
lt_changing_parameter  TYPE STANDARD TABLE OF RSCHA, "   
lv_exception_class  TYPE ENLFDIR-EXTEN3, "   
lt_tables_parameter  TYPE STANDARD TABLE OF RSTBL, "   
lt_enha_exp_parameter  TYPE STANDARD TABLE OF RSEXC, "   
lv_remote_basxml_supported  TYPE RS38L-BASXML_ENABLED, "   
lt_enha_imp_parameter  TYPE STANDARD TABLE OF RSIMP, "   
lt_enha_cha_parameter  TYPE STANDARD TABLE OF RSCHA. "   

  CALL FUNCTION 'FUNCTION_IMPORT_DOKU'  "
    EXPORTING
         FUNCNAME = lv_funcname
         LANGUAGE = lv_language
         WITH_ENHANCEMENTS = lv_with_enhancements
         IGNORE_SWITCHES = lv_ignore_switches
    IMPORTING
         GLOBAL_FLAG = lv_global_flag
         REMOTE_CALL = lv_remote_call
         UPDATE_TASK = lv_update_task
         SHORT_TEXT = lv_short_text
         FREEDATE = lv_freedate
         EXCEPTION_CLASS = lv_exception_class
         REMOTE_BASXML_SUPPORTED = lv_remote_basxml_supported
    TABLES
         DOKUMENTATION = lt_dokumentation
         ENHA_TBL_PARAMETER = lt_enha_tbl_parameter
         ENHA_DOKUMENTATION = lt_enha_dokumentation
         EXCEPTION_LIST = lt_exception_list
         EXPORT_PARAMETER = lt_export_parameter
         IMPORT_PARAMETER = lt_import_parameter
         CHANGING_PARAMETER = lt_changing_parameter
         TABLES_PARAMETER = lt_tables_parameter
         ENHA_EXP_PARAMETER = lt_enha_exp_parameter
         ENHA_IMP_PARAMETER = lt_enha_imp_parameter
         ENHA_CHA_PARAMETER = lt_enha_cha_parameter
    EXCEPTIONS
        ERROR_MESSAGE = 1
        FUNCTION_NOT_FOUND = 2
        INVALID_NAME = 3
. " FUNCTION_IMPORT_DOKU




ABAP code using 7.40 inline data declarations to call FM FUNCTION_IMPORT_DOKU

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 NAME FROM RS38L INTO @DATA(ld_funcname).
 
"SELECT single GLOBAL FROM RS38L INTO @DATA(ld_global_flag).
 
 
 
 
 
"SELECT single LANGU FROM SY INTO @DATA(ld_language).
DATA(ld_language) = SY-LANGU.
 
"SELECT single REMOTE FROM RS38L INTO @DATA(ld_remote_call).
 
 
 
"SELECT single UTASK FROM RS38L INTO @DATA(ld_update_task).
 
 
 
DATA(ld_with_enhancements) = 'X'.
 
"SELECT single STEXT FROM TFTIT INTO @DATA(ld_short_text).
 
DATA(ld_ignore_switches) = ' '.
 
 
"SELECT single FREEDATE FROM ENLFDIR INTO @DATA(ld_freedate).
 
 
"SELECT single EXTEN3 FROM ENLFDIR INTO @DATA(ld_exception_class).
 
 
 
"SELECT single BASXML_ENABLED FROM RS38L INTO @DATA(ld_remote_basxml_supported).
 
 
 


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!