cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Main window in smartforms

Former Member
0 Kudos

Hi All,

I am creating a smartform, in that i need to restrict the no. of line item is to 15 and i need to draw a box for it. My problem is if i am displaying 15 line items the box will be drawn correctly and if i use only 3 line item then the box is drawing only for 3 line item. But i need to draw a box for 15 line items constantly at any given point of time irrespective of no. of line items. I am displaying this info using mail window, plz do help me.

Thanks & Regards,

pavan.M

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Pavan,

Go to the Main window...

Select the Output options Tab.

IN that at the end you can find a Check box Always Draw Box and Shading. at the end.

Select this check box and also select the Lines with Check box.

You will always get the Border for the Main window irrespective of its data.

Now fit the main window size to the 15 lines of the table.

Hope this solves ur problem.

Regards,

Sai Ramesh

Former Member
0 Kudos

Hi Ram,

Tnx for your replay and itz working now..

Regards,

pavan.m

Former Member
0 Kudos

Please do remember to close the thread when your problem is solved !!

Reward all helpful answers.. !!

Regards,

Sai Ramesh

Former Member
0 Kudos

Hi,

First describe your internal table and based on that you deifne another internal table in which you will have some 2 dummy fileds

suppose if you internal table has 10 lines then you need to have 5 more lined to print right?

say describe lines is v_lines

v_rem = v_lines mod 15. (you will get remainder here)

then v_count = 15 - v_rem.

before main window do code as following .

do v_count times.

v_dummy1 = text (maintgain soem text in this field)

v_dummy2 will not have any value.

append these values to it_dummy table.

enddo.

And when you loop main table count one more variable say v_cnt.

Now you can loop your dummy internal table based on condition.

the condition would be v_cnt eq v_lines .

and print empty text . dont print the field that have some text.

loop dummy table only after printing main table data in the main window.

Hope you got the logic

Dont forget to reward points

Regards,

Nageswar