Columns in sapscript form in main window

Hi,
In the script for packing list, i want to display columns for the item details for the item details in main window.
can any budy tell regarding how to write the box statement for the itrem details.
regards,
vamsykrishna.
reward point for good answers

hi vamsy,
      try this:
Goto the text elements of main window spcify the following command.
   /: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
WIDTH
Width of the box. Default: WIDTH value of the SIZE command.
HEIGHT
Height of the box. Default: HEIGHT value of the SIZE command.
FRAME
Thickness of frame. Default: 0 (no frame).
INTENSITY
Grayscale of box contents as %.
Default: 100 (full black)
EXAMPLE:
/: BOX WIDTH '17.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15
thanks,
raji
reward if helpful

Similar Messages

  • Sapscript: display in main window table ... repeat table haeder on new page

    Hi all,
    I have a form with one Window -> Main Window, in this Window it will be written many different information... there is also a table, when the table cause a new-page, the header (discription of the table) should be written (repeated) also on the new page.
    Im trying to find out, how i can get the page number in the print-programm... but I dont found any variable (print_co-actpage doesnt work)
    Thanks a lot for your help.

    Hi David,
    I'm sure you've got around your requirement by now, but for future reference you can get the page number into your print program by calling the function module 'GET_TEXTSYMBOL'.
    data: lv_page(255) type c.
    lv_page = '&PAGE&'.
    call function 'GET_TEXTSYMBOL'
         exporting  line             = lv_page
                        start_offset = 0
         importing  value            = lv_page.
    Cheers,
    Darren

  • SAPscript layout -Repeating Main window in same page

    Hi,
    I have a requirement in sapscript layout to duplicate content within a page in two sections, of which the content can span across multiple pages.
    Can anyone give an idea how this can be achieved.
    This particular layout has 3 sections:
    1st window (Top window): invoice Details (multiple items)
    2nd window (Middle window): Check Details single item
    3rd window (Bottom window): invoice Details (multiple items) {same content of the 1st window}
    The invoice details can span across multiple pages.
    Main window alone works perfect with the requirement.
    I have attempted with a copy of a Main window for the 3rd window, and as it's specified it can only continue from the 1st main Window and i couldn't find a way to control it's value passing from the calling program.
    I have also tried using a dynamic window for the 3rd window, but haven't worked  to get the desired values shown across multiple pages. When it cross to a new page it repeats its last value across all pages.
    Please help me with this. Thanks in Advance.
    Regards,
    Viraj.

    The Standard layout only prints the invoice details once.
    If your existing layout prints invoice repeated, which means that already a customization is in place which repeats the invoice breakdown.
    If the items are being repeated in the main window, it could be that the repetition customization is done on the calling program, then a solution could be to remove/comment that call  in the calling program by searching text element name.
    If the items are being repeated from a non-main window, then a solution could be to remove/comment the entire element in the non-main window.
    hope this helps
    Best Regards,
    Viraj.

  • **To branch to a new page in Smart forms after main window**

    I have three pages where on second pages main window so my data many be carry on next 3, 4, pages and my requirement is to display  data(like notes ) on last page after all contain of main window .that last  third page is different formatting on basis of company code lets 10 different pages. On second page in main window I write u2018commandu2019 and General Attributes, Tick Go to new page in. On the Determine the new page using the list box next to the checkbox. The output of the main window will continues on the new page of third pages. I did this for my all company like (command for 10 , command for 11u2026.).BUT also on second page option of next page in General Attributes. Where in can maintain next pages entry is single...if I put blank the error comesu2026thingu2019s 1) what should I have to maintain in second page for next page.
    2) how I get data from multiple page design (I design 10 pages from that I want one should display):- I used condition option in command for company still getting error .
    So kindly help me  for such scenario.
    Edited by: nshahare on Aug 5, 2011 4:07 PM

    Hi nshahare ,
    Format the way you have asked the question, It is highly unclear what issue you are facing.
    Be clear, be cool and then post(edit) the question again. we are here to help you.
    BR
    Dep

  • Change in output of quotation form in main window ( in SAP SCRIPT)

    HI expects,
          i want to change to the output values of quotation form and that should come in single line. at present it is coming in double line.as per my requirement is to be display the data in one line.
    item      material                              description
                                    Qty                                       price             price unit               value
    0010    fff.044                                   motor                                                                               
    10ea                                       26.541.00     1ea                       265.41
    my requirement is
    item     material      qty         description       price         price unit          value
    0010   fff-044        10ea       motor             26.541.00     1ea                265.41
    how can i solve this problem in SAP SCRIPT (standard form : rvorder01)

    Hi,
    As stated above , you cannot make changes in standard SAP script, create a Z one and then use it.
    Manish

  • 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

  • What is the use of MAIN WINDOW in SCRIPTS

    what is the use of MAIN WINDOW in SCRIPTS, y we con't create a script w/o main window.
    Title was edited by:
            Alvaro Tejada Galindo

    Hi
    See this
    What are the different types of windows in SAP Scripts?
    Windows are defined in the Layout sets which define the position and the text to displayed.
    The different types of windows are:
    MAIN - Main Window
    The main window is a continous window which can extend over several pages. If the text in the main window fills up a page, a new page is created.
    Only one main window can be defined in the SAP Script whereas upto 100 instances of main window can be created in a page.
    VAR - Variable Window
    This window can have the variable contents displayed on them. The contents of the window cannot exceed the window size. The content can be formatted for each page.
    CONST - Constant Window
    The constant window can have a fixed content and is formatted only once.
    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.
    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.
    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.
    <b><REMOVED BY MODERATOR></b>
    Anji
    Message was edited by:
            Alvaro Tejada Galindo

  • Main Window in SAP Script

    Hi Guys,
    I wanted to know as to why is it possible to create multiple main window in SAP Script.
          In most theory it is written a SAP Script can only use 1 main window, If thats the case why is it still possible to create more than 1 of them.
          Can you explain its use and functionality.
    Helpful answers will be duly rewarded.

    Hi,
    U can have multiple main windows in Sapscripts(Upto 99)
    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.
    The diffetent Output areas of main window are
                                                                      TOP
                                                                      BODY
                                                                      BOTTOM
    its use and functionality.*
    Suppose you have requirement that you r displaying data from two line item tables which can flow multiple pages.
    In this case u have to use multiple mail windows.
    Regards
    Sandipan

  • More than 1 main window in forms

    hi all,
    before the question pls see below first :
    Next Main Window: NEW-WINDOW
    Each page can consist of up to 99 main windows. Each main window is assigned a consecutive identifying number (0..98), and the windows are filled in this order. This feature enables SAPscript to print labels and to output multi-column text. When one main window fills up, the next main window on that page is taken, if there is a next one. A page break is inserted after the last main window.
    You can use the NEW-WINDOW command to call the next main window explicitly, even if the current main window is not yet full. If you are in the last main window of the page, the command has the same effect as the NEW-PAGE command.
    Syntax:
    /: NEW-WINDOW
    does someone can give me a detail view about how to use several main windows in 1 page ? both in smartforms and sapscript.
    pls say more clearly .
    best regards
    kevin

    Hi,
    Ya in smartform u can not create more than one main window. u can use final window after using main window but one problem with final window is u can not define any window after that so that try to create it in only last window.
    As for main window a page can have only one.
    You may have number of Variable windows
    Main window can only be one. One it can be copied to next page.
    but secondary window as many as u want.
    Regards
    Vasu

  • Box in main window extend to next page in sapscript

    Hi all,
    I am trying to put box in main window in sapscript.
    contents of main window extends  to more than 1 page.
    Box  is appearing on first page but is not extending to other pages.
    Pl help,
    Regards
    Senthil

    Hi,
    Please refer this thread.
    Link: [sapscript box nto printed on all pages;
    Hope this will help you.
    Regards,
    Renuka S.

  • Error in Smartforms a page without a main window

    Dear Friends
    I have suffred one problam in Smartforms, whe we create new page then system gives error
    "A page without a main window cannot point to itself as next page".
    Please provide solution.
    Regards
    Ajit Sharma

    Hello Ajit,
    In Smart Form Main window is optional but check if this satisfies in your case ....
    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 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.
    It means if you have Next page you need to use a Main window in your smart form.
    Regards,
    Kittu

  • Grouping in main window

    Hi experts..
    I am working on SCRIPTS.
    I am looping my internal table in main window to print fields of main window.
    my main window fields are--
    box_id   pack_id  sales order  duty_code   box_wt.
    but one more field is there..ie DEST_CODE, its CHAR type.
    but i want to group my internal table records according to DEST_CODE.
    means..on o/p form fields should b displayed---
    dest_code = '--'
    box_id   pack_id  sales order  duty_code   box_wt.
    my all fields are get printed..
    but can some body tell me "how to group my internal table records, according to one specific field"
    when that DEST_CODE  will change,
    those records group must b different.
    thanks i advance

    Hi,
    1. U declare the first field as 'DEST_CODE' in ur Internal Table.
    2. Now, u SORT the internal table on DEST_CODE.
    3. LOOP ur Internal Table & use control break events for grouping based on DEST_CODE.
    Eg:
    In Driver/Print Program:
       LOOP AT itab.
         at new DEST_CODE.
            call function 'WRITE_FORM'.
                exporting
                   element = 'E1'
                   window = 'MAIN'.
            endfunction.
         endat.
         call function 'WRITE_FORM'.
            exporting
               element = 'E2'
               window = 'MAIN'.  
        endfunction.
      ENDLOOP.
    In Script Form: in Main Window
    /E    E1                                             --> Calling Element E1 to print Dest_CODE
    P1   &itab-DEST_CODE&                   --> Printing DEST_CODE once for every new DEST_CODE
    /E    E2                                             --> Calling Element E1 to print Dest_CODE to print other details
    P1   &itab-box_id&,,&itab-pack_id&,,&itab-sales_order&,,&duty_code&,,&box_wt&.  
    Hope its clear!!
    Rgds,
    Pavan

  • 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

  • Problem with Body of the main window

    Hi friends,
    While Printing the smart form the main window body is not reaching to the end of the main window dimensions.(There is no footer for the main window).
    Its Printing all the records and at the end its giving one line gap.
    My problem is the vertical lines will come, up to the line items it's having. and d last gap am not getting any lines.as the body is not reching to the end of main window.
    Plz help me why its taking one line Gap in d main window Body.

    Hi Farook,
    Select the line types and assign the patterns to display the lines properly.
    Regards,
    Sravanthi

  • Overflowing one line after my main window box

    hi,
    in my form in main window i designed a box and it holds 24 lines . after the end of the box in first page another one line is
    showing that means i want that 25 th line should go to the next page .how to do it???
    because here by default in my first page it is displaying 25  lines.
    please let me know how to do it???
    my bos i defined like this
    ubb, 12.05.1999 -
    draw the MAIN-BOX v-lines -
                             on every page
    POSITION XORIGIN '-0.5' MM YORIGIN '-0.5' MM
    SIZE WIDTH '1' MM HEIGHT '1' MM
    SIZE WIDTH '284' MM HEIGHT '77' MM
    BOX FRAME 10 TW
    BOX WIDTH '30'  MM  HEIGHT '77' MM  FRAME 10 TW
    BOX WIDTH '85'  MM  HEIGHT '77' MM  FRAME 10 TW
    BOX WIDTH '148' MM  HEIGHT '77' MM  FRAME 10 TW
    BOX WIDTH '167' MM  HEIGHT '77' MM  FRAME 10 TW
    BOX WIDTH '176' MM  HEIGHT '77' MM  FRAME 10 TW
    BOX WIDTH '201' MM  HEIGHT '77' MM  FRAME 10 TW
    BOX WIDTH '214' MM  HEIGHT '77' MM  FRAME 10 TW
    BOX WIDTH '237' MM  HEIGHT '77' MM  FRAME 10 TW
    BOX WIDTH '252' MM  HEIGHT '77' MM  FRAME 10 TW
    DEBASHIS
    BOX WIDTH '284' MM  HEIGHT '77' MM  FRAME 10 TW
    thanks.

    Hi,
    Reduce the Height of The Window and Box
    or increase The font Size
    Automatically The 25 Line will go to next page
    With Regards,
    Vinu.R

Maybe you are looking for

  • Schedule Line Issue in Sales order...

    Hello, While creating sales order in schedule line two schedule lines are getting created. fisrt line the date of creation of the sales order with out confirm quantity and the second line which is two days later with confirm quantity. When material i

  • ITunes 10.5 will not open, gives me an error message

    well i recently downloaded the NEW itunes 10.5 it was working perfectly fine when i downloaded it and then now few days after it tells me this Microsoft visual c++ runtime library Runtime Error! Program: C:/Program Files/iTunes/iTunes.exe this applic

  • How do I align {tag_productquantity} in the shopping cart layout table?

    I have inserted the tag {tag_productimage} into our shopping cart layout table. As per the instructions in the following article http://kb.worldsecuresystems.com/654/bc_654.html? bc-partner I adjusted the height for .productitemcell in the Style Shee

  • How to file a complain against HP Support for not service a laptop under warranty

    I am facing an issue. I purchased a g two months back. I have to go through a long process of sending the laptop to them. The internal LCD is having small crack earlier i guess but after some day the screen started behaving weird And then stop showin

  • Install apps from factory image

    Hi all I was wondering how I install app from FACTORY IMAGE? (D:\hp\Apps) Any ideas? Best regards Anker74