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

Similar Messages

  • How can I create more than one main window in a page of SAP SCRIPT?

    How can I create more than one main window in a page of SAP SCRIPT? If anybody helps me I will be obliged.
    Regards,
    Subhasish

    Hi Ganguly,
    It is possible to have more than one main window in a same page.
    You create a main window and simply you copy and past it in the same page.. it will create first main window name as MAIN and other main windows as MAIN01,MAIN02.... up to MAIN99.
    Contets flow from MAIN , MAIN01, MAIN02.......................MAIN99. contents after filling the current window it flows to next window(by default, you skip as well with some keyword not sure could be NEW-WINDOW)
    you want print the main window data twice? or you want to create two main window in the same page ?
    1. give two copies in the no of copies in the output type screen ( Which pop up is coming after excute the program ).
    2. create two page with the same script form.
    3. you can write the coding inside the program to print twice the same page.
    Hope this information use full to you..

  • How to print the text in points wise in sap script

    hi friends,
    how to print the text in points wise in sap script.
    ex: if suppose paragraph consists of 15 lines. then according to one sentence or one fullstop (.) it should give point 1. like that...
    1. hai how ru.
    2. what r  u doing.
    3.where r u.
    like this i want numbering.. waiting for ur replys.
    thanks,
    kiran

    declare a counter
    data : cnt type char 4.
    print :
    cnt = cnt + 1.
    &cnt& &text&
    cnt = cnt + 1. and so on.
    or.
    if the data is in an internal table
    loop at internal_table.
    cnt = cnt + 1.
    write form.
    in script -&cnt& &text&
    endloop.
    Edited by: NIKHILKUMAR POOJARI on Nov 17, 2008 11:18 AM

  • How to define target window when redirecting within frames using servlet?

    Howdy:
    Is there a way to define target window when redirecting within frames using servlets?
    How to do it in JSP as well?
    T.I.A.
    Oriental Spirit

    Your servlet (or JSP) can't decide where it is going to be displayed. The browser has already decided that when it makes the request to your servlet.

  • How to display the number of line items in sap-script report?

    Hi friends,
    I need a help regarding the SAP Script. In my script (report) I create two pages and created three windows (MAIN, HEADER, FOOTER) for each pages. Now the problem is while displaying the fewer line item which can come under the main window of the 1st page these line items are comming perfectly but for the remaining line items that comes on the second page the table headings and the boexs are not comming.
    Also it is displaying the total and the amount in text in every pages that should be display in last page.
    Here if I eleminate or comments the total and the amount in text for the first page the same is reflected in second page. Also I need to display the page-nor for each pages to displayed.
    I am requesting all the people out there kindly help me to solve this issues.
    Thanks and Regards

    There is no pre built solution for this. But we can show total pages in the report body.
    one way is Create a other column in the report with code sum(count(1))/25. that gives you total number of pages. 25 here is no of rows in each page. The code you can write in narrative "Total pages in the report are @5" and out put may be "Total Pages in the report are 30".
    If you are using pivot tables, you can try this.
    http://oraclebizint.wordpress.com/2008/01/17/oracle-bi-101332-pagination-in-pivot-tables/
    - Madan

  • How define a window as constant window

    Hi all,
                 in se71 iam using graphic form painter.iam unable to declare a window which iam about to create as CONSTANT window.iam able to create variable and main window but not able to create a constant window.how to solve this problem.

    hi,
    What is the error generated?
    Try to switch to Line editor/ pC editor and then try.
    Regards,
    Vivek.

  • How to define a process level constant to be used inside a BPM Object?

    I need to define a constant with the name of the process of the instance that it is executing.
    I have a BPM Object that it is shared with multiple processes.
    Inside that BPM Object I have a method that needs the name of the process it is running.
    Is there any way to define a constant visible anywhere in the process? By anywhere I mean inside an BP-Method, not in an Automatic Activity.

    Not sure if this what you're looking for, but in a samples project named 'ExpenseReimbursement' there is a way to set and get global Process Options.
    It might not be suitable for your problem (and maybe not the cleanest solution), but such a setup might be used to construct a globally available variable.
    Kind regards,
    RL

  • How to give constant space in sap scripts.

    Dear experts,
    In my requirement I am printing invoice line item details. In my program,I am printing 8 columns. How to give the constant space in my output.
    My issue.: here am fetching Internal Excise Document Number (DOCNO) item number (zeile) plant (werks) quantity (menge) storage location (lgort) and so on.
    when i am fetching the values from the table, the values are different from each and every rows. so nothing would be aligned properly into the column. For example, if the  doc no is having 10 char,from item no all the values of the column is getting moved to right side. in my second row doc no is having only 2 chars. in this case every column value is moving left side. its looking like realigned and not good.
    How do i give constant space for each and every column. so if the values are more or less it could not be moved to any side.
    please hellp me to solve this issue.
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Thanks in advance.
    Regards,
    Sandy.
    Edited by: Alvaro Tejada Galindo on Sep 28, 2011 3:40 PM

    Hi,
    check out ur tab positioning in paragraph format...any misalignment is their or not.
    second thing you can do is checkout your printer i.e zebra printer or .matrix etc. your using sometimes misalignment happens
    in printer..or print some sample values for verifying the root cause .
    regards,
    KRISHNA

  • How to define manager's area of responsibility in SAP

    Hello All,
      I am not able to figure out where to define manager's area of responsibility and link the same to SAP user?
    My requirement is to display all the Orgunit and talent under a particular manager which should be attach4ed to SAP login user ID.
    I dont know if i need to have Portal contents too to defien the same.
    Right now i have ECC6 EHP4 system.
    Mani

    Hi Mani
    The managers user must be linked to an employee holding a chief position to determine the viewable employees
    Chief responsibilities can be maintained in PPOME 
    Positions can be assigned to PERNR via HIRE actions
    PERNR can be assigned to SAP user via infotype 0105 subtype 1
    In general in order to ensure the correct teams/employee information is available, selectable and outputted you should check OADP customizing in the MSS IMG
    Best regards
    Stuart

  • How to show excessive values in next page in SAP SCRIPT

    Hello,
    Please any one can help to show excessive values in next page .
    For example i want to show
    567
    5678
    789
    23456
    I want to show values 23456 in next page only.
    Can anyone please suggest me how to do so?
    Thanks and regards
    Mave

    Hi Swetlin,
    I have this format in the main window.
    textaaaaaaaaaaaaaaaaa
    textfffffffffffffff
    123
    1234
    1234
    5667
    1234
    textweeeeeeeeeeeeeeeeeeeeee
    texttryrtyrtuyrturtur
    now when i am doing as you suggested
    the last texts are coming in the next page.
    What i want is to show overflow of numeric data in next page and the remaining last text should remain as it is in the first page only.
    i mean
    textaaaaaaaaaaaaaaaaa
    textfffffffffffffff
    123
    1234
    1234
    5667
    1234
    textweeeeeeeeeeeeeeeeeeeeee
    texttryrtyrtuyrturtur
    and in the next page
    4567
    4568
    8790
    Thanks and regards
    Mave

  • How to print two pages with same content in sap script?

    I have created page1 and copied as page2. 1st page is  assigned with Tray1 and 2nd page is assigned with Page2.but while printing page1 is printing properly,but page2's main window values not printing(Note: page2 is not Next page). I need 2 copies printout of check from Tray1 and Tray2.How to do this?

    Hi ,
    do as following.
    Data: wa_options type ITCPO.
    wa_optinos-TDCOPIES = '2'.
    then call the function module.
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
    DEVICE = 'PRINTER'
    DIALOG = 'X'
    FORM = 'ZSAP'
    LANGUAGE = SY-LANGU
    OPTIONS = wa_options.
    I have given you for printing multiple copies
    But donno what do you mean by Tray 1 and tray 2 ?
    Regards,
    Nageswar

  • How to find length of a character variable in sap script

    Hi,
    I have stored a line of text in one variable. If the text exceeds more than 50 characters, the remaining characters will be printed in next line.
    For this i have given code as :
    <I>&S_BOL_SUMMARY-TXT(50)&</>
    <I>&S_BOL_SUMMARY-TXT+50&</>
    The problem is i have to print the second line only when the text exceeds more than 50 characters. So how can i give the condition for that?
    Ezhil

    Hi,
    Try the following,
    data: len type i.
    len = strlen (S_BOL_SUMMARY-TXT ).
    if len > 50.
    &S_BOL_SUMMARY-TXT(50)&
    &S_BOL_SUMMARY-TXT+50&
    else.
    &S_BOL_SUMMARY-TXT(50)&
    endif.

  • How to get pt 9 in paragraph format in sap script

    Hi,
    I have a requirement to bold the data in output screen in main window,But that paragraph format font size is 9.0 pt if in font tab i select bold radio button then its comming bold in output screen some cases but some cases its not happening.So if i take font size - 8.0 pt then its bold happening for all cases.
    but i cannot put 8.0 pt because it is very old paragraph format so in pt 9.0 only i want bold.any body can help me for that.
    Thanks,

    Hi madhurao123 ,
    Thank u so much.
    I have configured the device type as pdf printer.
    And Now I can able to get the PDF File downloaded.
    Thanks       
    Alagappan

  • How To Display Minus value in SAP SCript

    Hello Guys.
    I am working on a Script. My Problem is that For a fields BSAD-DMBTR.
    I have to show this fields value as minus or plus as per condition with fields
    <b>bsad-shkzg</b>. In my Internal table it's update as minus but when  I am calling  Write form with loop.  the value is not display with minus sign.
    How can I display value with minus sign in SAP script.
    Regards
    Swati,,

    Hello Guys..
    Thanks for Reply. But I am doing that thing already. My Internal table is updated with minus value. My Problem is not That.
    let's suppose.
    itab-name  =  'xyz'.
    itab-value   =   100.
    append itab.
    itab-name  =  'xyz1'.
    itab-value   =   -1 * 100.
    append itab.
    loop at itab.
    CALL FUNCTION 'WRITE_FORM'
        EXPORTING
            element                  = 'LINE'
            function                 = 'SET'
            type                     = 'BODY'
            window                   = 'MAIN'
          EXCEPTIONS
            element                  = 1
            function                 = 2
            type                     = 3
            unopened                 = 4
            unstarted                = 5
            window                   = 6
            bad_pageformat_for_print = 7
            spool_error              = 8
            codepage                 = 9
            OTHERS                   = 10.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    endloop.
    Now when value is printed in SAP Script both value is display as plus .I want to display secound value as minus.
    Please reply it's urgent.
    Thanks
    Swati....

  • How to put footer in the Delivery note  sap script form.

    Hi All,
      i am new to SAP SCRIPT , can any one guide us how to Create a footer in the Delivery note sap  script.
      I need to put  some message if the stock of the material is "0"(zero).
           can anyone  tell me the process to do this.
    Thanks
    Channappa Sajjanar

    Hi,
    U create a window in script (Footer), and in the Driver program call this window at last..
    eg:
    create a window in script and call it at the end in the layout..
    /E FOOTER
    P1 'Write Required text what u want to display;.
    now in print program, after printing all the line items in ur internal table call the FM write_form to print the footer...
    LOOP AT itab.
      call function 'WRITE_FORM'
        exporting
         window = 'MAIN'
        exceptions
          others = 1.
    endloop.
    now call, FM write_form to print the footer
    IF stock EQ 0.
    call function 'WRITE_FORM'
        exporting
         window = 'FOOTER'
          element = 'FOOTER'
        exceptions
           others = 1.
    endif.
    Hope it helps!!
    Rgds,
    Pavan

Maybe you are looking for