Fonction SAP WS_UPLOAD - OBSOLETE: Transfer Presentation Server File to Internal Table

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CODEPAGE 0 SPACE X Code page for ASC upload
DAT_D_FORMAT DATEFORMAT C 10 SPACE X Date format; for example DD.MM.YYYY
FILENAME RLGRAP-FILENAME C 128 SPACE X File name
FILETYPE RLGRAP-FILETYPE C 3 'ASC' X File type (ASCII, binary ...)
HEADLEN 0 SPACE X DO NOT USE: SAP INTERNAL USE ONLY !!
LINE_EXIT 0 SPACE X DO_NOT_USE
TRUNCLEN 0 SPACE X DO NOT USE: SAP INTERNAL USE ONLY !!
USER_FORM 0 SPACE X DO NOT USE: SAP INTERNAL USE ONLY !!
USER_PROG 0 SPACE X DO NOT USE: SAP INTERNAL USE ONLY !!

Paramètre Reférence Type Long. Description
FILELENGTH 0 File length

Paramètre Reférence Long. Facultatif Description
DATA_TAB 0 Transfer table for file contents

Exception Description
CONVERSION_ERROR Data conversion error
CUSTOMER_ERROR Error in customer exit
FILE_OPEN_ERROR Not used in Release 4.6A
FILE_READ_ERROR File read error
GUI_REFUSE_FILETRANSFER Incorrect front end, or error in front end
INVALID_TABLE_WIDTH Not used
INVALID_TYPE Incorrect parameter FILETYPE
NO_AUTHORITY No Upload Authorization
NO_BATCH Front-End Function Cannot Be Executed in Backgrnd
UNKNOWN_ERROR Not Used


Uploads a file from the presentation server into an internal table.
Obsolete. Use class CL_GUI_FRONTEND_SERVICES.
If the upload is successful, the size of the file is returned inthis parameter. It need not be evaluated for the formats (FILETYPE)'ASC' and 'DAT', but this is necessary for 'BIN'.
For this, please refer to the description of the parameter FILETYPE
'IBM' : Conversion from code page IBM (DOS)

Description
Interprets a date format. This value identifies the date format in theupload file.
If this parameter has, for example, the value 'MM/DD/YYYY', the uploadfile can contain date fields with the format 'MM/DD/YYYY' and they willbe recognized correctly.

Value range
Permitted values:
'MM/DD/YYYY',
'MM-DD-YYYY',
'YYYY.MM.DD',
'YYYY/MM/DD',
'YYYY-MM-DD'.

Default
'DD.MM.YYYY'
The name of the file which should be uploaded.
If this file does not exist or is not readable, then correspondingexceptions are generated. The file names are case sensitive.
Possible values
'ASC' : ASCII file
The file is loaded line by line in the transferred table and thisshould have one-column and be of the type C. The file size is returnedin the parameter FILELENGTH.
'TRU' : ASCII file + line wrap
If a line in a file does not fit into a row in a table, then the row isfilled completely, and the rest of the line is written to the next rowin the table. Words are not split, instead they are put into the nextrow of the table.
'BIN' : Binary file
The file is loaded into the transferred table which should haveone-column and be of the type X. The table is filled line by line inthis case. In this case, the last line need not necessarily becompletely filled. For this reason, the parameter FILELENGTH must beused during further processing. The table may be a maximum of 1022characters 'wide'!
'DAT' : ASCII file with tab formatting
The file is loaded line by line into the transferred table. Tabs in thefile mean a change of field.
The file size is returned in the parameter FILELENGTH.
The number of lines to be transferred for ASC upload or the numberof bytes to be transferred for binary upload
SPACE : nothing special
'WRITE' : Writes the line instead of appending it -> no buffer usage
The internal table adds the file. If 'ASC' is used, exactly onerecord is put in each table line. If the table width is insufficient,it is truncated line by line. This also applies to 'DAT'.
For 'BIN', the table is completely filled line by line. The lastline is not necessarily filled completely with file contents. For thereason, the parameter FILELENGTH must also be evaluated.

513435Windows code page setup for non-Unicode text files
1444941Mapping of GMUX CALLS to CL_GUI_FRONTEND_SERVICES
752835Usage of the file interfaces in Unicode systems
3467Run-time error SET_PARAMETER_MEMORY_OVERFLOW