08-30-2006 9:00 AM
hi,
I am working on reports. I have to have a check box and i am using the table LVC_S_FCAT to get the check box, i am getting the check box. how to enable it.
08-30-2006 9:03 AM
Hi Preethi,
Please pass 'X' to the structure field LVC_S_FCAT-EDIT for the check box field.
This will solve ur porblem.
Please assign points if helpful.
Regards,
Prabhas.
08-30-2006 9:02 AM
08-30-2006 9:02 AM
Hi,
If you want the check box to be editable, you need to set the EDIT field of LVC_S_FCAT to 'X'.
Regards,
Ravi
Note : Please mark all the helpful answer
08-30-2006 9:03 AM
Hi Preethi,
Please pass 'X' to the structure field LVC_S_FCAT-EDIT for the check box field.
This will solve ur porblem.
Please assign points if helpful.
Regards,
Prabhas.
08-30-2006 11:06 AM
thanks prabhas,
In the ALv Report the field has come. But how do i check that filed is selected or not.
For Eg:
In the report i have 10 customer id and a check box for 10. How do i find that customer is selected.
08-30-2006 12:28 PM
Hi Preethi,
You will have to call the method CHECK_CHANGED_DATA of the ALV Grid object. This method will transfer the data from the grid to the respective internal table. then you can loop at your internal table and check ( IF ITAB-COLUMN = 'X' ) if the checkbox is selected.
You can write this logic in the any of the grid events or in the subroutine set as CALL BACK FORM.
Regards,
Prabhas.
08-30-2006 9:07 AM
Hi Preethi,
try to set default the check-box with the
value '0', '1', '-', ' ' and 'X' (0/1 -> only display,
'-' field is not shown, ' ' and 'X' is normal)
and see the differences.
Hope it helps.
Regards, Dieter
Sorry, i thought you meen enable not editable.
Message was edited by: Dieter Gröhn
08-30-2006 9:13 AM
Hi Preethi,
U have to make changes in layout also. Check out this,
FORM f4000_layout .
CLEAR wa_layout.
wa_layout-zebra = 'X'.
wa_layout-cwidth_opt = 'X'.
<b> wa_layout-edit = 'X'.</b> [Needs to be added]
ENDFORM. " f4000_layout
Please reward helpful answers.