Application Development 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: 

Multiple Selection in ALV grid

Former Member
0 Kudos

HI All,

I am displaying output using ALV grid method. On screen i am selecting multiple rows & based on selection i want process further. How can i determine whcih rows user has selected ?

Regards,

Rahul

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Rahul,

you can use the event " HANDLE_DATA_CHANGED".

In this you can fetch the selected fields form the ALV Grid.

Hope this helps.

Regards,

Chitra

4 REPLIES 4

Former Member
0 Kudos

Hi Rahul,

you can use the event " HANDLE_DATA_CHANGED".

In this you can fetch the selected fields form the ALV Grid.

Hope this helps.

Regards,

Chitra

Former Member
0 Kudos

Hi,

In IT_FIELDCAT you can pass one field with attributes of check box.

for example.

Declare:

DATA: GT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,

FIELDCAT_LN LIKE LINE OF GT_FIELDCAT.

Pass the below values.

FIELDCAT_LN-FIELDNAME = 'CHECK'.

FIELDCAT_LN-TABNAME = 'ITAB1'.

FIELDCAT_LN-KEY = ' '. "SUBTOTAL KEY

FIELDCAT_LN-NO_OUT = ' '.

FIELDCAT_LN-SELTEXT_L = 'Check Box'.

FIELDCAT_LN-CHECK-BOX = 'X'.

APPEND FIELDCAT_LN TO GT_FIELDCAT.

<b>rEWARD IF USEFULL</b>

Former Member
0 Kudos

Hi,

Use the Method <b>GET_SELECTED_ROWS_BASE</b> in Class <b>CL_GUI_ALV_GRID</b>.

Regards,

Padmam.

Former Member
0 Kudos

Try method GET_SELECTED_ROWS of class CL_GUI_ALV_GRID

Regards.