Overflow of Main window data in to variable windows

Hi,
I have a following scenario. I have a main window . I defined some other variable windows below the  main window. My problem is that when the data is full in main window it is not triggering page break and printing variable window in the next page. Instead, the data is priting in the first page it self mingling with the data of the variable windows. Any solutions please?

Are you giving the next page  as the second page in the first page General Attributes?
Have you checked any checkboxs in the conditions tab of the table node?
Regards,
Satish
Message was edited by:
        Satish Panakala

Similar Messages

  • What exactly is the diff between main window and variable window

    what exactly is the diff between main window and variable window in SAP script?

    hi,
    MAIN WINDOW :- In a main window you display text and data, which can cover several pages (flow text). As soon as a main window is completely filled with text and data, the system continues displaying the text in the main window of the next page. It automatically triggers the page break.
    You can define only have one window in a form as main window.
    The main window must have the same width on each page, but can differ in height.
    A page without main window must not call itself as next page, since this would trigger an endless loop. In such a case, the system automatically terminates after three pages.
    VARIABLE WINDOW :- The contents of variable windows is processed again for each page, on which the window appears. The system outputs only as much text as fits into the window. Text exceeding the window size is truncated; the system does not trigger a page break. Unlike constant windows, the page windows declared as variable windows may have different sizes on different form pages.
    As far as the processing of the window contents is concerned, the system currently treats constant and variable windows alike. The only difference is that constant windows have the same size throughout the form.
    hope this will be useful.
    If useful then reward points.
    with regards,
    Syed

  • Closing variable window restores IDE window

    Hello,
    in my opinion the following scenario could be improved:
    During debugging of a program I open the variable window; after the program finishes, the IDE (integrated view) is the topmost window of my screen (secondary aspect: why? During debugging the variable window was on top of it...). I minimize the IDE with its _ panel button just to find out that the variable window though empty is still there (another secondary aspect: interestingly only the overall variable window, while the individual variable view has disappeared). So I close the variable window using its X panel button. Now, surprisingly, the minimized IDE shows up again and again has to be minimized. I feel that this should be fixed
    Thanks.

    This is akward, I either misunderstood or ir works for me.
    As you are talking about Z plan, I assume you released the variable window. I also added the "Hide window while running option" and added a breakpoint in a callback. here is what happened on my computer:
    * I compile and start the program, the IDE "disappears" and my topmost window is my GUI.
    * I click the button related with the callback containing my breakpoint. The topmost window becomes the IDE
    * I open the Variable window (Window -> Variables...). The topmost window becomes the Variable Window
    * I run my program further using F5 or "Run -> Continue". The topmost window becomes my GUI and the Variable and IDE Windows becomes invisible.
    * I quit my GUI (CALLBACK containing QuitUserInterface(0)). The GUI disappears, my topmost window is the ampty Variable Window and my second window is my IDE, as expected. This seem to behave correctly on my computer.
    Now the second case where the variable windows is already open is slightly different: After the breakpoint, the IDE becomes the topmost windows (which is logical, this is where the breakpoint happen) and if i bring the variable windows to the foreground, after quitting the program, the empty window remains on the foreground.
    Beside, I have an additional question: which advantage does the variable window brings as released window? It seem to me that it could be easier to have it confined in the IDE as the IDE will always be brought in the foreground when hitting a breakpoint.
    Thanks for the infos
    Best regards
    Florian Abry
    Application Engineer Group Leader
    NI Germany

  • In Scripts Variable window and constant wind difference?

    In Scripts Variable window and constant window  difference?pls help me

    Hi
    VAR - Window with variable contents. The text can vary on each page in which the window is positioned. Variable windows are formatted for each page.
    CONST - Window with constant contents which is only formatted once.
    CONSTANT WINDOW
    A window of type CONST has the same contents and size on all layout set pages, on which a corresponding page window is defined. This allows the processing of the window contents to be optimized internally.
    Page windows whose allocated window is of type CONST must have the same size throughout the layout set. If a window of type CONST is full, all remaining text the application program wants to output in this window, is lost. Constant windows do not trigger a page break. In other words: all text exceeding the window size is simply truncated.
    VARIABLE WINDOW
    The contents of variable windows is processed again for each page, on which the window appears. The system outputs only as much text as fits into the window. Text exceeding the window size is truncated; the system does not trigger a page break. Unlike constant windows, the page windows declared as variable windows may have different sizes on different layout set pages.
    As far as the processing of the window contents is concerned, the system currently treats constant and variable windows alike. The only difference is that constant windows have the same size throughout the layout set.
    Edited by: Jyothsna M on Feb 20, 2008 7:48 AM

  • Issue with main window data

    HI all,
    My main window data is not displayed on the third page.
    I have following page,.
    Page one (First page)
    Next Page(Next page of the first page will be triggrred in case of data overflow)
    Page Two(Which is copy of the first page and i am calling this page from the first page using the command line)
    Issue is my main window data is not displayed in the third page.
    I third page i called from the first page but the main window is coming as a blank.
    Kindly help
    Thanks & Regards

    Hi Sachin,
    Have you used Table or Template in the Main window...?
    Because, there are some scenarios in which the data will not be displayed in Templates used in the Samrtforms.
    Please check it out!
    Regards,
    Kittu

  • Problem in looping data in variable window

    Hi All,
    I am using loop at and i am displaying data in VAR window. But every time it loops it over writing the data in VAR window and finally its printing only the last record in the loop. Can we loop all the data in the VAR window just like what we do in general for MAIN window.

    Just try to use Text element and give the values to be printed under text element, in print program in  pass the WRITE_FORM with text element in loop and Endloop.
    I think we can not use Variable window to print records from an internal table, suppose if the data in first page is full in variable window, and if u use same variable window in second page, it starts printing from 1st record in second page also.
    Regards
    Bala Krishna

  • Smart forms- when i print a report it print main window data on same page

    hi,
    when i print a report it print main window data on same page .
    i.e. if data is more then one page then it shows data page wise on computer screen but when i print it print all data on same only one page by over wrriting .
    pl. help why it is happening
    i create page in page i set next page and in second page give first page.
    mukesh

    mukesh,
    what happened to this: smart form
    close that please.
    by the way,did you tried with what i suggested?
    lets say mainwindow in 1st page.
    copy the first page to second page.
    now.
    for 1st page: next page is : page2
    for page2: next page is also : page2

  • What is the difference between Constant Window, Variable Window,Main Window

    hello all
    what is the difference between 1) Constant Window
                                                2) Variable Window
                                                3) Main Window   in SAP SCRIPT

    Hi,
    Window Types
    When defining a form window, you must select a window type for the window.
    You can choose between three types:
    Constant Windows (CONST)
    Variable Windows (VAR)
    Main Windows (MAIN)
    Constant Windows (CONST)
    Starting with Release 4.0, the system internally processes windows of type CONST similar to windows of type VAR.
    Therefore, if you create a new window, always use type VAR.
    Variable Windows (VAR) 
    The contents of variable windows is processed again for each page, on which the window appears.
    The system outputs only as much text as fits into the window. Text exceeding the window size is truncated;
    the system does not trigger a page break. Unlike constant windows, the page windows declared as variable windows may have different sizes on different form pages.
    As far as the processing of the window contents is concerned, the system currently treats constant and variable windows alike.
    The only difference is that constant windows have the same size throughout the form.
    Main Windows (MAIN) 
    Each form must have one window of type MAIN. Such a window is called the main window of the form.
    For SAPscript forms, the main window has a central meaning:
    It controls the page break.
    It contains the text body that may cover several pages.
    It allows to fix text elements at the upper and lower margins of the allocated page window (for example, for column headings).
    As soon as a window of type MAIN is full, SAPscript automatically triggers a page break and continues to
    output the remaining text in the main window of the subsequent page. Page windows of type MAIN have the same width throughout the form.
    The SAPscript composer thus avoids reformatting of the text after each page break.
    If a page does not have a main window, the system implicitly processes all other windows of the page and continues with the subsequent page.
    This page must not call itself as subsequent page (recursive call), since this would produce an endless loop.
    In such a case, SAPscript terminates the output after three subsequent pages.
    For printing header lines or totals, the different output areas of the main window are of special importance.
    go through this links:
    In Scripts Variable window and constant wind difference?
    Main Window
    Re: Main Window in SAP Script
    What is the difference between Constant window and variable window?
    Regards
    Adil

  • 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

  • Accordian - Main window data not changing

    I'm putting together an accordion with a main area that
    changes based upon the data in the accordion that the user chooses.
    However, the main area data doesn't seem to change. Any help would
    be great!
    Here is a link (
    http://clubs.wharton.upenn.edu/welcome/accordianX.html)
    and below is the source.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    #apDiv1 {
    position:absolute;
    left:127px;
    top:61px;
    width:358px;
    height:259px;
    z-index:1;
    #apDiv2 {
    position:absolute;
    left:509px;
    top:63px;
    width:442px;
    height:393px;
    z-index:2;
    img.thumbs {
    float:left;
    height:"";
    width:"";
    margin-right: 0px;
    margin-bottom: 0px;
    border: solid white 4px;
    img.bigs {
    height:"";
    width:"";
    margin-right: 2px;
    margin-bottom: 2px;
    border: solid black 7px;
    -->
    </style>
    <script src="global.js"
    type="text/javascript"></script>
    <script type="text/javascript" src="
    http://clubs.wharton.upenn.edu/welcome/includes/xpath.js"></script>
    <script type="text/javascript" src="
    http://clubs.wharton.upenn.edu/welcome/includes/SpryData.js"></script>
    <script type="text/javascript">
    var dsGallery = new Spry.Data.XMLDataSet("
    http://clubs.wharton.upenn.edu/welcome/Subs/photos.xml",
    "gallery/photos/photo");
    </script>
    <script type="text/javascript">
    var dsGallery1 = new Spry.Data.XMLDataSet("
    http://clubs.wharton.upenn.edu/welcome/Subs/photos1.xml",
    "gallery/photos/photo");
    </script>
    <script type="text/javascript">
    var dsGallery2 = new Spry.Data.XMLDataSet("
    http://clubs.wharton.upenn.edu/welcome/Subs/photos2.xml",
    "gallery/photos/photo");
    </script>
    <script src="
    http://clubs.wharton.upenn.edu/welcome/SpryAssets/SpryAccordion.js"
    type="text/javascript"></script>
    <link href="
    http://clubs.wharton.upenn.edu/welcome/SpryAssets/SpryAccordion.css"
    rel="stylesheet" type="text/css" />
    <link href="global.css" rel="stylesheet" type="text/css"
    />
    </head>
    <body>
    <div id="apDiv1">
    <div id="Accordion1" class="Accordion" tabindex="0">
    <div class="AccordionPanel">
    <div class="AccordionPanelTab">Welcome Weekend
    Co-Chairs</div>
    <div class="AccordionPanelContent"> WWCC Thumb Pics
    <div spry:region="dsGallery" spry:repeat="dsGallery"
    spry:setrow="dsGallery"><table border="0">
    <tr >
    <td >
    <img src="
    http://clubs.wharton.upenn.edu/welcome/TeamPics/Images/Pictures/Thumbs/{@thumbpath}"
    class="thumbs"
    onclick="dsGallery.setCurrentRow('{ds_RowID}');"/>
    </td>
    <td>{@desc}</td>
    </tr>
    </table>
    </div>
    </div></div>
    <div class="AccordionPanel">
    <div class="AccordionPanelTab">Committee A</div>
    <div class="AccordionPanelContent">Committee A
    Thumbs<div spry:region="dsGallery1" spry:repeat="dsGallery1"
    spry:setrow="dsGallery1"><table border="0">
    <tr >
    <td >
    <img src="
    http://clubs.wharton.upenn.edu/welcome/TeamPics/Images/Pictures/Thumbs/{@thumbpath}"
    class="thumbs"
    onclick="dsGallery1.setCurrentRow('{ds_RowID}');"/>
    </td>
    <td>{@desc}</td>
    </tr>
    </table></div></div></div>
    <div class="AccordionPanel">
    <div class="AccordionPanelTab">Committee B</div>
    <div class="AccordionPanelContent">Committee B Thumbs
    <div spry:region="dsGallery2" spry:repeat="dsGallery2"
    spry:setrow="dsGallery2"><table border="0">
    <tr >
    <td >
    <img src="
    http://clubs.wharton.upenn.edu/welcome/TeamPics/Images/Pictures/Thumbs/{@thumbpath}"
    class="thumbs"
    onclick="dsGallery2.setCurrentRow('{ds_RowID}');"/>
    </td>
    <td>{@desc}</td>
    </tr>
    </table></div>
    </div>
    </div>
    </div>
    <div id="apDiv2">
    <div spry:detailregion="dsGallery">
    <img src="
    http://clubs.wharton.upenn.edu/welcome/TeamPics/Images/Pictures/{@path}"
    ><br/>{@desc}
    </div></div></div>
    </div>
    <script type="text/javascript">
    <!--
    var Accordion1 = new Spry.Widget.Accordion("Accordion1");
    //-->
    </script>
    </body>
    </html>

    The problem is that you have the spry:setrow on the div with
    the spry:region. You need to place it on the elements that repeat.
    Also, your current setup is creating a table with one row for
    *each* item in the data set, when I think what you want is one
    table with a row for each item. Try using this markup:
    <div spry:region="dsGallery">
    <table border="0">
    <tr spry:repeat="dsGallery" spry:setrow="dsGallery">
    <td ><img src="
    http://clubs.wharton.upenn.edu/welcome/TeamPics/Images/Pictures/Thumbs/{@thumbpath}"
    class="thumbs"
    fooonclick="dsGallery.setCurrentRow('{ds_RowID}');"/></td>
    <td>{@desc}</td>
    </tr>
    </table>
    </div>
    Also, you can remove the onclick attribute you added on your
    <img> tag.
    --== Kin ==--

  • CRM Smartform - standard text in variable window

    Hi ,
    I have a requirement in CRM Technical. In a variable window, there is an include text used to print the long text . The issue is that it is printing only few lines and not all the lines it should have printed as maintained in the database text.
    All the text maintained needs to be printed. If the text do not fit in the space  allowed ,then the entire text needs to be printed on separate page.
    Is it possible? and how?

    Hi,
    If  you use varibale vindow(secondary) then if the data exceed size of window data will get truncated.
    USe main window ,now include text within main window,for main window if data size is more than main window automatic triggering will take place and data will print in next page
    Thank and regards

  • Variable window in SAP script

    Hello Friends,
    I have a problem in SAP scripts while printing an internal table data in to a variable window. It is overwriting the contents.
    Ex:
    In my internal table (itab) with only one filed (text) have the below data.
    Firt line
    second line
    third line
    fourth line
    I am looping the internal table and within the loop I am calling the write form.
    In script I am writing like below
    &itab-text&
    In the output I am getting only last line.
    Output:
    fourth line.
    But I need to print all lines one by one.
    Please help me.
    Regards.
    Krishna.

    You can't print internal table data in Variable window, you have to print them in Main window
    The function module WRITE_FORM_LINES allows multiple lines to be APPENDED to a non-main window. You should note that the text lines must have the SAPscript ITF format. In the absence of other information, the system uses identically named formatting attributes (character and paragraph formats) of the form to format the content of the text lines.
    Here is an approach which allows multiple records / lines to be output in a variable window.
    If you transfer your information from the internal table into the text lines, complete with appropriate formatting symbols, you will find that the text lines are output nicely formatted in your non-Main window.
    loop at internal table into WCSCATALOG.
    clear tline.
    tline-tdformat = 'S1'.
    concatenate '<B>' WCSCATALOG-CODEX '</> ,, ' WCSCATALOG-STXT into ltline-tdline.
    append tline to tlines.
    endloop.
    call function 'WRITE_FORM_LINES'

  • SCRIPT  LOOP IN VARIABLE WINDOW

    HI
    I WOULD LIKE TO KNOW HOW IS IT POSSIBLE TO HAVE MULTIPLE LINES ITEMS IN VARIABLE WINDOW IN SCRIPT.
    THANX IN ADV
    MANOJ

    A variable window can have different contents on different pages. in the printprogram you arrange this.
    The possible with looping lines like in the main window isnot in a VAR window (i think).
    However you can put several lines in your VAR window and fill this directly in your printprogramm.
    It works otherwise but functional it is the same. You only have a maximum lines in your window but
    that is with all windows except the MAIN.
    hope you can do something with this.
    Regards, Frank

  • CVI 9.1.0 crashes when looking at variables window

    I get the following crash when I have my program at a breakpoint and I pop open the variables windows and try to scroll down to see my globals:
    EventType : BEX     P1 : cvi.exe     P2 : 9.1.0.427     P3 : 4afcd035    
    P4 : cvi.dll     P5 : 9.1.0.427     P6 : 4afcdb5b     P7 : 009d730e    
    P8 : c0000409     P9 : 00000000     
    Can anyone help with this?

    I am getting the exact same crash every time all of a sudden.  It seems to occur now that I've created a viSession variable and viFindlist variable..
    My main looks like:
    int main (int argc, char *argv[])
    int error = 0,j;
    static short addrList[31];
    static short listList[31];
    static int portList[255];
    int nPorts,index;
    char port_name[7];
    ViSession resourceManager;
    ViFindList findList;
    char desc[256];
    int numDevices;
    /* initialize and load resources */
    nullChk (InitCVIRTE (0, argv, 0));
    errChk (instHandle = LoadPanel (0, "Test Application Generator.uir", INST_SETUP));
    /* display the panel and run the user interface */
    errChk (DisplayPanel (instHandle));
    /*for (j=0;j<31;j++) {
    addrList[j] = j;
    addrList[30] = -1;
    SendIFC(0);
    FindLstn(0,addrList,listList,30);
    //Get list of available COM ports
    nPorts = LocateCom("",portList,255);
    for (index = 0; index < nPorts; index++) {
    sprintf(port_name,"COM%d",portList[index]);
    InsertListItem(instHandle,INST_SETUP_PORT_TYPE,-1,port_name,index); //Add to list
    index = viOpenDefaultRM(&resourceManager);
    viFindRsrc (resourceManager, "?*INSTR", &findList, &numDevices, desc);
    errChk (RunUserInterface ());
    Error:
    viClose(resourceManager);
    /* clean up */
    DiscardPanel (instHandle);
    //DiscardPanel (mainPanel);
    return 0;
     And I have a break on the viOpenDefaultRM function so it hasn't been ran.  And my variable looks fine except the variable resourceManager is blank.

  • Precision of Variables Window

    Hello,
    I thought to remember that it is possible to set the number of digits that are displayed in the variable view. Right now, doubles show with five decimal places... where can I change this setting to show 'all' digits? Or has this feature gone with the new Variables Window in CVI2013?
    Solved!
    Go to Solution.

    May be I wasn't clear enough...
    Right now, there are three possibilities to see a variable value during debugging: as data tooltip or in variable view; the latter provides the option to display the value in floating point format or in scientific format. Floating point provides a precision of 5 digits, scientific format provides a precision of 6 digits, see the figures below.
    Once in a while I need to see all digits - where can I set the precision of the displayed variables? I knew how to accomplish it prior to CVI2013...
    Thanks.
    In this test case, p has been defined as 0.31830988618379067153776752675.

Maybe you are looking for

  • "Unknown Error" (-50) The disk could not be read from or written to

    My iPod Nano syncs fine, but I have never been able to change a setting without getting the above error dialogs ("Unknown Error (-50)" and "The disk could not be read from or written to") Does anyone know what's up?

  • How to tell what version of iTunes is installed?

    Hi, I don't know anything about Windows, but my aunt has a Windows computer and she just bought an iPod nano. She is having some problems getting the nano to work properly. She did install the software that came with the Nano. How do you determine wh

  • How to hard reset my ipad

    The top switch does not work to reset ipad How to reset without thisswitch

  • IP Address Changed in the Oracle SID

    Dear Team , I have Changed the IP address of the Oracle SID I am using (ORACLE 10g) in Listener.ora and tnsnames.ora file . While I am starting my application I got this below error. Io exception: The Network Adapter could not establish the connectio

  • NAT without DHCP?

    Is there anyway to get NAT on the Airport Exteme without the DHCP? I already have a DHCP server that I need to run and would like to use the APE as my router. Troy