SAP FUNCTION_IMPORT_INTERFACE Function Module for Providing Interface of a Function Module
FUNCTION_IMPORT_INTERFACE is a standard function import interface SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Providing Interface of a Function Module 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 function import interface FM, simply by entering the name FUNCTION_IMPORT_INTERFACE 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_INTERFACE 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_INTERFACE'"Providing Interface of a Function Module.
EXPORTING
FUNCNAME = "Name of the function module
* INACTIVE_VERSION = ' ' "Reads inactive version according to worklist
* WITH_ENHANCEMENTS = 'X' "X = Enhancement Parameters Will Be Provided
* IGNORE_SWITCHES = ' ' "X = Switches Are Ignored
IMPORTING
GLOBAL_FLAG = "Global interface
REMOTE_CALL = "Function module can be called with
UPDATE_TASK = "Function module luft in the update
EXCEPTION_CLASSES = "Additional Attributes for Function Modules
REMOTE_BASXML_SUPPORTED = "BasXML Log
TABLES
EXCEPTION_LIST = "Table of exceptions
* ENHA_TBL_PARAMETER = "Table of ENHA Table Parameters
* ENHA_DOCU = "ENHA Parameter Documentation
EXPORT_PARAMETER = "Table of Export Parameters
IMPORT_PARAMETER = "Table of Import Parameters
* CHANGING_PARAMETER = "Table for Changing Parameters
TABLES_PARAMETER = "Table With Tables
* P_DOCU = "X
* ENHA_EXP_PARAMETER = "Table of ENHA Export Parameters
* ENHA_IMP_PARAMETER = "Table of ENHA Import Parameters
* ENHA_CHA_PARAMETER = "Table of ENHA Changing Parameters
EXCEPTIONS
ERROR_MESSAGE = 1 FUNCTION_NOT_FOUND = 2 INVALID_NAME = 3
IMPORTING Parameters details for FUNCTION_IMPORT_INTERFACE
FUNCNAME - Name of the function module
Data type: RS38L-NAMEOptional: No
Call by Reference: No ( called with pass by value option)
INACTIVE_VERSION - Reads inactive version according to worklist
Data type: CHAR1Default: SPACE
Optional: No
Call by Reference: No ( called with pass by value option)
WITH_ENHANCEMENTS - X = Enhancement Parameters Will Be Provided
Data type: CHAR1Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IGNORE_SWITCHES - X = Switches Are Ignored
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FUNCTION_IMPORT_INTERFACE
GLOBAL_FLAG - Global interface
Data type: RS38L-GLOBALOptional: No
Call by Reference: No ( called with pass by value option)
REMOTE_CALL - Function module can be called with
Data type: RS38L-REMOTEOptional: No
Call by Reference: No ( called with pass by value option)
UPDATE_TASK - Function module luft in the update
Data type: RS38L-UTASKOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTION_CLASSES - Additional Attributes for Function Modules
Data type: ENLFDIR-EXTEN3Optional: No
Call by Reference: No ( called with pass by value option)
REMOTE_BASXML_SUPPORTED - BasXML Log
Data type: RS38L-BASXML_ENABLEDOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FUNCTION_IMPORT_INTERFACE
EXCEPTION_LIST - Table of exceptions
Data type: RSEXCOptional: No
Call by Reference: No ( called with pass by value option)
ENHA_TBL_PARAMETER - Table of ENHA Table Parameters
Data type: RSTBLOptional: Yes
Call by Reference: Yes
ENHA_DOCU - ENHA Parameter Documentation
Data type: RSFDOOptional: Yes
Call by Reference: Yes
EXPORT_PARAMETER - Table of Export Parameters
Data type: RSEXPOptional: No
Call by Reference: No ( called with pass by value option)
IMPORT_PARAMETER - Table of Import Parameters
Data type: RSIMPOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING_PARAMETER - Table for Changing Parameters
Data type: RSCHAOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES_PARAMETER - Table With Tables
Data type: RSTBLOptional: No
Call by Reference: No ( called with pass by value option)
P_DOCU - X
Data type: RSFDOOptional: Yes
Call by Reference: No ( called with pass by value option)
ENHA_EXP_PARAMETER - Table of ENHA Export Parameters
Data type: RSEXPOptional: Yes
Call by Reference: Yes
ENHA_IMP_PARAMETER - Table of ENHA Import Parameters
Data type: RSIMPOptional: Yes
Call by Reference: Yes
ENHA_CHA_PARAMETER - Table of ENHA Changing Parameters
Data type: RSCHAOptional: 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_INTERFACE 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, " | |||
| lv_error_message | TYPE RS38L, " | |||
| lt_exception_list | TYPE STANDARD TABLE OF RSEXC, " | |||
| lt_enha_tbl_parameter | TYPE STANDARD TABLE OF RSTBL, " | |||
| lt_enha_docu | TYPE STANDARD TABLE OF RSFDO, " | |||
| lv_remote_call | TYPE RS38L-REMOTE, " | |||
| lt_export_parameter | TYPE STANDARD TABLE OF RSEXP, " | |||
| lv_inactive_version | TYPE CHAR1, " SPACE | |||
| lv_function_not_found | TYPE CHAR1, " | |||
| lv_update_task | TYPE RS38L-UTASK, " | |||
| lv_invalid_name | TYPE RS38L, " | |||
| lt_import_parameter | TYPE STANDARD TABLE OF RSIMP, " | |||
| lv_with_enhancements | TYPE CHAR1, " 'X' | |||
| lv_ignore_switches | TYPE CHAR1, " SPACE | |||
| lv_exception_classes | TYPE ENLFDIR-EXTEN3, " | |||
| lt_changing_parameter | TYPE STANDARD TABLE OF RSCHA, " | |||
| lt_tables_parameter | TYPE STANDARD TABLE OF RSTBL, " | |||
| lv_remote_basxml_supported | TYPE RS38L-BASXML_ENABLED, " | |||
| lt_p_docu | TYPE STANDARD TABLE OF RSFDO, " | |||
| lt_enha_exp_parameter | TYPE STANDARD TABLE OF RSEXP, " | |||
| lt_enha_imp_parameter | TYPE STANDARD TABLE OF RSIMP, " | |||
| lt_enha_cha_parameter | TYPE STANDARD TABLE OF RSCHA. " |
|   CALL FUNCTION 'FUNCTION_IMPORT_INTERFACE' "Providing Interface of a Function Module |
| EXPORTING | ||
| FUNCNAME | = lv_funcname | |
| INACTIVE_VERSION | = lv_inactive_version | |
| 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 | |
| EXCEPTION_CLASSES | = lv_exception_classes | |
| REMOTE_BASXML_SUPPORTED | = lv_remote_basxml_supported | |
| TABLES | ||
| EXCEPTION_LIST | = lt_exception_list | |
| ENHA_TBL_PARAMETER | = lt_enha_tbl_parameter | |
| ENHA_DOCU | = lt_enha_docu | |
| EXPORT_PARAMETER | = lt_export_parameter | |
| IMPORT_PARAMETER | = lt_import_parameter | |
| CHANGING_PARAMETER | = lt_changing_parameter | |
| TABLES_PARAMETER | = lt_tables_parameter | |
| P_DOCU | = lt_p_docu | |
| 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_INTERFACE | ||
ABAP code using 7.40 inline data declarations to call FM FUNCTION_IMPORT_INTERFACE
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 REMOTE FROM RS38L INTO @DATA(ld_remote_call). | ||||
| DATA(ld_inactive_version) | = ' '. | |||
| "SELECT single UTASK FROM RS38L INTO @DATA(ld_update_task). | ||||
| DATA(ld_with_enhancements) | = 'X'. | |||
| DATA(ld_ignore_switches) | = ' '. | |||
| "SELECT single EXTEN3 FROM ENLFDIR INTO @DATA(ld_exception_classes). | ||||
| "SELECT single BASXML_ENABLED FROM RS38L INTO @DATA(ld_remote_basxml_supported). | ||||
Search for further information about these or an SAP related objects