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

Similar Messages

  • 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.

  • Problem with sap script table in main window

    hi all,
    i have created a sap script  for which output is in 7 pages.
    except first page all the remaining pages are giving the correct output.
    the problem with the first page is iam not not getting vertical lines in the table which is in the main window of page 1.
    iam getting the vertical lines correctly in the mainwindow table of all the remaining pages.

    Hi,
    It's simple,
    Pre- U should had declared a second page for the same window with header, main & footer.
    now
    First when u r looping the internal table provide no of rows eg Row 1 TO 10. in the Loop ( Data Tab)
    or
    when defing TEXT Go to PC Editor and mention all the fields Under  PROTECT -  ENDPROTECT.
    This would solve the issue.
    Thanks
    Ravi

  • How to use Two main windows with in a page in script ?

    Hi any body explain me...
    How to use Two main windows with in a page in script ?
    with  header data in one main window,
    & Item data in other main window.

    HI..,
    u need to go for <b>SPLITTING THE MAIN WINDOW</b> !!!
    Main windows in page windows allow you to format text in multiple columns. Define an area in the page window, in which to position the main windows.
    Here is the procedure !!
    -->Create a page window and assign it to a page.
    Choose <b>Edit --> Main windows</b>.
    A dialog box appears.
    -->Enter values in the fields <b>Area width</b> and A<b>rea height</b> in accordance with the input guidelines for main windows.
    -->Enter values in the fields <b>Spacing</b> and Number in the <b>Horizontal group</b> if you want to use multiple columns. You can ignore the fields in the Vertical group.
    Determine how many columns and line areas are required for label printing. Then enter the corresponding values in the fields in the <b>Horizontal and Vertical groups</b>.
    -->The value in the field Left margin varies from main window to main window if multiple columns are used. The following applies:
    <b>
    Left margin of current column + Window width + Horizontal spacing = Left margin of next column</b>
    In label printing, the field Upper margin also varies from main window to main window:
    <b>
      Upper margin of current main window +  Window height + Vertical spacing = Upper margin of next main window</b>
    -->Enter a value in the field Start position.
    This is a counter. Enter a starting value which is equal to or greater than 1.
    -->The main windows are added to the list.
    -->Save your form.
    reward if it helps u...
    sai ramesh

  • Smartform issue with page break

    Hi All,
             I have an unusual issue with page break. Here is my scenario, I have a group of items in my table main area and for each group there is sort of header that prints. Similarly there are multiple groups needing a header whenever there is a new group printing. So far it prints fine. But whenever there is a page break and when items from the same group also print on the next page the same header needs to print on the top of next page similar to how the header area repeats on each page. Unfortunately I did not see any page break event for table main area.
    Here is an alternative I have tried but having issues: I have created two rows for this group header one printing from header and another printing from main area. Whenever there is a page break the same group header prints as part of the header and on the rest of the page it prints from the main area. But in a particular scenario, there is a new group starting at almost bottom of the page but as there is not enough space left on the same page (page protection) jumps to next page. In this case there are two group headers printed one coming from the preivous page main area and another coming from the next page header. I hope my explanation is clear enough to understand.
    Please suggest if there is any basic feature of smartform that I have missed out can solve this issue or if there is another alternative you can think of. I appreciate your responses.
    Thanks..

    I was able to solve this issue on my own.
    Instead of checking for a page break on header line I am using a flag that is prepopulated in the table. I set this flag whenver a new group of items starts. If the flag is set I print it from the main area and if it is not set I print it from the header. This helped in avoiding the multiple header lines..

  • Footer of the Table in Main Window in Smartforms

    Hi,
    I have a smartform. In that I have declared a main window. And I want the Footer to appear on each page. So, I have checked both the check boxes in the Footer Event of the Table in Main Window.
    1. At page Break
    2. At end of table.
    But it is comming only on the first and last page.
    If I check only 1, it is printing on the first page only.
    If I check only 2. it is printing on the last page only.
    I want it to be printed on all the pages.
    Help needed.
    Thanks in advance.
    Ishaq.

    Hi
    Instead of using the Main window for footer
    Why can't you declare a separate constant window separately apart from MAIN window and use for the footer to print in all pages.
    create another window and write all your data in that and see
    Since MAIN window overflows as the data grows constantly it is coming only on the first and last pages.
    So to appear that on each page a fresh window is useful
    Reward points for useful Answers
    Regards
    Anji

  • Issue With Page Break When Sorting is also applied on group

    Hi
    I am facing an issue with Page break only when I have sorting applied on the grouping that I have in the template.
    The following is the sample XML
    <ROWSET>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Accounts</ORGANIZATION>
    <FULL_NAME>test1,</FULL_NAME>
    <ELEMENT_NAME>TEST BONUS</ELEMENT_NAME>
    <CLASSIFICATION>Supplemental Earnings</CLASSIFICATION>
    <RUN_VALUE>250</RUN_VALUE>
    <MONTH_VALUE>500</MONTH_VALUE>
    <QUARTER_VALUE>500</QUARTER_VALUE>
    <YEAR_VALUE>500</YEAR_VALUE>
    </ROW>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Finance</ORGANIZATION>
    <FULL_NAME>test2</FULL_NAME>
    <ELEMENT_NAME>VOLUNTARY AD AND D</ELEMENT_NAME>
    <CLASSIFICATION>Voluntary Deductions</CLASSIFICATION>
    <RUN_VALUE>5.19</RUN_VALUE>
    <MONTH_VALUE>10.38</MONTH_VALUE>
    <QUARTER_VALUE>10.38</QUARTER_VALUE>
    <YEAR_VALUE>10.38</YEAR_VALUE>
    </ROW>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Finance</ORGANIZATION>
    <FULL_NAME>test3</FULL_NAME>
    <ELEMENT_NAME>HMO MEDICAL</ELEMENT_NAME>
    <CLASSIFICATION>Pre-Tax Deductions</CLASSIFICATION>
    <RUN_VALUE>19.67</RUN_VALUE>
    <MONTH_VALUE>39.34</MONTH_VALUE>
    <QUARTER_VALUE>39.34</QUARTER_VALUE>
    <YEAR_VALUE>39.34</YEAR_VALUE>
    </ROW>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Finance</ORGANIZATION>
    <FULL_NAME>test4</FULL_NAME>
    <ELEMENT_NAME>PENSION NR DC</ELEMENT_NAME>
    <CLASSIFICATION>Pre-Tax Deductions</CLASSIFICATION>
    <RUN_VALUE>0</RUN_VALUE>
    <MONTH_VALUE>360</MONTH_VALUE>
    <QUARTER_VALUE>360</QUARTER_VALUE>
    <YEAR_VALUE>360</YEAR_VALUE>
    </ROW>
    </ROWSET>
    In the template I group the data based on CLASSIFICATION and then sort on the same column CLASSIFICATION. I have a page-break applied for every group.
    When I generate the PDF, I am not getting the page-breaks for every group. Instead some of them are displayed in the same page.
    But when I remove the sorting that I had in the template on the column CLASSIFICATION, I am getting the output in the desired way but not in a sorted order.
    kumar

    Hi All,
    I am using MS-WORD 2007 and BI Publisher desktop 10.1.3.3.3.
    When I use split-by-page-break, splitting is performed for every line .. but not for group of lines.
    Can anybody throw some light on this?
    FYI...
    I am using this code:
    ?if: position() mod 6= 0?
    ?split-by-page-break:?
    ?end if?
    (Of course with in tags)
    in G_LINES loop.
    Can anybody help me out :-(
    --Saritha                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Help with Page Breaks!

    Hello,
    I am having great difficulty with page breaks.
    I have included a link below to a jpg of a format template I am working on (edited for public release, but it works):
    http://home.swbell.net/grog1/work/pagebreaksample.jpg
    The layout template has many text form fields but I have re-colored them all to grey so that the pagebreak stands out in pink (and default text is the same as the help text for clarity).
    The data format that I am using for this layout template can be found at:
    http://home.swbell.net/grog1/work/testdata.xml
    This data is for sample use only and would (normally) contain many G_ORDERS for multiple G_ORD_TYPES in multiple G_REGIONS.
    My problem is that it does not matter where I place the page break, it simply does not work correctly.
    As you can see from the current placement I WISH the report to break between each and every occurrences of REGION in the group “REGION”. At this placement it does not break at all.
    I ‘can’ get the report to break (incorrectly, but at least it breaks) if I place this exact same syntax into the innermost grouping of data (i.e. the G_ORDER group) but even then the breaking is NOT CONSISTENT at all. In this case I would ‘expect’ it to break before every order…it does not.
    I have also tried the syntax: “ <xsl:if xdofo:ctx="inblock" test="1=1"><xsl:attribute name="break-before">page</xsl:attribute></xsl:if> “ (without the quotes which got from he forum here) as well as the MSWORD pagebreak (which has never worked for me). None of these work correctly.
    Any assistance in or insight into getting my reports to CONSISTENTLY break at the appropriate times would be most appreciated as I have been trying to get this to work for several days now...
    Thank you,
    Scott

    Hello again!
    I have the pagebreak problem working, but I would dearly like some insight as to why/how it is working…
    I have template builder 10.1.3.2.1 for reference and I now have the report breaking at the correct times, i.e. after each region.
    My confusion is that to get it to work I must use the syntax and placement of the pagebreak text field exactly as shown below. No other placement cause the pages to break correctly and the other syntax sample varations I have found on this forum, etc (listed above) do not work at all.
    Please review the link to the (now working format template) jpg and provide feedback/insight.
    http://home.swbell.net/grog1/work/pagebreaksample_working.jpg
    Thanks in advance for feedback,
    Scott

  • 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

  • Smartforms - 2 individual tables in main window to show on NEXT PAGE

    Hi Gurus,
    Please forgive me for this basic questions in smartforms. I've just started working with it.
    My questions is:
    " Can we put a table inside a template? 'Coz I've created 2 tables (with individual header, body, footer), and I want to put them in Main Window. So, if one of them is already full, the next entries will be displayed on the next page."
    What is happening is that only the last table's data is being displayed to the next screen if already full in the first page. So I'm thinking if we can put the 2 tables inside the template of 2 lines. Is this possible?
    Any other suggestions would be very much appreciated. Please help me with this. Thanks.

    Hi Ayem
    Inorder to continue data from one page to other there is no need of a second table,it will automaticaly be continued in the second page.
    See these WIKIs ,it will explains smartform with examples and screen shots.
    [https://wiki.sdn.sap.com/wiki/display/ABAP/SMARTFORMguide]
    [https://wiki.sdn.sap.com/wiki/display/HOME]
    [https://wiki.sdn.sap.com/wiki/display/ABAP/SUBTOTALINSAP+SMARTFORMS]
    Regards
    Hareesh Menon

  • TABLE IN MAIN WINDOW APPEARS ONLY IN 1 PAGE NOT OTHER!!

    FRIENDS I HAVE MODIFIED PM_COMMON STANDARD PROGRAM INTO ZPM_COMMON...TCODE IW3D.THE LAYOUT WHICH I HAVE CREATED IS TOTALLY DIFFERENT FROM PM_COMMON..I HAVE COMMENTED ALL THE CODING IN MAIN.EXCEPT FOR OPERATION NO AND DESCRIPTION...WHICH I WANT TO INSERT IN THE TABLE.NOW PROBLEM IS THAT I HAVE CREATED A TABLE.BUT THE TABLE IS ONLY SEEN IN 1 PAGE WHEN I PRESS PAGE DOWN THE TABLE DOESNT APPEAR....WHT DO I DO ...SO AS 2 I CAN VIEW THE TABLE ON ALL THE PAGES....BY PRESSING THE DOWN PAGE...
    PLEASE HELP URGENT.....
    REGARDS ESSAM([email protected])

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

  • 2 different  tables   in the main window with same internal table data

    Hi All,
    can we have 2 diffterent  tables with same internal table data into its work area in the main window.Is it possible or we will get any run time error.?
    is it like having 2 nested loop with same internal table ?
    ex : loop at itab1 into wa_itab.
           loop at itab1 into wa_itab.
    endloop.
    endloop.
    can we use like this?

    Hi,
    there will not be any error ...but what is the use of it...
    do you need to have a controlled way of display ...of the data...
    If so then you create another workarea in the global definitions of the same type and then use it...
    Regards,
    Ram

  • Matrix exporting to excel with empty columns, with page break option of "Between each instance of a group" selected.

    I am working with Report Builder 3.0 I am using a matrix to produce grouped data on separate worksheets in excel.
    The select is:
    SELECT ID, Measurement, Value, [Date] FROM Measurements_Report. (please ignore the underscores they are just for formatting) 
    The contents of the Measurements_Report table:
    ID__Measurement__Value__[Date]
    1___Hot_________33_____10/1/2014
    2___Hot_________44_____10/2/2014
    3___Cold_________55_____10/2/2014
    The matrix contains a single row group based on the field "measurement". The Measurement group has the page break option of "Between each instance of a group" selected. 
    There is a column group based on the field "Date". 
    When this is matrix is exported to excel on the first worksheet (Hot) there are three columns as shown below:
    ID__10/1/2014____10/2/2014___10/2/1014
    1___33
    2_______________44
    Notice the last column doesn't have a value.
    On the second worksheet (Cold) there are also three columns as shown below:
    ID__10/1/2014___10/2/2014___10/2/1014
    3__________________________55
    This time notice there is only one row and only a value in the last column.
    I only want the columns with data for that worksheet to show up. How can I remove these empty/duplicate columns? Hopefully there is a simple fix. Thanks ahead of time.

    With the following contents of the Measurements_Report table:
    ID__Measurement__Value__[Date]
    1___Hot_________33______10/1/2014
    2___Hot_________43______10/1/2014
    2___Hot_________44______10/2/2014
    3___Cold________55______10/2/2014
    Returns on the first tab (Hot):
    ID__10/1/2014____10/1/2014____10/2/2014
    1___33
    2_________________43
    2______________________________44
    In the excel worksheet it contains a separate column for each date with a value. Thanks again!
    Why is the same date repeating on multiple columns? Do you've the time part also returned from database?
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Problems with Page Break in an Interactive Reporting report

    Hello everybody,
    Platform: Hyperion System 9.3.1.
    I have serious problems in managing the 'page break' in an Interactive Reporting report.
    The report shows sales data by store, with article and colour details and it is organized like this:
    group 1: geographic area
    group 2: country
    group 3: city
    group 4: store
    columns: article, colour
    facts: quantity, price, value
    My client's request is to perform a page break at the store group level, meaning that apart from the first store occurance, any change in the store value shoul start a new page.
    The requested result is like this:
    page1: geographic area1
    country1
    city1
    store1
    data store1...
    page 2: store2
    data store2...
    page3: store3
    data store3...
    I tried several combinations of using Break After and Break Before on the store group, with Keep Next / Keep Together and it was impossible to obtain the desired result.
    If I use Break Before the result is as follows:
    page 1: geographic area1
    country1
    city1
    page 2: store1
    data store1...
    page 3: store2
    data store2...
    If I use Break After the result is as follows:
    page 1: geographic area1
    country1
    city1
    store 1
    page 2: data store1...
    store 2
    page 3: data store2...
    even if I specify 'Keep with next' or 'Keep together' for store group and the store data table.
    Any help will be very very appreciated because I've been trying for weeks to figure out this issue.
    Daniela

    First start without using any of the Keep with Next and Keep together.
    Second. try putting the Page Break in the Group Footer. You do not need to keep it visible
    Then you may want to repeat headers on Store in case the Store's Detail rolls onto next page
    Hope this helps
    Wayne

  • Problem with Page Break In ALV Report

    Hi
    I have got a problem in my ALV report. I have a checkbox in the user input screen where users decide whether they want a page break or not in the print preview (or print) page. Now i also have the option to have layout name in the input screen. so If i leave the layout box empty the check or not check of page break works fine. but if use a save layout name in the layout box the add check box doesn't work anymore. If i have a layout name in the layout box it doesn't matter whether i have checked for page break or not it does the same thing.(in one report it always puts the page breaked)
    Any ideas where to look for the error?
    here is the code for the page break. Opt5 is the check box.
      perform build_sort tables pt_sort changing ls_sort.
      ls_sort-fieldname = 'PERNR'.
      ls_sort-subtot    = 'X'.
    IF OPT5 = 'X'.
       ls_sort-GROUP = '*'.
      ENDIF.
      append ls_sort to pt_sort.
      ls_sort-subtot    = ' '.
      ls_sort-GROUP = ''.

    Never mind it was acting like the page break was not working because the layout was saved with the page break on/OFF.

Maybe you are looking for

  • Since iPhone 4.3.4, iTunes 10.4 doesn't start up automatically

    Since I updated my iPhone 4 to 4.3.4, iTunes 10 v.10.4 no longer starts up automatically when I connect my iPhone, though "Open iTunes when this iPhone is connected" remains checked.  iPhoto '11 v.9.1.5, however, still starts up automatically. I'm ru

  • Just a technical question

    Hi, I'm not a developer but I wanted to ask here since I presume there're a lot more tech savvy people that could possibly give me a proper answer to just one small question regarding behavior of Mac OS X using the following example: at some moment I

  • Hi what do this means-your safari browser an Mac computer may be compromised by security threats??????? please help

    Hello i receive this on my computer after att fix my wi-fi  so i need to know how to fix it now my guess sign in is fine but the one with my name on it has this on it please tell me what to do this is my work computer an my files are on it,any help i

  • How to keep images fixed?

    I have a website I created http://thesplitendsalons.com. I have attached a cms to it so the client can edit the left side where the editable information is contained. The right side holds the logo, links and general main info. The problem is when you

  • Apps tab in Creative Cloud manager is blank

    I'm trying to download a free trial of After Effects. I have downloaded the Creative Cloud manager for my desktop, but the Apps tab remains blank with a spinning wheel. The other tabs all show their appropriate options, but the Apps tab shows nothing