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

Print Problem in Smartforms

Former Member
0 Likes
1,044

Dear All,

I have PO output in which there are 20 items(but 12 items will be printed in one page)

The problem is in Print preview, i am getting the output in 2 pages.but while taking the print in me9f

it is printing in the same page, that is overwriting in the first page

Thanks in Advance

9 REPLIES 9
Read only

Former Member
0 Likes
918

hii

Please check the page attributes for Page 1, wheather you have defined next page as PAGE 2.

Debugg the form by activating the debugger for the form & check.

Revert back for more help

Reward points if helpful .

Regards

Naresh

Read only

0 Likes
918

Dear Naresh,

I have given Next page option as Next Page

Regards

Arun

Read only

0 Likes
918

Hi Arun,

is there a Next page defined? and if there is no next Page give the Next page First page it self.

Regards

vijay

Read only

0 Likes
918

Dear Vijay,

I have given Next page as Firstpaaaage, still it's not working

So i Created a new page by copying teh first page & kept page2 in next page

still the same problem

Please help me

regards

Arun

Read only

Former Member
0 Likes
918

hii

Are you getting any data in the 2nd page

Read only

0 Likes
918

in preview i am getting the data, but in printout

the data of seond page is appearing (overwriting) in the first page.

Regards

Arun

Read only

Former Member
0 Likes
918

hii

check this logic

1. Count how much lines(#cnt) in the Header text of the P.Order that will ensure that it goes over to the next page. (#cnt) will then be hardcoded

2. Check if the counter is >= than #cnt(hardcoded) trigger a next page. The next line item on the P.Order will thus be on the next page

Read only

Former Member
0 Likes
918

Hai Arun

CALL FUNCTION 'GET_PRINT_PARAMETERS'

EXPORTING MODE = 'BATCH'

REPORT = 'MYREPORT'

IMPORTING OUT_PARAMETERS = PARAMS

VALID = VALID.

look into this link

http://help.sap.com/saphelp_nw04/helpdata/en/d5/6243ea8a4111d4b605006094192fe3/content.htm

You need to set the USER_SETTINGS perameter in your SmartForm to SPACE

Thanks & regards

Sreeni