Page break for Smartform with multiple main window on pages

Hi Experts,
I have a requirement for printing 3 pages. The difference among the 3 pages is the main window part.
The main window contains not only internal table, also complicated texts like payment instructions etc.
The requirement is in each page, the data in internal table should be changed, also payment instruction should be changed accordingly.
e.g:
Main Window of Page 1
Part 1 for Internal table
VAT on ITEM ------- 4O-------60,00------0.00%-------EUR
Part 2 for Payment Instructions
Texts for Page 1
Main Window of Page 2
Part 1 for Internal table
VAT on ITEM ------- 5O-------60,00------0.00%-------EUR
Part 2 for Payment Instructions
Texts for Page 2
Main Window of Page 3
Part 1 for Internal table
VAT on ITEM ------- 6O-------60,00------0.00%-------EUR
Part 2 for Payment Instructions
Texts for Page 3
At first, I was using only one page 'Page1' with a variable page_no = 1 as default value, and use program line page_no = page_no + 1 as counter. when page_no = 2, use command for force page break to 'Page1', then under the command, change the internal table and payment instruction texts. when page_no = 3, ...
But I encountered an error saying:
Runtime Errors         GEN_BRANCHOFFSET_LIMIT_REACHED
Short text
     Jump distance is too large and cannot be generated.
So I created 3 pages, with different main window M_window1, M_window2, M_window3 for each page. In page1, after printing the M_window1, page_no = 2, use command to go to page2, but page2 is never printed. I think this is because only one main window can exist in a smartform? but why smartform allows creating individual main window for different pages? what's the use of such main window?
By the way, what's the use of command for force page break? only work for one main window in a smartform?
Getting back to my requirement, I think I should still use one page and command for page break. I am trying to solve this.
Thanks.
Li Jun Da.

Now I am using 3 pages: Page 1, Page 2, Page 3.
Page 2, Page 3 are copies of Page 1 with main window renamed as second window: mw 2, mw 3.
I also created 2 command nodes in main window of page 1: cmd 2, cmd 3.
cmd 2 is for page break to Page 2, cmd 3 is for page break to Page 3.
The second window mw 2, mw 3 in Page 2, Page 3 can be displayed.
Even though, I still can't understand how main window of pages (not 1st page) can work.

