Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

REGARDING DOWNLOADING DATA FROM APPLICATION SERVER

Former Member
0 Likes
546

can anyone tell me how to create a file on application server before downloading it , using open dataset command.

Thank u all

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

5 REPLIES 5
Read only

Former Member
0 Likes
514

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

Read only

Former Member
0 Likes
514

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.

Read only

Former Member
Read only

Former Member
0 Likes
514

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