Secondary window trouble to print

Hi Everyone!
I have a smartform with one page. It has a main window and 3 secondary windows, all of them have tables in it.  When i send it to print, if the data on the main window doesnt display in the page it goes to the next page but it doesnt happen with the secondary windows...
Please can you help me to display the information of the secondary windows on the next page on the same way that main window?
Regards.
Danyel
Edited by: Danyel  Ramírez on Feb 25, 2009 9:52 PM

Hi Danyel,
Its the property of main window that lets the data flow to the next page when it exceeds the page, this is not available in case of secondary windows.
try to include the data present in the secondary windows in main windows itself, may be in footer part of ur 1st table,
кu03B1ятu03B9к

Similar Messages

  • Secondary window to be printed on the last page the form

    Hello,
    Is there any way, by which we can show the defined secondary window on the last page of the form in smartform?
    Only 1 page is defined in the smartform for the layout.
    e.g. If no. of line items exceeds more than the size defined for it in the main window, then a new page is taken to print rest of the line items. then total (defined in the secondary window) of the line items must be displayed on the the last page of the form only in this case the last page is 2nd.
    Thanks and Regards,
    Paresh

    >
    paresh rane wrote:
    > e.g. If no. of line items exceeds more than the size defined for it in the main window, then a new page is taken to print rest of the line items. 
    > Paresh
    put a counter on which you are getting the line items.
    for the last page, the counter should be equal to the number of line items in the table .. right?
    so.. keep the number of records in another variable, lets say in the global initialization part.
    and for the secondary window condition tab
    keep
    counter = gv_number_of_lines
    only when this condition satisfies, the window will be triggered. and this condition will only be satisfied if all the items are covered => last page.

  • Unable to print main window and associated secondary windows in next page

    Hi All,
    iam print line items values in first page by using main window (table) and associated  terms &condition in second window(template).
    But i want terms & condition to printed in other page.I tried to create COMMAND to manually trigger second page but it doest work.
    Kindly suggest.
    Attached is snap shot of current output(Shaded region are space of dat window).Also attached is overlapping of main and secondary windows.
    Since i need to increase the above template sizes i shifted main window and other 2 secondary window downwards so i wanted them to print in next page.

    Hi abhijeet,
    Add Programming lines before Command before loop statement,
    In that Count the itab using describe table.
    Add condition if count EQ Sy-tabix.
    pass to command line.
    Try this,
    Regards,
    Venkat.

  • Printing of mainwindow after the secondary windows in the First Page

    Dear All,
    I have a requirement where i have to print the 4 secondary windows in the first half of a page and main window should start from the second half of the first page page.In main window i have used a template according to the cleunts requiremen.
    My Problem is i am getting the main window in second page and its not starting  in the first page.
    Please suggest how can achieve this.
    Regards,
    Prathima

    Check the the layout. What is the size of 4 secondary windows , as these are in the upper half , starting of main window is depending on them. You should check their size , also do test run to aline them properly.
    Hope this helps you.

  • Problem in printing data in main and secondary windows.

    Hi,
          I have embedded tables in main window and secondary window, which are supposed to print the same data.
    The table in the main window is printing correctly even if the data over flows, but there is a problem with the secondary window in printing the table.
    when the data over flows , it starts printing the same from the first line and so the data in both the windows do not match, so kindly help me fix this issue.

    Hi,
    I have a possible approach. Just try and update accordingly.
    While the data in main window prints, append a temporary table of same type inside the Main area. Now let the secondary window be of exact size as that of main window and copy-paste the same table node inside this window, but changing the table name (Loop at ITAB into WA) to the new table name, appended in main area, leaving everything else unchanged.
    Now inside the temporary table loop in secondary window, create program lines and just refresh that table when number of entries in table equals sy-tabix or just set a flag for same and refresh table in footer.
    Thus if main window prints 10 entries, then these will be appended in another table. The same 10 entries will be printed again in secondary window and while at last entry, table will be refreshed, thus ready for appending new entries from next page's main window.
    Hope this helps.
    Karthik

  • How do I stop Firefox from using a secondary window before it takes me to my printer window?

    When I print an email a window opens and gives me the option to print with the word print in the upper left corner of the window. When I click on print, the window for my printer is opened and I select print at the bottom. If I use Explorer the printer window opens and there is less extraneous information printed at the top of my document.

    You are using an old version of Firefox that is over 2 years old, and isn't supported any longer. Get Firefox 8. <br />http://www.mozilla.com/en-US/firefox/
    Firefox doesn't do email. If you are accessing email thru Firefox you are using a web mail service. Some web mail software doesn't provide exactly the same features for other browsers as they do for Internet Explorer. Without knowing which web mail service you are using - Hotmail, Gmail, Xfinity Connect, etc - it's hard to guess what your problem is. Plus, a screenshot of what that issue looks like in IE and in Firefox would be helpful for us to understand the issue. <br />
    https://support.mozilla.com/en-US/kb/Adding+screenshots

  • Issue in seperating lines of ITAB and placing into SF secondary  windows

    Great abapers,
    My itab is having 6 lines item (for ex ) it may 'n' no of line items.
    In smartforms for 1 page max allowed secondary window is 2.so first 2 lines are paced in first page , next 2 lines are place in
    second page ,last 2 will be in 3 page...if it is having hundred means it will be splited into 100 into 50 pages.
    The problem is i dont know the line item which will come, how can i seperate and put into windows...i could not create 'n'no of
    work areas..what is the solution i am in conftion ...any one pls guide me...urgent
    points will be rewarded .........
    Thanks,
    regards,
    lakshmi

    Hi ,
         i hv found PO No and Po line No , based on this we have to print.
    for ex PO1 = 1 st window ,next in second etc...how to place in SF window  ...
    iam hving 'N' no of PO's in my  itab .....
    this is problem...
    thanks & regards,
    Lakshmi

  • Problem with Secondary window in smartforms

    Hi Experts,
    I have an issue with smartforms while looping internal table.
    Here is the scenario:
    I have two records in my internal table. For each record, I need to print two pages
    For example: In internal table records like..
    TEST1
    TEST2
    First for TEST1, it supposed to print two pages and then for TEST2, it supposed to print two pages from third page onwards.
    I have designed my smartform with two pages named as.. FIRST and SECOND
    In the FIRST page, I created one window type is MAIN window.
    In the MAIN window...Template1 has designed.
    At the end of Template, I used command option to go to SECOND page.
    In the SECOND page, I created one window type is Seconary window.
    In the Seconadry window...Template2 has designed.
    ==========
    With this design, smartform is working is displaying two pages irrespective of the internal table records.
    Option1:
    When I used LOOP in between MAIN Window and Template1. No output displayed.
    Option2:
    When I tried to change the Secondary window as MAIN window, only second record TEST2 is displaying.
    Option3:
    So, I removed LOOP and written some program lines based on iteration.
    For that, it supposed to go to FIRST page,as soon as SECOND page printing for the record TEST1.
    and then second record TEST2 starts from third page and should print two pages for second record TEST2 and so on.
    When I am trying to use command to go to FIRST page in the sceondary window of SECOND page, it's not allowing.
    I am getting error message like.."No new page allowed in secondary window".
    ====
    Could you please suggest solution for this..
    basically... If the internal table has two records, For each record, it should print two pages.
    Thanks in Advance
    Raghu

    I getting internal table from interface. It has two records.
    Basically.., If the internal table has more than one record, For each record, it should print two pages.

  • Smartform - Output window (Accept, Cancel, Print, Preview)

    Dears experts,
    when i execute a preview of a Purchase Order, a message windows appears and you can select the diferents message( print, external send) and  Accept, Cancel, Print or Preview.
    I want to do 2 things.
    - I only want to view Accept and Cancelled button in the Output Message window. how can i do it? with the parameters output?
    - I want that when I accept the message with the OK ICON, execute the code to send the purhcase order as email. nowadays, the pdf code is execute when I chose Preview.
    Any idea?
    thanks a lot!

    Hi friend sure.
    You need to increment the index only at the loop no where else and the variable for holding the index value is global.
    If you create before the read every time it gets trigerred.
    After each loop you assign the sy-tabix value to that variable.
    Just like this ,
    v_index = sy-tabix.
    Then at the window just read the table as shown
    READ TABLE t_chq INTO x_chq INDEX v_index.
    This will do friend.
    I will update the flow of my code here, then you many understand it much clear.
    Page1
      Main window (below page1)
        Loop (inside Main win)
          program lines. code : v_index = sy-tabix. v_lines =  lines( t_chq ). (inside loop)
          Condition (inside loop)
             True
                check the v_index < v_lines if true break page, for page break create a command and do it (Inside true condition)
             false
               blank.
      Secondary window (below page1)
        program line (inside sec wind)
        Inside program lines the code is READ TABLE t_chq INTO x_chq INDEX v_index. (inside sec wind)
      Secondary window2  (below page1)
         program line (inside sec wind2)
        Inside program lines some other code. (inside sec wind2)
    This is my logic try like this friend.
    I think for other records its coming fine because since it is an local variable its getting updated some where and also showing 1 bec its always initializing.
    Try this you will get if any issues please revert back to me
    Thanks,
    Sri Hari
    Edited by: srihari.kumar on Jan 6, 2012 11:04 AM
    Edited by: srihari.kumar on Jan 6, 2012 11:05 AM

  • Secondary Window looping and lineitems restricting

    Hi All,
    I have some requirement wherein i have to loop the secondary window in smartforms . This is Z smartforms and has standard driver program.
    The main requirement is suppose there are 10 line items , 8 line items should be displayed on Page 1 and the remaining 2line items should be displayed on next page.
    In my current scenario , i am getting same line items on the next page too.
    i tried out using the condition tab but it didnot worked out. If its a main window it goes directly to next page but donot know
    how it works out with secondary window .
    Has anyone come across similar requirement ? Any help would be appreciated ...
    Thanks
    SAM F.

    Hi Sam,
        Since you are using the Secondary window follow the below given method.
    1). In the first page add a LOOP logic to your window and start printing your data.
    2). Keep adding the counter for each and every record you process.
    2). once you have reached the number of data you need to print say 8 records add a command line to move the control to next page ( this can be done by using a condition inside the loop).
    3). In the next page you will have a similar window and in the that window also create a LOOP logic and the Row (belowinternal table field ) give the start row as the next row of the table. i.e., the row after the last row you have displayed in the first page. here you can give the To as (from + no. of rows you need to print in there) .
    Like wise you can keep printing the data you require in the secondary window of a smartform.
    Hope this helps.
    Regards,
    Praveenkumar T.

  • Regarding dynamic height of secondary window in smartform.

    Hi,
    I have a secondary window just above the main window in my form.
    Depending upon the number of records the height of seconday window needs to be adjusted .i.e. it has to be dynamic.
    Only after the end of secondary window the main window should be printed.
    Appreciate any suggestion in this regard.
    Thanks.

    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

  • My new labtop with windows 7 will print but wont let me scan with my wireless officejet 6500

    my new labtop with windows 7 will print but wont let me scan with my wireless officejet 6500.
    i can print and scan with my pc with xp

    willie521,
    If you are having trouble scanning with windows 7 you can run this print and scan doctor. It will help diagnose and resolve many printing and scanning issues. Let us know if this helps !
    http://h10025.www1.hp.com/ewfrf/wc/document?docnam​e=c03275041&cc=us&dlc=en&lang=en&lc=en&product=379​...
    If I helped you at all it would be great if you clicked the blue kudos star!
    If I solved your post please mark it as solved to help others.
    I'm a printer tech with HP.

  • Firefox crashes on Windows 7 when printing to a Windows 7 network printer.

    On Windows 7 running Firefox 3.6.10, I cannot print to a Windows 7 network printer. Firefox crashes every time as soon as I hit print.
    However, the situation is very specific. I can print from Windows XP using Firefox 3.6.10 to a Windows 7 network printer. I can also print from Windows 7 using Firefox 3.6.10 to a Windows XP network printer. The only situation that doesn't work is using Firefox and printing from Windows 7 machine to Windows 7 machine.
    Firefox is also the only program that does not print. I can print using Internet Explorer, Google Chrome, MS Word, MS Excel, and every other application just fine. Firefox is exclusive in that it is the only program that crashes and refuses to print. The drivers that are being used a PostScript drivers.
    I have tried multiple versions of Firefox from older ones to the Firefox 4 beta and the program crashes every time.
    Again, the only time it crashes is printing from a Windows 7 client computer to a Windows 7 network printer. Printing from XP to Windows 7 and from Windows 7 to XP works.
    Any help would be greatly appreciated. The only program I've noticed the problem with is Firefox, so I'm assuming it's a problem at the application level.

    Here is the Crash Report for a user more experienced at reading Crash Reports than I am: <br />
    http://crash-stats.mozilla.com/report/index/45f47e99-ea8e-449f-aa1e-6399e2101014
    Here's a search for that particular Signature - [http://crash-stats.mozilla.com/report/list?product=Firefox&query_search=signature&query_type=exact&query=OPBinaryCookedPortWrite&date=10%2F14%2F2010%2014%3A00%3A00&range_value=1&range_unit=weeks&hang_type=any&process_type=any&plugin_field=&plugin_query_type=&plugin_query=&do_query=1&admin=&signature=OPBinaryCookedPortWrite OPBinaryCookedPortWrite] <br />
    Looks like a Windows problem, but not restricted to Win7 or 3.6.10 - there's one on Vista SP2 with Firefox 3.6 and another with 4.0b6 on Win7.

  • Can't print to Windows 7 shared printer from Mac OS Lion

    Dear all,
    I would like to share my experience battling to figure out how to print to Windows 7 shared printer from Mac OS Lion. Myself had this problem and looking throughly in internet without success. But finally I figured out the solution by myself, hope this can help other Mac user with similar problem.
    OK, when I try to setup my new MacBook Pro with OS Lion to connect with my Canon MX308 printer attached to desktop with Windows 7 Ultimate,
    1. I simply select System Preferences>Print & Scan.
    2. Then looks for the + sign just below the box to add a new printer.
    3. From the option toolbar above, I select Windows. I have connect this MacBook with my Windows Network, so the workgroup will appear to the left column.
    4. After I select this group, the computer list will appear in the middle column
    5. Then after I select the computer which my printer connected to, my printer sharename will appear in the right column
    6. Last step is to select the printer I want to use.
    7. After that it will automatically put your printer sharename to the "Name". And then I select my printer driver at "Print Using" and find my printer manufacturer which is Canon MX300 series from driver lists. Finish!
    My printer appear in the Printers List. But the problem is everytime I try to print there will be error message saying "ON HOLD Authentication Required".
    This problem start to kill me, I search all around for similar problem, but the solution was never worked for me!
    Until just now I figured out accidentally for the solution.
    THE PROBLEM LIES ON MY PRINTER DRIVER!!!! Although I have downloaded the most update driver from Apple site and Apple Software update said there is no more update for my system!
    The solution for my problem is Gutenprint Printer Driver! You can download this driver at http://gimp-print.sourceforge.net/MacOSX.php, then select for the latest driver gutenprint-5.2.7.dmg. Install this driver!
    Then back to Print & Scan in System Preferences, then right click on Printers List box, then choose "Reset Printing System..." to clear the previous failed printers.
    After that, repeat the above step 2 - 7. Only for the last step I need to select the Printer Driver for my Canon MX308 for the driver name : "Canon PIXMA MX300 - CUPS+Gutenprint v5.2.7"
    Now I can sleep as a baby knowing that my printer make a friend with my new Macbook Pro! Hope this will help others!

    I have the same setup but with a Canon MX850.  This did not fix my problem. 

  • Windows 8.1: Printer Offline Issue

    Windows 8.1: Printer Offline Issue
    If you have seen issues where your laptops/tablets has been taken from a private (home) network to a public network  and then not been able to print when returning back to your private (home) network.  This is most likely due to the public network settings not being reset back to the private (home) network settings.  If this sounds like an issue you are having- try resetting your network settings by following the steps in the documents linked here:
    For Ink Printers, please visit this document to help resolve your issue:
    Print Jobs are Stuck in Queue
    For LaserJets, please visit this document to help resolve your issue:
    HP Laserjet - Printer offline and unable to print on a network in Windows 8.1
    Install this Microsoft patch to make sure this private-public-private network issue does not reoccur. It is part of the April 2014 Windows Update package for Windows 8.1 and Server2012 R2 (http://support.microsoft.com/kb/2919355). 
    If you experience this issue before you apply the patch, you must manually reset your network settings for this patch to function. Please refer to the above documents for manual reset help.
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as Accepted Solution

    Hello All,
    The printer goes offline due to proper driver is not installed correctly or if the printer port is not selected correctly.
    I would suggest that you check the printer port (if the printer is connected via USB then chck if you have selected USB001,002... OR DOT), if the printer is connected via Network then check if the printer is selected via TCP/IP and then check the results.
    Alternatively, you may uninstall and reinstall the driver and then check the results.
    Regards,
    HP Laserjet team

Maybe you are looking for