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: 

how to limit display of line items(rows) of a table in smartforms

Former Member
0 Kudos

hi,

i want to display only three lines (rows) of the table per page in the smartform. i tried resizing the window in which the table control is placed.but some times it displays three , sometimes two lines.is there any conditions to be set?...pls advice

regards

kiran

1 ACCEPTED SOLUTION

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

In Global definition,

cnt type i 0.

Inside the table,create a program line.

Declare the input and output parameters as cnt.

In coding part,

cnt = cnt + 1.

After that create command.In that mention,cnt = 3 in condition for attribute.Check mark go to new page.

After that create program line.Declare cnt as Input and Output paremeter.

In coding,

cnt = 0.

Kindly reward points by clicking the star on the left of reply,if it helps.

6 REPLIES 6

Former Member
0 Kudos

in the table control insert

-> Create - > Command - > Goto New page - > specify the same page

and in the conditions add your conditions

before that insert one program line there count the line

and if it reaches 3 lines then use the command

cheers,

sasi

0 Kudos

hi sasi,

thanxs for the speedy reply...

i have created the condition and the command.but the temporary variable i created in the command to count line is not identified as a field in the conditions tab in condition...

thanxs

0 Kudos

hi,

you do the following things

1. define one count variable in the global definitions

2. insert program line inside the table

there you add the code like

l_count = l_count + 1.

l_count = l_count mod 3

3. in the command - > conditions specify like

l_count = 0

cheers,

sasi

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

In Global definition,

cnt type i 0.

Inside the table,create a program line.

Declare the input and output parameters as cnt.

In coding part,

cnt = cnt + 1.

After that create command.In that mention,cnt = 3 in condition for attribute.Check mark go to new page.

After that create program line.Declare cnt as Input and Output paremeter.

In coding,

cnt = 0.

Kindly reward points by clicking the star on the left of reply,if it helps.

0 Kudos

Hi,

If you have problem in giving the cnt in condition,

just make your workarea and internal table contains that cnt also.

Global definitions->Types

types : begin of ty,

...other fields

cnt type i,

end of ty.

Hope it helps.If so,kindly reward points by clciking the star on the left of reply.

0 Kudos

hai,

thanks to you all....

i finally got it...

good job..

thanxs