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: 

Smartforms: 2nd page mainwidow problem

vallamuthu_madheswaran2
Active Contributor
0 Kudos

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

1 ACCEPTED SOLUTION

former_member212005
Active Contributor
0 Kudos

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

9 REPLIES 9

Former Member
0 Kudos

Hi Vallamuthu,

Please provide your smartform - Pages & Windows hirerarchy screenshot.

Best Regards,

Prasanna

former_member212005
Active Contributor
0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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

 


0 Kudos

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?

0 Kudos

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.

0 Kudos

yes, this link explains well:

this explains for 2 pages with main windows scenarios:

http://www.****************/Tutorials/Smartforms/Command/Index.htm

Former Member
0 Kudos

Hi Vallamauthu,

Refer this link,

http://scn.sap.com/thread/3389406

Hope it will solve your problem.