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

Append in file

Former Member
0 Likes
745

I have following problem. There is a *.csv file in application server. I would like to append a new row in this file. The row should be appending on the top of this file.

Do you have some idea?

Thanks!

I have following problem. There is a *.csv file in application server. I would like to append a new row in this file. The row should be appending on the top of this file.

Do you have some idea?

Thanks!

2 REPLIES 2
Read only

Former Member
0 Likes
572

hi Nika,

the best way is first read that data into some internal table and then append the new record at the top and then upload that data.

for uploading and downloading the data

check

http://www.sapdevelopment.co.uk/file/file_uploadsap.htm

http://www.sapdevelopment.co.uk/file/file_downloadsap.htm

regards,

santosh

Read only

Former Member
0 Likes
572

HI,

Best option would be, first read the file into your memory using the open dataset...

Now add the new line at the top of internal table.

Delete the file from the application server and again write back the newly created internal table.

Regards

Subramanian