cancel
Showing results for 
Search instead for 
Did you mean: 

Auto Fill Scenario using Check Box

Former Member
0 Kudos

Hi Experts,

I am facing one scenario, wherein, i have one ALV table with one editable column and one check box by name Auto Fill. Suppose my table has 30 rows, if the user enters some amount in the fourth row of editable coulmn, then, if he presses the check box, the subsequent rows( i.e., from 5 th row onwards ) also should get the same amount in that particular editable column. Please help me in solving this issue....

Thanks & Regards,

Akshay.

Accepted Solutions (0)

Answers (1)

Answers (1)

shahid
Product and Topic Expert
Product and Topic Expert
0 Kudos

you can write an action on check box " ON SELECT"... check the available methods for the check box...

you can get the class name , where the programmer has defined the check box UI element(if he creats dynamically)

now get the context element...

context element will give you the INDEX of the table and other method to get the values of the row...

as now you have the index ...you can fill the other rows using the above values..till the end of the table

you need to place this code in the method(ON SELECT)..

Former Member
0 Kudos

HI friend,

Thanks for giving an answer, but i am new to SAP webdynpro, can u please pass the coding for the above given answer.Can u pass any sample one..