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

Modify itab.

Former Member
0 Likes
530

Hi,

Can any one tell how can i modify the internal table with the changed values in the output list.

write:/ itab-a input on.

Writes the output which can be modified after Modifying i want To modify the internal table with that value.

Ex : Output.

12

25

26

if i modify the first record 12 to 15 now i want 15 to be in my table.

i.e. the output of the table should be

15

25

26

can anyone help in this.

Regards,

Vaasu.

4 REPLIES 4
Read only

valter_oliveira
Active Contributor
0 Likes
507

Hello.

Try event AT USER-COMMAND.

Best regards.

Valter Oliveira.

Read only

Former Member
0 Likes
507

Hello,

Take a look at the program demo_programm_submit_line.

Regards.

Read only

prasanth_kasturi
Active Contributor
0 Likes
507

Hi,

check the below code It will Be Helpful For You

After you modify the field, double click on it

data : begin of itab occurs 0,

f1(2),

end of itab.

itab-f1 = 'AA'.

append itab.

itab-f1 = 'CC'.

append itab.

itab-f1 = 'EE'.

append itab.

loop at itab.

write 😕 itab-f1 input.

endloop.

AT LINE-SELECTION.

loop at itab from sy-lilli to sy-lilli.

itab-f1 = SY-LISEL.

modify itab.

endloop.

Write / 'The Changed Internal Table'.

loop at itab.

write 😕 itab-f1 .

endloop.

REWARD IF HELPFUL

PRASANTH

Read only

0 Likes
507

Hello Thanks for the answer but this code is modifying the last record of the internal table if i change the first record the first record has to modify........

Thanks,

vaasu.