Long windows filenames in DOS (8.3 Problem)

Question:
Hi All,
OUr rquirement is to read the files in an particular directory and upload the same into SAP.Since we are in 4.0 B we cud not get the FMs to do the job.we have wriiten an COMMAND to read all the file names in the directory and write the same into an file.
The comman works fine but the long file names are changed into
XXXXXXX~1.TXT
Since we need the entire Filenames for further processing we are stuck in this.
the command we are using.
/C DIR /B c:\sap\opelack\*.TXT > c:\sap\opelack\FILELIST
Please guide us how to proceed in this.
Regards
Vish
Answer:
Don't quote me but I think this is an Operating system problem.
I would guess that you are using an older OS like Win95 because I think Win98/2000/ME and XP do not show the files in this format when using DOS.
There may be a few solutions open to you.
1). If you have a networked/shared drive then store them there. You can probably identify them and load them via FTP.

Also, another route open to you is to configure your PC as an FTP server. This simpler than it actually sounds. You just run a PC based program, complete some details into your host/TCP/IP config table and away you go. You should then be able to look at the directory and upload/downlaod data using FTP.

The functions FTP* in SAP will help you.
Dr Sidewalk.
Answer:
If your requirement is to read files from particular directory, these 2 FM shd help,
TMP_GUI_DIRECTORY_LIST_FILES and
KCD_FROMT_END_DIRECTORY_READ.
second FM exists in 40B too,
Good luck.
_________________
MyAbap.Com
(Pentium wise, pen and paper foolish !! )
Answer:
If your requirement is to read files from particular directory, these 2 FM shd help,
TMP_GUI_DIRECTORY_LIST_FILES and
KCD_FROMT_END_DIRECTORY_READ.
second FM exists in 40B too,
Good luck.
Thatz fantastic.....we used KCD_FRONT_END_DIRECTORY_READ. FM.
Thanks a lot for all who have responded.
Regards
Vish

More Articles:

Position of Selection-Screen .urgent?
Does anybody help me to solve this issue?
Structure tables?
Using Index?
Unable to add Check table for a field in creating table?
Selecting data by order group on selection screen?