10-17-2008 8:31 AM
Hi,
On the selection screen if the user gives a file location, I have to separate the directory and the filename the problem is the location can change every time one time it can be C:\Documents and Settings\varunk\Desktop\main.bmp and other time it can be
C:\main.bmp so I have to separate both the directory and file name and pass it separetly.
Thanks and Regards,
V
10-17-2008 8:50 AM
Use this.
SPLIT filename AT '/' INTO <c1>... <cn> INTO TABLE <itab>
Also check this.
[https://forums.sdn.sap.com/click.jspa?searchID=17587409&messageID=6346920]
Rhea.
Edited by: rhea on Oct 17, 2008 9:55 AM
10-17-2008 8:35 AM
Hello,
Can you explain me wht is the use of seperating the Directory u r uploading the file or downloading file.
or Checking the path correct or not.
10-17-2008 8:54 AM
I have to pass the directory and filename separetly for further operation.
10-17-2008 9:04 AM
Hi as Rhea told split the path, the final record in the itab would be your filename. You can also validate whether the directory and file name you have obtained are correct or not you can use any method from CL_GUI_FRONTEND_SERVICES class.
10-17-2008 8:39 AM
10-17-2008 8:50 AM
Use this.
SPLIT filename AT '/' INTO <c1>... <cn> INTO TABLE <itab>
Also check this.
[https://forums.sdn.sap.com/click.jspa?searchID=17587409&messageID=6346920]
Rhea.
Edited by: rhea on Oct 17, 2008 9:55 AM