‎2006 May 30 9:44 AM
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
‎2006 May 30 9:48 AM
Hi,
Check this links ; Good reference
Smartforms
http://www.sap-basis-abap.com/sapsf001.htm
http://www.sap-press.com/downloads/h955_preview.pdf
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sap-img.com/smartforms/smartform-tutorial.htm
http://www.sapgenie.com/abap/smartforms.htm
http://help.sap.com/saphelp_nw04/helpdata/en/26/849b22b65911d4b62d006094192fe3/frameset.htm
‎2006 May 30 9:53 AM
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
‎2006 May 30 9:54 AM
Dear Naresh,
I have given Next page option as Next Page
Regards
Arun
‎2006 May 30 10:00 AM
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
‎2006 May 30 10:53 AM
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
‎2006 May 30 9:57 AM
‎2006 May 30 9:59 AM
in preview i am getting the data, but in printout
the data of seond page is appearing (overwriting) in the first page.
Regards
Arun
‎2006 May 30 10:05 AM
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
‎2006 May 30 11:44 AM
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