Ya I've gone through your logic. But it didn't work out for my requirement.
Your Logic:
DATA: gv_tot_pages TYPE numc3,
gv_index TYPE I.
Loop at lt_final into ls_final.
gv_tot_pages = gv_tot_pages + ls_final-no_of_labels.
endloop.
Loop at lt_final into ls_final.
do ls_final-no_of_labels times.
gv_index = gv_index + 1.
enddo.
endloop.
1. My ALV Internal Table came to my Smartfrom
2. As my internal table contains Three (3) line items, in smartform i got Three (3) line items as Three (3) boxes.
3. According to my requirement,
first box or first line item should comes 3 times as (No. of label = 3)
second box or second line item should comes 4 times as (No. of label = 4)
third box or third line item should comes 5 times as (No. of label = 5).
Now kindly let me know the exact logic and where exactly should i write it.
With Regards,
Sudhir.