2006 Jun 05 8:05 AM
hi all!!!!
there is one small reqmnt pls have a look......
I am using FM GUI_DOWNLOAD to download the contents of my internal table on PC file....
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = l_f_fname
filetype = 'ASC'
write_field_separator = l_f_fseprt
IMPORTING
FILELENGTH =
TABLES
data_tab = g_t_sales[]
in the internal table there are 25 fields , in my program i am filling data onli upto 10 fields, rest of the fields have no data and fields being all character type..
through this FM i want the file which will be downloaded should be of length 900 characters, is there any parameters which will restrict length of my file upto 900 characters.
upto 25 fields in internal table length is 900 characters
means i want file length corresponding to my internal table length...
quick reply will be very helpful....
thanks in advance...
2006 Jun 05 8:10 AM
Hi praveen,
1. I don't think we can
control the Length of the file.
2. Before writing to file,
we can only control the
length / size of the internal table,
by accessing the number of records in it.
regards,
amit m.
2006 Jun 05 8:15 AM
hi all
what is the relevance of filelength in the FM????????
thanx .
2006 Jun 05 8:18 AM
Hi again,
1. Its only for BINARY Files.
2. BCOS
3. Binary file have a special character
EOF
at the end of the file,
as the last character.
4. We cannot use this parameter
for text files.
regards,
amit m.
2006 Jun 05 8:24 AM
Hi Praveen,
The export parameter File_length will return the size of the file created.
U unfortunately dont have any import parameter to control the size of the file.
If file size is of that importance for u, u shall have to use trail n error method n reduce or increase of ur internal table.
Regards,
Tanveer.
<b>Please mark helpful answers</b>