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

Page Break In smartforms

Former Member
0 Likes
6,502

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
4,225

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

33 REPLIES 33
Read only

Former Member
0 Likes
4,225

Hi,

Could you please show the code or driver program? Also please brief the smartform structure.

Best Regards,

Suresh.

Read only

0 Likes
4,225

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

Read only

0 Likes
4,225

In the footer row, conditions tab tick at the only after end of main window.

Read only

0 Likes
4,225

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

Read only

0 Likes
4,225

Hi Archana,

In the table node --> Conditions tab --> Check the ckeck box only on page 2.

Regards,

Sravanthi

Read only

0 Likes
4,225

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

Read only

Former Member
0 Likes
4,225

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

Read only

0 Likes
4,225

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

Read only

Former Member
0 Likes
4,225

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.

Read only

Former Member
0 Likes
4,226

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

Read only

Former Member
0 Likes
4,225

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

Read only

Former Member
0 Likes
4,225

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

Read only

0 Likes
4,225

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

Read only

dhirendra_pandit
Active Participant
0 Likes
4,225

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

Read only

0 Likes
4,225

Hi Dhirendra,

I want only third table from main window on second page. Not all 3 tables on the second page.

Thanks,

Archana

Read only

0 Likes
4,225

Hi Archana

you can put a condition to your footer window

that it should print after completion of the mainwindow

Read only

Former Member
0 Likes
4,225

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

Read only

0 Likes
4,225

Hi Santosh,

Can you please provide me a piece of code where this FM is used.

Thanks,

Archana

Read only

0 Likes
4,225

Hi Santosh,

I am unable to insert this FM. Can you please provide me some explanation about this FM.

Thanks,

Archana

Read only

0 Likes
4,225

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.

Read only

0 Likes
4,225

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

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
4,225

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

Read only

0 Likes
4,225

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

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
4,225

>

> 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

Read only

0 Likes
4,225

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

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
4,225

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

Read only

0 Likes
4,225

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

Read only

0 Likes
4,225

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.

Read only

0 Likes
4,225

Hi Vinay,

You mean to say i need to insert command right?

It is also not working.

Thanks,

Archana

Read only

0 Likes
4,225

i think we have gone through all types of solutions,

Can you please look the requirement .

Read only

0 Likes
4,225

could it be possible to have a screenshot or any illustration of what is happening and what you are trying to do?

Read only

0 Likes
4,225

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

Read only

Former Member
0 Likes
4,225

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