2009 Apr 20 6:05 AM
Hi all,
I am facing a problem in Smartform. This smarform has got two pages. In main window there is one table which need to come on second page. But i am getting this table at the end of the first page with only header and footer. On second page i am getting this table's data and footer. Fooer is getting repeated on both the pages. I want this whole table on second page. I am trying to insert a break point at this table, but nothin is working in this case.
Please help me with this problem.
Thanks,
Archana
2009 Apr 20 6:32 AM
Hi,
To put a break point in the smartform ,
You should add the program lines before the alternate condition
and code break-username or break point.Next time when you
execute your program the control will stop there.
Hope it helps
Regards
Mansi
Hi all,
I am facing a problem in Smartform. This smarform has got two pages. In main window there is one table which need to come on second page. But i am getting this table at the end of the first page with only header and footer. On second page i am getting this table's data and footer. Fooer is getting repeated on both the pages. I want this whole table on second page. I am trying to insert a break point at this table, but nothin is working in this case.
Please help me with this problem.
Thanks,
Archana
2009 Apr 20 6:06 AM
Hi,
Could you please show the code or driver program? Also please brief the smartform structure.
Best Regards,
Suresh.
2009 Apr 20 6:31 AM
Hi Suresh,
It is an Invoice smartform. It contains 2 pages. Main window for both is same. Main window has got three tables. Third table is the table which needs to come on second page.
But only header and footer r coming at the end of first page and data and footer are coming on second page.
Thanks,
Archana
2009 Apr 20 6:35 AM
In the footer row, conditions tab tick at the only after end of main window.
2009 Apr 20 6:38 AM
Yes Vijeta,
I have done that. But it is still giving same problem. Only when data in first two tables is large, it comes properly. But when data is less, problem occurs.
Thanks,
Archana
2009 Apr 20 7:41 AM
Hi Archana,
In the table node --> Conditions tab --> Check the ckeck box only on page 2.
Regards,
Sravanthi
2009 Apr 20 7:45 AM
Hi Sravanthi,
I tried with all that by ckecking conditions in condition tab.
But nothin is working. Any change in conditions is not at all getting reflected in smartform after execution.
Thanks,
Archana
2009 Apr 20 6:19 AM
Hi Archana,
You need to activate the Update Debugging in order to stop it to your break point.
Before saving Delivery, start debugging and Settings > Update Debugging.
regards,
Lokesh
2009 Apr 20 6:27 AM
Hi Lokesh,
I have not inserted any break point. I had just checked that ckechbox for 'at page break'. But it is not getting triggered. It is an invoice smartform.
thanks,
Archana
2009 Apr 20 6:30 AM
Hi Archana,
Have u created 2 pages in ur smartform ?? u just need to call ur first page( the one which has table in main window) in the Next page column(page node) of ur first page.
2009 Apr 20 6:32 AM
Hi,
To put a break point in the smartform ,
You should add the program lines before the alternate condition
and code break-username or break point.Next time when you
execute your program the control will stop there.
Hope it helps
Regards
Mansi
2009 Apr 20 8:40 AM
hi, can u try like this ,
just design the main window for the first page like this so that only 4 /5 record will be shown
for the next page some how it will be larger
2009 Apr 20 9:27 AM
Hi,
"But i am getting this table at the end of the first page with only header and footer."
This may be because of no space for the Table data in that page.So, please check you smartform once.
And regarding the Footer coming twice,
Click on the Footer Node you have option "At Page Break and At End of Table"....
Remove the Uncheck the Option "At Page Break".
Suggestion: works only if you have fixed no of records which can fit to a single page.
You can also create Folder note and insert header, main and footer, for restricting the table to come in single page.
Thanks & Regards,
Vamsi
2009 Apr 20 9:37 AM
Hi Vamsi,
I am not checking the option 'at page break'. Also, even if i am checking that ckeckbox, it is not affecting the print preview i am getting.
Also, can you just elaborate on statement : 'You can also create Folder note and insert header, main and footer, for restricting the table to come in single page. '
Thanks,
Archana
2009 Apr 20 10:20 AM
Its Quit easy follow the steps:
1. Go to the Main Window and create command before main window.
2. Go to the command properties and enable 'go to new page' checkbox and leave page number blank.
3. Go to page 2 Properties and set 'next page' properties to Page 1.
Just activate your smart form and run it.
Regards
Dhirendra
2009 Apr 20 10:30 AM
Hi Dhirendra,
I want only third table from main window on second page. Not all 3 tables on the second page.
Thanks,
Archana
2009 Apr 21 7:46 AM
Hi Archana
you can put a condition to your footer window
that it should print after completion of the mainwindow
2009 Apr 21 5:51 AM
Hi Archana,
In order to print Table3 only on the second page use the function module SSF_COMP_SET_NEXT_PAGE after the end of Table2 in the main window. This can be acheived using the program lines after Table2 in the main window.
To the FM, supply the pagename you want the next data to appear.
With this FM you would be forcing a second page. Let me know if you need more info.
Regards,
Santosh
2009 Apr 21 6:25 AM
Hi Santosh,
Can you please provide me a piece of code where this FM is used.
Thanks,
Archana
2009 Apr 21 7:10 AM
Hi Santosh,
I am unable to insert this FM. Can you please provide me some explanation about this FM.
Thanks,
Archana
2009 Apr 21 10:04 AM
Hi Archana,
I'm working on something similar at the moment.
Just before the table you want to appear on the next page, create a Command (Right-Click --> Create --> Flow Logic --> Command)
In General Attributes, tick "Go to new page" and choose the same page as the one it is on right now.
Normally that should do it.
2009 Apr 21 10:17 AM
Hi Yusuf,
It should work.
But i tried with this also. Still the problem persists.
Not able to understand what to do with it.
Thanks,
Archana
2009 Apr 21 10:22 AM
Hello Archana,
Just a few questions:
1. You DONOT want to display any table in the 1st page. The 1st page is a sort of cover page.
2. Your entire table contents should come in the 2nd page.
Plz revert back with your answers.
BR,
Suhas
2009 Apr 21 10:28 AM
Hi Suhas,
Main window contains 3 tables. All the 3 tables contain data. But I want only first two tables to be displayed on first page.
And 3rd table should get displayed on second page, along with header and footer.
But right now, 3rd table's header and footer are coming at the end of the first page and data and footer (again) getting displayed on second page.
I hope i clarified all your doubts.
If know please let me know.
Thanks,
Archana
2009 Apr 21 10:41 AM
>
> Main window contains 3 tables. All the 3 tables contain data. But I want only first two tables to be displayed on first page.
>
> And 3rd table should get displayed on second page, along with header and footer.
>
> But right now, 3rd table's header and footer are coming at the end of the first page and data and footer (again) getting displayed on second page.
Hello Archana,
What will happen if the data in tables 1 & 2 cannot be accomodated in the 1st Page?
BR,
Suhas
2009 Apr 21 10:45 AM
Hi Suhas,
I there are large number of records it is coming properly.
Means if first page is not able to accomodate the records main window will flow and records will continue on second page.
And then third table will be displayed.
But when the records in first two tables are few, problem is occuring.
Thanks,
Archana
2009 Apr 21 10:53 AM
Hello Archana,
In the previous post you wrote:
3rd table's header and footer are coming at the end of the first page and data and footer (again) getting displayed on second page.
Are there any conditions in the "Header" & "Footer" lines of the 3rd table? As per my knowledge if the table cannot be accomodated in one page the entire table - Header, Main Body, Footer - should be transferred to the next page.
BR,
Suhas
2009 Apr 21 11:01 AM
Hi Suhas,
There are no conditions maintained for any of the table.
So only i am not able to find solution for this strange issue.
I tried with page break, changing conditions, inserting command at this table.
But nothing is working.
Thanks,
Archana
2009 Apr 21 11:12 AM
Hi Archana,
After completion of 1 st and 2nd tables data create a control comman for triggering the new page.
Then the third table data will be shifted next page.
2009 Apr 21 11:17 AM
Hi Vinay,
You mean to say i need to insert command right?
It is also not working.
Thanks,
Archana
2009 Apr 21 11:22 AM
i think we have gone through all types of solutions,
Can you please look the requirement .
2009 Apr 21 3:45 PM
could it be possible to have a screenshot or any illustration of what is happening and what you are trying to do?
2009 Apr 22 4:56 AM
Hi Archana,
To insert the FM follow the below steps
1. Table2->right click->Create->Flow Logic->Program Lines.
2. Now in the editor call the FM as below
CALL FUNCTION 'SSFCOMP_SET_NEXT_PAGE'
EXPORTING
I_NEXT_PAGE = 'PAGE2'
EXCEPTIONS
ERROR = 1
OTHERS = 2
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Here 'PAGE2' is the name of the page where the next data(Table3) would be printed.
Regards,
Santosh
2009 Apr 21 10:58 AM
Hi archana,
Plz go to the table in the main window --> Condition Tab --> Check the Check Box (Not in first page )
Now The table Has Three Component Like Header ,Main Area,and footer
And hence clik on the header of the structure ---> clik on condition Tab and Check the Check Box (Not in first page )
do the same thing for the three area of the Table u donot want to see on the first page.
regds
Sachi