‎2008 Jun 13 9:00 AM
Hi All,
what are the values of import parameter 'file type' in the function modules gui_upload and download.
when we use ascii ? and when we use dat?
and
what are the other values for file type?
what scenario we will use perticular value?
can any one explain it asap.
best answers will be rewarded
‎2008 Jun 13 9:05 AM
basically you use ASC for ascii file (plain text or CSV) and BIN for binary file (xls,doc,...)
‎2008 Jun 13 9:09 AM
Hi Rahul,
File Type (ASC or BIN)
Description
Describes how the upload file is read.
Value range
o 'BIN'.
The system reads a binary representation of the internal table from the
file. The data is neither converted nor interpreted in this case.
Usually, reasonable results are obtained only if the internal table
consists of a single column of type 'X'.
o 'DAT'
The components of the internal table are filled from the file. If the
table contains several columns, the entries in the file must be
separated by tabs. No conversion exits are performed.
The following applies for the different data types:
- I or N or P or F
The numbers must be formatted according to the decimal representation
defined in the user settings.
- D
The date must be formatted according to the date format defined in
the
user settings.
- T
The time must be formatted as hh:mm:ss.
o 'ASC'.
The components of the internal table are filled from the file. Only
data types with fixed length are allowed. The data must be contained
in the file in its full length.
Default
ASC
These function module have self-documentation. check it in SE37.
Regards,
Boobalan Suburaj