Skip to Content
avatar image
Former Member

Regarding Check boxes in ALV

Hi

Can anyone tell how to insert checkboxes in to ALV and based on the checkboxes selected i want to display the data.

I have tried like this, but it is giving a dump as Field Symbol is not yet been assigned.

Data: c1(1).

wa_layout-box_fieldname = 'C1'.

wa_layout-box_tabname = 'INTTAB'.

Regards

Haritha.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 20, 2007 at 02:25 PM

    Hi Sudheer,

    I am not using OOALV. Do u have any ex program on how to insert checkboxes with out using OOPS concept.

    Regards

    Haritha.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 20, 2007 at 02:19 PM

    hi

    u declare the chk box in an internal table as first field

    and then give that internal table name in

    wa_layout-box_tabname = '<itab name>'

    when ever u select the chk boxes on list the internal table containing the chkbox gets automatically populated.

    so u can directly check the internal table and acess the data

    like

    if itab-chk = 'X'.

    <logic of urs>

    endif.

    Message was edited by:

    Premalatha G

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 20, 2007 at 02:20 PM

    Hi,

    We have a good example provided by SAP, please have a look at BCALV_EDIT_05

    Regards

    Sudheer

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 20, 2007 at 02:21 PM

    Hi

    I have done that, but forgot to mention in the question. I have declared it like this.

    Data: Begin of inttab occurs 0,

    c1(1),

    End of inttab.

    Regards

    Haritha.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 20, 2007 at 02:54 PM
    Add comment
    10|10000 characters needed characters exceeded