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: 

Runtime error DATASET_REOPEN ~ CX_SY_FILE_OPEN

Former Member
0 Kudos

Hi,

I am having a problem with open a dataset.

The u201COPEN of P_fileu201D is called multiple times in this program..

I have referred .But it is not answered yet.

Any inputs on this.

Thanks

Kiran

4 REPLIES 4

former_member156446
Active Contributor
0 Kudos

I am curious on what is your requirement to open the same file again and again?

0 Kudos

I am working on upgrade project one of the object having this problem.However, this program is working fine in ECC5.o But in Unicode environment (ECC6.O)the dump is happening.

Let me know your ideas.

Thanks

former_member156446
Active Contributor
0 Kudos

to open the file in server, multiple times is the requirement then the architecture of the interface or the code has a design issue.. which need to be remodeled.

You cannot open a file again and again without closing it...the file gets corrupted, in Unix server.

Once you open the file and get all data into internal table.. and again opening the file to get the same data?

Former Member
0 Kudos

hi,

Use this it will definitely work.

OPEN DATASET prf_file FOR INPUT IN TEXT MODE ENCODING NON-UNICODE WITH SMART LINEFEED.

CLOSE DATASET prf_file.

regards,

Manesh.R