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: 

Extension of Terms and conditions page in PO smartform

former_member224444
Participant
0 Kudos

Hi gurus,

I have two pages in a smartforms.....First page and Next Page.......

In Next page field of First page i have given next page. In Next page field of next page i have given next page itself. In main window i have three table's one for PO line item display.. other to print amount in words...third table to display terms and conditions. This terms and conditions i am getting from header text of ME2*N, using read_text am getting the data. Problem is when they are giving more than 9 pages in header text, when clicking printpreview, Print preview is not coming. Why my main window is not getting extended more than 9 pages, is there any limit for main window. it is not accepting more than 9 pages in header text.

9 REPLIES 9

madhu_vadlamani
Active Contributor
0 Kudos

Hi Rithika,

As i know there is no limits.

Regards,

madhu.

Former Member
0 Kudos

There is no such limitation on the main window.

What do you mean by print preview is not coming? Did you check the sy-subrc of the FM?

Vikranth

0 Kudos

I mean am getting that print dialog box. But output is not coming, it is coming back to me23n window after clicking print preview in that print dialog box. The problem is it not accepting more than 9 pages in header text. But if i give up to 9 pages in header text am getting the output. If my main window has no limit why its not extending more than 9 pages. Please solve my problem.

0 Kudos

Hi Rithika,

You please do one thing.Just get a spool request while print and pass to RSTXPDFT4 and see how many pages it is printing.Just print it directly instead of view.

Regards,

Madhu.

0 Kudos

Hi madhu,

Even if i print it directly am not getting spool request generated if i give more than 9 pages in header text.

Rithika

Former Member
0 Kudos

Hi,

>>Problem is when they are giving more than 9 pages in header text, when clicking printpreview, Print preview is not coming.

try to find out by debugging,

you can debug smart form putting break point in the generated FM code.

Could be problem with how you are filling the Read_text data into internal table and printing the data.

check type and how the records are filling the table > could be memory issue on internal table.

check on what conditions you are printing the terms page and how you are triggering the third pages , i mean condition tab and command window to call the page.

0 Kudos

Hi,

I am not using internal table to display terms and condition, am using folder, in that folder am having include text. And this terms and condition is not in separate page, am having this in main window of first and next page. There is no command line used because if main window data overflow's it will automatically trigger next page rite? Even if i create separate page and in secondary window of that page am inserting my terms & conditions text it will truncate remaining contents which are more than page size. Please solve my issue.

Rithika

0 Kudos

I solved this issue myself, i have stored header text in a internal table using read_text function module. I used loop node to loop through that internal inside the terms and conditions table of main window. Because of loop node if there is a overflow in that first page it will go to next page. Thanks for all your help.

0 Kudos

Now my issue is solved. But i don understand why its not printing before. I have just used a internal table containing header text data, and added that in the data tab of table node and printed that data using work area. My question is only tables with internal table looping will extend to next page or what? Previously in main window it was in a table and include text is used to print the terms and condition. Does the table without internal table looping will not extend to next page? but i was able to get up to 9 pages before. Can anybody clarify my doubt please.