Skip to Content
author's profile photo Former Member
Former Member

Issue in Default Checkbox Selection

Hello Experts,

I have one query regarding OOP's ALV Tree.

In output screen I have one field as checkbox. Based on certain conditions the value of checkbox becomes X.

But If I execute the report then in output screen that checkbox is not getting ticked. Instead of ticking checkbox in beside checkbox one value 'X' is coming.

Can anybody suggest me how to resolve it as in output structure values are properly going?

Regards,

Neha

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Sep 06, 2010 at 06:36 PM

    Hello neha gupta,

    you have to use method ITEM_SET_CHOSEN to tick/untick a checkbox in an ALV tree. If you search on SDN and/or Google you can find various examples for this.

    Regards,

    Alej

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 07, 2010 at 05:31 AM

    Hi,

    I seen this answer from forum,

    Just try following code.If its useful..

    data: v_tree type ref to CL_GUI_COLUMN_TREE .

    v_tree->ITEM_SET_CHOSEN

    Exporting

    NODE_KEY = node_key

    ITEM_NAME = Item_name

    CHOSEN = 'X'

    regards

    chandhru

    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.