Similar Messages

  • How to insert a page break in smartform

    hi all
    i have to print only ten records per page. Is there anyway to insert a page break in smart forms?????

    hi
    To insert a page-break you have to Create a Node Called COMMAND.
    Here you can Specify a Different PAGE as next page if u want.
    Smartforms: protect lines in main window.
    It was easy with SAPscript, but how to do it with SF's. For 4.7 version if you are using tables, there are two options for protection against line break:
    - You can protect a line type against page break.
    - You can protect several table lines against page break for output in the main area.
    Protection against page break for line types
    - Double-click on your table node and choose the Table tab page.
    - Switch to the detail view by choosing the Details pushbutton.
    - Set the Protection against page break checkbox in the table for the relevant line type. Table lines that use this line type are output on one page.
    Protection against page break for several table lines
    - Expand the main area of your table node in the navigation tree.
    - Insert a file node for the table lines to be protected in the main area.
    - If you have already created table lines in the main area, you can put the lines that you want to protect again page break under the file using Drag&Drop. Otherwise, create the table lines as subnodes of the file.
    - Choose the Output Options tab page of the file node and set the Page Protection option. All table lines that are in the file with the Page Protection option set are output on one page.
    In 4.6, Alternatively in a paragraph format use the Page protection attribute to determine whether or not to display a paragraph completely on one page. Mark it if you want to avoid that a paragraph is split up by a page break. If on the current page (only in the main window) there is not enough space left for the paragraph, the entire paragraph appears on the next page.

  • How to code subtotal of itemlines for page-break in SmartForms in 4.6C?

    Hi,
    There's no functionality in SmartForm 4.6C in order to make a subtotal at a page-break.
    Can you please tell me how to code in the SmartForm to catch the page-break and put the subtotal?
    Please help me its very urgent! Points assured!!
    Tarick.

    Hi,
    in the events tab of table u can find the event at page break for both header and footer.
    i think u can  try with this.
    reward points if useful.
    Regards,
    Pavani.

  • Smartform with multiple Headers & Respective Item Details and Totals?

    Dear All,
    Appreciate if anyone clarify my doubt.
    My requirement is to develop a smartform for billing with multiple headers & respective items and totals. For more clarity I'm explaining below.
                        Header Section1
    variable1          variable2          variable3          variable4          variable5
         variable6          variable7          variable8
    variable9          variable10          variable11
    Item Details1
    s no     vebeln     verpr     col4     col5     col6
    total                    123.21
    total in words -
                   value     321.21
                   value     982.98
                   value     some value
    footer details
                        Header Section2
    variable1          variable2          variable3          variable4          variable5
         variable6          variable7          variable8
    variable9          variable10          variable11
    Item Details2
    s no     vebeln     verpr     col4     col5     col6
    total                    123.21
    total in words -
                   value     321.21
                   value     982.98
                   value     some value
    footer details
                        Header Section3
    variable1          variable2          variable3          variable4          variable5
         variable6          variable7          variable8
    variable9          variable10          variable11
    Item Details3
    s no     vebeln     verpr     col4     col5     col6
    total                    123.21
    total in words -
                   value     321.21
                   value     982.98
                   value     some value
    footer details
    Is this possible using smartforms?
    Now they are using a classical report and takes printout in preprinted stationery.
    requirement is to develop a smartform for this. there is a selection screen for the print program which accepts billing docs.
    Thanks,

    Rajiv,
    Actually for your case you don't need a table inside the Main Window. 
    1.) First Populate all the data(header + item) in an internal table in the print program itself.
    2.) Pass this internal table to the smartform.
    3.) In the smartform give exact dimensions to the main window.
    4.) In the Main Window Use a Loop on this internal table.
    5.) Create a template for the header data giving the exact dimensions.
    6.) Create another template for the item data giving exact dimensions to the template.
    7.) If there is pre-printed text between these templates, insert a text element between these templates. This text element will have nothing just give a paragraph format to it. Go to smartstyle, create a style in which create a paragraph format setting line spacing parameter of this paragraph format of the same size as that of pre-printed text.
    8.) Only 1 page is required since Loop statement will print the second record on the second page if the dimension of templates are exact.
    9.) Dimensions you can easily measure from the pre-printed form.
    <removed by moderator>
    Edited by: Thomas Zloch on Mar 6, 2012

  • Table footer when page break in smartform

    I put a table component into a loop control, and in the table footer, there are some texts in several lines and a command component.
    the problem is that, when there's not enough space to print the whole table footer texts in one page, the extra part of will be output in the next 2 pages.
    for example, I suppose  there are 3 pages totally. and for the first page, it's all right about the main window. when there's no enough space, the footer is still output, the rest is printed on the 2nd page. but on the 3rd page, the footer texts in the 2nd page is output again and followed main windows on the 3rd page.
    Could anyone help? Thank you in advance.

    Hi,
    Create a folder for that window and set page protection.
    Regards,
    Prashant
    Message was edited by:
            Prashant Patil

  • Not display main window of page

    Hi,
    My requiremnet is ,i want to display each sales order number in each page in layout.when am giving the input two sales orders,
    the first sales order (0001)dispaly its header and item details in main window finely but in second page it disaply the header data of second sales order number(0002) but does not read the main window and not display the item details of second sales order number(not showing the main window).i used the command option still not working.please tell me where i do a mistake.
    Waiting for ur reply..
    Regards,

    Hi ALI,
      When you are using command to trigger new page( In that you have to check the check box 'Go to new page' ) In this case the  the main window name of the first page and the next page shoul be same.If it is different then it will not trigger the main window of the next page. It displays the details of all other windows but main window details will not be displayed. Check this once.
    Regards,
    Rajitha.

  • Page Breaks for Grouping

    Hi,
    I have created a sql report and used page breaks for displaying department wise employee info with salary sum at the end of column. Everything is going well showing employees in departments and sum salary except one problem which is on some pages at the end where space left it shows heading for next department and on next page under next department's heading it starts with previous department's last column ie sum of salary and then shows next department's data.
    Database 11G
    APex Version 3.0.1
    Thanks
    Sajjad
    Edited by: Sajjad on Feb 24, 2012 1:47 AM

    Sajjad wrote:
    Hi,
    I have created a sql report and used page breaks for displaying department wise employee info with salary sum at the end of column. Everything is going well showing employees in departments and sum salary except one problem which is on some pages at the end where space left it shows heading for next department and on next page under next department's heading it starts with previous department's last column ie sum of salary and then shows next department's data.
    Database 11G
    APex Version 3.0.1Suggest you try reproducing this on apex.oracle.com so we can see the exact nature of the problem.

  • Create coustom page size for Smartforms

    Dear All
    How to create coustom page size for smartforms.
    rgds
    pramod

    HI
    To define a new page format, choose
    Administration -> CCMS -> Print->® Spool Administration.
    Choose Full Administration and then Page Formats on the Device Types tab page. On the next screen choose Change and  Create or  Create with Reference. Fill out the fields on the next screen.
    Activating a New Page Format
    Before using a new page format, you must specify it as a page format in a SAPscript form. Be careful when replacing a page format in a standard SAPscript form as the form may not necessarily fit on the new page format.
    You also have to define a format and device type format for the new page format before you can use it.
    Thanks and Regards
    Santosh   Kate

  • How to Restrict Single Delivery Date for PO with Multiple Line Items

    Dear Experts,
    How to Restrict Single Delivery Date for PO with Multiple Line Items.
    System needs to through Error Message if User Inputs Different Delivery Dates for PO with Multiple Line Items in ME21N Tcode.
    Can we achive this by Some Enhancement in SAP or Not ???
    If so how to do it.
    Any Inputs is highly appreciated.
    Thanks and Regards,
    Selvakumar. M

    Hi Selvakumar,
    we can resrict the PO to have a single delivery date in all the line items by means of giving a error message or overwiting the delivery date keyed/determined in the line item.
    You can use the BADI -> ME_PROCESS_PO_CUST. In which you need to implement the method PROCESS_SCHEDULE.
    (for technical aid - This method will be called for each and every PO line item, From the imporing parameter im_schedule we can get all the details of current PO line, even we can change the data in the current PO line. )
    Regards,
    Madhu.

  • How to put page break in SMARTFORMS

    Hi Guys,
              Can anyone please let me know How to put page break in SMARTFORMS
    Regards
    Avi

    Hi,
    Look at the below thread, you will get the answer
    https://www.sdn.sap.com/irj/sdn/profile?userid=2522810
    Regards
    Sudheer

  • Page break for a category group of a chart - SSRS 2008 R2

    Hi,
    I need to add a page break for one of two category groups of a my chart. Is it possible, please?
    I need to create a chart for this category group to mantain readable the report.
    Thanks

    Hi There
    You can create two graphs and put them inside two separate rectangles and add page break
     after first rectangle and add a filter to your chart for first category group for first chart and second category group for second chart.
    This is best you can do
    If you have any question please let me know.
    Many Thanks
    Syed Qazafi Anjum
    Please click "Mark as Answer" if this resolves your problem or "Vote as Helpful" if you find it helpful.

  • Partial goods receipt for PO with multiple line items

    Hello All,
    While doing MIGO, for a PO with multiple line items, if one line item is having error, will we be able to go ahead with goods receipt? Or entire material document is blocked for doing MIGO?
    We will be doing a development - in case if there is problem in goods receipt (checking of any parameter, and if it is missing - we will be posting error message)...is it possible to ahead with next line item and still post the material document?
    If partial goods receipt if possible for PO with multiple line items, how do we do it?
    Regards,
    RJS

    Hi
    While doing MIGO, for a PO with multiple line items, if one line item is having error, will we be able to go ahead with goods receipt? Or entire material document is blocked for doing MIGO?
    No. You cannot post the MIGO, if even one of the PO line item is having problem or giving error.
    We will be doing a development - in case if there is problem in goods receipt (checking of any parameter, and if it is missing - we will be posting error message)...is it possible to ahead with next line item and still post the material document?
    If you skip a line irem and do GR with next line item, how will you match quantity & value with the vendor Invoice at LIV ?
    If partial goods receipt if possible for PO with multiple line items, how do we do it?
    Partial goods receipt is possible for PO line items. That means, if PO has 100 qty for line item 1 then you can do GR for 50 now and 50 later depending on the vendors delivery.
    Hope this is what you mean by "Partial Goods Receipt".
    Edited by: Arun R on May 10, 2010 2:03 PM

  • Page breaks in form - can't print only one page?

    Hi guys
    This might be a really simple question - but how do I insert page breaks into my form?
    I have 8 pages in my document, and it is showing me this, so there seems to be no issue until I try to print only one page, and the whole document prints out.
    Is there an easy fix to this?
    Cheers
    Jess

    Hi,
    how are you printing? Control+P? File > Print? or a Print button?
    In any case the print command should bring up a print dialog, where you can set the pages that you want Acrobat to print. By default it is set to 'All' pages.
    Hope that helps,
    Niall

  • Table in main window with page break in smartforms

    I want to print data with heading and items in tabuler form (grid form) using table with PAGE PROTECTION in main window in smartform.
    if you would say staight way to use Table or Template under FOLDER with page protection, will not work.
    So, it is little bit tricky. So,if any body have a proper solution please help.
    Thanks and regards,
    Vijay Kr. Gupta

    Hello,
    Include the Text ELEMENT U have used to draw the table in the loop of the main window.
    Vasanth

  • Problem in printing multiple main window in smartforms

    Hi Experts,
    I have requirement form client to print PO which consists of 4 page.
    First page is cosists of header and some text.
    In second page different header and line item.
    Thirs page different header and line item.
    4th page different header and line item.
    I have printed tex in main window of first page and called command to trigger
    second page main window, but i am getting dump.
    How to print the line item in the multiple page of smartforms.
    Regards,
    Udupi

    Hello ,
    To print the text below are following steps which you can follow for your requirement :
    1. Create the Four pages having the Main Window, but take care that Logic should be in First Page Main window only , other pages main window will be blank.
    2. Create the Secondary Window in second, third & fourth page  which will be same size as the main window having the text which need to be print in respective pages.
    3. Logic Part - in the main window of first page fill all the data which you need to print in 1st to 4th page in different internal table. Now for example you need to print text in first page then in Main window create table having the data of 1st page.
              To print data in Second page create one more table having data of secondpage and put the Command there (follow the same for next pages,)
    I hope this will  help you
    Thanks
    Romit Raina

