Print Page Functionality

Hi all,
I'm somewhat new to CRM 7.0, coming from years of Enterprise Portal Java and R/3 ABAP development (add to that experience in CRM 5.0 E-Commerce Java and ABAP).
I have a (CRM 7.0) query about the system button 'Print' (icon) that appears on the top right of the work area.
On most pages it's there. When I'm creating a Lead it's there. From lead creation (component BT108H_LEA) I'm able to move to the 'New Assignment' creation page (component ICCMP_SURVEY) and the print functionality is no longer there. I was asked to correct that.
Now, being a developer, I generally look for a coded solution; and I came up with one... it's done. However, I also understand that customizing solutions are generally preferable to coding. My solution was to redefine IF_BSP_WD_TOOLBAR_CALLBACK~GET_SYSTEM_BUTTONS and add this code:
METHOD if_bsp_wd_toolbar_callback~get_system_buttons.
  DATA: ls_button TYPE crmt_thtmlb_button_ext.
  CALL METHOD super->if_bsp_wd_toolbar_callback~get_system_buttons
    RECEIVING
      rt_buttons = rt_buttons.
* PRINT BUTTON
    CLEAR ls_button.
    ls_button-page_id         = me->component_id.
    ls_button-type            = cl_thtmlb_util=>gc_icon_print.
    ls_button-enabled         = 'X'.
    ls_button-on_client_click = `crmFrwPrint();`.           "#EC NOTEXT
    ls_button-tooltip         =  text-000.
    APPEND ls_button TO rt_buttons.
ENDMETHOD.
So it works... but still, I'd much rather know what it is that tells one page to return the Print button from ~get_system_buttons and what tells another page not to.
Where is that defined? Is it in customizing? What tells a page what it's 'system buttons' are supposed to be?
Or is my solution perfectly acceptable?
Thanks for your time,
P.

Hi Patrik,
Option to print a page is generally available with an overview page for any transaction.
In case you want to have this available for any other page then coding would be required.
I would say that your solution is correct.
e Regards,
Bhushan

