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: 

Download Internal table to UNIX

former_member181995
Active Contributor
0 Kudos

Hi Guys,

Can you please tell me how to download Internal table to UNIX?

Thanks.

Amit.

1 ACCEPTED SOLUTION

Sm1tje
Active Contributor
0 Kudos

OPEN dataset lv_filename_and_path for output in text mode.

loop at itab into wa.

transfer wa to dataset.

endloop.

close dataset.

6 REPLIES 6

matt
Active Contributor
0 Kudos

You need to use the ABAP statements "OPEN DATASET", "TRANSFER" and "CLOSE DATASET".

matt

Former Member
0 Kudos

Hi,

Check below function modules

TABLE_EXPORT_TO_UNIX

TABLE_EXPORT_TO_UNIX_RFC

Regards,

Satish

Sm1tje
Active Contributor
0 Kudos

OPEN dataset lv_filename_and_path for output in text mode.

loop at itab into wa.

transfer wa to dataset.

endloop.

close dataset.

Former Member
0 Kudos

hi,

follow the thread

cheers,

sharad.

former_member188685
Active Contributor
0 Kudos

If your application server is Unix then you can do that using Open Data set , Transfer to pass the information to Unix file.

Open Data set, Transfer , Close Dataset required. Check the help on these.

former_member181995
Active Contributor
0 Kudos

First i create a directory from AL11 following the way cofigure then direc. name /saplocal/sapedi/out/ then alieas name dir_test and *save not ADD*. then i called open dataset /saplocal/sapedi/out/payroll.txt and file successfully created on UNIX.