Maybe you are looking for

  • Pci-e 3.0 not showing..Only PCI-e 2.0...I7 3770k and GTX 660 TI-Z77a-G43

    I am hoping this is an easy one for all of you....I just built another Msi Board...Board in the title.... I enabled Pci-e 3 in Bios-before I even installed the operating system.....so after all the updates...all the drivers....100% ready for retail..

  • Help with DisplayPort to HDMI display settings

    I am using a 50" Sony LCD TV with Mac Mini via DisportPort to HDMI adaptor. I am getting parts of the Dock and none of the top menu bar, why? The only setting that looks right is setting the display output to 1080x720 (overscan on). Any other setting

  • How to use the integrated camera in Lenovo THINKPAD X301

    Dear All, I would like to know how to use the integrated camera for the THINKPAD X301 LAPTOP? Please help

  • How to delete the raw-data out of the meta data (file information)

    Hi guys, I am definetely going crazy: since half an hour I can´t find a solution than copy (image) paste and save as a virgin jpeg: I`ve just converted some 0,5 GB tif files which I elaborated heavily in ACR and the 550 by 367 PIXEL JPEG @ quality 9

  • Battery not recognized

    Hey, Recently, my MacBook hasn't been recognizing that I have a battery installed (it shows the battery with an "x" sign at the top. For a while this did not affect the use of the battery, but today it stopped working altogether without a power cord.