SAP CNV_20600_UPLOAD Function Module for Generischer Upload von ASCII Dateien in Tabellen









CNV_20600_UPLOAD is a standard cnv 20600 upload SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Generischer Upload von ASCII Dateien in Tabellen 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 cnv 20600 upload FM, simply by entering the name CNV_20600_UPLOAD into the relevant SAP transaction such as SE37 or SE38.

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



Function CNV_20600_UPLOAD 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 'CNV_20600_UPLOAD'"Generischer Upload von ASCII Dateien in Tabellen
EXPORTING
S_PATH = "
* S_SEPARATOR = ';' "
* S_' ' = ' ' "
* S_COL1_NAME = ' ' "
* S_COL2_NAME = ' ' "
* S_COL3_NAME = ' ' "
* S_COL4_NAME = ' ' "
* S_COL5_NAME = ' ' "
* S_COL6_NAME = ' ' "

TABLES
I_ASSIGNMENT_TABLE_ASC = "
I_ASSIGNMENT_TABLE_DAT = "

EXCEPTIONS
FILE_NOT_FOUND = 1 UPLOAD_PROBLEMS = 2 COL1_NOT_FOUND = 3 COL2_NOT_FOUND = 4
.



IMPORTING Parameters details for CNV_20600_UPLOAD

S_PATH -

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

S_SEPARATOR -

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

S_SPACE -

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

S_COL1_NAME -

Data type: CNV_20600_UPLOAD-COL1
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

S_COL2_NAME -

Data type: CNV_20600_UPLOAD-COL2
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

S_COL3_NAME -

Data type: CNV_20600_UPLOAD-COL3
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

S_COL4_NAME -

Data type: CNV_20600_UPLOAD-COL4
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

S_COL5_NAME -

Data type: CNV_20600_UPLOAD-COL5
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

S_COL6_NAME -

Data type: CNV_20600_UPLOAD-COL6
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for CNV_20600_UPLOAD

I_ASSIGNMENT_TABLE_ASC -

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

I_ASSIGNMENT_TABLE_DAT -

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

EXCEPTIONS details

FILE_NOT_FOUND -

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

UPLOAD_PROBLEMS -

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

COL1_NOT_FOUND -

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

COL2_NOT_FOUND -

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

Copy and paste ABAP code example for CNV_20600_UPLOAD 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_s_path  TYPE RLGRAP-FILENAME, "   
lv_file_not_found  TYPE RLGRAP, "   
lt_i_assignment_table_asc  TYPE STANDARD TABLE OF CNV_20600_UPLOAD, "   
lv_s_separator  TYPE C, "   ';'
lv_upload_problems  TYPE C, "   
lt_i_assignment_table_dat  TYPE STANDARD TABLE OF C, "   
lv_s_space  TYPE C, "   ' '
lv_col1_not_found  TYPE C, "   
lv_s_col1_name  TYPE CNV_20600_UPLOAD-COL1, "   ' '
lv_col2_not_found  TYPE CNV_20600_UPLOAD, "   
lv_s_col2_name  TYPE CNV_20600_UPLOAD-COL2, "   ' '
lv_s_col3_name  TYPE CNV_20600_UPLOAD-COL3, "   ' '
lv_s_col4_name  TYPE CNV_20600_UPLOAD-COL4, "   ' '
lv_s_col5_name  TYPE CNV_20600_UPLOAD-COL5, "   ' '
lv_s_col6_name  TYPE CNV_20600_UPLOAD-COL6. "   ' '

  CALL FUNCTION 'CNV_20600_UPLOAD'  "Generischer Upload von ASCII Dateien in Tabellen
    EXPORTING
         S_PATH = lv_s_path
         S_SEPARATOR = lv_s_separator
         S_SPACE = lv_s_space
         S_COL1_NAME = lv_s_col1_name
         S_COL2_NAME = lv_s_col2_name
         S_COL3_NAME = lv_s_col3_name
         S_COL4_NAME = lv_s_col4_name
         S_COL5_NAME = lv_s_col5_name
         S_COL6_NAME = lv_s_col6_name
    TABLES
         I_ASSIGNMENT_TABLE_ASC = lt_i_assignment_table_asc
         I_ASSIGNMENT_TABLE_DAT = lt_i_assignment_table_dat
    EXCEPTIONS
        FILE_NOT_FOUND = 1
        UPLOAD_PROBLEMS = 2
        COL1_NOT_FOUND = 3
        COL2_NOT_FOUND = 4
. " CNV_20600_UPLOAD




ABAP code using 7.40 inline data declarations to call FM CNV_20600_UPLOAD

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 FILENAME FROM RLGRAP INTO @DATA(ld_s_path).
 
 
 
DATA(ld_s_separator) = ';'.
 
 
 
DATA(ld_s_space) = ' '.
 
 
"SELECT single COL1 FROM CNV_20600_UPLOAD INTO @DATA(ld_s_col1_name).
DATA(ld_s_col1_name) = ' '.
 
 
"SELECT single COL2 FROM CNV_20600_UPLOAD INTO @DATA(ld_s_col2_name).
DATA(ld_s_col2_name) = ' '.
 
"SELECT single COL3 FROM CNV_20600_UPLOAD INTO @DATA(ld_s_col3_name).
DATA(ld_s_col3_name) = ' '.
 
"SELECT single COL4 FROM CNV_20600_UPLOAD INTO @DATA(ld_s_col4_name).
DATA(ld_s_col4_name) = ' '.
 
"SELECT single COL5 FROM CNV_20600_UPLOAD INTO @DATA(ld_s_col5_name).
DATA(ld_s_col5_name) = ' '.
 
"SELECT single COL6 FROM CNV_20600_UPLOAD INTO @DATA(ld_s_col6_name).
DATA(ld_s_col6_name) = ' '.
 


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!