2006 Sep 01 11:29 AM
can anyone tell me how to create a file on application server before downloading it , using open dataset command.
Thank u all
can anyone tell me how to create a file on application server before downloading it , using open dataset command.
Thank u all
2006 Sep 01 11:36 AM
Hi,
Create a directory on the application server.
Then use
<b>open dataset (directory path) for output in text mode.
Loop at itab
transfer itab-data to (directory path).
endloop.
close dataset directory path).</b>
Reward if useful
Regards
Kapil
2006 Sep 01 11:37 AM
Hi Ravi,
To write the contents into an application server file use
OPEN DATASET file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
if the file does not exist a new file will be created.
Regards,
Vidya.
2006 Sep 01 11:41 AM
2006 Sep 01 11:40 AM
2006 Sep 01 11:42 AM
hi,
You can open the dataset and if the file does not exist it will create a new file.then you can transer the data from your internal table like.
open dataset d_set for output in text mode.
Loop at it_tab.
transfer itab-data to d_set.
endloop.
close d_set.You can check the links.
www.sapfans.com/sapfans/alex.htm
www.sappoint.com/abap/files.pdf
Regards,
Richa
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |