‎2006 Dec 21 5:42 AM
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.
‎2006 Dec 21 5:44 AM
hI JAFAR,
In the fieldcatalog for the required field set CHECKBOX = 'X'.
regards,
SAI
‎2006 Dec 21 5:44 AM
‎2006 Dec 21 5:44 AM
hI JAFAR,
In the fieldcatalog for the required field set CHECKBOX = 'X'.
regards,
SAI
‎2006 Dec 21 5:46 AM
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.
‎2006 Dec 21 5:46 AM
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
‎2006 Dec 21 5:46 AM
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
‎2006 Dec 21 6:42 AM
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