Smartform main window with grid lines...

Hi Gurus,
I am printing the line items in the main window using grid lines of pattern. This main window can print 10 lines only. Here my requirement is i need to get the empty grid lines till the window ends after finishing the printing of all line items.
for example if it has only 2 lines then i need 2 lines of data and remaining 8 lines should print empty grid lines.
this table control have 14 columns. some times 2 lines of data occupies 3 lines. because any column value may be morethan of column width. for this type of example i have to print empty lines 7 only. because any item line occupied 2 lines.
hope it is clear.
Regards,
Vijay

Hello Vijay,
In order to do this you could make a template(the outlines of your layout). This template must be in the main window, so if there are more than 11 lines the complete template will be printed in the second page.
If you require a total box at the end of the template then make a new window fill only the value and the total will always be printed in the box..
Let me know if the solution is not clear. I shall explain in more detail.

Similar Messages

  • How to print horizantal lines in smartforms main window  table

    hi ABAP gurus,
           i am faceing the problem in smartforms main window, i created the table, in that header, main area, footer is coming and i am created the line type in that five culamns, i am specifing the header and main area data, after the printing the header information, in main area 5 record or more than 5 records,each record after one harizantel line,  it will be print a table maner i.e 5 culamns and more than 5 rows in a table.
    thanks,
    raj.

    Hi,
    Double click on the table.
    Click on Select pattern icon>Display framed Pattern>Select the Second one (1 row 2nd column)
    Regards
    Sandipan

  • Smartforms- Window with dotted lines

    Hi,
         I am working in smartforms andf I  wanted window with dotted lines....(in sap 4.6)
        Can anyone plz help me out..

    Hi,
      Refer
    https://forums.sdn.sap.com/click.jspa?searchID=6873872&messageID=1960171
    https://forums.sdn.sap.com/click.jspa?searchID=6873872&messageID=2775901
    Regards

  • Smartform Main window and Footer Overlap Issue

    Hi,
    I have a problem in printing my invoice smartform.
    I have to print the footer at the bottom of the main window. If the line items flow to the next page the footer should be printed only on the last page.
    I have overlapped the main window and footer windows in first and next page so that the footer window space in the main window is not left empty when there are more than one pages
    The problem is sometimes the main window is overlapping into the footer window space.
    Can someone suggest a solution for this.
    Thanks,
    Viswas

    Hi,
    Solution: The issue faced after overlapping the main window with footer window can be achieved by creating a folder within the main window and using the events to check whether there is enough space to print the footer.
    Following are the steps.
    Step 1:  Create a Secondary window say “Footer” which would be the footer window. Overlap the main window on the footer window as shown below.   
    The footer window will be behind the main window
    Step 2:  Create a folder within the main window say “Check_Footer”.
    Go to Tab “Events”, select the checkbox “Footer with Height” and give the required height of the footer. Select the checkbox “at End of Table”. Specify the “Minimum height” as required.
    Now, go to “Conditions” tab and select the checkbox “Only before end of main window”.   
    This is basically done to check whether there is enough space to print the footer on that page. The Footer window would then print the output.
    Step 3: Go to the created “Footer” window .Under the Conditions tab, select the checkbox “Only after end of main window”. Create a  text/tamplate/window whatever you want to display at bottom or footer data.
    Step 4: Save & Activate the Smartform and check the output.
    regards
    Rohit

  • How to use Two main windows with in a page in script ?

    Hi any body explain me...
    How to use Two main windows with in a page in script ?
    with  header data in one main window,
    & Item data in other main window.

    HI..,
    u need to go for <b>SPLITTING THE MAIN WINDOW</b> !!!
    Main windows in page windows allow you to format text in multiple columns. Define an area in the page window, in which to position the main windows.
    Here is the procedure !!
    -->Create a page window and assign it to a page.
    Choose <b>Edit --> Main windows</b>.
    A dialog box appears.
    -->Enter values in the fields <b>Area width</b> and A<b>rea height</b> in accordance with the input guidelines for main windows.
    -->Enter values in the fields <b>Spacing</b> and Number in the <b>Horizontal group</b> if you want to use multiple columns. You can ignore the fields in the Vertical group.
    Determine how many columns and line areas are required for label printing. Then enter the corresponding values in the fields in the <b>Horizontal and Vertical groups</b>.
    -->The value in the field Left margin varies from main window to main window if multiple columns are used. The following applies:
    <b>
    Left margin of current column + Window width + Horizontal spacing = Left margin of next column</b>
    In label printing, the field Upper margin also varies from main window to main window:
    <b>
      Upper margin of current main window +  Window height + Vertical spacing = Upper margin of next main window</b>
    -->Enter a value in the field Start position.
    This is a counter. Enter a starting value which is equal to or greater than 1.
    -->The main windows are added to the list.
    -->Save your form.
    reward if it helps u...
    sai ramesh

  • Smartforms main window is not printing

    Hi,
    I would like to ask what to do with this problem.
    The smartform main window is not printing in all the pages.  All the other windows, even the window with the total data is printing.  The only problem is the contents of the main window is not printing.
    Also, the problem only happens when the I've changed printer.
    When I use LOCL as printer, the smartform is OK but when I change the printer, the problem is encountered.
    This also happens when I change environment from development server to production server.  In production server, even the LOCL printer is encountering the problem.
    thanks.

    Hi Mike,
    Have you checked the device type in transaction SPAD? Try to click on Full Admininstration from application toolbar and select device types.
    Hope the above helps.
    Cheers,
    Patrick

  • What does a gray icon with grid lines mean? It looks like a bullseye.

    What does a gray icon with grid lines mean? It looks like a bullseye.

    It's an app icon that didn't load properly .... If it looks like this.

  • Table in main window with page break in smartforms

    I want to print data with heading and items in tabuler form (grid form) using table with PAGE PROTECTION in main window in smartform.
    if you would say staight way to use Table or Template under FOLDER with page protection, will not work.
    So, it is little bit tricky. So,if any body have a proper solution please help.
    Thanks and regards,
    Vijay Kr. Gupta

    Hello,
    Include the Text ELEMENT U have used to draw the table in the loop of the main window.
    Vasanth

  • Problem With Smartform Main window

    Dear All,
    I have a requirement in which I need to print a PO using Smartforms.
    In this requirement we need to check a flag, and based on the flag we need to call the subsequent pages.
    if the Flag is set then I need to print the first page 2 times and after these two pages Terms and conditions page would come.
    In the main window of first page i have put a contition check for this flag.If the condition is true I am calling the First page as Next page and if the condition is not true the Last page(T&C) is called.
    now, the issue is when the condition is true means when I need to  call the first page twice then the very first page of the output is coming fine but when the same page is printed again the item details are not getting printed also the last page is not coming in this case.
    please help.
    Thanks in advance.
    regards,
    Shweta

    When you are calling first page again (as Second page) based on your flag, it will copy the only the content of all windows except main widow.
    To solve your issue, Put the same loop again in the mainwindow with condition which is used for trigerring second page.(Repeat page).
    Regards
    Afsal

  • Regarding vertical lines smartform main window

    hi all,
           How can i draw vertical lines in Smartforms. I want vertical lines between columns in the main window and i want the lines from top to bottom even if i have just one record in the table data.
    how can i solve this using table.
    Please reply.
    Regards
    Rami Reddy

    Hi Rami,
    Refer these links.
    Re: how to draw vertical line in a particular window
    http://209.85.175.104/search?q=cache:phjbJwuDWssJ:www.zebra.com/id/zebra/na/en/documentlibrary/misc/sap_smartforms_technical.File.tmp/SAP_SmartForms_V3.pdfHowtodrawverticallinesinsmartform&hl=en&ct=clnk&cd=3&gl=in
    Or table tab -> ypu will see a box for table pattern - > click on select
    pattern and there u will find many options to draw lines!!!
    below your table, you will have the header line type.
    double click to select it.
    on the right pane, go to attributes
    click on the top left button here (select option) ...
    in the popup, click the display frame button
    select your choice
    activate your smart form. this should work
    Or
    Even you can draw a window as vertical and specify its width as 0
    .02.It will automaticall draw a vertical line of specified parameters.
    Cheers
    Mohinder Singh Chauhan

  • Smartform Main Window Box designing

    Hi,
    I have created a smartform with 5 windows. In the main window maximum 12 records will be fitted. In Main window, In the output options tab i have selected Lines with Check box and Always draw Check box.The height of the main window is 4.80 CM. Each Record will occupy 0.40 Cm Height.For this i want dynamic window box creation. For Example if the internal table contains only two records it has to draw box only with 0.80 Cm height only, Suppose if the internal table contains 10 records then it has to draw box with 4 CM height. Here in my Smartform i am always creating 4.80 Cm height box. Is my requirement Possible? If yes, How?
    Thanks in Advance.

    hi ,
    as far as dynamic row wise box you can achieve....
    but if only you want boxes depending on the lines means it's difficult to do because you may not know how may line will come. as you have mention for only 2 and 10 records means i have  an idea but don't know whether it will work or not as these boxes will be drawn depending on the height( and it's constant).
    what we can try is.
    first count the number of lines in your internal table.
    in main if check the condition
    if internal table has 2 lines then define one table with your reqirement,like "if the internal table contains only two records it has to draw box only with 0.80 Cm height only".
    mention the height in table->details as 0.80cm.
    if internal table has 10 lines then define one table with your reqirement,like "if the internal table contains only two records it has to draw box only with 4 CM heightheight only".
    mention the height in table->details as4 CM height.
    in else... your can write as many as depending on your req...
    this is lengthy, hope this will achieve your requirement.

  • Smartforms main window is not extending as it was made as a second window

    My Requirement is smartform coof two pages in which second one is an annexure.
    the second page should come for all the reports.
    now my first pages main window is not extending as it was made as secondary window.

    I created from scratch, it works well with dynamic text with both 0 and 200 lines (setup in initialization code):
    |__ &#37;PAGE1
    |   |__ TEXT with dynamic text &GT_TLINE&
    |   |__ COMMAND : GO TO &#37;PAGE2
    |__ &#37;PAGE2
        |__ TEXT with text element "LAST PAGE"

  • Column heights in Smartform main window

    Helo All.
    I want to display complete column heights in main window of a smartform.
    Right now, if there is a only one line item then in Smartform, it is printing the column height only upto that line item.
    But I want to print complete height in the main window.
    Points are assured !!!

    Hi Anay,
       Can u be more specific.
       If my understanding is correct ( U have a main window say 6 X 4 inch size, inside which u are printing a table ,here if u have only one record then , U want the smartform to have 6 X 4 box with only one line.
    The purpose of main window is not print the way u had asked for and to roll over to the next page if more records are to be printed,
    Let me know  , what u are printing in the main window ,, a table ?????
    ifso
    how to u want the display to be if the table  has 35 records ,where we can print only 20(say) in one page
    how u want the output in first page and second opage ?
    do u want all rthe records to be printed or only n number of rocerds to be printed
    rewrd points if u find it useful
    -Sapsurfer

  • Truncating Data Output in SMARTFORM main window

    Hi,
    I have a requirement that i will only show 5 lines from a certain table in my smartforms, currently its required to be in the main table because of spacing issue and the possibility that there will be no data from the table.
    My problem is that even though my my table only contains 5 lines..it can/will display 6 or more lines because if the data does not fit the form in 1 page the smartform default will put it in the next line...
    for example in my table:
    1 ABCDE
    2 WWWWWWWWWWWWWWWWWWWWWWWW
    3 QWERTYUP
    4 ASDFG
    5 AQSWDEFR
    display:
    ABCDE
    WWWWWWWWWWWW
    WWWWWWWWWWWW
    QWERTYUP
    ASDFG
    AQSWDEFR -
    > this should have been truncated
    How will I know that i'm using 6 lines already.... or how can i use the width of my main window to know when to truncate the data

    Thanks Karthik D,
    Ive used that approach, i count the maximum number of char in my line using largest letter 'W' (its 85), so i create an internal table with 85 char each row, the problem that exist is that they said that i didnt maximize the whole space the window can handle.
    because when i display all W:
    WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
    WWWWWWWWWWWWWWWWWWWWWWW
    - it will use all spaces in 1st line before creating next
    but when i use letters like I:
    IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
    IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
    - it will have another line without maximizing the space in the 1st line...
    *could there be a possible FM that will determine the width i will cover using font style/ number of char....
    Thanks..
    Edited by: Alvin Rosales on Jun 1, 2009 10:22 AM

  • Data overflow in Smartform Main Window

    Dear Experts,
    I need your advice in smartform's main window's data overflow problem. I have a smartform to display invoice output through VF02/3. This smartform contains a main window which contains:
    - Code lines
    - Table
    - Table's main body have some 18 columns starting with Product column (Product name + Manufacturer name), division, rates etc.
    - Table's footer contains some 18 Rows (Terms & Conditions).
    Now my problem is since 1st column of table's main body contains product name + manufacturer's name, data flows to next page. But on 2nd page of Output it will show only one line and rest all page is blank and then on 3rd page onwards data will continue. I don't know why this space is coming between table rows.
    For Eg: if internal table contains 20 records, it will show 10 records (whatever number of rows fits in window) and 11th row on 2nd page and then 12th row onwards on 3rd page.
    Why this blank is coming on 2nd page. I tried using folder, ie, i put all the lines of table's main body in a folder and used page protection option but still same result.
    Please advice any solution.

    Solved.
    In old development a command was written which was triggering new page after 9 records.

Maybe you are looking for

  • My iphone 4 is refusing to accept any charger and just keeps giving me an error message when i plug it in.

    So i tried to charge my iphone yesterday and i got an error message saying "Charging is not supported with this accessory", i then went and bought a new charger and tried it but keep getting the same error message. I don't know what could have caused

  • Missing some letters in string

    Well guys, I have one VI that I write some text at a string and I can read it from another VI. Always works nice for me, but since some days ago... I start to have some problems When I wrote a text like: "Hey, my name is Eduardo" when I tryed to read

  • [SOLVED]dwm-sprinkles: can't right click

    Just installed dwm-sprinkles (compiled from source grabbed using svn because there's nothing in AUR or ABS for it), and I can no longer right click in firefox or use the drop-down menus.  Drop downs on websites work fine, but I can't use anything in

  • What is the main use of mseg table

    what is the main use of mseg table. when we should actually use this. please explain me in detail. then what is the difference betweeln mseg and mara table.

  • Need effect/transition for stills in Premiere Pro

    Need an effect to use with stills/slides in Premiere Pro CC. I'd like slides to drift into frame, settle on top of each other and appear to form a pile. These scenes will be intercut with video source. I'd hate to try reinvent a wheel which may alrea