Smartforms - page protection problem

Hi,
I have made an invoice form with smartforms. To protect the positions of page breakes, I have made all position nodes in one folder note and set the page protection flag for that folder. Because in tables the page protection option is not working, I have made it all with paragraphs...
This is my problem now:
If the form has more than one page, I have to show the sum of all positions of the first page on the bottom of the page and one the top of the next page. Therefore I have calculated the sum inside the loop of the positions (at the end of the loop).
This is normaly working... But if I have two pages and only <b>ONE</b> position does not fit on the first page, the calculated sum contains the sum of <b>ALL</b> positions, although the last position is shown on the next page!
Any ideas, how I can only calculate the positions that fit on one page <b>FOR REAL</b>?
Thank You very much!
Cheers Arne

Hi,
I encountered a similar problem as ur doing.In dat scenario what i did was that I created a <b>Loop</b> instead of a table and secondly based on the page size please create a style with proper an appropriate tab and use this through out while displaying the line items.
Using a tab will ensure equal spacing everywhere and the data will not overflow from any line and where ur writing a variable place an addition (C) at the end of that variables between the &. This also ensures that the data doesnt overflow and confines to the space.
Hope this will help.
Varun

Similar Messages

  • Smart form page protection problem

    Hello gurus,
    I am having two line types for the header. To make them page protected, i have created a folder and put them into the folder and activated page protection check box.
    But the problem it is printing awkwardly, line types are printing in the bottom of the page, whenever page break is happening.
    if i remove page protection check box, it is printing nicely.
    Kindly let me know how to rectify this.
    Regards
    Rajesh

    Hi again,
    Actually, within the Main part of table node, grouping several rows under page-break protected folder works just fine... It is just that when one starts putting the page-break protected folders in Header part the things go awry. I don't believe the fix for that will be easy at all.
    But since your HEADER_TABLE1 does not really need a header part to achieve same layout, I'd try as follows:
    1) create page-break protected folder under Main part of HEADER_TABLE1;  add an empty column of required width for %ROW2 and drag it under folder; create a new row type to hold %TEXT9 (just one column for the whole table width and no borders) and insert it before %ROW2; disable Header and Footer part for the table; re-position the table so its aligned to data table;
    2) group the SAFETY_ITEM_ROW1 and MPO_DATA_ROW1 under page-break protected folder...
    Then, is there actually a reason the HEADER_TABLE1 is split off in a separate sort event? If it could go into DATA_TABLE1 main part, all elements could be protected together. Even if there is reason, you still should be able to move the contents of HEADER_TABLE1 to DATA_TABLE1, and control their output using flag set via code nodes in DOKNR_TOP event and footer of DATA_TABLE  and reset each time header rows have been output.
    True, you'd have to add that empty column to the table. But that inconvenience pales in comparison to having to extricate the remaining height of Main window out of Composer innards via implicit enhancement, and the pain of having to calculate output height of dynamic layout elements in form itself and doing explicit page-breaks.
    Just make sure to disable all (unnecessary) table headers and footers.
    Attached form illustrates protecting the header table and Data table separately, and I've been unable to break the layout no matter what I tried . Or did you try the folders in the Main part and did not succeed?
    cheers
    Jānis
    Message was edited by: Jānis B

  • SmartForms Page Protection

    Using SAP's flights examples just to make it easier to explain .... I have a table in Main on my smart form set up as follows:
    Header
      CARRID Event on Sort Begins
      Header Text that Says "Bookings for XYZ Airlines"
    Main Area
      2 Cells that Contain the Flight and Price
      CARRID Even on Sort Ends
    Footer (nothing here)
    My output would be similar to:
    Bookings for XYZ Airlines
    AA017   $1200.00
    AA020   $1150.00
    Bookings for ABC Airlines
    CA002   $898.00
    CA076   $650
    I want to ensure that at each new Airlines, that the Airline Header Text "Bookings for XYZ Airlines" and all of the flights and prices under it stay on the same page.  How can I achieve this?

    Hi Janice,
    Page protection always works at particular folder level. In your case, "Booking for XYZ Airlines" which is in SORT event is one folder, and each line of data in TABLE MAIN AREA is under another folder. So you have to group the heading + data into one folder to get the required result. You can achieve this as follows-
    In your main table display, loop at gt_flights into gs_flight...Set the sort attribute..
    ANd in your sort event, create a folder and set page protection for that folder. Set PAGE PROTECTION for the folder created, not for sort event.
    Then display the header text under a table line in this folder and after that crate a loop which will have "LOOP AT GT_FLIGHTS  into GS_FLIGHT1 where CARRID = GS_FLIGHT-CARRID" and crate your table line under this loop and display the data.
    Don't have any thing in your main area. This way since everthing is in a folder, page protection works.
    If this is not clear, please let me know your mail id. I can send the xml file of a sample form and you can upload and check it.  good luck
    Hari

  • Smartforms : Page Protection in Main Window

    I am working on one smartform which his printing the invoice. In the main window there is one table defined which prints all the line items. After this table there is one more table which prints the subtotals. I want to protect the entire contents of this second table against the page break.
    e.g. if i have 4 lines in subtotal table and there is not enough space on the current page to print all the lines, then all the 4 lines should print on the next page. If anyone has encountered the similar problem and have an solution please respond as soon as possible.
    Regards,
    Wasimkhan

    Hi,
    I have encountered an identical problem.
    Is there any soulution ?
    I do not want to count how many lines is used in the main window currently because it is to risky (each table record can ocuupy more than one line).
    Regards,
    Piotr

  • Smartforms -Page Skipping Problem in Continue Sheet Printing.....

    Hi Gurus,
    I face problem with multiple page printing in dot matrix printer for purchase order printing.
    Here are the details about my requirement
    Our client Purchase order pre-printed Paper size Width 303 mm Height 203 mm and continued sheet. I have created a z layout zpoprint for the above size and assigned it in smarforms and select DINA4 transverse in printer. Whenever we printing 2nd page it starts printing after 5 cm. My friends asked me to create a customized page format in server properties in printer. Is there any other way to overcome this issue? Anybody face this problem kindly reply to me. 
    By
    SP. Manavalan

    Hi
    Though you can double check the page layouts of both pages of your smartform, also keep in consideration that using a dot matrix printer to get the output of smartforms will have some impact of the positioning of the print as dot matrix printers are mechanical in nature(wheels are moving!).
    Whereas, in laser printers, the whole data is taken, formatted and then sent to print.
    Regards
    Raj

  • Smartforms : page count problem

    Hi everyone,
    I am using the system variable SFSY-FORMPAGES and when the total pages is above 9, I get a star "*" instead of the real number of pages.
    Can someone help.
    Thanks in advance.

    Hi David,
      maybe there isn't enough space for the text in the field
    Try to use SFSY-FORMPAGES(C) (condense spaces) or try to give more space to the text.
    Let me know.
    Best regards,
    Manuel
    PS: please remember to close the thread and to reward points when your problem is solved. Thank you

  • Smartforms Page Numbers problem

    Hi All,
    Can any one suggest me in this issue
    i need continue to next page<PAGE NO> in the last of smartfoprm pages if there is more than one page
    for that what to do
    Thanks
    Surendra

    Hi Suri,
    How about this commands
    &SFSY-FORMPAGES& 
    Displays the total number of pages for the currently processed form. This  allows you to include texts such as'Page x of y' into your output. 
    &SFSY-JOBPAGES& 
    Contains the total page number of all forms in the currently processed print  request. 
    Regards,
    Pravin

  • Page protection in smartform is disabled and how to overcome this problem

    hi friends,
    i have a smartform in which there is a table node to display the item data as shown below :
        Customer No : 12345678
        |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||   ( Barcode )
        Material No :201836
        |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||   ( Barcode )
        Material Description : Phase Shifter
        |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||   ( Barcode )
        Customer Part No :  TDD-09QA76
        |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||   ( Barcode )
    My Problem is for some customers when the data is much the text is printed in first page and it's corresponding Barcode is getting printed in the Second page which should not happen. I want the text and the barcode should be page protected But when i am trying this the Page protection option is in disable mode. So please anybody help me how to enable page protection it is disabled even if i create a folder.
    NOTE : the table does'nt have main area they have kept every thing in the header itself.
    Edited by: Murthy.G on Nov 17, 2010 5:51 AM

    Hi,
    For basis releases 6.20 and higher, you can define a page protection inside of a table, which contains more than one table line. This function is available, if you have a table of the new table type. i.e. If the table was not originally created in a 46C system. If you right-click on the table node, you can 'Create' a 'Folder'. In the folder you can set the 'Page Protection' flag. After that
    you can right-click on the folder and select Create -> Table line. Then you can put table lines into the folder, which are protected.
    Regards,
    Aidan

  • Page Protection in Main window of smartform using Folder issue

    Hi Experts,
    We can fix the page protection issue of records in main window by checking the No Page Break check box at the line type level in a smartform.
    I tried to solve this issue by using the folder option. I created a folder inside the table of a main window and checked the page protection check box. Save and activated the layout. When i tried to add the table to the folder, the check box for page protection was reset to blank.
    Why does this happen? Cant we use page protection inside main window using folder ??
    Thanks

    Hi friend,
    We can do page protection functionality inside table of main window using Folders option. Follow the below steps,
    1. Assume rows are created inside table in a main window, with corresponding line types.
    2. Create a folder named PROTECT inside table, for example in Main area of table.
    3. Just drag and drop your Row(s) into folder PROTECT and simply click page protection check box of the folder PROTECT.
    4. This will help you to add the required functionality using Folders option in smartform.
    Try this and update me in case of any concerns. Hope this will solve your problem.
    Check the attachment also for your reference.
    Cheers...

  • Page Protection in Smartforms

    I know this question has been asked before but I've not found an answer which completely solves my problem.
    I have a table node in my smartform (basis version 7.0, ERP 2005) which has several line types and a loop within it but I need all data to be page protected for one loop of the table (not the inner loop).  On the table node I've marked all line types as page protected but that just seems to protect each one individually and not collectively.  I've also tried putting the whole table node inside a folder but the page protection flag for the folder is disabled.  I'm also using several different paragraph and line types so page protecting those within the smartstyle doesn't work either.
    Can anyone help?

    Hi,
    <b>Protection against page break for line types </b>
    1) Double-click on your table node and choose the Table tab page. 
    2) Switch to the detail view by choosing the Details pushbutton. 
    3) 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. 
    <b>Protection against page break for several table lines</b> 
    1) Expand the main area of your table node in the navigation tree. 
    2) Insert a file node for the table lines to be protected in the main area. 
    3) 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. 
    4) 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. 
    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
    Regards
    Sudheer
    Message was edited by:
            Sudheer Junnuthula

  • Page protection Smartforms

    Hi,
    I need to set a page protection for the delivery adress.
    The adress text node is inside the main window and inside a table. How can I now activate the page protection?
    The checkbox for page protection on the top of the text node is disabled, so I can´t check it.
    Any ideas?
    Thank you!

    Hey Vidya, I understood completely what You have ment, but the problem is... it´s not working!
    I have tried to force the next page command, but when I´m testing the form, I´m getting the error message, that Page protection is not allowed inside a table!
    So I´m sure there must be a difference between older and newer smartforms versions....
    But now, I have translated the whole table to paragraph tabulators. It´s now working with page protection. I can set it in the folders etc.
    But now I need my previous header lines of the table on each page on the top.
    I tried to do it with a variable, which has as content the old page number. If the page is changing, it´s going to print the line.
    But the page break is often during the lines of one position, so I get the header lines after the next position line on the next page....
    For example, the system detects, that the next position is not fitting on the current page. Then it´s forcing a page break. But the next position lines are printed before my header lines on the next page...
    How can I get the header lines on the top of every page during the loop about the content of a table?
    An I also need a footer line on every page to show the sum of the amount of one field for all positions shown on the current page.
    I hope You understand my problem!
    Thank You very much for Your help!
    Arne

  • Unable to use page protection in smartform

    I am working on a smartform but i am unable to use the checkbox page protection anywhere in the po form.  What do I have to change so I can use this option?

    Hi
    check the parent nodes of the objects, do they hv page protection checked.remove them and try.
    OR
    U can create a FOLDER node and check the page protection.
    If u want to protect a particular line type then in table click DETAILS and click the line types which u want to protect.
    Regards
    Hareesh

  • Unavailable 'page protection' smartforms

    Hi all.
    I need all parts of a table in a smartforms, be shown in the same page. If I select the table, and select 'Output Options', there is a flag 'Page protection', but it is in display mode, and I can't put it in change mode to mark it. Could you help me? I have marked flag 'Page protection' in Line type, but it keeps toguether the line, but not all the lines of the table.
    Thanks a lot.
    Marta.

    Hi,
    try the following options :
    1.When defining the paragraph format from T Code : smart styles in tab Indents & spacing under header Text Flow there are 2 check boxes  Page Protection and Next paragraph same page . If u set these check boxes then they work like Protect - end protect in sap script. 
    2. Folder option
    But It all depends on the amount of data that you are trying to display on the smart from, if it is a large data it has got no option but to spread to next page.
    Revert if it works.
    Thanks,
    KC.

  • Reg: Page Protection Check Box in Smartform

    Hi,
      In the folder node of the smart form, i want to use the check box ' Page Protection'. But the check box is disabled. Can any one guide me how to enable the check box. Thanks in advance.
    Rgds,
    Nagendra Prasad.J

    Hi,
    I did like that,
    I created one folder and I selected the checkbox in output options.
    when I am trying to create "TABLE" in that folder, it's automatically resetting the checkbox.
    error text "Page protection for node %FOLDER1 was reset"
    Plz. suggest me.......!
    Thanks & Regards
    Rajendra

  • Main window data to be page protected in smartform

    Hello Experts,
    I want to make Main window data to be page protected.
    But page Protection check box is in Noneditable mode .
    Please let me know, how to make main window data to be page protected.
    Regards
    Mohit

    Hi,
        Try this way
        Under the Main Table node, you will find, Header, Main Area and Footer.
        Select Main Area, right click Create> Folder
        Drag the Row item inside the Folder
        Select the Folder node, for Folder node out put options, you can select Page Protection check box.
    Main Window
        Header
        Main Area
          Folder
            Row Items
        Footer
    Regards
    Bala Krishna

