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

Object Oriented ALV in Module Pool

Former Member
0 Likes
390

Dear All,

i have created a Module Pool Program. in that i have

used Oject Oriented ALV in a custom Container. now

in that ALV some rows are displayed. now i select

particular lines in that ALV. now i want to save those

selected lines into the Ztable created.

i have written code in PAI Event as:

it_table type lvc_t_row.

it_sel type lvc_s_row.

call method alv_object->get_selected_rows

importing

et_index_rows = it_table.

now in it_table i am not getting any selected rows.

Pls Solve it.

3 REPLIES 3
Read only

Former Member
0 Likes
371

You will have to mark the selected rows on the ALV inside your internal table in event before_user_command. Make sure you subscribe to this event before using it.

Read only

Former Member
0 Likes
371

Hi,

Check the fields SEL_MODE, NO_ROWMARK in layout structure.

there is three prarameter, check possibilities

IT_INDEX_ROWS

IT_ROW_NO

IS_KEEP_OTHER_SELECTIONS

Read only

Former Member
0 Likes
371

Hi Sandeep,

For the method GET_SELECTED_ROWS, import the parameter et_row_no too.

then it will work.

CALL METHOD gt_grid1->get_selected_rows

IMPORTING et_index_rows = gt_row_ind

et_row_no = gt_row_line.

Try this .

Reward points