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.

Similar Messages

  • 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

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

  • Smartform - Main window

    Hello,
    I need to create a smartform with the following behaviour:
    When the page shown is the last one, the main window has to take half page. On the other hand, when the page shown is not the last one, its main window has to take almost the whole page (I need a bigger main window).
    When only exists one page, the first page is also the last one.
    Thanks in advance,
    Ricard.

    Hello Oscar,
    Its Possible, as I feel.
    Just need to design 2 pages.
    PAGE1: Keep the header and item part as you want to.
    PAGE2: copy the MAIN WINDOW of PAGE1 to PAGE2.
                 Increase the size of the MAIN WINDOW in page2 .This is the flexibility that smartform gives and
                 we don't get this main window resizing facility in SAPscript it remain same in first and second
                 page.
    Navigate to : loop->table->footer.
    Create folder and under folder create window to display your footer details.
    And please unckeck the check box "On page break" in the footer condition tab.
    Hope the discussion was helpful. Revert back in case of any further issues.
    Cheers
    Suvendu
    Edited by: Suvendu Swain on Jun 9, 2009 5:06 PM

  • Main window Boxes and text alignment

    Dear all,
    please  correct me .........i am displaying line items (materials) with their material code,description,quantity etc in the main window of a invoice.now my requirement is i have to create boxes and display each field in a box in main window,and  in each box the field value or text shud be aligned properly.......means it shud not cross the box.
    for this im following dis sequence .
    1. box command (for creating boxes)
    2. protect....end protect ......in between the heading and value to be populated
    i ve executed but iam able to display only 1 line item.please correct me

    quite a difficult task.
    At first you need either items of fixed height, or you need to create those boxes dynamically. Since you dont know how much items will get printed you need to create them half dynamically anyway.
    I´d strongly recommend you to do this is SMARTFORMS rather than in sap-script. Cause smartforms got the tools for such tasks, and makes it quite easy while in SAP-SCRIPT it is one of the hardest requirements to come by.

  • Main window box is not extended

    Hi Experts ,
    I am working scripts. In main window  I draw box , using below box command.
    BOX XPOS '0.0' CM YPOS '0.0' CM WIDTH '3' CM HEIGHT '1' CM FRAME 10 TW
    BOX XPOS '0.0' CM YPOS '0.0' CM WIDTH '6' CM HEIGHT '1' CM FRAME 10 TW
    BOX XPOS '0.0' CM YPOS '0.0' CM WIDTH '10' CM HEIGHT '1' CM FRAME 10 TW
    BOX XPOS '0.0' CM YPOS '0.0' CM WIDTH '13' CM HEIGHT '1' CM FRAME 10 TW
    BOX XPOS '0.0' CM YPOS '0.0' CM WIDTH '16' CM HEIGHT '1' CM FRAME 10 TW
    My issues is , when Item line is one, it is working fine.
    But if item lines 2 to 10 records, My box was not extended.
    So please give me solution.
    Thanks,

    point 1, wrong forum, see the moderator message right on top of this forum.
    2. well you are drawing hard coded boxes of height 1 and various width´s.
    Sure the will come only for item 1, for item 2 you´d have to draw new own boxes.
    Since you cannot be sure about the height of a position, you had to code these dynamically, which is possible but quite a task.
    Anyway it is NOT advicable to work with boxes on line-item level. at least not with SAP-Script.
    with smartforms you have an easy time doing this, while in SAP-Script you may come quite near to desperation.

  • 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

  • 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

  • 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

  • Smartform main window in version 6.0

    hi experts,
    im working on smartforms.
    my doubt is how many main windows we can create in a smartform?
    in 4.7 version it allowed a single main window. then what is the case in version 6.0.
    plz some one help me. give me the complete details abt no.of main windows in a smartform in version 6.0
    thanks in advance.

    hi experts,
    thanks for ur answres.
    but when i created 2 pages, each page with a main window, its not showing any syntactical errors, simply getting activated. but when i executed it, its going in to dump.
    so, i created 2 pages, created main window in page1 n then copied it to page2, then its giving output, but the data is getting displayed only once, i mean either in page1 or in page2.
    plz some one solve this. thanks in advance.

  • 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

  • Smartform : Main window : Want to increase the size of main window

    Dear Sir,
    In my smartform my Main window is fixed after four windows(2 + 2) but only in first page.
    Now my requirement is there in second page i am only showing two windows out of four and in new vaccent space produced by two window i wanted to increase the height of window equal to 2 window in second page onwards.
    Please guide.
    With Rgds,
    Nirav Parekh

    You just need to change the UPPER and HEIGHT values for the MAIN window on the second and subsequent pages.  Presumably, you have a different page definition for these pages?  If that's not your question, then please re-phrase it.

  • Smartform Main window problem

    Hi,
    I have a requirement wherein i have to print data for an employee from more than  30 different sections , the data for which is stored in different internal tables.
    As there can multiple records in each internal table for an employee and data has to flow ; i have to include the internal tables in Main Window.
    I wanna know is it possible to include all  the internal tables as table nodes  (>30 ) in Main Window ? If no, what is the best way to handle such scenario in Smartforms.
    Thanks in Advance!
    Regards,
    Aleria

    Hi Jsree,
    in my case it is not poosible to combine fields from 30 different internal tables into one because of dta constraints; so i can't follow this approach.
    However, i tried it is possible to display this much internal tables with float functionality in Main windiw using Folders,
    Thanks for your answers.
    Regards,
    Aleria

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

Maybe you are looking for

  • JRE 1.5.0_11 Startup Error with MS Windows Vista. Please help!

    Hi there, I am hoping that someone can help me with this very confusing problem. A friend of mine made a program for me last month using java. It works brilliantly on computers running MS Windows 2000 and XP but as soon as I installed it on one runni

  • How do you change the spacing between lines of text?

    using Dreamweaver 6 how do you change the spcing between lines of text. Not seeing it as a option in the page properties menu.

  • HT1380 Can the Apple Universal Dock charge the 3rd generation iPod?

    At the time it could only be charged with the FireWire charger.

  • Periodic Asset Postings

    Hi all, I need some information about the asset accounting transaction code ASKB for periodic asset postings. I have never used it before and have some difficulty understanding its purpose and the postings that take place while this program is run. C

  • Blank line in SAP-Script Address

    Hi all, I'm desparatly seaching for a way to leave a blank line in a SAP-Script Address (sender Germany, address Germany) between the street (or PO-BOX) and the postcode - town line. I'm using the SAP-Script address command: /: ADDRESS /: ENDADDRESS