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

access text file and internal table

Former Member
0 Likes
501

HI All,

How can we access a text file that is created by downloading data from an internal table in 4.7 through ECC5.0 ( without using middleware like XI or etc )

How can we access an internal table of a z program in 4.7 from ECC 5.0

Basically my requirement is based on accessing data from 4.7 to ECC 5.0

Plz share ur ideas on this.

rgds,

anil.

HI All,

How can we access a text file that is created by downloading data from an internal table in 4.7 through ECC5.0 ( without using middleware like XI or etc )

How can we access an internal table of a z program in 4.7 from ECC 5.0

Basically my requirement is based on accessing data from 4.7 to ECC 5.0

Plz share ur ideas on this.

rgds,

anil.

3 REPLIES 3
Read only

Former Member
0 Likes
461

1) Ifthe file is on a local machine, then you can uise the function module

GUI_UPLOAD

2) If your file is on application server,

you need to use

open dataset for input

read dataset

close dataset commands in abap.

Regards,

ravi

Read only

0 Likes
461

HI Ravi,

thanks for ur reply.

1) Ifthe file is on a local machine, then you can uise the function module GUI_UPLOAD

how we can access the file on 4.7 server from ecc5.0 with fn module gui_upload. both are different machines...right?

u mean to say that in the text file path has to be given like //ipaddress/filename.txt

u mean the same??

Read only

Former Member
0 Likes
461

Hi Sathish,

if you dont mind me answering

GUI_UPLoad is only used when the file is in the same pc from where it is called .

If it is on a different server or on the application server then please use like this

Here the filename should be where your file is on the server

OPEN DATASET (filename) IN TEXT MODE

READ DATASET (filename) INTO wa.

IF sy-subrc ne 0.

exit.

endif.