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: 

Issue in Default Checkbox Selection

Former Member
0 Kudos

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

2 REPLIES 2

alejiandro_sensejl
Active Participant
0 Kudos

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

Former Member
0 Kudos

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