Application Development 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: 

OPEN DATASET file1 FOR OUTPUT IN TEXT MODE ENCODING DEFAULT??

Former Member
0 Kudos
88

Hi Experts,

Pls. clarify one of my doubt that,

1 - Am getting 10 records in itab of t_pln_orders.

2 - file1 value is C:\TEMP\pln_ord.dat

3- prog. is as follows,

OPEN DATASET file1 FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

LOOP AT t_pln_orders.

MOVE-CORRESPONDING t_pln_orders TO l_pln_order.

TRANSFER l_pln_order TO file1.

ENDLOOP.

CLOSE DATASET file1.

4 - am checking sy-subrc, every where its 0. fine.

BUT AM NOT GETTING DATA IN FILE1 in C drive?

any clue?

thanq

1 ACCEPTED SOLUTION

Former Member
0 Kudos
57

Hi,

Open data set is used to write the files into the application server.Not on to ur C drive.

By default its saving the data in the tmp directory.

Please reward points if useful.

Regards,

sasi

2 REPLIES 2

Former Member
0 Kudos
58

Hi,

Open data set is used to write the files into the application server.Not on to ur C drive.

By default its saving the data in the tmp directory.

Please reward points if useful.

Regards,

sasi

Former Member
0 Kudos
57

Hi Srinivas

OPEN DATASET file1 FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

-


here data transfers from presentation server to Appl. server

OPEN DATASET file1 FOR INPUT IN TEXT MODE ENCODING DEFAULT.

-


here data transfers from Appl. server to presentation server (hard disk) as u asked

If u want with any example, i can provide u

Reward me points if it helpful to you

Thanks

Suren