Application Development and Automation 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: 
Read only

By Using SALV classes...Selecting Header should automatically select items.

Former Member
0 Likes
343

Hi,

I have developed a TREE ALV program using SALV classes. Now I have got a problem like

I kept check boxes for header and item. If I select Header checkbox all the item checkboxes should be selected.

Can anyone helpme in this..

example;

Header--


shipment--


delivery

checkbox------ 1022 -


checkbox----


2568223

checkbox----


2568224

checkbox----


2568225

Let us suppose If i select shipment level all delivery levels should b

1 REPLY 1
Read only

naimesh_patel
Active Contributor
0 Likes
305

Get the Events of the Tree by using the method GET_EVENT of the SALV tree. Handle the event CHECKBOX_CHANGE. Inside the event handler, you will have an access to Node using NODE_KEY. Get all the child belong to that node and set the field checkbox based on the value of CHECKED.

Regards,

Naimesh Patel