Application Development and Automation 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: 
Read only

smartforms

Former Member
0 Likes
436

Hi all,

In smartform i got 50 line items.My req is to get 1 to 25 line item and 25 to 50 line item on the same page.........HOw to do tht.......

4 REPLIES 4
Read only

Former Member
0 Likes
412

please explin it clearly

Read only

Former Member
0 Likes
412

Check the no.of line items printed, if it is 25 then use command next page.

Read only

Former Member
0 Likes
412

Hi,

You will have a Driver Program fot the Smartforms or else, you can write the logic in the Main window of the samrtforms, so here, you will put a loop to print all the items, so just decalre a Counter, and increase it in the loop, if that comes to 25 then NEW PAGE(Depending on your requirment).

in the new page, declare another variable type of Sy-INDEX, and assign 25 to it.

then

loop at ITAB where sy-TABIX = NEW_VAR

New_VAr = New_var + 1.

Endloop.

Regards

Sudheer

Read only

Former Member
0 Likes
412

Hi

I guess, you want to print first 25 lines in left side of a page and them remaining 25 lines in the right side of a page.

Here, if you are sure that u'll have only 50 lines only everytime you can go for template.

If not, u adjust the main window exactly for half left of the page and create one more main window in right half of the page write the same code what u write for the first. In the first main window put a condition after each 25 lines and give next window command and in the second main window after each 25 give command for next page.

I'm sure this logic will serve your purpose.

Regards

Surya.