Print text on last but one page of SmartForms

Hello everyone,
   Here I have a very specific requirement in SmartForms which I am not able to do even after trying a lot of options.
   I want to print Items of PO in Main Window and I am printing total on a different window which should be printed at end of all Items.  Again this does not mean total is printed on last page, as the last page has Conditions which is default with every PO.
  So the requirement is to find out the last but one page at runtime and print the total. 
Thanks.

Hi Priya,
Even I faced the same problem while creating invoice.
Soln:
declare a variable "g_counter" at global definition tab with data type "I'.
In the main window just after your table and before the command line which you have used, create a program line and give input and output parameters as "g_counter"
In the body of program line just write "g_counter = g_counter + 1".
Make sure your total window is placed after the main window in sequence.
Than in the total window you can put condition as "g_counter = 1".
I am sure this issue will be reolved.
Regards,
Vinit

Similar Messages

  • How to display text on last but one page in SAPSCRIPTS

    how to display text on last but one page in SAPSCRIPTS

    u have create one Foooter window , this has to be called in  only One Page.So hardcode /assign this window to only one PAGE number.
    regards
    Prabhu

  • How to display text on last but one page

    how to display text on last but one page

    Hi Preeti,
      If u r working on a smartform then click on th window go to the condition tab there
      at the end u will find events click on the the event on which u want to trigger the 
      print.
      If u r working on a script then create a text element and call this text elemtn at
    the end of processing of the main window, this will make sure that thetext element
    is triggered only at the end.
    I hope that helps u , if not pls let me know.
    Regards,
    Vaibhav B Gawali.

  • How to print the text in only last but one page in sapscripts

    hiiiiiiiiiii,
             explian how to print the text in only last but one page in sapscripts? wher to write the code? plz if possible explain in detail with an example?

    Hello,
    The total no pages is given by &SAPSCRIPT-FORMPAGES& command.
    So u can handle the situation in ur form like this
    /: if &PAGE&  = &SAPSCRIPT-FORMPAGES&
    p1 TEXT
    /: endif
    Try in this way it may help u.
    Regards

  • How do I get text to flow from one page to the next in Pages 5?

    How do I get text to flow from one page to the next in Pages 5 with the Maverick system?

    What may be overlooked in Pages v5 is the notion of combining Text Boxes via the Menu > View > Show Arrange Tools. When you select two Text Boxes, an extra panel unfolds at the bottom of the Arrange Tools window. Uncheck one Text Box and this panel abruptly disappears.
    One can achieve text flow effects between Text Boxes differently based on how one positions the Text Box overlap, and choice of effect above. Though not the accustomed flow found in Pages ’09 v4.3, flow does occur. Consider the possibilities of combining a Shape and a Text box to cut an irregular Text box.
    If I create two Text Boxes and position them side by side with outline touching and choose Unite, this creates one larger Text Box and text flows across and down. On the otherhand, if I overlap the upper left corner of a lower Text Box over one above and to the left, then choose Union, pasted text fills the first Text Box and then flows across and down into the other box. Here is a Union example:
    Intersect will leave a small Text Box where the two overlap, so not much value there. Subtract will cut a chunk out of one Text Box that is the size of the overlapping piece of the second Text Box:
    And Intersect will leave an island in the center where the two Text Box overlap, with flow jumping over this bridge.
    Clearly, this is not what we were accustomed to in the past, but with imagination, style, and layout tuning, it does offer alternative Text Box creativity and layout. Of course, there is the option of simply returning to the previous Pages version for true Text Box linking that most will want to use.

  • Merge print multiple image files on one page

    Hello,
       A Windows 7 end user seeks for a technical support from me. She tries to merge print multiple image files (JPEG) by using the following steps :-
    1) highlight more than 1 files
    2) [Right-click] then Choose [Print]
    3) she could print the multiple images on ONE page successfully when she initially bought/used this Win7 computer , but recently (these 2 months) she got the error : pop up a few dialogue windows saying "Insufficient memory"
    4) I helped her to close all other applications software and found no high CPU/memory processes and also asked for help from hardware manufacturer and got NO virtual memory and physical memory full error by running a utility tool provided.
    The hardware config :-
    - Windows 7 Prof Service Pack 1 64 bit
    - 4GB memory
    - i5 Intel CPU
    Anyone can help me to fix the issues for my end user ?
    Thanks in advance
    Regards,
    Bruce

    Hi Bruce,
    In addition to above suggestions, this issue can also be caused by corrupted user registry key.
    Please test the issue in new user accout.
    If the issue doesn't happen under new user profile, I suggest you repair corrupted user profile:
    Fix corrupted user profile
    http://windows.microsoft.com/en-us/windows/fix-corrupted-user-profile
    Kate Li
    TechNet Community Support

  • I downloaded the latest Adobe Reader when prompted. Since then I cannot use Safari File Print to print web pages - the printer dialogue window opens but the page is blank. Also, when I try to use the safari Help button,the dialogue box is blank.

    I downloaded the latest Adobe Reader update when prompted. Since then I cannot use Safari>File>Print to print web pages - the printer dialogue window opens, but the page remains blank. Also when I try to use the Safari Help button, the dialogue box opens but remains infuriatingly blank. Can anyone help me to solve this problem?

    Back up all data.
    Quit Safari. In the Finder, select Go ▹ Go to Folder from the menu bar, or press the key combination shift-command-G. Copy the line of text below into the box that opens, and press return:
    /Library/Internet Plug-ins
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then launch Safari and test.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • I also have a .csv file with the name of a jpeg in one column and a text description of each jpeg in a second column. Is there a way to automatically insert one jpeg (photo) and its corresponding text, each pair on one page, into a Indesign document?

    I also have a .csv file with the name of a jpeg in one column and a text description of each jpeg in a second column. Is there a way to automatically insert one jpeg (photo) and its corresponding text, each pair on one page, into a Indesign document?

    I would also recommend to write the description into the meta data. This would allow to place a text frame above the image and it is possible to add meta information and file name automatically together with the image, when you place it or even in a prepared template.
    Meta data information can be written easily in Bridge in the Meta File Workspace.

  • HP Officejet Pro 8500 prints slow with Lion.  One page every 1.5 to 2 min.  Apple support offered no help and HP unable to help. Any suggestions?

    HP Officejet Pro 8500 Wireless prints slow with lion. One page every 1.5 to 2 min.  Apple support and HP no help.  Any suggestions?

    Although printer is wireless capable I have it connected directly to iMac via USB to help with speed.  I just completed resetting printer and reinstalling to no avail, still approx 2 min to print one page.

  • Fetching last but one record from Infotype

    Hello Everyone,
    Can you kindly let me know how to fetch the last but one records of IT0171 and IT0000, then compare the endda of both of the records.
    Thank you for your help.
    Regards,
    Vinod

    Hi,
    First sort your internal table by ENDDA descending.
    Then read index 2. This will give you the last but one record.
    INFOTYPES: 0171.
    CALL FUNCTION 'HR_READ_INFOTYPE'
      EXPORTING
        pernr           = '506'
        infty           = '0171'
        begda           = '18000101'
        endda           = '99991231'
      TABLES
        infty_tab       = p0171
      EXCEPTIONS
        infty_not_found = 1
        OTHERS          = 2.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ELSE.
      SORT p0171 BY ENDDA descending.
      READ TABLE p0171 INDEX 2.  ---> reads the previous record of the last entry.
      write:/ 'test'.
    ENDIF.
    Regards,
    Soumya.

  • SmartForm Printing all the Items in one page

    Hi,
    When iam trying to print the data in the smartform.....it is printing all the data in the one page(if 2 pages are shown in printpriview).But the same invoice is going to be printed in all the plants in the same format...so i hope it is not the printer problem.so any one pls go thru' this thread and try to give the solution as early as possible.....
    The main thing is if line items are 18.15 on one page and 3 on second page in printpriview...but while printing the the second page 3 line items are overwriting on the first 3 line items of the first page itself.
    Pls Asnwer as it is very Urgent.....
    Thnx in Advance

    Sorry sir, It is a slip of the tongue, I corrected my response already.
    So it is defenitely possible to make ALL the columns appear in the same page in PDF regardless of how much width the report occupies?
    If yes, can I see a horizontal scroll bar or the text will be shrinked to fit the page?

  • How do I print multiple (4) photos on one page with a border around each?

    How do I print multiple photos on one page with a border around each? I've gone the contact sheet route and adjusted the number of columns but there's only outer margins and very little white space between the photos down the middle of the page.

    Ok, now I feel stupid! I always thought I was printing 6 x 4 but now I realise I can't have done!!
    The photos that I used to print are approx. 5.2" x 4" (i.e. 4 fitted nicely on a page & I had to cut the boarder off).
    I guess I just need to play with different sizes under the 'custom' option in order to get the biggest possible picture!
    Thanks for the help

  • How to Print Html Document (more than one page)

    I've a problem with printing my html page. I can print one page of html file, But my document is longer than one page. and i can't print it.
    who know how to print . Please Reply

    A recent article in JavaPro has a nice solution for this problem. Check out
    http://www.fawcette.com/javapro/2002_12/online/print_kgauthier_12_10_02/
    It describes a way of using Views to break down the pages.

  • HP PSC 1300 Series printer does not print the entire last line on page

    Using an HP PSC 1310 series printer (1315xi I think). Just changed computers and OS from winXP to Win7 Professional. Now the very bottom line on my checks only shows the top 10% of that last line. There is a 1-inch margin at the bottom of 11.5" LETTER paper. There is no problem if I use another printer (HP PSC 1210xi). Is there an updated 1310 series driver that wasn't automatically selected by Win7Prof when I switched computers?

    I see no way to adjust the margins on the printer. When I click 'Printer Properties - Effects' the Margins area has nothing I can change and even though there is a box to Minimize Margins, it cannot be clicked. Using the Resizing Option to reduce page to 95% does not pull the last line into the printable area. I can print the file to PDF using doPDF v7 and then see the printable white area that goes just under the last line when I choose the 1210xi printer, but when I select the 1300 series printer the white area moves slightly upward just above most of the last line to be printed. I can't choose the pdf selection to fit or shrink to printer because that distorts the page on my pre-printed checks, so I must choose Page Scaling as 'None'. My checks printed fine on the old computer with XP and using the same PSC 1300 printer. I've also tried to print to another printer that prints the last line with no problem.

  • Print multiple Copies, Same Photo, One page?

    I must be a moron. How does one put 2 or 4 copies of the same VERSION on one page to print. This was easy in iPhoto.
    aehaas

    Can't be done.
    Export and use iPhoto (or Pages or whatever) to do it.

