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 data set Probelm ??

Former Member
0 Likes
704

HI Experts,

What are the Situations in which

1. I am creating a file usingOpen DataSet.

2. Writing the data into the file but not giving any error.

The file which is created has 0 Bytes after the data is successfully wrote on to it.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
680

hi...

debug and check-out the sy-subrc of * transfer*

regards

vivek

6 REPLIES 6
Read only

Former Member
0 Likes
681

hi...

debug and check-out the sy-subrc of * transfer*

regards

vivek

Read only

Former Member
0 Likes
680

Check the data source...may your work area or the table does not contain any data.

Read only

Former Member
0 Likes
680

Hi,

Please add a sy-subrc check after OPEN dataset & before writing data to the file.

OPEN DATASET...
if sy-subrc eq 0.
write to file....
else.
message...
endif.

Best regards,

Prashant

Read only

Former Member
0 Likes
680

Hi,

Check file name exists or not. Check the syntax of open data set.

Regards,

sunil

Read only

Former Member
0 Likes
680

transfer wa to file.

Read only

Former Member
0 Likes
680

HI Experts,

Try to keep Wait statement after u complete ur write statement or Keep wait after open data set.

IF u r using it in background mode hope it doesnt get the processes.