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

Regarding Dataset

Former Member
0 Likes
431

Hi Friends,

I have one scenario, i need a little bit help on that.

The scenario is that i have to read the last line of a file and check whether there is a special charater or not. If the special character is found , i should edit the file from the previous line .

Thanks and Regards

Sohit Gulati

3 REPLIES 3
Read only

Former Member
0 Likes
416

Is it a local or a sequential file?

Read only

0 Likes
416

It is a sequential file which is on an application server.

Regards

Sohit

Read only

0 Likes
416

read the whole file (read dataset file) and store everything in a temporary internal table.

Once the file is read, read the last line of the internal table.

e.g. internal table = itab

describe table itab lines lv_lines.

read table itab index lv_lines.