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: 

Creating Empty file with Open Dataset

Former Member
0 Kudos

Hello friends,

I am facing one problem. I have to transfer some data from internal table into a file using OPEN DATASET.

I am successfully able to store the data when the internal table is filled. However the file doesnt get created if there is no data in internal table.

My requester is asking that even if data is not there, the empty file should be created so that he can get to know that there is no data.

How can I make it? I need some solution to create empty file using Open Dataset.

Points will be rewarded generously.

Regards,

Navin

1 REPLY 1

abdulazeez12
Active Contributor
0 Kudos

To create the file, u need to input something there.

Try this..

If your internal table is empty.

Open the file using OPEN DATASET and pass a simple '.' to the file..

then CLOSE DATASET.

Now ur file will have a DOT. And it will be empty..

I think this will be accepted..

Cheers