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: 

How to enable a check box using the table LVC_S_FCAT

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

7 REPLIES 7

Former Member
0 Kudos

check program.

<b>BCALV_EDIT_05</b>

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

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.

0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.