07-15-2013 5:38 AM
Hi Friends,
In smartforms, I've print the header details in first page and item details in second page.
In my case, the 2nd page mainwindow is not displayed. If i change the mainwindow as secondary window then it displays the data.
I'musing COMMAND statement in the first page to display the second page.
Thanks with Regards,
Vallamuthu M
07-15-2013 5:50 AM
Check out for conditions in Main Window....Also what does debugging show?
Moreover, why are u using COMMAND statement to display second page? Is there any specific reason like as shown in below link?
http://www.saptechnical.com/Tutorials/Smartforms/Command/Index.htm
07-15-2013 5:47 AM
Hi Vallamuthu,
Please provide your smartform - Pages & Windows hirerarchy screenshot.
Best Regards,
Prasanna
07-15-2013 5:50 AM
Check out for conditions in Main Window....Also what does debugging show?
Moreover, why are u using COMMAND statement to display second page? Is there any specific reason like as shown in below link?
http://www.saptechnical.com/Tutorials/Smartforms/Command/Index.htm
07-15-2013 6:13 AM
HI Vineesh Varghese,
Thanks for your quick action.
If the first page data is overflow then the next page is displayed.
In my scenario, the first page is not overflow the data. So the second page is not displayed. So I've ued the COMMAND statement.
the link, which was given by you, It's only over flow the data. It's not matched my scenario.
Thanks with Regards,
Vallamuthu M
07-15-2013 6:18 AM
Hi ,
If your Header Details require a fixed template and will accomodate on the First Page.
Create Main Window on the second Page and change the the main window on the first page to a secondry window , in the properties of the first page provide the next page as &Page2&
Hope this Helps !!!
Regards
07-15-2013 7:16 AM
Hi Vallamuthu:
'COMMAND' statement is placed in Main Window and it continues printing after the command node that triggered the page break.
Here is how u are to do if using in Main Window:
Page 1
-- Main Window
--- Print Header Details
--- Trigger Command Window - To Page 2 (With condition - Only on First Page)
--- Display Item Details
Page 2
-- Main Window
--- Print Header Details
--- Trigger Command Window - To Page 2 (With condition - Only on First Page)
--- Display Item Details
What wound happen in this case is that after header details are printed....the command statement would start output in Page 2 from Node "Display Item Details"
NOTE: Copy the same 'MAIN' window in both pages. I have tried this and it works!
Check out the below link on SAP Help for more details:
http://help.sap.com/erp2005_ehp_04/helpdata/en/70/e17a37dec511d3b575006094192fe3/content.htm
07-15-2013 7:21 AM
Also, even if u don't copy the same 'MAIN' window....it still works! I have tried this also.
Moreover, what does the debugging result show? Is the second page triggered?
07-15-2013 7:27 AM
I am going to take back this statement.......it has to be a copy of the same 'MAIN' window. So you will have to copy the same 'MAIN' window.
07-20-2013 8:31 AM
yes, this link explains well:
this explains for 2 pages with main windows scenarios:
http://www.****************/Tutorials/Smartforms/Command/Index.htm
07-15-2013 8:00 AM