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

Text Files

ramoruamodisha
Explorer
0 Likes
418

Hi all the wonderful people,

How are you all doing? I have to say: ABAP is the language I love developing in, why? because you guys are helping out and to all of you gurus: Thank you, much appreciated.

I have a problem though, I need to delete or clear the contents of my text file so that I can add new data to it everytime i work with it. I have tried to DELETE or CLEAR but it does not work.

Thank you, points will be awarded if helpful.

Ramorua

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
397

for delete text file:

use DELETE <DATASETNAME>

for entering into that use

open dataset <datasetname> for output in birnary mode.

after

transfer file to dataset.

3 REPLIES 3
Read only

Former Member
0 Likes
397

Hi,

please refer to [Working with Files on the Application Server|http://help.sap.com/saphelp_nw70/helpdata/EN/fc/eb3c7f358411d1829f0000e829fbfe/frameset.htm].

This could help you.

Regards Rudi

Read only

andreas_mann3
Active Contributor
0 Likes
397

simply use :

1)delete dataset

or 2)open dataset for output...

A.

Read only

Former Member
0 Likes
398

for delete text file:

use DELETE <DATASETNAME>

for entering into that use

open dataset <datasetname> for output in birnary mode.

after

transfer file to dataset.