Problem in smartform in main window

Hi All ,
  We are puttning a table in main window,The problem is the table in main window is extending according to the number of records in internal table.I want the table in fixed lenth always .Please suggest

1) Do not draw any lines in TABLE.
2) Place a TEMPLATE exactly over the TABLE (same left, top, height and width). Draw line in this TEMPLATE.
3) This TEMPLATE will not have any data. It will just draw line.
Now with this configruation drawing of line will be independent of data in your TABLE. Hope this will work as it worked for me some time back.

Similar Messages

  • Problem in printing multiple main window in smartforms

    Hi Experts,
    I have requirement form client to print PO which consists of 4 page.
    First page is cosists of header and some text.
    In second page different header and line item.
    Thirs page different header and line item.
    4th page different header and line item.
    I have printed tex in main window of first page and called command to trigger
    second page main window, but i am getting dump.
    How to print the line item in the multiple page of smartforms.
    Regards,
    Udupi

    Hello ,
    To print the text below are following steps which you can follow for your requirement :
    1. Create the Four pages having the Main Window, but take care that Logic should be in First Page Main window only , other pages main window will be blank.
    2. Create the Secondary Window in second, third & fourth page  which will be same size as the main window having the text which need to be print in respective pages.
    3. Logic Part - in the main window of first page fill all the data which you need to print in 1st to 4th page in different internal table. Now for example you need to print text in first page then in Main window create table having the data of 1st page.
              To print data in Second page create one more table having data of secondpage and put the Command there (follow the same for next pages,)
    I hope this will  help you
    Thanks
    Romit Raina

  • How to Print an Icon (ICON_CHECKED) in the Smartform's Main Window's Table

    Hi Smartform Gurus ...
    I'm encountering a problem in Smartform. I'm creating a smartform for QM Module & I have to show the ACCEPTER & REJECTED Lots in that . At the Place of ACCEPTED, I want to show TICK MARK ICON (ICON_CHECKED in the table ICON) & at the place of REJECTED, I want to show CROSS ICON (ICON_INCOMPLETE in the table ICON) ... in SMARTFORM -> MAIN WINDOW -> TABLE ->MAIN AREA.
    My mail id is : [email protected]
    Please help asap.
    Regards,
    Mohit Grover.

    I am not talking about only these two icons, i.e. CHECKED & UNCHECKED. I am asking generally about how to print any icon in smartform's table, as I want to print some more icons & I don't want to upload graphics first, through SE78 & then shows those as graphics instead of ICONS, because by using this practice, it'll not be used as a general purpose form that can be used with any client/customer.
    Please help.
    Regards,
    Mohit Grover.

  • Prob in Smartform in Main Window -- Footer part

    Hi,
    I have 2 rows with different 2 text in Main window -> Footer part.
    I want to always keep tht 2-text together either in first page or in second page.
    Currently both r printing in different page if first page do nt have enough space.
    But my requirement is both should print on first page or second page.
    Please let me know hw to control this ?

    You can use the FOLDERs for that.
    Create a FOLDER under the Footer.
    Set "Page Protection" checkbox ON on the FOLDER.
    Put your both line types under the FOLDER
    So, your SMARTForms should like this:
    > MAIN WINDOW
      > HEADER
      > MAIN
      > FOOTER
        > FOLDER - (with page protection)
          > LINE 1
          > LINE2
    Regards,
    Naimesh Patel

  • Smartforms: Creating main windows in different pages

    Hi all!
    I am using smart forms, I tried to create 2 main windows in 2 different pages. I keep getting the following error: "Two main windows are not allowed." However, I have already seen an example where there are 2 main windows created in 2 different pages. Does anyone know of you how to solve this?
    Thanks for your help.
    Message was edited by: Hajar Belahsen

    Hi Hajar,
       You cannot have two main windows. But the main window can be associated to as many different pages that you want.
       Check the program where you saw that the code inside the MAIN window is same. They have actually associated the window with the page. This is what termed as page-window.
       Give feedback.
    Regards,
    Deva.

  • Problem with sap script main window

    Hi,
    I am modifying the existed sap script. I added a box and some line items to the sap script main window.
    Now i want to increase the size of the mainwindow.
    Please guide me how to increase the lines of main window . I am unable to edit the standard attributes of the main window ,because all are in disable mode.
    Please guide me how to increase the size of the main window.
    Thanks in advance
    Regards
    Sudhakar

    Hi,
    You might be trying to edit the script in non original language. You can change the layout only in the original language.
    Check the attributes of the script to see the original language.
    Thanks,
    Vinod.

  • 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

  • Dynamic Height of Main Window in Smartform

    Good day experts...
    Actually this problem puzzled me since yesterday when I am developing a customized printout for PO.
    Right now, we have an existing form for our PO.. The management asked me to do another PO form for the second company. Thus, there will be two layouts of PO... Since the content are just the same, I just copied the program of our existing PO and make the necessary adjustment for the new layout for our new PO. My problem now is the Main Window for the second PO...
    As far as I know, only One main window is allowed in every Page. So what I did was, I created two tables (let say Table 1 and Table 2.) inside the main window. I just placed condtions on the condition tab of both tables that when user selected company A, Table 1 will be displayed. Otherwise Table 2 will be displayed  if company B is selected.
    Now, I have produced correct output. My only problem now is, the height of the second window which must be shorter than the first PO. I am aware that the main window's height is fixed and cant be changed dynamically.
    Before I write this post, I google(search) the net to view some possible solutions. One option that it was suggested is to create another page, say Page2... On that second page, create another main window which is smaller in height.. This would be the second PO. On the main window of the first Page, insert a command line. Then, pinpoint to the second page when the condtion is true.
    This technique was not successful when I tried. Since  when i try to see the prinout of the PO, the first page is blank and the detail of the PO is on the second page which should NOT be.
    Another possible way to solve this problem that I think is , create a separate smartform for the second company. In this case, no worry about the height of the main window. However, my problem that I forsee is, how can I implement on ME23N, to pinpoint two separate smartforms?
    Thanks in advance experts... I hope to hear your wonderful ideas...

    Hi,
    As you are already using smartforms for PO printout(instead of standard form MEDRUCK) , you should have already changed the standard driver program (SAPFM06P) in a zprogram or have done your own driver program which is calling the smartform. So its so simple that you branch your different smartform call in that zprogram. Check which driver program is currently in use in tcode NACE - > Application EF ->Output Type NEU and click processing routine.
    Another way is to have a  copy of the secondary window and adjust size and give conditions.
    Regards
    Karthik D

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

  • Need to print horizontal line at the end of main window in each page.

    Hi,
    I am printing a smartform with main window having 10 lines in footer. The problem I am facing is when the content extends upto two or more pages, I am not getting the horizontal line at the base of main window. For last page it is fine as it contains footer.
    Please suggest how to proceed.
    Thanks,
    RKU

    Hi,
    If you don't have any frame set on your main window:
    Go to output options and mark frames, and then go to details and uncheck checkboxes for above, laft and right, leving only below marked.
    This will give you a line in the bottom of you main window.
    If you dont' want to do this on the main window, can you create a new window placed at the bottom of the page and use this framing technic on that window. But in that case don't forget to mark the "always draw box and shading" checkbox. as this window contains no values, the will not get printed unless  you mark this checkbox.
    Regards
    Åsa Thenstedt

  • First Record is repeated twice in main window of script

    Dear All,
    I am developing a Script form, which contains 3 windows Header,Main and Footer. My Problem is that in Main window
    the first record is repeated twice and the remaining all records
    are ok. I am unable to solve this issue of stopping the duplicate
    first record. Your response might be helpfull to me.
    Regards,

    I came across this prob today too.
    I did some digging, maybe it is something with the window type, this prob only occurs when the type of the window is continuious, and it is only possible for the main window to be set to the continuious type.
    The only way, as far as I know, is that you can put those your wanna print in a text element. And by doing so, the prob is gone. But, do pay attention to those are not continuious type windows, and remember that they are variable. The content of the windows like those, are only kept until the next write_form is called to repaint the window content and any content of the ex-window would vanish without a trace. And if you also put the content of the variable windows in a text element, there will be some format confusion getting in the way.
    That is all I got, But I still have no idea about the course.

  • Application's main window is not repainted

    Hello everybody.
    The system I am using
    Product Version: NetBeans IDE 6.5 (Build 200811100001)
    Java: 1.6.0_12; Java HotSpot(TM) Client VM 11.2-b01
    System: Windows Vista version 6.0 running on x86; Cp1251; ru_RU (nb)I created Java Desktop application (New project - Java Desktop Application (no CRUD)) and put a JTable like this:
    mainPanel[JPanel]
        jScrollPane1[JScrollPane]
            jTable1[JTable]
    I did not do anything more. But after building project I have a problem with my application - main window does not repaint itself after another window is positioned over it(calculator, for example). It repaints only after I resized main window or something like that ...
    What am I doing wrong?
    Thank you.

    I found a solution - to resolve this bug I have to set -Dsun.java2d.noddraw=true VM flag.
    I found the same bug in a database - [4139083|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4139083] and it's submit date is *15-MAY-1998* !!!
    There is also an issue about that kind of a problem - [6343853|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6343853], submit date 31-OCT-2005.
    So, I guess unfortunately there are a lot of things to think about ...

  • Problem with Main window in smartforms

    Hi All,
    I am creating a smartform, in that i need to restrict the no. of line item is to 15 and i need to draw a box for it. My problem is if i am displaying 15 line items the box will be drawn correctly and if i use only 3 line item then the box is drawing only for 3 line item. But i need to draw a box for 15 line items constantly at any given point of time irrespective of no. of line items. I am displaying this info using mail window, plz do help me.
    Thanks & Regards,
    pavan.M

    Hi,
    First describe your internal table and based on that you deifne another internal table in which you will have some 2 dummy fileds
    suppose if you internal table has 10 lines then you need to have 5 more lined to print right?
    say describe lines is v_lines
    v_rem = v_lines mod 15. (you will get remainder here)
    then v_count = 15 - v_rem.
    before main window do code as following .
    do  v_count times.
    v_dummy1 =  text (maintgain soem text in this field)
    v_dummy2  will not have any value.
    append these values to it_dummy table.
    enddo.
    And when you loop main table count one more variable  say v_cnt.
    Now you can loop your dummy internal table based on condition.
    the condition would be   v_cnt  eq  v_lines .
    and print empty text . dont print the field that have some text.
    loop dummy table only after printing main table data in the main window.
    Hope you got the logic
    Dont forget to reward points
    Regards,
    Nageswar

  • Smartform - problem with main window

    Hi all,
    I have following windows in my smartform first page.
    First Page
      -> secondary window 1
      -> secondary window 2
      -> main window
           1 template1
           2 template2
           3 command node
      -> secondary window 3
    I have the same windows in  my next page. I am using the command node in main window for some specific condition to implement page break to next page. I am getting the next page with all the contents from the secondary windows but for some reason the main window in second page is not diplayed.
    Please help me. Waiting....

    Hi Raju,
      One possible solution can be... first fix number of rows in a page. Then in the INITILIZATION use DESCRIBE command on your internal table. Then divide the number of lines by the number of line you have already fixed to be printed on a page. This will give the number of pages.
      Now what you can do is... in your first page take a table node. In that create a  table line with 13 columns and place the first 13 columns in that.
    Then take a ALTERNATIVE node with condition sy-page = the number of pages which you have already calculated.
    For this ALTERNATIVE node in the TRUE node take a COMMAND NODE  with NEXT_PAGE(second page) in GO-TO-NEW-PAGE field.
    And in the FALSE node take another COMMAND NODE with FIRST_PAGE(current page) in the GO-TO-NEW-PAGE field.
    Untill unless you will reach the last page(which we have calculated) this condition will become false and hence the COMMAND NODE in the FALSE node will trigger and the current page will be triggered. This completes the printing of 13 columns for all your internal table rows.
    Now in the NEXT_PAGE(second page) take another TABLE node and again create a new table line with the next 13 columns(14 to 26). And assign NEXT_PAGE in the Next Page field of this page(next page... hope you are not confused ). This will print the remaininig 13 lines.
    But the problem with this solution is that the user has to sort the pages after getting the printouts and also the number of rows that will be printed are fixed on a page.
    Thanks and Regards,
    Bharat Kumar Reddy.V

Maybe you are looking for