Problem with Print Preview and Print events

Hello Experts,
We have developed a program, in which, I m trying to display the % values in the Sub Totals and Grand Total lines, The logic and program functionality is performing very well. The report is displaying the output the way end user is willing to see.
The main problem is, the entire % values are going to a toss when we click the Print Preview or trying to print the report, which is not supposed to go that  way. I have even tried to debug the program where the problem is evolving in the code, but it is not raised from the code.
Please refer to the screen shots.Before clicking the Print Preview and after clicking the print preview.
Do anybody face the same kind of problem ever?
If so please let me know what could be the best possible solution.
Thanks & Regards
Harish Kumar MK

Hi Harish,
I have use the below code but not for percentage... I think for percentage you just have to calculate the normal percentage and replace it with a subtotal value.
This is not your complete code it will be better if you mail your complete code so that i can debug and check.
   TABLES: vbak.
TYPE-POOLS: slis.                      " ALV Global types
SELECT-OPTIONS :
  s_vkorg FOR vbak-vkorg,              " Sales organization
  s_kunnr FOR vbak-kunnr,              " Sold-to party
  s_vbeln FOR vbak-vbeln.              " Sales document
SELECTION-SCREEN :
  SKIP, BEGIN OF LINE,COMMENT 5(27) v_1 FOR FIELD p_max.
PARAMETERS p_max(2) TYPE n DEFAULT '20' OBLIGATORY.
SELECTION-SCREEN END OF LINE.
DATA:
  BEGIN OF gt_vbak OCCURS 0,
    vkorg LIKE vbak-vkorg,             " Sales organization
    kunnr LIKE vbak-kunnr,             " Sold-to party
    vbeln LIKE vbak-vbeln,             " Sales document
    netwr LIKE vbak-netwr,             " Net Value of the Sales Order
    waerk LIKE vbak-waerk,             " Document currency
  END OF gt_vbak.
INITIALIZATION.
  v_1 = 'Maximum of records to read'.
START-OF-SELECTION.
  PERFORM f_read_data.
  PERFORM f_display_data.
*      Form  f_read_data
FORM f_read_data.
  SELECT * INTO CORRESPONDING FIELDS OF TABLE gt_vbak
           FROM vbak
             UP TO p_max ROWS
          WHERE kunnr IN s_kunnr
            AND vbeln IN s_vbeln
            AND vkorg IN s_vkorg.
ENDFORM.                               " F_READ_DATA
*      Form  f_display_data
FORM f_display_data.
  DEFINE m_fieldcat.
    add 1 to ls_fieldcat-col_pos.
    ls_fieldcat-fieldname   = &1.
    ls_fieldcat-ref_tabname = 'VBAK'.
    ls_fieldcat-do_sum      = &2.
    ls_fieldcat-cfieldname  = &3.
    append ls_fieldcat to lt_fieldcat.
  END-OF-DEFINITION.
  DEFINE m_sort.
    add 1 to ls_sort-spos.
    ls_sort-fieldname = &1.
    ls_sort-up        = 'X'.
    ls_sort-subtot    = &2.
    append ls_sort to lt_sort.
  END-OF-DEFINITION.
  DATA:
    ls_fieldcat TYPE slis_fieldcat_alv,
    lt_fieldcat TYPE slis_t_fieldcat_alv,
    lt_sort     TYPE slis_t_sortinfo_alv,
    ls_sort     TYPE slis_sortinfo_alv,
    ls_layout   TYPE slis_layout_alv.
  m_fieldcat 'VKORG' ''  ''.
  m_fieldcat 'KUNNR' ''  ''.
  m_fieldcat 'VBELN' ''  ''.
  m_fieldcat 'NETWR' 'X' 'WAERK'.
  m_fieldcat 'WAERK' ''  ''.
  m_sort 'VKORG' 'X'.                  " Sort by vkorg and subtotal
  m_sort 'KUNNR' 'X'.                  " Sort by kunnr and subtotal
  m_sort 'VBELN' ''.                   " Sort by vbeln
  ls_layout-cell_merge = 'X'.
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      is_layout   = ls_layout
      it_fieldcat = lt_fieldcat
      it_sort     = lt_sort
    TABLES
      t_outtab    = gt_vbak.
ENDFORM.                               " F_DISPLAY_DATA
BR
Sumeet

