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

statement Modify problem

Former Member
0 Likes
897

hi..

Modify i_tab from ztbd transporting field1 field2 field3.

i am using this statment in PAI loop of Table control.

i am getting dump saying using index addition.

suggest me to solve..

8 REPLIES 8
Read only

Former Member
0 Likes
865

Hello,

It is giving dump because u r modify statement is not correct.

This I_tab and Ztable work area must be same structure.

keep the loop to Ztab into workarea.

Modify table i_tab from workarea transporting field1 field2 field3.

endloop.

or you can do with sy-tabix.

Example.

MODIFY itab INDEX idx FROM workarea

TRANSPORTING currcode

Edited by: Santosh Marupally on May 22, 2009 7:43 AM

Read only

Mohamed_Mukhtar
Active Contributor
0 Likes
865

Hi,

MODIFY it FROM wa INDEX  <tablecontrolname>-current_line.

Thanks and regards

Read only

Former Member
0 Likes
865

Hi,

Eg: MODIFY i_ekpo FROM wa_ekpo INDEX sy-tabix TRANSPORTING field1 field2 field3.

Thanks,

Mohanraj.N

Read only

Former Member
0 Likes
865

Use Sy-Stepl

Modify i_tab from ztbd INDEX SY-STEPL transporting field1 field2 field3.

Regards,

Gurpreet

Read only

Former Member
0 Likes
865

Hai tommy,

MODIFY scarr_tab INDEX idx FROM scarr_wa

TRANSPORTING currcode.

MODIFY TABLE scarr_tab FROM scarr_wa

TRANSPORTING currcode.

can take help from this above examples.

Hope this solves yur issue.

Cheers,

Suvendu

Read only

Former Member
0 Likes
865

couldnt find solution..

Read only

Former Member
0 Likes
865

Hi,

Try like this;

Modify TABLE i_tab from ztbd transporting field1 field2 field3. " Include TABLE keyword

This should solve your problem.

Regards

Karthik D

Read only

Former Member
0 Likes
865

solved the problem by

modify itab from wa index sy-tabix.