SAP SWF_GP_TOOL_PROCESS_IMPORT Function Module for
SWF_GP_TOOL_PROCESS_IMPORT is a standard swf gp tool process import 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 swf gp tool process import FM, simply by entering the name SWF_GP_TOOL_PROCESS_IMPORT into the relevant SAP transaction such as SE37 or SE38.
Function Group: SWF_GP_TOOLS
Program Name: SAPLSWF_GP_TOOLS
Main Program: SAPLSWF_GP_TOOLS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SWF_GP_TOOL_PROCESS_IMPORT 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 'SWF_GP_TOOL_PROCESS_IMPORT'".
EXPORTING
IM_GP_ID = "
IM_GP_VERSION = "
IM_GP_TECH_NAME = "
IM_GP_CATEGORY = "
IM_XML_STREAM = "
IM_PROCESS = "
IM_TITLE = "
* IM_ENABLE_IMPORT = ' ' "
IMPORTING
EX_PROCESS = "
EX_RETCODE = "
EX_IMPORT_CANCELLED = "
IMPORTING Parameters details for SWF_GP_TOOL_PROCESS_IMPORT
IM_GP_ID -
Data type: SWFGPDIDOptional: No
Call by Reference: Yes
IM_GP_VERSION -
Data type: SWFGPDVERSOptional: No
Call by Reference: Yes
IM_GP_TECH_NAME -
Data type: SWFGPDTECHNAMEOptional: No
Call by Reference: Yes
IM_GP_CATEGORY -
Data type: SWFGPDCATEGORYOptional: No
Call by Reference: Yes
IM_XML_STREAM -
Data type: XSTRINGOptional: No
Call by Reference: Yes
IM_PROCESS -
Data type: SWR_VERSOptional: No
Call by Reference: Yes
IM_TITLE -
Data type: COptional: No
Call by Reference: Yes
IM_ENABLE_IMPORT -
Data type: XFLAGDefault: SPACE
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for SWF_GP_TOOL_PROCESS_IMPORT
EX_PROCESS -
Data type: SWR_VERSOptional: No
Call by Reference: Yes
EX_RETCODE -
Data type: SYSUBRCOptional: No
Call by Reference: Yes
EX_IMPORT_CANCELLED -
Data type: COptional: No
Call by Reference: Yes
Copy and paste ABAP code example for SWF_GP_TOOL_PROCESS_IMPORT 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_im_gp_id | TYPE SWFGPDID, " | |||
| lv_ex_process | TYPE SWR_VERS, " | |||
| lv_ex_retcode | TYPE SYSUBRC, " | |||
| lv_im_gp_version | TYPE SWFGPDVERS, " | |||
| lv_im_gp_tech_name | TYPE SWFGPDTECHNAME, " | |||
| lv_ex_import_cancelled | TYPE C, " | |||
| lv_im_gp_category | TYPE SWFGPDCATEGORY, " | |||
| lv_im_xml_stream | TYPE XSTRING, " | |||
| lv_im_process | TYPE SWR_VERS, " | |||
| lv_im_title | TYPE C, " | |||
| lv_im_enable_import | TYPE XFLAG. " SPACE |
|   CALL FUNCTION 'SWF_GP_TOOL_PROCESS_IMPORT' " |
| EXPORTING | ||
| IM_GP_ID | = lv_im_gp_id | |
| IM_GP_VERSION | = lv_im_gp_version | |
| IM_GP_TECH_NAME | = lv_im_gp_tech_name | |
| IM_GP_CATEGORY | = lv_im_gp_category | |
| IM_XML_STREAM | = lv_im_xml_stream | |
| IM_PROCESS | = lv_im_process | |
| IM_TITLE | = lv_im_title | |
| IM_ENABLE_IMPORT | = lv_im_enable_import | |
| IMPORTING | ||
| EX_PROCESS | = lv_ex_process | |
| EX_RETCODE | = lv_ex_retcode | |
| EX_IMPORT_CANCELLED | = lv_ex_import_cancelled | |
| . " SWF_GP_TOOL_PROCESS_IMPORT | ||
ABAP code using 7.40 inline data declarations to call FM SWF_GP_TOOL_PROCESS_IMPORT
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.| DATA(ld_im_enable_import) | = ' '. | |||
Search for further information about these or an SAP related objects