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

SAP Smartforms

0 Likes
1,340

Dear All,

I have created a smartform. In that there are two pages. First page should be portrait format and second page should be landscape format.

Both pages having internal table and it contain multiple records.

The problem is, if page one have more records and it's not enough to print in single page. so, record would continue with second page(page number 2 in PDF). but it's nothing happen because it's a secondary window. And, page2 also have more records. it also should continue next page. How we ca do this if first internal table have more then two page of record then second internal table should start from next page.

How we can do this.... please help me to resolve this issue.

Thanks,

Jayaprakash N

8 REPLIES 8
Read only

Former Member
0 Likes
1,269

Sounds like you really need to put that internal table in a main window...

Read only

0 Likes
1,269

Hi,

Basically only one main window have in a smartform.

I have a main window in second page. so how can do that..

Read only

0 Likes
1,269

Hi,

do one thing , create main window itself in your first page, and create all the elements in first page itself, and then call your second smartform based on the data in your internal table.

Read only

0 Likes
1,269

Put your first internal table in Main window, and second internal table in secondary window. Now for second internal table, use page break option.

Read only

0 Likes
1,269

Copy your main window from page two to page one. I am not 100% sure you can redefine the line definitions for the new main window (I am assuming it must be less wide compared to the lines on the landscape format) but it is worth a try.

Read only

0 Likes
1,269

hi Jayaprakash,

each page must have a main window.to get the second table to start at new page use page protect in text element of the page....

hope it solves ur problem...

Read only

shah_viraj
Active Participant
0 Likes
1,269


Hi Jayaprakash,

It seems you already know the solution as you have written that the records are not getting printed on next page because internal table is in secondary window. As secondary windows are static windows records would not go on next page. Put your internal table in main window and try.

Read only

thangam_perumal
Contributor
0 Likes
1,269

Hi,

      Why you preparing for secondary window. please use main window it will fulfill your requirements.

Regards,

Thangam.P