SAP TABLE_EXPORT_TO_UNIX Function Module for









TABLE_EXPORT_TO_UNIX is a standard table export to unix 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 table export to unix FM, simply by entering the name TABLE_EXPORT_TO_UNIX into the relevant SAP transaction such as SE37 or SE38.

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



Function TABLE_EXPORT_TO_UNIX 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 'TABLE_EXPORT_TO_UNIX'"
EXPORTING
DEST = "Logical Destination (Specified in Function Call)
TABNAME = "Table Name
* UNIXNAME = ' ' "Table for reference field
* FLG_NO_DOWNLOAD = ' ' "Selection indicator
* DATEIPFAD = ' ' "Name of Access Path for the Interface Files

TABLES
DTAB = "

EXCEPTIONS
WRONG_FORMAT = 1 EMPTY_TABLE = 10 CREAT_TMP_ERROR = 11 IPC_ERROR = 12 SHM_BROKEN = 13 STRUCT_TOOLONG = 2 UNKOWN_DATATYPE = 3 FILE_CREAT_ERROR = 4 OUT_OF_CORE = 5 TABLE_ACCESS_ERROR = 6 CREATE_HASH_ERROR = 7 CANT_RENAME = 8 TABLE_EXISTS = 9
.



IMPORTING Parameters details for TABLE_EXPORT_TO_UNIX

DEST - Logical Destination (Specified in Function Call)

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

TABNAME - Table Name

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

UNIXNAME - Table for reference field

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

FLG_NO_DOWNLOAD - Selection indicator

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

DATEIPFAD - Name of Access Path for the Interface Files

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

TABLES Parameters details for TABLE_EXPORT_TO_UNIX

DTAB -

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

EXCEPTIONS details

WRONG_FORMAT -

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

EMPTY_TABLE -

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

CREAT_TMP_ERROR -

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

IPC_ERROR -

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

SHM_BROKEN -

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

STRUCT_TOOLONG -

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

UNKOWN_DATATYPE -

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

FILE_CREAT_ERROR -

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

OUT_OF_CORE -

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

TABLE_ACCESS_ERROR -

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

CREATE_HASH_ERROR -

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

CANT_RENAME -

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

TABLE_EXISTS -

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

Copy and paste ABAP code example for TABLE_EXPORT_TO_UNIX 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_dest  TYPE QISUB-DEST, "   
lt_dtab  TYPE STANDARD TABLE OF QISUB, "   
lv_wrong_format  TYPE QISUB, "   
lv_empty_table  TYPE QISUB, "   
lv_creat_tmp_error  TYPE QISUB, "   
lv_ipc_error  TYPE QISUB, "   
lv_shm_broken  TYPE QISUB, "   
lv_tabname  TYPE DFIES-TABNAME, "   
lv_struct_toolong  TYPE DFIES, "   
lv_unixname  TYPE DFIES-REFTABLE, "   SPACE
lv_unkown_datatype  TYPE DFIES, "   
lv_flg_no_download  TYPE RC27X-FLG_SEL, "   SPACE
lv_file_creat_error  TYPE RC27X, "   
lv_dateipfad  TYPE QISUB-PATH, "   SPACE
lv_out_of_core  TYPE QISUB, "   
lv_table_access_error  TYPE QISUB, "   
lv_create_hash_error  TYPE QISUB, "   
lv_cant_rename  TYPE QISUB, "   
lv_table_exists  TYPE QISUB. "   

  CALL FUNCTION 'TABLE_EXPORT_TO_UNIX'  "
    EXPORTING
         DEST = lv_dest
         TABNAME = lv_tabname
         UNIXNAME = lv_unixname
         FLG_NO_DOWNLOAD = lv_flg_no_download
         DATEIPFAD = lv_dateipfad
    TABLES
         DTAB = lt_dtab
    EXCEPTIONS
        WRONG_FORMAT = 1
        EMPTY_TABLE = 10
        CREAT_TMP_ERROR = 11
        IPC_ERROR = 12
        SHM_BROKEN = 13
        STRUCT_TOOLONG = 2
        UNKOWN_DATATYPE = 3
        FILE_CREAT_ERROR = 4
        OUT_OF_CORE = 5
        TABLE_ACCESS_ERROR = 6
        CREATE_HASH_ERROR = 7
        CANT_RENAME = 8
        TABLE_EXISTS = 9
. " TABLE_EXPORT_TO_UNIX




ABAP code using 7.40 inline data declarations to call FM TABLE_EXPORT_TO_UNIX

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 DEST FROM QISUB INTO @DATA(ld_dest).
 
 
 
 
 
 
 
"SELECT single TABNAME FROM DFIES INTO @DATA(ld_tabname).
 
 
"SELECT single REFTABLE FROM DFIES INTO @DATA(ld_unixname).
DATA(ld_unixname) = ' '.
 
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_no_download).
DATA(ld_flg_no_download) = ' '.
 
 
"SELECT single PATH FROM QISUB INTO @DATA(ld_dateipfad).
DATA(ld_dateipfad) = ' '.
 
 
 
 
 
 


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!