Similar Messages

  • Print preview and print doesn't show the correct out put result when i connnected with EPSON LX-300+II

    I hava an html webpage with css & print css. The print preview and print doesn't give correct output there is alignment problem when i connected with EPSONLX-300+II. But iam connected with hp laserjet they show the correct output with firefox. Please fix the problem as soon.....

    I have same problem as you, but later I know how to deal with it.
    1. change your print default preferences to
    print quality into (120x144 dpi, or other which suites you)
    mine goes well to 120x144 dpi
    2. Before print enter File->Page setup, set true to option shrink to page width
    in order to fit your page into your desired paper
    (firefox will resize your content to suit the paper you choose).
    If you dont want this you can disable this option.
    3. Still in Page Setup, if checkbox "Print background (color & images)" is unchecked then
    white text will be printed black.
    Set this checked if you want to print white text as it is color.
    I hope it answers your question.
    Steve
    http://www.dailymobilegames.com

  • Wrong print preview and printed color from Lightroom 1.3

    I am running Vista Ultimate and i just installed the driver for my Canon PIXMA Pro9000.
    When i try to print from Lightroom 1.3 the colors are very muted, even when i do print preview the colors are wrong in the print preview screen.
    No matter what i do i cant seem to get lightroom to Print Preview AND print with the right colors.
    The image on this link http://www.pbase.com/charld/image/94711330
    (on the left) is what i see and get when i do a print preview and print and my monitor image is on the right.
    If i use Canon DPP the colors are not that bad, its a bit dark but that was easily fixed and i can get it quite close to what i see on the screen. My monitor is not calibrated..The images were all shot in RAW and converted to DNG...Do i need to re-install Lightroom as i don't think print preview has anything to do with the printer i have attached....
    Thanks

    I got the solution from another forum:
    http://www.lightroomforums.net/showthread.php?t=1613
    1. in the Print module, clicking on the Print Settings button ...
    2. Choose your media type
    3. Under Print Quality choose High
    4. Under Color Intensity choose Manual. In the subsequent dialogue box choose None.
    5. In the Print right hand panel under Color Management choose your print media - PR1 for Photo Paper Pro, SG1 for semi-gloss &c
    6. Rendering intent Perceptual.
    7. Hit Print and OK.
    this resolved my issue!!

  • Difference between execution mode of Print preview and Print for Output

    Hello,
    Can anybody tell the difference between execution mode of print preview and print for an output (For eg. PO output or Invoice)?. I am trying to download some documents linked to Purchase order to desktop. The code is written in the same driver program for printing PO and it is executed after smartform function module is called. It works fine in print preview mode and it fails in print mode. The reason why download fails in print mode is that GUI not available (just found from debugging).
    Any ideas?
    Thanks
    Anil

    HI
    try using any other printer and find out if you are getting the correct output. The printer needs to support Multiple Unicode encoding schemes like UTF 8, UTF 16BE, and UTF 16LE, plus special characters and logos, bi-directional text layout, and custom characters..

  • Word for mac won't show doc in print preview and prints blank page.

    I have a document from layoutready.com that I have been editing and it is a .doc file originally and won't show up. I've tried saving it as .docx and still nothing. Also, when I create a new document and put in a shape or a text box, it won't show up in print preview or print either. Excel is fine. I can insert a shape onto a worksheet and previews and prints fine. I have sent a document to a friend to test and when they open it in their word (on a pc) it previews and prints fine. I called stupid %*&#@ Microsoft and they want me to sign up for $99 Office 365 to get support. Ergh. Should I try to re-install Word? Oh, and I also updated to Yosemite last night.

    Then post your question on the Microsoft Mac forums since it's their software you'r having problems with.  These forums are for troubleshooting Apple products
    http://answers.microsoft.com/en-us/mac

  • Embedded Images Print Preview and Print Blacked Out - Adobe 9 Pro

    Having an issue where images embedded into the file will view properly, but once you print or print preview the images are blacked out. This is regardless of the printer we use.
    Is there a setting we are missing?

    Thanks for posing this question.
    Although fonts have embedding restrictions baked into the font such as preview and print, the real restrictions are to be found in a font's EULA (End User License Agreement) which may have other restrictions including payment of royalties on copies of PDF files or any other asset in which the fonts are embedded.
    In the case of any and all fonts sourced from Adobe, not only do you have at least preview and print embedding privileges, but there are no restrictions or royalties required for distribution of files (i.e., PDF, EPS, eBooks, etc.) in which the Adobe fonts are embedded.
    In other words, you are “good to go” with Adobe fonts. On the other hand, make no assumption about fonts sourced from other font foundries. Many do not provide such liberal terms!
              - Dov

  • Problem with window.close() and print preview in IE

    Hi all,
    In IE, when window.close() or self.close() is executed, the window is closing perfectly. But when after opening a print preview window from file menu in IE and after closing the print preview with [X] button, then the window.close() is not working. Is there any solution to close the window even after closing the print preview window? here is the sample code.
    1) Close.htm
    <HTML>
    <TITLE>TEST</TITLE>
    <BODY>
    <SCRIPT LANGUAGE="javascript">
    function CloseMe()
    window.close();
    //self.close();
    </SCRIPT>
    <INPUT TYPE="button" ONCLICK="CloseMe()" VALUE="Close Me">
    </BODY>
    </HTML>
    Thanks,

    masijade. wrote:
    nogoodatcoding wrote:
    Crosspost: http://forum.java.sun.com/thread.jspa?threadID=5227849&tstart=0
    Why'd you start a new thread once you got an answer on the thread linked above ( and even acknowledged it ) about the fact a that it was not a Java query?Because last time it was a JSP forum, which is not JavaScript obviously, but this is a Java forum, and the designers, obviously, simply neglected to include Script in the name, of course. ;-):D Why, oh, why did they have to call it JavaScript! (And before someone starts, that was a rhetorical question!)

  • Problem With Business Object and printing job

    Hello,
    We are encountering a problem with the application "Business Objects FINANCE", and we would need your help quickly.
    In the application , itu2019s impossible to print Consolidated Subsidiaries nor the Securities Held. If we try so, the application freezes and we can't do anything but killing the application via the task manager.
    Though, other states can be printed without problem.
    We tried on several different PCs, and the problem occured equally on each one.
    The version installed is 10.5, and we can do any tests that you think would be useful to diagnose problem.
    Our society is AUBAY SA, and our credential to enter in your support website are : S0005386617
    In attachment youu2019ll find a screenshot of the event viewer from the server where the application is install.
    Thanks in advance for your answer,
    best regards.

    check the export parameters of the event triggering workflow.
    If there is a problem, try instantiating the object in your wf based on the key.
    Also check if the wf is able to import the data.
    regards,
    Sandeep Josyula

  • Pdf reader X has problems with small pdf and printer with post script driver

    Hi friends.
    I have installed new Reader X and then i saw that, when i print a very small pdf with about 50 kb and i print it on a Laserjet 4000 printer the printer has problem with the amount of data that reader 10 produces.
    When i install a Postscript driver for the printer my computer makes up to 3.5MB printer data from a 50kb pdf.
    When i install a PCL driver for the printer my computer makes only 350kb from the same 50kb pdf file!!!!
    When i install Reader 9.3 the 50kb file becomes also only 350kb on the printer with post script driver, and i can print without problems also.
    my printer has 8 MB Ram and that should be enough for 3.5MB printer data.
    But when i print the pdf with 1 side only, the printer created a side who is only filled with 50% of the text, then there comes out a second page with the message.....not enough memory in the printer.
    i can not change the postscript driver to a pcl driver cause our ERP System can not handle printer with PCL drivers.
    Can someone help me please.........are there settings in Reader X who can solve my problem ???
    Thank you very much for help!

    put ? after rwcgi60.exe

  • Problems with spots colors and printing

    Hello everyone,
    I am currently working on a business card for a client.  The design calls for white text with an inner shadow to sit above a bar with a gradient. One of the colors in the gradient is reflex blue. When I export the file to a pdf and try to print it the text box fills with white and the graident bar changes colors and a portion of it becomes solid. I can fix the problem by printing the pdf as an image or removing the reflex blue and substituing it for another dark blue.  However there really isn't a close match in cymk to Reflex Blue C. Is there a way I could continue using reflex blue ( incidentally that is one of the company colors) without these short of issues? If it helps I am using Indesign cs5,  Acrobat X, Mac OS 10.6.8, using Creo Rip Software and Printing on a Xerox 700 digital press. 

    I tried putting the text on another layer but it didn't change anything. The only solution that has worked so far is changing the spot color, reflex blue, to a cmyk color. Here is a screen shot of the problem and some of my export options
    Hopfully that helps. In a realted issue, is there a way of lowering the transperancy of a graphic that uses spot colors without changing the color? Once again the problem is reflex blue. When I lower the transparacy the color turns purplish.  Thanks for the help

  • Print Preview and Printing have stopped

    Hi,
    I upgraded to iPhoto 08 on my iMac and everything was still printing quite happily. However after putting one of the fixpacks on it has now decided that it cannot print, sorry cannot remember which just getting round to trying to sort this out.
    The print preview option just shows up blank when I preview a picture and nothing will print to the PictureMate I use. I have the latest download now applied but they have made no difference.
    Everything else works fine apart from printing as far as I can see.
    Thanks Bleddyn

    Bleddyn:
    Welcome to the Apple Discussions. Did you repair disk permissions after the last update? If not then give that a try. Then, if necessary, delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your User/Library/Preferences folder, launch iPhoto and try again.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Print preview and print button action

    Hi,
    This is first time when I am configuring any action in WebUi. I am trying to configure buttons on BT116H_SRVO. Clicking on "Print Preview" shows 'No manual print actions found' and click on "print' throws some exception.
    I tried to check action configuration but could not find the right way to do it. Can you please guide me step-by-step as which action profile is meant for this component and how will these buttons work?
    I tried action profile 'Service Order' but it seems it was not the right one.
    Thanks.
    Edited by: ShikhaC on Jul 7, 2009 10:49 AM

    Hi,
    I am trying to get the Print Preview/Print function working in the webui for "Service Requests" and have configured the following and assigned it to the transaction, but I get an error:
    "Errors in smart form: An exception with the type CX_SY_DYN_CALL_PARAM_MISSING occured, but was neither handled locally, nor declared in a RAISING clause."
    Can you please  let me know if my configuration is correct?

  • Hide check box in the print preview and print of OO ALV

    Hi Experts,
                      I am working on an OO ALV Report. I am facing an issue as,
    1) I have a check box in the output of the report. If the user clicks on print or print preview the check box should not be printed.
    2) When I am printign top of page in the event PRINT_TOP_OF_PAGE, when I tried to insert new line its not printing a new line.
        please suggest me how to print empty lines in the print top of page event of OO ALV.
    Please help me to complete these issues.
    Thanks in advance.
    Regards.
    Ranganadh.

    hi,
    you can use the write statement in the print_top_of_page event of oo alv.
    regards.

  • What happened to my print preview and print icons, buttons, or features. Thanks.--David

    Hello,
    I have just updated to the 4.0, and, now, cannot find the print or print preview button. I need to print preview. I adjust the size of my prints. Is there a better place to print from, or am I just not finding the icons. Thank you. ---David

    You are wrong. FF has had a print preview button, and getting an update to FF should not remove features, it should make them easier to use. This is very troubling, the FF folks do not know what they are doing, now that they have a larger slice of the pie.

  • Interlacing problems with iDVD Preview and burning - comb effect appalling.

    When using iDVD to burn content onto DVDs, I suffer from "comb effect" interlacing related problems both in the iDVD Preview and with the final product played on a computer. I have yet to play the disc in a "real" DVD player.
    I am editing HDV (60i) footage with FCE 4, exporting (both interlaced and de-interlaced - same problem) to 1920x1080 HD at a Quicktime movie, and then importing the clips to iDVD.
    The clips are short (under 10 minutes) and play back perfectly on Quicktime.
    Once imported to iDVD, the iDVD Preview displays (especially with motion scenes) four areas of horizontal jagged edge areas, which are spectacularly distracting.
    Here is an example:
    http://i164.photobucket.com/albums/u4/praxisuniversal/InterlacingProblem.jpg
    I have tried various settings using iDVD, but have not been met with success. In other, similar discussions, people have had luck with other software programs, but I am reluctant to spend great gobs of money if the Apple Discussion Brain Trust can find a way to circumvent.
    Thanks!

    Check out the JES Deinterlacer website and see if it helps. http://www.xs4all.nl/~jeschot/home.html

