10-08-2014 1:08 PM
Hi Friends,
I have a requirement which i need to fill the blank lines to the internal table. i have designed a the smartform and passing internal table to it. 8 records are displayed in a page. if my internal table consists of 2 records the rest is end up with space(yellow shaded) but user need rest of the space to be filled with blank lines. if the internal table consists of 84 records the last page need to filled with 4 blank lines. I searched for this in the forms but could'nt get any. Please suggest me how to go ahead.
Thanks,
Neetha.
10-08-2014 1:19 PM
10-08-2014 1:25 PM
Hi,
You know in advance that 8 lines can be displayed in page.
get total records in itab ,divide by 8 , add remaining records if required
Describe table Itab Lines lv_lines.
NoOfRec = lv_Lines Mod 8.
if NoOfRec > 0.
Append wa to itab. " Repeat appending to NoOfRec Times
endif.
10-08-2014 1:25 PM
Hi,
Display your internal table details in Main Window of smartform. It will automatically adjust according to the number of lines and no need to add blank lines to internal table.
10-08-2014 2:31 PM
Hi Neetha,
Create the Folder and tick the Header and Footer checkbox as shown below. Move the footer contents inside Footer
Give some height in 'Footer with Height' text-box. This helps to give some empty space between table and footer.
Regards
Rajkumar Narasimman
Message was edited by: Rajkumar Narsimman