cancel
Showing results for 
Search instead for 
Did you mean: 

Main window in Smart Form

Former Member
0 Kudos

Hi,

Is it possible to restrict no. of lines in Main window??

Thanks in Advance,

Meenu.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Yes,

It is possble to restrict the number of items in main window.create one varible it is type integer then

set it as the counter and the and then create the one command node in main area of the table to test the counter is value if the conditions tab and check the "go to new page " check box.

Answers (4)

Answers (4)

0 Kudos

Hi ,

1.In the loop of the internal table , goto the calculation tab.

In that select the operation as 'Number' and time as 'Before loop' and give the variable name in the target field.

2.Create a command inside the loop.Check for the condition that if the value of the variable is equal to 8 and if the condition is true then trigger a new page.

3.For each new page, clear the variable.

This will display only 8 lines in each page.

Regards

D.Vadivukkarasi

Former Member
0 Kudos

I want to print only 8 lines on each page in a main window.

Former Member
0 Kudos

Hi Meenu,

yes,u can do but it will be trail and error method.

maintain your item table to have more than 8 records.

and execute the smart form. adjust your secondary windows to the main windows till you get 8 records in your from.and adjsut ur main window according to tht.

Try this till you get 8 records a

Hope this will help

Regards

Rasheed.

Former Member
0 Kudos

Hi,

Best way is to reduce height of the main window.

Former Member
0 Kudos

maybe you have to adjust for your situation but the intention is:

define abap-code before your text node and add 1 to a count-field.

after text node have a decision node for counter GE 8 and give command to go to next page and reset counter if true.

Former Member
0 Kudos

reduce the main window . for border purpose create one dummy window before main window, in this window create one template put the lines, that will appear like you main window border.

Former Member
0 Kudos

hi,

i think it is not possible to restrict the lines in the main window.because the records are dynamic in the main window.if u want to adjust the output try to reduce the main window size.but it is not the correct way.please post ur querry clearly.so that i can answer u.

<<text removed . Don't ask for points>>

thanks,

gupta

Edited by: Matt on Nov 19, 2008 7:44 PM