10-08-2007 6:51 AM
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
10-08-2007 7:01 AM
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