Maybe you are looking for

  • Custom Swatch Libraries color shift

    I created a custom swatch library for my client in Illustrator. RGB values. I loaded the library in a new document (RGB Color Mode) and filled an element with one of these loaded swatch colors. When I double-clicked the color in the fill box, the RGB

  • Garritan Personal Orchestra with Logic?

    Is anyone here using the Garritan Personal Orchestra with Logic? How stable is this within Logic, any troubles? Also, how do the solo string instruments sound, realistic or synthy?

  • Load Images in Oracle Applications

    Hi friends, I'm trying to load/store a .jpg image. In client/server mode, there's no problem (forms 6i) using hits code in a button (i.e.): declare      dirname varchar2(255);      v_filename varchar2(255); begin      tool_env.getvar('IMAGE', dirname

  • BorderLayout in javafx

    Hey, I need smth like BorderLayout from swing in javafx, but much simpler (only North and Center). I used Vbox layout on scene with binding width and height values with scene size for autosizing all content inside scene. First, in VBox I put ToolBar

  • When I open thunderbird ... all the accounts that I had downloaded from different gmail accounts have disappeared I need help thank you

    A while back I downloaded about 15 gmail accounts so that i could cancel the gmail accounts ... all was working fine ... but recently when I started thunderbird ... there was only 1 of the downloaded accounts remaining ... and even it was empty .. I