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

open dataset fail

Former Member
0 Likes
318

hi experts,

when i use "open dataset" to write a file into sap dir, it fails to open a file without any system error,but when i use debug mode into it, it always successes.so i add "WAIT UP TO XXX SECONDS.", then it successes.

can anyone tell me why it happened and how can i handle such issues?

thanks

my code:

outfile like rlgrap-FILENAME

default XXXXXXXX' lower case,

....

......

........

open dataset outfile for output in text mode encoding default.

1 REPLY 1
Read only

Former Member
0 Likes
274

Hi,

I dont find any fault in your code. Please test it once again.

Here is the sample code

outfile like rlgrap-FILENAME default 'XXXXXXXX'.

open dataset outfile for output in text mode encoding default.

Regards,

Ravi G