Skip to Content

Check box remains non editable in alv report using CL_SALV_TABLE method.

Hello Experts,

I have a report to developed in which the display must be in below format,

1)The first column must have a checkbox, from which i can select any number of line items and and process the selected ones.

Now have created the check box using following code

go_columns = GO_ALV->get_columns( ).
go_column ?= go_columns->get_column( 'CHKBOX' ).
go_column->set_cell_type( if_salv_c_cell_type=>checkbox ).

Now these check boxes remain in non-editable mode.

Could you please help me on

1) making these check box colomun editable.

2) selectig mulitle line and process it,(where to code for this condition).

Thanks and Regards,

Satish Kumar Balasubramanian

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Posted on Jan 03, 2014 at 07:18 AM

    HI satish,

    What have you given in field catalog for check box.. have you given true to edit Option ??

    Regards

    Sivaganesh

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 03, 2014 at 07:22 AM

    This message was moderated.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 03, 2014 at 07:32 AM

    Hi,

    In the below link, I am explaining editable ALV. Please check.

    http://scn.sap.com/docs/DOC-2367

    Please check the class CL_SALV_WD_UIE_INPUT_FIELD

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 03, 2014 at 07:35 AM

    hi,

    if use salv table u cannot editable the fields. if u want to edit the fields then use ALV. in salv table only we can view the fields in the table. we cannot make any changes .

    Regards,

    gopi

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 03, 2014 at 07:50 AM

    First notice/remember that CL_SALV_TABLE does not allow for input column (*), so your "checkbox" is grayed/non-editable. The only "editable" field is the leftmost "selection check box", so use method GET_SELECTIONS to get a reference to a CL_SALV_SELECTIONS instance and its SET_SELECTION_MODE method before displaying the grid, then use GET_SELECTED_ROWS to get list of selected rows.

    Regards,

    Raymond

    (*) At least without tricks or cheating the system, but you actually don't require this. You could also read cl_salv_table --needs editable functionality -SAP please provide this for funinformation.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.