Similar Messages

  • Acrobat 9 bug? - Print Pages function does not print all bookmarked pages

    We use the Bookmark Print Pages function to allow for easy printing of sections of large PDFs. All of the pages that should be printed are bookmarked. The bookmarked pages print correctly in Adobe 8, but not in Adobe 9.
    I have put together a javascript workaround, but would prefer a solution that does not require distributing a file to all users.
    I would appreciate any suggestions on other possible workarounds.
    Here is the bug report I submitted to Adobe:
    Concise problem statement: The "Print Pages" function for bookmarks does not print all bookmarked pages in Adobe Reader 9.0 and 9.1. The same bookmarks print properly in Adobe Reader, Standard, and Pro 8.
    Steps to reproduce bug:
    1. Open the Adobe Acrobat SDK JavaScript for Acrobat API Reference PDF (Version 8.1, April 2007) in Adobe Reader 9.0 or 9.1.
    2. View the bookmarks. Right-click on New Features and Changes and choose "Print Pages."
    3. Open the same PDF in Adobe Reader, Standard, or Pro 8. (I used Adobe Professional 8.1.3.)
    4. View the bookmarks. Right-click on New Features and Changes and choose "Print Pages."
    Results and Expected results: Printing from v8 results in 12 pages. Printing from v9 results in 9 pages. Pages 741, 754, and 769 did not print from v9.

    I'm having the same issues.  Using the latest version 9.3.3.  Is this a bug? I tired calling adobe but their CR sounds like 3rd country only.  Anyone can shed a light on this issue?

  • Is it possible to call the Print Quote functionality from Custom ADF page

    Hi,
    We are researching if it is possible to call the Print Quote functionality from the Custom ADF application.
    Goal is to pop up the PDF report upon clicking the Print Quote button on the custom page. Is it possible ?
    Atleast advice on the direction to go forward is appreciated.
    Thanks
    Sai

    Hi ,
    Please check following thread on forum -
    Re: ADF: Calling OAF Page from ADF page
    Check this may also be useful-
    https://blogs.oracle.com/shay/entry/to_adf_or_oaf_or
    I have not tried yet but Steven Chan (Sr. Director OATG) suggest following methodolgy for this-
    https://blogs.oracle.com/stevenChan/entry/appsdatasource_jaas_ebs
    Thanks,
    Ashish

  • Shortkey apple p (print page) does not function anymore

    All of the sudden the print page short-key (apple -P) stopped functioning. only a small beep is heard.
    in keyboard setting it is not found, if added is still only gives the small beep.
    even re-installing leopard does not help.
    it is very annoying to alwals have to go to archive window to print
    how knows how to solve this.

    I would suggest resetting PRAM
    It might help - it might not - but it is a start:
    ■ Shut down your computer. Turn the computer back on and immediately hold down Command-Option-P-R, continuing to press until you hear the startup sound for the second time. This resets the computer’s parameter random-access memory (PRAM).
    IMPORTANT: Resetting PRAM may change some system settings and preferences. Use System Preferences to restore your settings.
    Reinstalling is almost never a solution for these things.

  • How to print Column Labels on each print page of an ALV report

    Hi,
    I have an ALV report which is of 10 print pages.
    I need to print Column Labels on each print page.
    How it is possible.
    Plz write the solution
    Narendra

    Hi Narendra
    try this code.
    reward pts if help.
    Deepanker.
    *& Report  ZDEMO_ALVGRID_EDIT                                          *
    *& Example of a simple ALV Grid Report                                 *
    *& The basic ALV grid, Enhanced to display specific fields as          *
    *& editable depending on field value                                   *
    REPORT  ZDEMO_ALVGRID_EDIT                 .
    TABLES:     ekko.
    TYPE-POOLS: slis.                                 "ALV Declarations
    *Data Declaration
    TYPES: BEGIN OF t_ekko,
      ebeln TYPE ekpo-ebeln,
      ebelp TYPE ekpo-ebelp,
      statu TYPE ekpo-statu,
      aedat TYPE ekpo-aedat,
      matnr TYPE ekpo-matnr,
      menge TYPE ekpo-menge,
      meins TYPE ekpo-meins,
      netpr TYPE ekpo-netpr,
      peinh TYPE ekpo-peinh,
      field_style  TYPE lvc_t_styl, "FOR DISABLE
    END OF t_ekko.
    DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_ekko TYPE t_ekko.
    *ALV data declarations
    DATA: fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE.
    DATA: it_fieldcat TYPE lvc_t_fcat,     "slis_t_fieldcat_alv WITH HEADER LINE,
          wa_fieldcat TYPE lvc_s_fcat,
          gd_tab_group TYPE slis_t_sp_group_alv,
          gd_layout    TYPE lvc_s_layo,     "slis_layout_alv,
          gd_repid     LIKE sy-repid.
    *Start-of-selection.
    START-OF-SELECTION.
      PERFORM data_retrieval.
      PERFORM set_specific_field_attributes.
      PERFORM build_fieldcatalog.
      PERFORM build_layout.
      PERFORM display_alv_report.
    *&      Form  BUILD_FIELDCATALOG
          Build Fieldcatalog for ALV Report
    FORM build_fieldcatalog.
      wa_fieldcat-fieldname   = 'EBELN'.
      wa_fieldcat-scrtext_m   = 'Purchase Order'.
      wa_fieldcat-col_pos     = 0.
      wa_fieldcat-outputlen   = 10.
      wa_fieldcat-emphasize   = 'X'.
      wa_fieldcat-key         = 'X'.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR  wa_fieldcat.
      wa_fieldcat-fieldname   = 'EBELP'.
      wa_fieldcat-scrtext_m   = 'PO Item'.
      wa_fieldcat-col_pos     = 1.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR  wa_fieldcat.
      wa_fieldcat-fieldname   = 'STATU'.
      wa_fieldcat-scrtext_m   = 'Status'.
      wa_fieldcat-col_pos     = 2.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR  wa_fieldcat.
      wa_fieldcat-fieldname   = 'AEDAT'.
      wa_fieldcat-scrtext_m   = 'Item change date'.
      wa_fieldcat-col_pos     = 3.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR  wa_fieldcat.
      wa_fieldcat-fieldname   = 'MATNR'.
      wa_fieldcat-scrtext_m   = 'Material Number'.
      wa_fieldcat-col_pos     = 4.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR  wa_fieldcat.
      wa_fieldcat-fieldname   = 'MENGE'.
      wa_fieldcat-scrtext_m   = 'PO quantity'.
      wa_fieldcat-col_pos     = 5.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR  wa_fieldcat.
      wa_fieldcat-fieldname   = 'MEINS'.
      wa_fieldcat-scrtext_m   = 'Order Unit'.
      wa_fieldcat-col_pos     = 6.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR  wa_fieldcat.
      wa_fieldcat-fieldname   = 'NETPR'.
      wa_fieldcat-scrtext_m   = 'Net Price'.
      wa_fieldcat-edit        = 'X'. "sets whole column to be editable
      wa_fieldcat-col_pos     = 7.
      wa_fieldcat-outputlen   = 15.
      wa_fieldcat-datatype     = 'CURR'.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR  wa_fieldcat.
      wa_fieldcat-fieldname   = 'PEINH'.
      wa_fieldcat-scrtext_m   = 'Price Unit'.
      wa_fieldcat-col_pos     = 8.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR  wa_fieldcat.
    ENDFORM.                    " BUILD_FIELDCATALOG
    *&      Form  BUILD_LAYOUT
          Build layout for ALV grid report
    FORM build_layout.
    Set layout field for field attributes(i.e. input/output)
      gd_layout-stylefname = 'FIELD_STYLE'.
      gd_layout-zebra             = 'X'.
    ENDFORM.                    " BUILD_LAYOUT
    *&      Form  DISPLAY_ALV_REPORT
          Display report using ALV grid
    FORM display_alv_report.
      gd_repid = sy-repid.
    call function 'REUSE_ALV_GRID_DISPLAY'
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
           EXPORTING
                i_callback_program      = gd_repid
               i_callback_user_command = 'USER_COMMAND'
                is_layout_lvc               = gd_layout
                it_fieldcat_lvc             = it_fieldcat
                i_save                  = 'X'
           TABLES
                t_outtab                = it_ekko
           EXCEPTIONS
                program_error           = 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.
      ENDIF.
    ENDFORM.                    " DISPLAY_ALV_REPORT
    *&      Form  DATA_RETRIEVAL
          Retrieve data form EKPO table and populate itab it_ekko
    FORM data_retrieval.
      SELECT ebeln ebelp statu aedat matnr menge meins netpr peinh
       UP TO 10 ROWS
        FROM ekpo
        INTO  CORRESPONDING FIELDS OF TABLE it_ekko.
    ENDFORM.                    " DATA_RETRIEVAL
    *&      Form  set_specific_field_attributes
          populate FIELD_STYLE table with specific field attributes
    form set_specific_field_attributes .
      DATA ls_stylerow TYPE lvc_s_styl .
      DATA lt_styletab TYPE lvc_t_styl .
    Populate style variable (FIELD_STYLE) with style properties
    The NETPR field/column has been set to editable in the fieldcatalog...
    The following code sets it to be disabled(display only) if 'NETPR'
    is gt than 10.
      LOOP AT it_ekko INTO wa_ekko.
        IF wa_ekko-netpr GT 10.
          ls_stylerow-fieldname = 'NETPR' .
          ls_stylerow-style = cl_gui_alv_grid=>mc_style_disabled.
                                                 "set field to disabled
          APPEND ls_stylerow  TO wa_ekko-field_style.
          MODIFY it_ekko FROM wa_ekko.
        ENDIF.
      ENDLOOP.
    endform.                    " set_specific_field_attributes
    pls reward pts is help,

  • Adobe X Printing page ranges in pdf's with multiple sections

    I'm trying to print a page range in a document that is divided into sections that start over with page 1 or page i, and using an absolute page range doesn't work.  For example, the document has an initial cover page up to the Contents page numbered i - vi, then the Contents section is numbered i - iv, then the Figures section is numbered 1 - 2, then the Chapter 1 section is numbered 1 - 6, Chapter 2 is 1 - 14, etc.
    In Adobe X, the default toolbar with the print, mail icons, then the up and down arrows, is followed by a box with the "page number" in it followed by a page range in (); for ex., the box has '1' in it and the range shows (15 of 94).  If I was viewing the title page, the box would have 'i' in it followed by (1 of 94), etc.
    When I try to print, the dialog menu shows the "Print Range" of "All", "Current Page", and "Pages".  If I select "Pages" and enter the absolute number from the range in () like (15 of 94), and I want to print absolute page 15-35, and I enter that in the "Pages" box as 15-35, what I get is a section further in the document that I don't want at all, and not the desired page range.  In fact, since the sections all restart the page numbering, I can't even find the starting page because the print function is totally confused about what page I mean.
    In previous Acrobat versions, I had no trouble using the absolute page range since that is obviously required to get the desired range; i.e., Acrobat can't know what section I want, so for ex. putting page 1-10 can mean any section with 10 pages.  I don't know how to use a page range for sections, like 2.1 - 2.4 or 2-1 to 2-4 because the Page range box doesn't recognize that.  And again, the absolute page ranges don't work either.
    The only way to print this document is to select the "All" button.  If the doc is 1000 pages long, I don't want to waste all that paper!!  Please help!

    You can use the thumbnails pane and print pages selected within the pane.
    Have you tried other strings like:
    1 - 6 , 1 - 13

  • Regarding SAP SCRIPTS - NEXT PAGE FUNCTIONALITY

    Hi all,
    Can anybody tell me how to get NEXT PAGE FUNCTIONALITY   in SAP SCRIPTS. Means if Data in 1st page does not fit it should go to next page and print.
    I had declared 2 PAGES already in my LAYOUT SET.
    How can i achieve above functionality.
    Thanks in advance.
    Thanks & Regards,
    Rayeez.

    Hi Rich heilman,
    I had declared first page as PAGE1 & its Next Page attribute as PAGE2 which is also declared already.
    But still it is not showing second page when there is over flow of data.
    does we need to write following code any where in layout.
    IF &PAGE& EQ = 1
    NEXT-PAGE
    ENDIF
    please solve my issue.
    Thanks & Regards,
    Rayeez.

  • Epson RX-700 cant use Epson print CD function .....

    Since i upgrade from MAC OS X 10.4.10 to 10.5 i can print page as usual but the Epson Print CD do not work and give me a message ; cant find the drivers for the application.
    What i can do ..... please Help.

    Reseting printer function from Pref Conrol panel = no result.
    Install the driver from Epson website = no result.
    Option to select printer in Epson Print CD are Greyout and cant be selected.
    Printer can print on paper but not on CD ot DVD ....

  • InDesign CS3 Print Booklet function

    I have an issue with InDesign CS3 Print Booklet Function.
    Certainly Print Booklet is not InBooklet by any stretch. It does however have to be an integral part of the InDesign Program(one of the reasons it is better than QuarkXPress).
    Print Booklet takes the age old practice of creating 4 page signatures for booklets of 4-page multiples and when you get to 12-16 pages it mysteriously inserts blank pages making non-4 page multiple booklets. I have had 12 page booklets made into 14 and 16 page booklets into 18 pages.
    Is there a fix for this issue forthcoming from Adobe, or has anyone discovered a workaround?
    I do not want to teach students that they have to go to PDF's and use another way to impose, when it is an important part of InDesign.
    Jack Mertes

    >I click Printer Settings to make sure I've got spreads selected and crop marks etc.
    Make sure you DON'T have the "print spreads" box checked when setting up to use Print Booklet.
    >make booklet makes low res pages in an InDesign file and Booklet CE 3.5 makes a new InDesign file up of individual PDFs but the pages are all out of order.
    I'm not sure what you mean by "make booklet makes low res pages." Are you referring to Dave's MakeBooklet.jsx script? That simply places the pages from an existing InDesign file into a new file in Printer spread order. It's up to you what sort of resolution any page element has in the original file, or what PDF settings you use to make a PDF from the new file. Perhaps you need to adjust your View > Display Quality setting?
    The pages in an imposed file SHOULD be "all out of order." You are looking at printer's spreads, not reader's spreads. Are they not in the correct order for printing?
    Peter

  • How to avoid TEST PRINT page

    Dear All,
    How to aviod the test print page in printing. I am getting SAP cover page(test print page) for every time I am printing. I ma using the following code.
      CASE sy-ucomm.
        WHEN 'PRNT'.
          DATA: l_params TYPE pri_params,
                l_valid TYPE c,
                l_arc_params TYPE arc_params.
              l_params-prsap = 'X'.
          CALL FUNCTION 'GET_PRINT_PARAMETERS'
            EXPORTING
              destination            = 'LPIN'
              copies                 = 1
             list_name              = 'TEST'
             list_text              = 'Test NEW-PAGE PRINT ON'
              immediately            = 'X'
              layout                 = 'X_65_132'
              line_count             = 65
              line_size              = 220
              release                = 'X'
              mode                   = 'CURRENT'
              no_dialog              = 'X'
            IMPORTING
              out_parameters         = l_params
              valid                  = l_valid
            EXCEPTIONS
              archive_info_not_found = 1
              invalid_print_params   = 2
              invalid_archive_params = 3
              OTHERS                 = 4.
          NEW-PAGE PRINT ON   PARAMETERS l_params NO DIALOG.
          PERFORM display_data.
          NEW-PAGE PRINT OFF.
      ENDCASE.
    Thanks,
    Ranjan

    Hi,
    Just check it out. I m printed report directly instead of display.
    w_destination = 'LOCL'.
        CALL FUNCTION 'GET_PRINT_PARAMETERS'
          EXPORTING
            destination    = w_destination
            layout         = 'X_58_170'
            no_dialog      = 'X'
          IMPORTING
            out_parameters = params
            valid          = valid.
        IF valid <> space.
    ALL DISPLAY PARAMETER RIGHT ON PRINTER
          NEW-PAGE PRINT ON PARAMETERS params NO DIALOG.
        ELSE.
    GIVE ERROR PRINTER DESTINATION IS NOT VALID
          MESSAGE s208(00) WITH text-010.
        ENDIF.
      ENDIF.
    User write stament, That will dirctly go for print.
    OFF THE PRINTING AFTER REPORT IS DISPLAY
      IF valid <> space.
        NEW-PAGE PRINT OFF.
      ENDIF.
    it may sortout ur problem.
    Regard,
    Vinod

  • Print Screen Functionality

    Hi,
    How could I implement the print screen functionality in a toolbar button. I should also be able to provide the page settings (like width, height, location on the page etc..)
    Thanks in advance.
    Venky

    Try searching for it in this forum and the Java2D forum, I've seen posts about it before as well as replies with answers.

  • Print Job function

    Can someone guide me in the right direction how to detect en setup the pages for printing long swf files.
    I made the print job function and able to print but it only print 1 page ... the swf is always 1200px width en the height varies everytime..
    so most of the time it's at least 2 pages long.
    But I dont know how to auto add a new page for printing if the swf is too long for 1 page...
    Thanks!

    WhatToPrint  is the array of movieclips to be printed
    and you can set the width and height of the doc to be printed change the highlighted one for your need.
    function PrintFunc(WhatToPrint:Array) {
        var PrintQueue:PrintJob = new PrintJob();
        var PrintStart:Boolean = PrintQueue.start();
        if (PrintStart) {
            for (i=0; i<=WhatToPrint.length; i++) {
                PrintQueue.addPage(WhatToPrint[i],{xMin:10, xMax:606, yMin:10, yMax:800});
            PrintQueue.send();

  • How to print page numbers in adobe form

    Hi,
    Can anybody tell me how to print page numbers in adobe form.
    Thanks in advance
    Chaitanya

    Hi,
    Yes the field page n of m is used normally for printing page numbers. But it won't display the current page of total pages by itself. You have to set the run time property to n (current page ) and m (Total number of pages). Carefully select the # (current page ) and ## (Total number of pages). Hope this works for you.
    My requirement is to have the user control on current page. For Example:
    Example for a Invoice with 5 PO items (stands on 2 pages) :
    1st  page is the letter : no page number
    2nd page is the 1st page of the 1st copy of the invoice : we should read u201C1 / 2u201D
    3rd page is the 2nd page of the 1st copy of the invoice : we should read u201C2 / 2u201D
    4th page is the 1st page of the 2nd copy of the invoice : we should read u201C1 / 2u201D
    5th page is the 2nd page of the 2nd copy of the invoice : we should read u201C2 / 2u201D
    Presently i cam getting the current page number for page 4th as 3 / 2 and for 5th page 4 / 2. I could able to control the total number of pages from print program. But when i am printing the second copy (4th and 5th pages), I couldn't able to control the current page number. I need to initialize the Current page count (4th page ) as 1.
    I have used the follwing java scripting:
    this.rawValue = wv_pages - xfa.layout.page(this)
    where wv_pages is total no of pages calculated from print program.
    Please help me in this regard with some formcal or java scripting conditions.
    Thank You,
    Regards,
    Naresh.

  • Adobe reader xi i am running 2 display screens and when i have a file open and go to print the print page opens on my second screen.  How can I get adobe reader to just display on one screen?

    adobe reader xi i am running 2 display screens and when i have a file open and go to print the print page opens on my second screen.  How can I get adobe reader to just display on one screen?
    I want the capability of adobe reader to just run on one screen.

    I had the same problem.
    Try this.
    https://igppwiki.ucsd.edu/groups/publichelpwiki/wiki/a1538/Howto_Disable_Acrobat _as_the_Safari_PDF_Viewer.html

  • How do I get Firefox to print the entire web page instead of truncating when it gets to end of first print page?

    Firefox 3.6.8, Windows XP Pro
    Frequently when I try to do a print of a web page, I end up printing only whatever fits on the first printed page. Instead of continuing to later pages as needed, the rest of the displayed web page is simply ignored.

    See Tools > Options > General > Startup: "When Firefox Starts": "Show my home page"

Maybe you are looking for