2008 Nov 21 1:43 PM
2008 Nov 21 1:53 PM
Hi Nikita,
In the layout fill :
is_layout-box_fieldname = 'CHECKBOX'
is_layout-box_tabname = 'I_OUTPUT'.
The internal table that you are passing as I_OUTPUT, should have an extra field called CHECKBOX of length 1.
Also refer to tutorial Easy Grid :
Also refer program: BALVSD01
Hope this will help.
Regards,
Nitin.
2008 Nov 21 1:44 PM
you need to update the strucuture that you are sending into FM of ALV and give the fieldcatalog to it as checkbox..
2008 Nov 21 1:47 PM
2008 Nov 21 1:49 PM
check prog: BCALV_EDIT_05
in the above program , you need to look at this code for soultion
*§A2.Add an entry for the checkbox in the fieldcatalog
clear ls_fcat.
ls_fcat-fieldname = 'CHECKBOX'.
* Essential: declare field as checkbox and
* mark it as editable field:
ls_fcat-checkbox = 'X'.
ls_fcat-edit = 'X'.
* do not forget to provide texts for this extra field
ls_fcat-coltext = text-f01.
ls_fcat-tooltip = text-f02.
ls_fcat-seltext = text-f03.
* optional: set column width
ls_fcat-outputlen = 10.
2008 Nov 21 1:49 PM
Hi,
Define one field in an internal table (final which u pass to alv FM)
for ex: chk_box type c.
then build field catalog for this field in field catalog mention checkbox as 'X' and if u want that check box to be editable then pass parameter input of fieldcatalog as 'X'.
Code:
TYPES : BEGIN OF TY_DEL_ENT,
CHK_BOX(1) TYPE C, "Check Box
AUFNR TYPE AUFNR, "Order Number
END OF TY_DEL_ENT.
fieldcatalog
FS_FIELDCAT-TABNAME = WL_TABNAME.
FS_FIELDCAT-FIELDNAME = WL_FCAT_CHK.
FS_FIELDCAT-SELTEXT_L = TEXT-007.
FS_FIELDCAT-CHECKBOX = WL_X.
FS_FIELDCAT-INPUT = WL_X.
APPEND FS_FIELDCAT TO INT_FIELDCAT.
Hope this will help.
Regards,
Rohan.
Edited by: rohan jain on Nov 21, 2008 2:50 PM
2008 Nov 21 1:53 PM
Hi Nikita,
In the layout fill :
is_layout-box_fieldname = 'CHECKBOX'
is_layout-box_tabname = 'I_OUTPUT'.
The internal table that you are passing as I_OUTPUT, should have an extra field called CHECKBOX of length 1.
Also refer to tutorial Easy Grid :
Also refer program: BALVSD01
Hope this will help.
Regards,
Nitin.
2008 Nov 21 2:07 PM
Hi rohan
i given same wat u said but in the output the field is showing in disable with right click .
2008 Nov 21 2:09 PM
you might have not given edit an 'X', in the field catalog..
ls_fcat-edit = 'X'.
check my previous post
2008 Nov 21 2:11 PM
Hi,
Have you used the input and edit parameter of the fieldcatalog?
because i did the same (simple alv not grid display) and the check box is editable to me.
Regards,
Rohan.
2008 Nov 21 2:12 PM