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

Change the statement

Former Member
0 Likes
537

Hi guy's,

Please help me, in simple list they used like this:

l_sel_box = 'X'.

MODIFY LINE sy-index FIELD VALUE sel_box FROM l_sel_box.

Converting this report into alv

i fech the value l_sel_box = 'X' value like this

LOOP AT RPT_TAB INTO RPT_TAB WHERE box = 'X'.

l_sel_box = rpt_tab-box.

How to write the modify statement here.

Thanks and Regards,

Sai.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
520

hi,

use this stmts as per ur requirement.

MODIFY itab [FROM wa] [INDEX idx] [ASSIGNING <fs>|REFERENCE INTO dref] [TRANSPORTING f1 ... fn].

MODIFY itab [FROM wa] TRANSPORTING f1 ... fn WHERE cond

Rgds.,

subash

4 REPLIES 4
Read only

Former Member
0 Likes
521

hi,

use this stmts as per ur requirement.

MODIFY itab [FROM wa] [INDEX idx] [ASSIGNING <fs>|REFERENCE INTO dref] [TRANSPORTING f1 ... fn].

MODIFY itab [FROM wa] TRANSPORTING f1 ... fn WHERE cond

Rgds.,

subash

Read only

Former Member
0 Likes
520

try this

LOOP AT RPT_TAB WHERE box = 'X'.

l_sel_box = rpt_tab-box.

modify RPT_TAB transporting box.

endloop.

Read only

Former Member
0 Likes
520

Hi,

Get all the records where check box value is checked

Loop at internal_tab into work_area where checkbox = 'X'.

Append work_area to new_internal table.

end loop.

UPDATE UR_DATABASE_TAB FROM TABLE New_internal table.

Thanks,

Sendil..

Read only

Former Member
0 Likes
520

Hi,

Get all the records where check box value is checked

Loop at internal_tab into work_area where checkbox = 'X'.

Append work_area to new_internal table.

end loop.

UPDATE UR_DATABASE_TAB FROM TABLE New_internal table.

Thanks,

Sendil..