SAP TXW_AL_IMPORT_PROCESS Function Module for Import process for any archive link object









TXW_AL_IMPORT_PROCESS is a standard txw al import process SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Import process for any archive link object 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 txw al import process FM, simply by entering the name TXW_AL_IMPORT_PROCESS into the relevant SAP transaction such as SE37 or SE38.

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



Function TXW_AL_IMPORT_PROCESS 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 'TXW_AL_IMPORT_PROCESS'"Import process for any archive link object
EXPORTING
* I_MODE = 'J' "schedule batch 'J'ob - execute 'D'irectly
* I_OBJ_TYPE = 'E' "'E'xtract file - 'V'iew file
* I_RERUN = ' ' "Repeat archiv export/import
* I_FAILED_ONLY = ' ' "export/import failed files only
IT_OBJ_UUID = "UUID identifier table of the files
I_VOLDIR = "Data file directory set - need to be unique for all files

EXCEPTIONS
WRONG_CALL = 1 CANCELED_BY_USER = 2
.



IMPORTING Parameters details for TXW_AL_IMPORT_PROCESS

I_MODE - schedule batch 'J'ob - execute 'D'irectly

Data type: CHAR1
Default: 'J'
Optional: No
Call by Reference: Yes

I_OBJ_TYPE - 'E'xtract file - 'V'iew file

Data type: CHAR1
Default: 'E'
Optional: No
Call by Reference: Yes

I_RERUN - Repeat archiv export/import

Data type: TXW_REPEAT_EXPORT
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_FAILED_ONLY - export/import failed files only

Data type: TXW_REPEAT_EXPORT
Default: SPACE
Optional: Yes
Call by Reference: Yes

IT_OBJ_UUID - UUID identifier table of the files

Data type: TXW_T_UUID
Optional: No
Call by Reference: Yes

I_VOLDIR - Data file directory set - need to be unique for all files

Data type: TXW_VOLSET
Optional: No
Call by Reference: Yes

EXCEPTIONS details

WRONG_CALL - call with wrong parameters

Data type:
Optional: No
Call by Reference: Yes

CANCELED_BY_USER - process was canceled by the user

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for TXW_AL_IMPORT_PROCESS 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_i_mode  TYPE CHAR1, "   'J'
lv_wrong_call  TYPE CHAR1, "   
lv_i_obj_type  TYPE CHAR1, "   'E'
lv_canceled_by_user  TYPE CHAR1, "   
lv_i_rerun  TYPE TXW_REPEAT_EXPORT, "   SPACE
lv_i_failed_only  TYPE TXW_REPEAT_EXPORT, "   SPACE
lv_it_obj_uuid  TYPE TXW_T_UUID, "   
lv_i_voldir  TYPE TXW_VOLSET. "   

  CALL FUNCTION 'TXW_AL_IMPORT_PROCESS'  "Import process for any archive link object
    EXPORTING
         I_MODE = lv_i_mode
         I_OBJ_TYPE = lv_i_obj_type
         I_RERUN = lv_i_rerun
         I_FAILED_ONLY = lv_i_failed_only
         IT_OBJ_UUID = lv_it_obj_uuid
         I_VOLDIR = lv_i_voldir
    EXCEPTIONS
        WRONG_CALL = 1
        CANCELED_BY_USER = 2
. " TXW_AL_IMPORT_PROCESS




ABAP code using 7.40 inline data declarations to call FM TXW_AL_IMPORT_PROCESS

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_i_mode) = 'J'.
 
 
DATA(ld_i_obj_type) = 'E'.
 
 
DATA(ld_i_rerun) = ' '.
 
DATA(ld_i_failed_only) = ' '.
 
 
 


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!