‎2008 Nov 25 9:39 AM
Hi Guys
How would I create a text file on the local mcahine where sap is installed? like in c:\ I want to create myfile.txt I cannot seem to find any sample abap code..
Thanx,
Jan
‎2008 Nov 25 9:46 AM
There are different methods to create a text file based on your requirements, for example if you want to save your internal table data into a text file you can use a class method CL_GUI_FRONTEND_SERVICES->GUI_DOWNLOAD and save the file as c:\xxx.txt
‎2008 Nov 25 9:46 AM
First populate the text to an internal table and create the file using FM GUI_DOWNLOAD.
Search the forum with GUI_DOWNLOAD, you will get lots of sample codes.
Regards
Karthik D
‎2008 Nov 25 9:48 AM
‎2008 Nov 25 9:48 AM
Hi,
If you ar trying to move any information from within your code into a text file and create the file in your desktop , then you can use the function module GUI_DOWNLOAD which will automatically create the file on your desktop once your program is run.
Do let me know if it worked for you.
Regards,
MD