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

ALV-Grid Control

Former Member
0 Likes
734

Hi Experts,

I am developing an ALV report usig Grid control....In this report How to put a checkbox in ALV Grid?

Thanks in Advance,

Mastan.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
698

hI JAFAR,

In the fieldcatalog for the required field set CHECKBOX = 'X'.

regards,

SAI

6 REPLIES 6
Read only

Former Member
0 Likes
698

thread have ex.

Read only

Former Member
0 Likes
699

hI JAFAR,

In the fieldcatalog for the required field set CHECKBOX = 'X'.

regards,

SAI

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
698

Hi,

In output table,add a field of one character length and name it.(say checkbox).

In the fieldcatalog,modify the field to be edited by using edit = 'X'.

In the fieldcatalog,modify the field for checkbox = 'X'.

Reward points by clicking the star on the left of reply,if it helps.

Read only

Former Member
0 Likes
698

Hi,

In the layout structure pass BOX_FIELDNAME = 'BOX'.

And add a field name BOX in the output internal table..

This will add a selection button in the output..

Thanks,

Naren

Read only

Former Member
0 Likes
698

Hi,

Please follow the steps

1. Add a new field in the internal table which data type char1.

2. Add this filed to the field catalog at position1 and set the CHECKBOX field in the catalog to X.

then in the ALV this field will be displayed as checkbox ,and to make this field editable please also set the EDIT field in fieldcatalog as 'X'

Regards

Arun

Read only

Former Member
0 Likes
698

Hi jafar,

While defining the internal table .Add one more filed of type character.

DATA: BEGIN OF e_emp OCCURS 100,

empid LIKE zbsg-empid,

char TYPE c ,

END OF e_emp .

In the reuse alvpop -mark checkbox field name as internal table field name .

CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'

EXPORTING

i_title = sy-title

i_selection = 'X'

i_zebra = 'X'

I_SCREEN_START_COLUMN = 10

i_checkbox_fieldname = 'CHAR'

I_SCROLL_TO_SEL_LINE = 'X'

i_tabname = 'E_EMP'

i_structure_name = 'ZBSG'

IMPORTING

es_selfield = iselfield

e_exit = exit

TABLES

t_outtab = E_EMP

Thanks,

Siddhi