ALV Print Options

Hi,
I have a report program, made using oops ALV concept. The requirement is such that if the report output displays 10 rows, and if you select 5 rows and say PRINT then only those selected 5 rows should be printed.
In the standard print functionality this is not possible. Could you please suggest an appropriate work-around for this issue?
Thanks in Advance,
Shivali

Hi Shivali,
As an alternative you may define a USER COMMAND event .
Create a button on toolbar, which perform the print operation for those selected rows.
Something like this -
FORM user_command USING u_ucomm TYPE syucomm
us_selfield TYPE slis_selfield. "#EC CALLED
CASE u_ucomm.
WHEN 'PRINT'.
*Call the print operation
ENDCASE.
ENDFORM.
Regards,
Amit

Similar Messages

  • Output print options for alv which has more than 30 cloumns

    hi,
    if an alv output(oops or normal ) has 30 coloumns in the output,
    if i give print option in the spool i check it will have only 13 coloumns generated other coloumns are not at displayed. how to get all the coloumns print in the spool if alv has more than 30 coloumns.
    regards,
    narsimha.

    Hi Narsimha,
    Its the limit in background that u can print only 255 characters.
    Regards
    Lalit

  • How to remove the ALV Statistics option from Accounts user's userids

    Dear Sir/Madam,
    In our Accounts department each time one extra page is comming out. When the ALV Statistics option is make Unchecked, then it funtioninng normally that is, single page is comming out.
    Is there any way to make this option permanently Unchecked ? If possible please advice and also whether there will be any unwanted implications of it ?
    Please advice.
    Thanks and Regards,
    Pranab

    Option 1 - Use SAP Report RSPRIPARADMIN you can set this for all users
    Option 2  - user parameter SP01_FROM   0000000002 - This means print job will start from page 2
    Option 3 - List -> Print -> click to properties button in print window -> expend cover sheets -> double click on ALV statistics , now uncheck the ALV statistics check box . now click on setting button and click on copy setting button
    Edited by: Savo on Jul 1, 2011 4:06 PM

  • Font size in alv printing

    He friends,
    While  I am printing report  from alv  it is printing in small font size , Please advise how to increase font size in alv printing .
    Regards
    S.Sharma

    Hi,
    http://help.sap.com/saphelp_nw04/helpdata/en/b6/e3eb40c4f8712ae10000000a155106/frameset.htm
    For Fontsize also you have option in the ADD_TEXT method.
    For Details check this program DD_STYLE_TABLE
    Edited by: Neenu Jose on Oct 24, 2008 10:37 AM
    Edited by: Neenu Jose on Oct 24, 2008 10:38 AM

  • Object_not_charlike error in ALV print

    I get the object_not_charlike run time error when i use print option in my ALV grid (I used class objects).
    I know that it is because of some quant fields & currency field that are in the columns.
    I feel i am not referencing them correctly.
    The internal table that I am using doesn't have any Uom field or currency type field. So, I was trying to reference to MARA-MEINS and T001-WAERS. I don't think i am getting it right.
    My internal table is called Itab.
    and the 2 quant fields are MINBE,EISBE and 2 currency fields are 'VERPR,STPRS. Please advice..Thanks.
    perform append_catalog using 'MINBE' 'MARC' .
      perform append_catalog using 'EISBE' 'MARC' .
    perform append_catalog using 'VERPR' 'MBEW' .
      perform append_catalog using 'STPRS' 'MBEW' .
    form append_catalog using value(p_fname)
                              value(p_tname).
      data : v_fcat type lvc_s_fcat.
      v_fcat-fieldname = p_fname.
      v_fcat-ref_table = p_tname.
    *  v_fcat-tabname = 'ITAB'.
      case p_fname.
       when 'EISBE' or 'MINBE'.
        v_fcat-ref_table = 'MARA'.
    *    v_fcat-REF_FIELD = 'MEINS'.
        v_fcat-qfieldname    = 'MEINS'.
       when 'VERPR' or 'STPRS'.
        v_fcat-ref_table = 'T001'.
    *    v_fcat-REF_FIELD = 'WAERS'.
        v_fcat-cfieldname = 'WAERS'.
      endcase.
      append v_fcat to gi_fieldcat.
    endform.                    "APPEND_CATALOG
    I even removed qfieldname and cfieldname from the case-endcase, still it dumps while I click on print option (Export to excel work fine).

    Hi
    If you want to indicate the reference field for currency and quantity fields, u need to add these reference fields to your output table:
    PERFORM APPEND_CATALOG USING 'MINBE' 'MARC' .
    PERFORM APPEND_CATALOG USING 'EISBE' 'MARC' .
    PERFORM APPEND_CATALOG USING 'VERPR' 'MBEW' .
    PERFORM APPEND_CATALOG USING 'STPRS' 'MBEW' .
    PERFORM APPEND_CATALOG USING 'MEINS' 'MARA' . "<-------- Unit
    PERFORM APPEND_CATALOG USING 'WAERS' 'T001' .  "<-------- Currency
    *       FORM append_catalog                                           *
    *  -->  VALUE(P_FNAME)                                                *
    *  -->  VALUE(P_TNAME)                                                *
    FORM APPEND_CATALOG USING VALUE(P_FNAME)
                              VALUE(P_TNAME).
      DATA : V_FCAT TYPE LVC_S_FCAT.
      V_FCAT-FIELDNAME     = P_FNAME.
      V_FCAT-REF_FIELDNAME = P_FNAME.
      V_FCAT-REF_TABLE     = P_TNAME.
    *  v_fcat-tabname = 'ITAB'.
      CASE P_FNAME.
        WHEN 'EISBE' OR 'MINBE'.
          V_FCAT-QFIELDNAME    = 'MEINS'.
        WHEN 'VERPR' OR 'STPRS'.
          V_FCAT-CFIELDNAME = 'WAERS'.
      ENDCASE.
      APPEND V_FCAT TO GI_FIELDCAT.
    ENDFORM.                    "APPEND_CATALOG
    Max

  • How can i print an Excel file when in the full screen mode (no print options on toolbar or right clk

    using Vista, sometimes after creating and saving an excel file, the document is not visible when the file is reopened.
    selecting full screen mode makes the document visible, but the toolbars disappear and the print option does not show up on a right click.  How can i print the document and see the document in some other mode than full screen?

    In order to print, you can click the CTRL+P keys to launch the print dialog,
    Regarding the missing toolbar, try clicking the ALT key to shouw the software menu, then look around under the view option for any available toolbar settings,
    If you cannot find it, i would recommend you to try the Microsoft support forums, as they have some more knowledge with their software features
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • How to Hit Request of Invoice NO In print Option Conditionaly

    Dear Friend
    i want display to my print option enable and disable according to condition.So i have done some code in my Sql Query.Print Option is display me enable and disable condiotanly correctly but where Print option is ebalbe to print ,When i press print Link then it does not display me invoice details in PDF File to print .My Invoice no do not Hit invoice no as request to Print.
    What Shou.ld i do to pass invoice no to print Invoice.
    My print code which i have use to print
    CASE
                  WHEN NVL(VID.CONTROLSUM, 0) = NVL(VID.SUM, 0)
                  THEN
                     '<a href=http://org:1545/reports/rwservlet?SERVER=rep_inv_ora10gias+REPORT=REP_667.RDF+DESTYPE=CACHE+DESFORMAT=PDF+USERID=UDS/UDS@PROD+P_SBU_CODE=0002+P_INVOICE_NO=INVOICE_NO>Print</a>'
    WHEN NVL (VID.CONTROLSUM, 0) <> NVL (VID.SUM, 0)
                  THEN
                     'PRINT'
               END
                  AS the_PRINT,
    Here Request of inoice No Does not Hit.
    *P_SBU_CODE=0002+P_INVOICE_NO=INVOICE_NO*My Code
    This is my View code which i use in my Sql Query Report.View Name *VW_INVOICE_DTL_REPORT*
    SELECT   am.INVOICE_NO,
               CASE WHEN am.INVOICE_TYPE = 'C' THEN 'BLUE' END the_color,
               CASE
                  WHEN am.CURR_CODE = 'GBP' THEN 'GREEN'
                  WHEN am.CURR_CODE = 'EUR' THEN 'purple'
               END the_gbp,
               am.INVOICE_NO AS invoice,
               am.INVOICE_TYPE,
               am.INVOICE_DATE,
               am.CONSULTANT_NAME,       
    DECODE (am.INVOICE_TYPE,
                       'I', (NVL (SUM (al.AMOUNT), 0)),
                       (NVL (SUM (al.AMOUNT), 0)))
                  AS SUM,
               um.user_name,
               cm.name,  
             NVL (am.inv_dtl_amt, 0) AS CONTROLSUM,
               CASE
                  WHEN NVL (am.inv_dtl_amt, 0) <> NVL (SUM (al.AMOUNT), 0)
                  THEN
                     'RED'
               END
                  the_sum, 
               Inv_in_apps (Am.Invoice_no) AS apps_FLG
        FROM   AR_INVOICE_MAS am,
                AR_INVOICE_DISTRIBUTION_DTL al
       WHERE       am.invoice_no = al.invoice_no(+)
    GROUP BY   am.ID,
               am.invoice_no,
               am.INVOICE_TYPE,
               am.INVOICE_DATE,
               am.inv_dtl_amtThis is my Report SQL Query
    select
    VID.*
                  CASE
                  WHEN NVL(VID.CONTROLSUM, 0) = NVL(VID.SUM, 0)
                  THEN
                     '<a href=http://org:1545/reports/rwservlet?SERVER=rep_inv_ora10gias+REPORT=REP_667.RDF+DESTYPE=CACHE+DESFORMAT=PDF+USERID=UDS/UDS@PROD+P_SBU_CODE=0002+P_INVOICE_NO=INVOICE_NO>Print</a>'
    WHEN NVL (VID.CONTROLSUM, 0) <> NVL (VID.SUM, 0)
                  THEN
                     'PRINT'
               END
                  AS the_PRINT,
    CASE VID.APPS_FLG
                  WHEN  'N'
                  THEN
                     '<a href="f?p=&APP_ID.:5:&SESSION.:MODIFY:&DEBUG.:5:P5_SBU_CODE,P5_INVOICE_NO:
                     || VID.SBU_CODE
                     || ','
                     || VID.INVOICE_NO
                     || ':"><img src="#IMAGE_PREFIX#edit.gif" alt="Edit"></a>'
                  WHEN 'Y'
                  THEN
                     '<img src="#IMAGE_PREFIX#edit.gif" alt="Invoice Transfered">'
               END
                  AS the_Edit,
               CASE VID.APPS_FLG
                  WHEN 'Y'
                  THEN
                     '<font color ="Gray"></b>Revenue</b></font>'
                  ELSE
                     '<a href="f?p=&APP_ID.:41:&SESSION.:MODIFY:&DEBUG.:41:P41_sbu_code,P41_Invoice_no:'
                     || VID.SBU_CODE
                     || ','
                     || VID.INVOICE_NO
                     || ':">
    <font color =GRAY><b>Revenue</b></font></a>'
               END
                  AS Revenue
    FROM VW_INVOICE_DTL_REPORT VIDHow to Do This ?
    Thans
    Edited by: Vedant on May 17, 2013 12:03 AM

    I can, but I am usually not using my mbp at home and I wouldn't like to carry a keyboard around with me just to hit a right alt key. I am sure there's a solution for this...
    Thank you

  • How to print a selection of pages from a 3000   page PDF without having to scroll two wheels! Also is there a way to set printer options for just black and white? Seems like there is a lot missing here?

    I have been using this for school work as much as possible and have come across a problem. With my lack of knowledge for apple it seems as though I can't navigate myself to a easy answer. The problem hits when I am printing pages off of a large document, and I don't want to print the entire document in color but I have no way "that I can find" for a black and white print option...
    ----- also a larger issue, when printing I need to select 1 page or even 20 pages... The time it takes to use a scroll wheel and the fact if you try and scroll fast sometimes you click off the screen then you have to start scrolling all over again... It seems like you would beagle to input from say page 1224 to 1236.... Instead I have a scroll a wheel? Just doesn't make sense...?
       Can someone please help solve this for me!

    Yes, that fixed it, thanks! I had no idea they clashed like that. I ruthlessly purged all other tables of contents, and then used Layout > Table of Contents to create a new one, and it worked.
    It made more sense after seeing in this thread that table of contents styles are more like presets or entities than styles.

  • Print option in BI Report

    Hi
    When i click on the print version in the portal, i can take the printout of the report in the PDF format.
    When i have only 6 columns in the report then all fit in one page. But if i drill down and add one more column to the report and try to do the print (Landscape), I get only first 6 columns in the report.
    Is there any mechanism where in we can say fit to one page or shrink to the page in portal?
    Regards

    Hi
    Thanks for the replies
    Fit to page option is not working. Its not displaying all the contents in one page
    When i say print by default its opening up the PDF file in which there is a report data.
    Where do we do the setting that PDF to be generated when a print option is clicked in EP?
    Regards
    Annie

  • How to set print option for a Billing document using T-code VF02

    Hi All,
    Please suggest me the way to set print option for a Billing document for T-code VF02 and please let me know how to get print preview for any particular Billing document?
    regards
    Anand.

    Enter the billing documents detail
    Goto Goto> Header>Output.
    Check the status for your output type in this screen.
    If it is green then come back to the VF03 screen.Enter the billing document number.
    Click on Billing document-->Issue output to.
    Press (CtrlShiftF1) or click on the icon beside "Print options".
    Here you can see the print preview.
    If the status is red then click on the processing log.Here you will get the error messages.
    If the status is in yellow colour,then click on the "Further Data" button
    Set "Dispatch time" as "4 Send immediately (when saving the application)"
    Before the print preview option you should make sure you have added correct output type to the relevant billing document. To do that, go to transaction VF02.
    Enter the billing document no
    Go to Menu option -> Go to -> Header -> Output
    In that screen you have to add relevant output type. (Standard output type is RD00)
    Add that & press enter key
    Highlight that line & press "Further Data" button
    Set "Dispatch time" as "4 Send immediately (when saving the application)"
    Press "Back" Button
    again select that line & go to "Communication method" button
    Set "Logical destination" as LOCAL"
    Don't mark "Print immediately" & "Release after output" ticks. If you mark them, sa soon as you save the billing document, you'll get a print out.
    Press "Back" Button
    Save
    Now form the initial "Change Billing Document" screen, Go to Menu option; Billing Document -> Issue Output to
    You can see that output type line appear.
    select that line & press "Print Preview" button or (CTRLSHIFTF1)
    You can see the print preview.
    Alternatively you can use VF31 to print multiple print outs at same time.
    If you want to get PDF outputs of billing documents, go to your printer settings in the your computer from Control Panel.
    Set PDF Writer as "Default Printer" (Right click & select "Set as Default Printer")
    Then normal way, print the billing from SAP.
    It'll automatically send to your PDF writer. You can save it to the path you want,

  • I am using Numbers app for the ipad and it has been working absolutely fine but now, when I want to email a spreadsheet as a PDF via the 'share and print' option, the file now doesn't appear as an attachment to the recipient. Any ideas please?

    I am using Numbers app for the ipad and it has been working absolutely fine but now, when I want to email a spreadsheet as a PDF via the 'share and print' option, the file now doesn't appear as an attachment to the recipient. Any ideas please?

    Hi mafiose15,
    Thanks for visiting Apple Support Communities.
    Restoring your iPod to factory settings is the best way to try and get it back to working order. You can use the instructions below to restore it:
    How to restore iPod
    Verify that you have an active Internet connection, because you may need to download new versions of the iTunes and iPod Software.
    Download and install the latest version of iTunes if necessary.
    Open iTunes. Connect your iPod to your computer using the USB or FireWire cable that came with your iPod.
    After a few moments, your iPod will appear in the Source panel in iTunes.
    Select your iPod in the Source panel. You will see information about your iPod appear in the Summary tab of the main iTunes window.
    Click Restore.
    If you are using a Mac, you will be asked to enter an administrator’s name and password.
    A progress bar will appear on the computer screen, indicating that stage one of the restore process has begun. When this stage is done, iTunes will present one of two messages with instructions specific to the iPod model you are restoring.
    Disconnect iPod and connect it to iPod Power Adapter (typically applies to older iPod models).
    Leave iPod connected to computer to complete restore (typically applies newer iPod models).
    During stage two of the restore process, the iPod displays an Apple logo as well as a progress bar at the bottom of the display. It is critical that the iPod remain connected to the computer or iPod power adapter during this stage.
    Note: The progress bar may be difficult to see, because the backlight on the iPod display may be off.
    After stage two of the restore process is complete, the iTunes Setup Assistant window will appear. It will ask you to name your iPod and choose your syncing preferences, as it did when you connected your iPod for the first time.
    You can find the instructions in this article:
    Restoring iPod to factory settings
    http://support.apple.com/kb/ht1339
    All the best,
    Jeremy

  • Error:Crystal report Print option in xeon processor

    i am using a server with windows 2008 server and xeon 5520 series processor. windows in 64 bit with 16 Gb of ram.
    everything is working fine except the print option in crystal report..
    i tried installing crystal report basic runtime but it says that it doesnt supprt xeon processor .
    kindly solve this issue .
    Thank you in advance

    You'll have to supply a whole bunch more detailed info. Telling me that you have 2008 server and xeon 5520 series processor, windows in 64 bit is like telling your mechanic that you have a blue car with 4 wheels and it does not work. No info re. engine, of make or what the problem is... And with that info, you want your mechanic to fix the car...
    1) What CR / BO SDK are you using?
    2) what version of the above are you using?
    3) What updates for (1) above are you using?
    4) What development language are you using?
    5) How are you deploying the runtime for (1) above?
    6) What is the precise error message you are getting?
    Think about the info I would need to accurately reproduce the issue. What info would probably be good to have?
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • How to use the print option for photos?

    How to use the print option for photos.  I have a wireless printer but how do I set it up?

    http://www.apple.com/support/iphone/assistant/airprint/

  • Thanks For Your Support in advance i want to know that when I open a website that time view print option and when I click close button then page also new window page also close. I want to copy it how i can stop this print option?

    WHEN I OPEN A URL THAT TIME WITH PAGE OPEN SHOWS PRINT OPTION AND WHEN I CLICK CLOSE BUTTON OF PRINT OPTION THAT TIME NEW WINDOW BUTTON IS CLOSED. I WANT TO CLOSE ONLY PRINT OPTION. PLEASE HELP ME...............THANKS

    Many sites which offer specific "print formatted" pages do that: they assume that once you have finished with the print dialog you no longer want the page itself. So for your convenience they close it. Not so convenient for you, since you still want to view the page.
    I'm not aware of an easy solution for this. I can think of a couple different approaches.
    First, maybe there's an add-on to solve this? That would be easiest.
    Second, maybe there's a userscript to solve this?
    The Greasemonkey add-on runs userscripts which you can copy or download. Be careful to install only long-establish and trusted scripts. (''Is there a site that has this bad behavior that I can view without logging in? I will test one of my existing scripts to see whether it helps.'')
    Third, Firefox has an old system for restricting site permissions in a custom text file in your profile folder (named user.js). Editing this file is a bit advanced, and I haven't been able to test it, but the system works along these lines:
    <br>// Define a policy name for window.close permission
    // (assumes you don't have this pref already)
    user_pref("capability.policy.policynames", "nowindowclose");
    // Define policy: disable sites from using window.close
    // in their scripts
    user_pref("capability.policy.nowindowclose.Window.close", "noAccess");
    // List of sites subject to this policy
    user_pref("capability.policy.nowindowclose.sites", "firstbadsite.com secondbadsite.com");
    Again, I haven't tested that and recommend looking into add-ons first.

  • How to put a printer in the print option

    I have an epson airport  with AirPrint capabilities...sometimes the printer option is available, other times it says select...and no options are available...annoying!  Any ideas what I can do?

    Philliemae-
    That sounds like a communications problem related to WiFi, rather than a printer problem.  Try unplugging your Wifi router for a few seconds.  Then reset the iPad's network.  Go to Settings-General-Reset-Reset Network Settings.  You will need to reconnect the iPad to WiFi.
    Although far fetched, is it possible your iPad sometimes jumps to a neighbor's WiFi that happens to have the same SSID as yours?  That happened to me a few weeks ago when I had trouble printing.  There are a LOT of WiFi base stations out there named Linksys!
    Fred

Maybe you are looking for