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

internal table

Former Member
0 Likes
413

how to modify a particular record of an internal table in runtime

5 REPLIES 5
Read only

JozsefSzikszai
Active Contributor
0 Likes
392

hi,

for example with the MODIFY statement...

ec

Read only

Former Member
0 Likes
392

HI,

You can do as below:

loop at itab.

if condition.

if sy-subrc eq 0.

"change the contents of itab-field.

modify itab.

clear itab.

endif.

endif.

endloop.

Thanks,

Sriram Ponna.

Read only

0 Likes
392

to modify a particular record of an internal table in runtime

should i use any additional extension with the modify statement ........ because i need to modify a particular record only not whole internal table..pls help

Read only

0 Likes
392

Hi kumar,

you can try this.

loop at itab into wa_itab.

if <check for condition in wa_itab>.

change the wa_itab.

modify itab from wa_itab.

endif.

endloop.

where wa_itab is the work area for itab.

Hope this helps.

cheers

~goldie

Read only

0 Likes
392

Hi Kumar, Please use modify with transporting option

ie. MODIFY scarr_tab INDEX idx FROM scarr_wa

TRANSPORTING currcode

This stmt will only modify currcode... So what ever field you want to modify specify them after transporting. please let me know if you still have a problem..

Regards,

Swaroop Patri