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

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
BIN_FILESIZE 0 SPACE X File length for binary files
CODEPAGE 0 SPACE X Code page for ASC, DBF and WK1 download
COL_SELECT 0 SPACE X Column selection: activate
COL_SELECTMASK 0 SPACE X Column selection: masking
FILENAME RLGRAP-FILENAME C 128 SPACE X File name
FILETYPE RLGRAP-FILETYPE C 3 'ASC' X File type (ASCII, binary ...)
MODE 0 SPACE X Writing mode (overwrite, append)
NO_AUTH_CHECK C C 0 SPACE X
WK1_N_FORMAT 0 SPACE X Format for value columns in files of the type WK1
WK1_N_SIZE 0 SPACE X Column width for value columns in files of the type WK1
WK1_T_FORMAT 0 SPACE X Format for text columns for files of the type WK1
WK1_T_SIZE 0 SPACE X Column width for text columns for files of the type WK1

Paramètre Reférence Type Long. Description
FILELENGTH 0 Number of bytes transferred

Paramètre Reférence Long. Facultatif Description
DATA_TAB 0 Transfer table
FIELDNAMES 0 X Field names for DAT file type

Exception Description
CUSTOMER_ERROR Exception in customer exit
FILE_OPEN_ERROR Not used
FILE_WRITE_ERROR Cannot write to file
GUI_REFUSE_FILETRANSFER Incorrect front end, or error in front end
INVALID_FILESIZE Invalid parameter BIN_FILESIZE
INVALID_TABLE_WIDTH Not used
INVALID_TYPE Invalid value for parameter FILETYPE
NO_AUTHORITY No Download Authorization
NO_BATCH Front-End Function Cannot Be Executed in Backgrnd
UNKNOWN_ERROR Not Used


Stores SAP data in a file in the file system of the presentationserver. The format can be converted.
Obsolete. Use class CL_GUI_FRONTEND_SERVICES.
The size of the generated file is returned
When generating a binary file, you must specify a file length,since the transfer table (one-column, type X) might not be completelyvalid in its last line.
A length of 0 (zero) is not allowed and causes a exception(INVALID_FILESIZE)
A length which is larger than the number of bytes in the table(width * number of line) also causes this exception.
: use the IBM code page as the target (DOS level)IBM format

Description
Activate the column selection for multiple column tables
Currently only available for FILETYPE = 'DAT'

Value range
SPACE: not activated
otherwise: activated

Default
SPACE: not activated

Description
Uses COL_SELECT to select columns.

Value range
Character field up to 128 characters, consisting of SPACE and 'x'.
Each character consists of a column in the table.
SPACE stands for column to be ignored, each other character stands fora column to be inserted.
Example: COL_SELECT = 'X'
COL_SELECTMASK = 'X X X'
Columns 1,3,5 are downloaded.
The name of the file that is to be generated on the presentationserver (if necessary with predefined path name). If the path does notexist or if the file cannot be opened to be written, then thecorresponding exceptions are set.
When you download, different types of conversion can be performed. The
target format is determined by the FILETYPE.
'ASC' : Ascii format, table is stored with correct rows.
'IBM' : Ascii format as in 'ASC' with IBM code page conversion (DOS)
'DAT' : Ascii format as in 'ASC', additional column separation with
TABs.
Column selection with COL_SELECT and COL_SELECTMASK possible
'WK1' : Lines and columns are stored correctly in WK1 table format
: Column width for C fields have a maximum length of 240 char.
'BIN' : Binary format (specification of BIN_FILESIZE required)
'DBF' : Stored as Dbase file (always with DOS code page).
'VSS' : The first four bytes in each line in the transfer table specify
how much data is to be transferred in this line, in bytes.
'A' :Append (not for 'DBF' and 'WK1')
:OverwriteSPACE
'0' : Standard format
'1x' : Fixed point format with x decimal places
'2x' : Currency format with x decimal places
Determines the column width for value columns. If WK1_N_SIZE is notset, then the output length of the field is taken as the width forevery value column.
'0' : left-justified
'1' : right-justified
'2' : centered
Sets the column width for columns of text. If WK1_T_SIZE is not set,then the width of each column of text is determined by the output lengthof the field.
The maximum value is 240. If this is not the case it is reset to 240.
Recommended table structures
'ASC' : 1-column, type C
'DAT' : n-columns, mixed types (C, P, F, I)
'BIN' : 1-column, type C, width < 1023 bytes,
otherwise INVALID_TABLE_WIDTH
'WK1' : n-columns, mixed types (C, P, F, I)

Description
Optional table with names for the individual columns for the 'DAT'format.
'DBF'
The column names are entered in the structure definition of the DBFfile.
'DAT'
An additional line with column names is inserted at the beginning ofthe table.

Value range
'DAT': 1 column table with field type C.

Default
'DAT'
When no entries are specified, no column names are generated.

513435Windows code page setup for non-Unicode text files
1444941Mapping of GMUX CALLS to CL_GUI_FRONTEND_SERVICES
519059FAQ: Background processing system
579747Support of HongKong Chinese
798365ITS Up/Down: Folders are not created during the download
709813VETS: Call to WS_DOWNLOAD replaced by Call to GUI_DOWNLOAD
24834How to download spool requests?
417168Upgrade 4.6b IS-PS 4.61A w/US2 to 4.6C IS-PS 462
147560Groups/sets: export of hierarchies
3467Run-time error SET_PARAMETER_MEMORY_OVERFLOW