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

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

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

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

  • 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

    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

  • 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 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):
    |__ %PAGE1
    |   |__ TEXT with dynamic text &GT_TLINE&
    |   |__ COMMAND : GO TO %PAGE2
    |__ %PAGE2
        |__ TEXT with text element "LAST PAGE"

  • Command issue in smartform main window table footer

    Hello Experts ,
    I got an issue , that really puzzled me ! hope you could help .
    In my smart form main window I have a loop node inside loop node is a table , and there is a footer in this table node.
    in footer event , I only set check box 'at page Break' , and in footer , I created a command to goto another page, but when I preview the layout , there comes an error : 'Page break is allowed only in the main window' . I didn't create any command outside the mainwindow.
    anyone know how this happened ? how should I correct it ?
    or you can tell me antother method to goto a new page when page break .
    Thank you in advance!
    Kevin
    Edited by: kevin wang on Mar 13, 2010 12:46 PM

    Hi,
      The problem may due to not Selecting at the "End of Table" in the footer node.
    My Assumption: According to my understanding since you have selected with at "Page break" only, this night be triggering at every page break and since you have mentioned Goto Next page using command node without printing on the current page.
    You can try by selecting the "At the End of Table" for Footer node, then it should work correctly.
    If you want a Page break after the Footer, then place it after Footer Node, then it should work.
    Thanks & Regards,
    Vamsi.
    Edited by: Vamsi Krishna on Mar 13, 2010 1:42 PM

  • 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

Maybe you are looking for