Maybe you are looking for

  • Adding SSD cache to Envy 4t-1000

    Hello, a couple months ago I purchased an Envy 4t-1000 laptop, I have since then installed an additional 4GB of RAM and have began to wonder wether it would be possible to add an SSD (in addition to my current Hard drive). I know Envy laptops can be

  • Push email (MS exchange) works intermittently after upgrade to ios 5.1 and ios 5.1.1

    I have an iphone 4 with my office email (MS exchange) account configured. Other accounts are Gmail & iCloud. Office email is configured as Push, Gmail as Fetch and iCloud as Push. Till ios 5.0.x everything was fine. Office emails were getting pushed

  • Return delivery

    Dear all , We did 122 movment in quality inspection lot posting Return dellivery to  vendor . We got this 122 movment Doc No also. Now in Mb90 for printing the Return delivery Slip , msg " No messages for initial processing exist " in Change Matertia

  • Making a message pop up appear on the task bar

    hi all ! Im making a pop up with a message so the person can know that the product is registered. I use this code javax.swing.JOptionPane.showMessageDialog(null,"Nueva Cita registrada","Medex",javax.swing.JOptionPane.INFORMATION_MESSAGE);The thing is

  • V8.20 installer triggers Windows Installer error 1931 referencing stdole2.tlb

    I've just migrated an existing application to v8.20 and have created a new installer for the application. When I run the installer, though, I get an error message: Error 1931. The Windows Installer service cannot update the system file C:\WINNT\syste