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

Retrieving checkbox selection

Former Member
0 Likes
597

HI,

I need to select more than one checkbox in interactive report & need to pass the corressponding records to the smartform for printing.For a single record selection,I tried with hide & read line sy-lilli ...with field value... statements.How to do for more than one record selection?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
569

Hi,

Welcome to SCN!!!

when your itab1 contains checkbox, you can move those entries in another table and pass it to the smartform.

loop at itab1 where chk = 'X'.

itab2 = itab1.

append itab2.

endloop.

pass this table to smartform.

3 REPLIES 3
Read only

Former Member
0 Likes
570

Hi,

Welcome to SCN!!!

when your itab1 contains checkbox, you can move those entries in another table and pass it to the smartform.

loop at itab1 where chk = 'X'.

itab2 = itab1.

append itab2.

endloop.

pass this table to smartform.

Read only

Former Member
0 Likes
569

Hi,

I'm doing so.But the thing is I'm using read sy-lilli statement inside loop .

But, it is capturing only the first checkbox.the other things which are selected are not captured.please provide me a solution

Read only

0 Likes
569

Hi Arun,

Assuming that you have a field checkbox as part of your table itab.

"This code will loop through each line that has been selected.
Loop at itab into wa_itab where checkbox is not initial.

endloop.

Regards,

Jovito