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

Similar Messages

  • Need help:Scripting on windows and Sql Loader

    Hi
    I need some help regarding script work on windows machines i.e., how to write a script,the file extension,how to run the script etc,how to schedule it...
    I also need the doc regarding sql loader(complete details.....)
    Thanks in advance...
    bye

    The sqlldr utility is fully documented in the Oracle version# Utilities manual for your version of Oracle. You can find the documentation sets here on OTN for download or you can use the online versions at http://tahiti.oracle.com
    There is a product called Script Works and it is documented by the vendor. Otherwise the details depend on the scripting language/tool you use: DOS, Perl, etc....
    HTH -- Mark D Powell --

  • SDK Windows and Mac UI differences

    Hi,
    I'm developing a couple of plugins, and I've recently got reports of my plugins UI looking strange on OSX.
    Indeed when I look for myself, OSX doesn't seem to respect the "fill_horizontal" properties as it should.
    Using the layout code here:
    http://nyanya.org/lightroom/lightroomsdk/MetaExportDialogSections.lua
    I get the following results:
    http://nyanya.org/lightroom/lightroomsdk/windows.png
    http://nyanya.org/lightroom/lightroomsdk/osx.png
    (The rest of the plugin is available here:
    https://github.com/Clam-/MetaExport )
    Is there something I'm doing horribly wrong? Or is there some trick to UI elements in OSX?
    Thanks for your time,
    -Lee
    Message was edited by: Clam. (fixed title)

    UI elements should be font independant, as it's just percentage based units I'm working in.
    As in "label 1" should take up 80% of the "left over" space if I understand the SDK docs correctly. It's like OSX doesn't have correct notion of "left over space" or it's using the "place_horizontal" definition instead.
    I guess if fill_horizontal always acts this way on OSX I can just use different values between the OSes.
    Yeah, I thought I saw a SDK section, but this layout is somewhat confusing and I lost it shortly after. I'll pay more attention next time.
    Thanks for the response.

  • 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

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

  • 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

  • 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

  • Difference between Constant and Variable window

    Hi all,
    What is the difference between Constant window and Variable window.I am not observing difference between them.I created two pages(page1 and page2) with 3 WINDOWS(Main,const11 and var11) and I inserted 8 lines of text on each window.But all the 3 windows are capable of holding 4 lines of text only.I included all those above 3 windows in both pages(Page1 and Page2).In page attributes for Page1,I included 'Page2' for next page and for page2 I included 'page2' for next page.
    when I executed the form.I am getting constant texts in windows Const11 and Var11 for all output pages.I got 4 pages as output.
    But what I learnt is constant windows contains constant text in all form pages and Variable windows contains variable contents in all form pages, in which they appear.But to my surprise variable window also contains constant text like constant window.That means the texts on both constant and varilable are same on all ouput pages( 4 pages of output).
    Rgds,
    Balaji

    hi,
    Contents in Variable window are regenerated for each and every page hwere as contents in Constant window are generated only once and same is displayed for every page.
    SAPscript does not distinguish between the two window types, although both types are mentioned in the SAPscript documentation.
    This means that, for better performance, windows that contain different information on different pages must be VAR; all others are CONST. The content of the window is defined in the SAPscript editor.
    Regards,
    Sailaja.

  • 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

  • How to define a window as constant in a sap script??

    hi gurus..
    developing a sap script for test..
    i am confused how do i define a window as constant?? i m lookin on screen and there are two options only
    1)main
    2)variable.
    also tell me y and wen variable window is used and constant window is used???
    thanks
    gaurav

    Main window is dnamic window as in when the data flows to second page, main window can still hold it.
    Eg: Invoice can contain 100 line items thus the invoice could be of several pages. The line items will flow  on the other pages.
    Other cannot hold data. If the data flows to second page and if its now a main window, there will be loss of data.
    Plz reward if useful
    thnx

  • Read header text from vf01 and print in script main window

    Hi Gurus,
               I need to read text from vf01 header note 1, there user type max 10 lines i want to read that 10 lines and print in sap script main window after line item printed. i used read text but  one line only  fetched. i declare variable like  data : NEXRSP LIKE TLINE-TDLINE and read_text function module. pls provide solution for this.
    Regards
    G.Vendhan

    HI GURUS,
    Thank u for reply i declare like
        ID = '0002'.
        PERFORM READTEXT USING EN NAME OBJECT ID TEXT_OUTPUT.
        NEXRSP = TEXT_OUTPUT . CLEAR TEXT_OUTPUT.
    FORM READTEXT  USING    P_EN
                            P_NAME
                            P_OBJECT
                            P_ID
                            P_TEXT_OUTPUT.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          CLIENT                  = SY-MANDT
          ID                      = P_ID
          LANGUAGE                = P_EN
          NAME                    = P_NAME
          OBJECT                  = P_OBJECT
        TABLES
          LINES                   = LINES
        EXCEPTIONS
          ID                      = 1
          LANGUAGE                = 2
          NAME                    = 3
          NOT_FOUND               = 4
          OBJECT                  = 5
          REFERENCE_CHECK         = 6
          WRONG_ACCESS_TO_ARCHIVE = 7
          OTHERS                  = 8.
       LOOP AT LINES.
        P_TEXT_OUTPUT =  LINES-TDLINE.
        EXIT.
       ENDLOOP.
      FREE LINES. CLEAR LINES.
      ENDFORM.                    " READTEXT

  • 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

  • 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 to connect and rename a drive works on Windows 8.1 but not Windows 7

    I have a script to map a drive to a WebDAV share and the staff wanted it so the Drive shows up as Onedrive and not \\http......etc So I added entries to the script
    to rename the drive to that. It seems to run and work perfectly on Windows 8.1 but on Win 7 it maps the drive but the rename part doesn't work. Even running the rename section manually in a separate script on Windows 7 does nothing. Is there a different rename
    command for VB for a Win 7 OS? 
    Jason

    Sure thing, Also Ive found the problem is on the ones that aren;t working if I open an app notepad for example and do a save as that drive shows as the name I want it but it doesn't when I just go to My comuter view
    Set WshShell = WScript.CreateObject("WScript.Shell") 
    Return = WshShell.Run("https://login.microsoftonline.com/login.srf?wa=wsignin1.0&whr=adfs.cr.k12.ia.us&wreply=https://crdistrict-my.sharepoint.com&LoginOptions=1", 1) 
    WScript.Sleep 8000
    Dim objNetwork
    dim objFSO, objShell, objUNC
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objNetwork = WScript.CreateObject("WScript.Network")
    Dim strDriveLetter1, strRemotePath1, strNewName
    'end of varible declarations
    strDriveLetter1 = "W:"
    strRemotePath1 = "\\XXXXXXXX-my.sharepoint.com@SSL\DavWWWRoot\Personal\" & objNetwork.UserName & "XXXXXXXXX/documents"
    strNewName = "OneDrive"
    'end of varible setup
    objNetwork.MapNetworkDrive strDriveLetter1, strRemotePath1
    'end of map creation code
    ' Section which actually (re)names the Mapped Drive
    Set objShell = CreateObject("Shell.Application")
    objShell.NameSpace(strDriveLetter1).Self.Name = strNewName
    WScript.Quit
    'end of script
    Jason

  • Difference in performance of SBA between Windows and Unix

    Hi,
    I am using a  MSF routine which uses SBA to recursively search a sysbld suprerblock and its children to find a specific type block (in this case a ucb). It works fine on both Windows and Solaris Xmath. However, for very large models, there is a huge performance difference. I ran the algorithm on a model containing around 1000 superblock and 10000 blocks. Under Solaris (7.1.5) it takes around 30 seconds while under Windows XP (7.1.6) it takes more than 8 minutes.
    Any thoughts on the reason behind this difference.
    Thanks
    Farshid
    P.S. The MSF file is attached
    Attachments:
    finducb.zip ‏1 KB

    I'm aware I may get some flack for this statement.^^^Some. <grin>
    I'll give you the counter-argument. Those Unix shops with incredibly stable environments? Have you done a count of actually used applications? The ones that mimic the business' current needs? The ones that reflect the business', uh, business? Perhaps it's just the clients I interact with, but those often have a mixture of "dead" apps in with the live ones. I rarely see that with Windows and yes, the app count is sometimes crazy high on the Unix side -- certainly beyond what EAS can comfortably navigate (I was on a 9.2 environment once that had 200+ apps -- Shared Services was essentially broken at that site, but so was 9.2 in general.)
    Anyway, I've observed that IT tends not to do a terribly good job of producing flexible analytical applications. They are very good at stability, sustainability, security, and all sorts of other things Essbase (and other, especially transactional) environments must have. Until they become fossilized in their SOPs, their policies, and their requirements. At which point a different transformational technology that the business can control pops up -- heard of TM/1 lately? I am super curious (for all kinds of obvious reasons) to see where my beloved Essbase ends up in a few years.
    I'm not coming down on either side, just saying that I've seen this play out multiple times since the mid-1980s. While both sides have their merits, at the end of the day, if a super well maintained environment is just a monument to IT's ego, it's worthless. And yes, I have seen Windows environments that are just that.
    Regards,
    Cameron Lackpour
    Edited by: CL on Jul 12, 2011 9:54 AM
    Smiley faces no longer work. Why oh why oh why?

Maybe you are looking for

  • How to get "Open Document " link

    Dear  Friends, I have customized a Requisition Notification based on PL/SQL documents and work flow concepts. I have created no.of requisitions to test. Each requisition have 3 persons involved say A ,B , C One for submitting ,other two for approval

  • Creation of Service Registry

    Dear Experts Im new to web services, i created a web service and i want to configure it in service registry, but i cant find suitable document for creating the service registry, help regarding creation of service registry will be highly appreciable R

  • REGEX statement not working in transformation routine?

    hi, I need to include the REGEX ABAP key word in transformation routine for one of the fields-- FIND all OCCURRENCEs OF REGEX But when i include this statement it says: E: statement "REGEX" is not defined.check your spelling-- but same statement when

  • Video import: missing GPS data

    Imported several videos from an iPhone 4 into LR 4.2, but there seems to be no GPS data after the import although the video files include GPS metadata: On the iPhone all videos are placed on the map of iOS 6, but missing on Lightrooms own map feature

  • API call to alter the flow (11g)

    I am doing a POC to figure out if i can alter the flow of a bpm process instance programmatically using the API. I found the API methods to alter a flow by calling setTargetActivity(IActivityInfo targetActivity) on the IFlowChangeItem However, mostly