Application Development 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: 

Filling blank lines to internal table in Smartform

Former Member
0 Kudos

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.

4 REPLIES 4

former_member249399
Active Participant
0 Kudos

Hi,

You can try with inserting 4 blank lines in internal table.

former_member183607
Contributor
0 Kudos

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.

former_member210621
Participant
0 Kudos

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.

rajkumarnarasimman
Active Contributor
0 Kudos

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