Maybe you are looking for

  • My computer doesn't recognize my new Nano 3rd Gen

    Please HELP!!! I have a new nano 8gb and I am unable to load my tunes into it. My PC doesn't recognize it and I don't know how to add another device ( i have 2 registered to the account) Please help, my beautiful new IPOD Nano is a paper weight!! sca

  • Use imac as pc screen??

    Hey ive recently got a imac which is GREAT! but still want to use my PC for gaming and other odds and ends. is it possible to hook my PC up to the imac and use it as the screen instead of havin two screens on my desktop!!!!

  • [AI CS4 Mac] How to create a Compound Path?

    Hi Folks, I'm trying to create a compound path in AI CS4 for Mac, but I have not been successful. One would think this would be easy, so maybe I'm missing the obvious solution... What is best way to create a compound path using the SDK? I just need t

  • DPS for iPad, linking pages to/from a multi-page file

    Hi Everyone! I've been building an InDesign CS6 file for an iPad presentation, it contains video files, Edge Animate files, and more basic text and photos; there's 16 pages total so far. It is horizontal format only. Now, there's a new page with 10 l

  • My Photoshop CS6 always crashes when I lose my Internet connection...why?

    My Photoshop CS6 always crashes when I lose my Internet connection...why? This is really aggravating, particularly when I am traveling with my laptop and try to use Photoshop. As long as I have an Internet connection it is fine, but as soon as the In