Print Logo in Classic Report (Write Method,Not ALV)

Hi All,
I'm currently doing conversion of the All the Classic Report with addition of Header with 'LOGO'.
I'm willing to find out that Function (CALL FUNCTION 'WWW_GET_MIME_OBJECT') is only able for display but not show out during printing.
Is that any method, I can do it(Print with Logo) without conversion to SAP Script or Smartform that was exhausted.
*Please take note is Classic Report with Write Method (Line by Line), Not ALV.
Thank you all in advance
Regards,
Trevor Wong.

Hi,
It is possible to include logo in classical report but its not possible to print logo in classical report. It can be done in ALV's.
Write  the code in Top-of-page event in ALV.
The following is the code for inserting the logo in ALV.
FORM TOP_OF_PAGE.
  CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
       EXPORTING
           I_LOGO             = 'ENJOYSAP_LOGO'
            IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.
ENDFORM.
Regards
Purnand

Similar Messages

  • Print LOGO in classical report printout

    Hi GURUS,
    Is it possible to take print of logo in classical report.

    refer this link:[click|http://tinyurl.com/5s22vp]
    the code is copied from that link.
    Make the changes in the code as given below.
    REPORT  zgb_prog06.
    * START OF DO NOT CHANGE***********************************
    DATA: docking TYPE REF TO cl_gui_docking_container,
          picture_control_1 TYPE REF TO cl_gui_picture,
          url(256) TYPE c .
    DATA: query_table LIKE w3query OCCURS 1 WITH HEADER LINE,
          html_table LIKE w3html OCCURS 1,
          return_code LIKE  w3param-ret_code,
          content_type LIKE  w3param-cont_type,
          content_length LIKE  w3param-cont_len,
          pic_data LIKE w3mime OCCURS 0,
          pic_size TYPE i.
    * END OF DO NOT CHANGE*************************************
    DATA : sum(4) , num1(4) , num2(4).
    PARAMETERS: p_dummy(4) DEFAULT '4' .
    PARAMETERS: p_dummy1(4) DEFAULT '5' .
    AT SELECTION-SCREEN OUTPUT.                 "Remove this event
    START-OF-SELECTION.
    write 'Testing picture printing in classic report'.
    PERFORM show_pic.                                      "Add it here
    end-of-selection.
    *& Form show_pic
    FORM show_pic.
      DATA: repid LIKE sy-repid.
      repid = sy-repid.
      CREATE OBJECT picture_control_1 EXPORTING parent = docking.
      CHECK sy-subrc = 0.
      CALL METHOD picture_control_1->set_3d_border
        EXPORTING
          border = 5.
      CALL METHOD picture_control_1->set_display_mode
        EXPORTING
          display_mode = cl_gui_picture=>DISPLAY_MODE_FIT.
      CALL METHOD picture_control_1->set_position                      "change positions
        EXPORTING
          height = 70
          left   = 800
          top    = 20
          width  = 190.
    *CHANGE POSITION AND SIZE ABOVE***************************
      IF url IS INITIAL.
        REFRESH query_table.
        query_table-name  = '_OBJECT_ID'.
    *CHANGE IMAGE NAME BELOW UPLOADED IN SWO0******************
        query_table-value = 'ZLOGO'.
        APPEND query_table.
        CALL FUNCTION 'WWW_GET_MIME_OBJECT'
          TABLES
            query_string        = query_table
            html                = html_table
            mime                = pic_data
          CHANGING
            return_code         = return_code
            content_type        = content_type
            content_length      = content_length
          EXCEPTIONS
            object_not_found    = 1
            parameter_not_found = 2
            OTHERS              = 3.
        IF sy-subrc <> 0.
    *      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    *              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        CALL FUNCTION 'DP_CREATE_URL'
          EXPORTING
            type     = 'image'
            subtype  = cndp_sap_tab_unknown
            size     = pic_size
            lifetime = cndp_lifetime_transaction
          TABLES
            data     = pic_data
          CHANGING
            url      = url
          EXCEPTIONS
            OTHERS   = 1.
      ENDIF.
      CALL METHOD picture_control_1->load_picture_from_url
        EXPORTING
          url = url.
    *Syntax for URL
    *url = 'file://D:\corp-gbanerji\pickut\cartoon_184.gif'.
    *url = 'http://l.yimg.com/a/i/ww/beta/y3.gif'.
    ENDFORM.                    "show_pic

  • LOGO IN CLASSICAL REPORT

    HI ,
    Is it possible to display the logo in classical basic) reports.
    if possible tell me how to do

    Hi,
    I have inserted a picture in my classical report. According to the position where you want can be adjusted. If you know how to upload Logo in SMW0 then upload and just copy paste the code that i have shown will display the image.
    DATA: docking TYPE REF TO cl_gui_docking_container,
          picture_control_1 TYPE REF TO cl_gui_picture,
          url(256) TYPE c .
    DATA: query_table LIKE w3query OCCURS 1 WITH HEADER LINE,
          html_table LIKE w3html OCCURS 1,
          return_code LIKE  w3param-ret_code,
          content_type LIKE  w3param-cont_type,
          content_length LIKE  w3param-cont_len,
          pic_data LIKE w3mime OCCURS 0,
          pic_size TYPE i.
    END OF DO NOT CHANGE----------------------*
    FORMAT HOTSPOT ON.
    DATA : sum(4) , num1(4) , num2(4).
    PARAMETERS: A(4) DEFAULT '4' .
    PARAMETERS: B(4) DEFAULT '5' .
    DATA: ANSWER TYPE I.
    ANSWER = A + B.
    WRITE:/ ANSWER.
    AT SELECTION-SCREEN OUTPUT.
      PERFORM show_pic.
    PERFORM show_pic1.
      START-OF-SELECTION.
    *& Form show_pic
    FORM show_pic.
       DATA: repid LIKE sy-repid.
             repid = sy-repid.
      CREATE OBJECT picture_control_1 EXPORTING parent = docking.
      CHECK sy-subrc = 0.
      CALL METHOD picture_control_1->set_3d_border
        EXPORTING
          border = 5.
      CALL METHOD picture_control_1->set_display_mode
        EXPORTING
          display_mode = cl_gui_picture=>display_mode_stretch.
      CALL METHOD picture_control_1->set_position
        EXPORTING
          height = 90
          left   = 40
          top    = 30
          width  = 190.
    CHANGE POSITION AND SIZE ABOVE****************
    IF url IS INITIAL.
    REFRESH query_table.
        query_table-name  = '_OBJECT_ID'.
    CHANGE IMAGE NAME BELOW UPLOADED IN SWO0*****************
        query_table-value = 'YREDDY'. "name which u have given in SMW0
            APPEND query_table.
    query_table-value = 'YLOGO'.
            APPEND query_table.
    *FORMAT HOTSPOT ON.
        CALL FUNCTION 'WWW_GET_MIME_OBJECT'
          TABLES
            query_string        = query_table
            html                = html_table
            mime                = pic_data
          CHANGING
            return_code         = return_code
            content_type        = content_type
            content_length      = content_length
          EXCEPTIONS
            object_not_found    = 1
            parameter_not_found = 2
            OTHERS              = 3.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        CALL FUNCTION 'DP_CREATE_URL'
          EXPORTING
            type     = 'image'
            subtype  = cndp_sap_tab_unknown
            size     = pic_size
            lifetime = cndp_lifetime_transaction
          TABLES
            data     = pic_data
          CHANGING
            url      = url
          EXCEPTIONS
            OTHERS   = 1.
            ENDIF.
            CALL METHOD picture_control_1->load_picture_from_url
        EXPORTING
          url = url.
          FORMAT HOTSPOT OFF.
    ENDFORM.
    INSERT PICTURE IN SMW0 TXCODE.
    Cheers!!
    VEnk@
    Edited by: Venkat Reddy on Oct 29, 2008 1:16 PM

  • How to print logo in standard report

    Hi,
    How to print a logo in sap ordinary report
    Thanks,
    Sreedhar

    Hi Sreedhar,
    It is not possible to print logo in the ordinary report, but it can done through ALV.
    Write  the code in Top-of-page event in ALV.
    The following is the code for inserting the logo in ALV.
    FORM TOP_OF_PAGE.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
           EXPORTING
               I_LOGO             = 'ENJOYSAP_LOGO'
                IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.
    ENDFORM.
    Rewards if it is helpful...
    Regards,
    Omkar.

  • How to insert a Grpahics logo in Classical report?

    Hi Experts,
    I need to insert a graphics logo in a classical report without using split screen or graphics control. The size of the logo is normal Company logo we use in Smartform. The difference here is : I need to print the logo in a classical report.
    Regards,
    Anid
    Reward Points Guaranteed.

    Hi..
    It is possbile only when u create ALV report. In normal report we cannot insert Logos.
    In case of ALV:
    Inserting Logo:
    In the transaction OAOR, you should be able to insert your company Logo.
    •  GOTO - OAOR (Business Document Navigator)
    •  Give Class Name - PICTURES Class Type - OT..... then Execute
    •  It will show you the list, then select ENJOYSAP_LOGO.
    •  On that list, you will find one control with a "create" tab.
    •  Click std. doc types.
    •  Select SCREEN and double-click.
    •  It will push FILE selection screen.
    •  Select your company logo (.gif) and press OK.
    •  It will ask for a description- for instance: "company logo".
    •  It will let you know your doc has been stored successfully.
    •  You can find your logo under ENJOYSAP_LOGO->Screen->company logo.
    •  Just run your ALV program, you should find your company logo in place of the EnjoySAP logo.
    <b>Reward if Helpful.</b>

  • Yellow Color, printing with ////////////// on classical report print outs?

    Hi Experts,
    I hv been used the COL_NEGATIVE and COL_TOTAL in my classical report for the SubTotal purpose. On the screen, they r looking fine.
    But,
    When am printing it on SAP Printer, am getting like, /////////////////////// over my totals!
    So,
    Is it my printer fault?
    OR it is a property of theses clours? I mean, I need to change the clour to like, CLO_KEY!
    thanq.

    Hi
    No doubt it is purely a Printer problem
    certain printers will behave like that for colors
    I hope there is some OSS note also reg this
    If you wants to take out print  of the Report
    better don't give colors to the fields and the data
    Reward points for useful Answers
    Regards
    Anji

  • Classic Report - Column Conditions Not taking Effect when Changing Pagination

    Apex Version:  4.2.1.00.08
    DB Version: 11g Release 11.2.0.3.0
    Hi,
    I have a classic report that has some columns that conditional hide/show depending upon the value of a page item.  When the report is first displayed with the first pagination set(Rows 1-100), the columns display as they should.
    When moving to the next pagination set(Rows 101-200), the columns no longer display as they should and it seems that the condition is not taking effect.  Partial Page Refresh is set to 'Yes' for the report.
    Any ideas on why this might be occurring?

    tvanderl
    Assuming you mean that columns are rendered while you expect them not to.
    Are the conditions based on page items.
    It could be that the session state of those items is different between when the page is first rendered and when de refresh due to the pagination is done.
    See if adding the in the condition used page items to the page items to be submitted for the region helps.
    Others wise see if you can replicate the issue on apex.oracle.com so we can see what you mean.
    Nicolette

  • How to print watermark in classical reports?

    How to display the watermark in classical reports?

    hi
    go to se78 graphics -> enter
    BMAP(BITMAP IMAGES)
    Name MYBMP
    select radio button
    color ->import
    filename: c:\pictures\123.bmp.
    name : mybmp
    description : BMP ->continur ->save.(activate it)
    now go to se71->choose the prog -> layout ->right click ->create graphics.
    utilities -> printing test -> output device -> LP01.
    Hope this helps
    if it helped, you can acknowledge the same by rewarding
    regards
    dinesh

  • Logo seen in report Title is not properly alligned when downloaded to Excel

    Hi All,
    Iam facing an issue with Download to Excel link on my OBIEE report.
    When I download my report to Excel which has a logo in the report title, in the excel sheet the logo occupies all the cells till the end of the report columns and my report title is seen after those columns.
    Can you please suggest a solution or a workaround for this.
    Many Thanks in adavnce.
    Suman
    Edited by: Suman B on Sep 20, 2010 4:10 AM

    hi
    Suman
    i am also faced same problem. if u got any solution for this post
    let me know
    Advance Thanks
    Satya

  • Classical report display from an alv list

    Hi, 
    I have an alv report displayed, and for this alv report have a user defined menu. Now when the Save button is clicked on the application bar then in the background we have a set of invoices which are generated for all the values selected from the alv list.
    Now after this a list is to be displayed listing all the items which were selected from the alv(ie the check boxes for the alv selected and not a particular field for selection)  for which the invoices were created. how do we display the list in a classical report format considering that the write statement will not work....???

    Hi
    Try thsi......
    You write the code in some Zreport of your own and from your ALV program pass the values to this ZReport program. You can pass via 2 ways
    a) Pass via  Export to Memory and Import from Memory ID
    b) Call Submit via Selection Screen and return
    Hope thsi Helps
    Anirban

  • How to PRINT DATA in classical report when ever execute

    Hi,
    All ABAP experts,
         I am updating PM work order in IW32 by using BADI, with addition to success or error log i need to display data in basic list and also system has to print that data automatically by using system's default printer. User can not press print button in basic list because sometimes this program will schedule in background, due to this user wants see upload results in a print out.
             I don’t know how to write logic to get output like this. Please can anyone share how to write logic for this issue. 
    Before posting this issue i search in forms but I didn’t get appropriate solution.
    Thanks in advance and any sort of help will appreciate highly.

    Hi,
    Try with this piece of code
    Declaration of local constants
      CONSTANTS :  lc_paart LIKE sy-paart VALUE 'X_65_132',  " Paper Format
                   lc_locl  TYPE sypdest VALUE 'LOCL'.       " Destination
        MOVE 'X' TO v_print.
    Setup the Print Parmaters
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          authority              = space
          immediately            = v_print
          new_list_id            = c_x
          no_dialog              = c_x
          user                   = sy-uname
        IMPORTING
          out_parameters         = v_print_parms
        EXCEPTIONS
          archive_info_not_found = 1
          invalid_print_params   = 2
          invalid_archive_params = 3
          OTHERS                 = 4.
      IF sy-subrc NE 0.
        CLEAR : v_print_parms.
      ENDIF.
    The printer destination has to be  set up
      IF v_print_parms-pdest = space.
        v_print_parms-pdest = lc_locl.
      ENDIF.
    Explicitly set line width, and output format so that
    the PDF conversion comes out OK
      v_print_parms-linsz = c_linsz.
      v_print_parms-paart = lc_paart.
    Regards,
    nagaraj

  • Report writer totals not displayed.

    Hi Gurus,
    We included a Set in a Report .. Which includes G/L account(RACCT) from GLT1 table. Just by including the "Set" in the Report... The totals row(just formula) is emptied out ...
    Will the enhancements or patches help this .. Since this is working fine in Dev system.. but has problem only with PRD system.
    Thanks,
    YGB

    ANSWERED BY ME

  • How to print logo in printout using classical report.

    Hello Friends,
    By using below code i am displaying logo in output using Classical report.
    What my problem is it is not displaying in print out.
    Please help. or else tell me how to print logo in classical report as well as output print out.
    DATA: docking TYPE REF TO cl_gui_docking_container,
          picture_control_1 TYPE REF TO cl_gui_picture,
          url(256) TYPE c ,
          query_table LIKE w3query OCCURS 1 WITH HEADER LINE,
          html_table LIKE w3html OCCURS 1,
          return_code LIKE w3param-ret_code,
          content_type LIKE w3param-cont_type,
          content_length LIKE w3param-cont_len,
          pic_data LIKE w3mime OCCURS 0,
          pic_size TYPE i,
          repid LIKE sy-repid.
    repid = sy-repid.
    START-OF-SELECTION.
      CREATE OBJECT picture_control_1
        EXPORTING
          parent = docking.
      CHECK sy-subrc = 0.
      CALL METHOD picture_control_1->set_3d_border
        EXPORTING
          border = 5.
      CALL METHOD picture_control_1->set_display_mode
        EXPORTING
          display_mode = cl_gui_picture=>display_mode_stretch.
      CALL METHOD picture_control_1->set_position
        EXPORTING
          height = 100
          left   = 700
          top    = 1
          width  = 200.
      "Position
      IF url IS INITIAL.
        REFRESH query_table.
        query_table-name = '_OBJECT_ID'.
        " Logo Name
        query_table-value = 'ENJOYSAP_LOGO'.
        APPEND query_table.
        CALL FUNCTION 'WWW_GET_MIME_OBJECT'
          TABLES
            query_string        = query_table
            html                = html_table
            mime                = pic_data
          CHANGING
            return_code         = return_code
            content_type        = content_type
            content_length      = content_length
          EXCEPTIONS
            object_not_found    = 1
            parameter_not_found = 2
            OTHERS              = 3.
        CALL FUNCTION 'DP_CREATE_URL'
          EXPORTING
            type     = 'image'
            subtype  = cndp_sap_tab_unknown
            size     = pic_size
            lifetime = cndp_lifetime_transaction
          TABLES
            data     = pic_data
          CHANGING
            url      = url
          EXCEPTIONS
            OTHERS   = 1.
      ENDIF.
      CALL METHOD picture_control_1->load_picture_from_url
        EXPORTING
          url = url.
      WRITE : /'Classical Report Logo'.
    Regards,
    Phaneendra
    Edited by: phaneendra punukollu on Dec 31, 2009 11:38 AM
    Code Formatted by: Alvaro Tejada Galindo on Jan 4, 2010 4:52 PM

    Hello Nidhi,
    Thanks for your sugessition.
    Actual we have data from IDOCS and it is maintained in Ztables
    and need to dispaly in report ( Service centre - Warranty data ).
    The report is completed. So again going to Script means waste of time for us.
    So Plz help me  if possible in Classical report.
    Regards,
    Phaneendra

  • Logo not printing in classical report

    hello friends,
    i have displayed logo in classical report but while taking printout its not showing any image in printout.
    pls suggest.
    Regards,
    Sunny

    Hi Sunny,
    Printing logo is not possible in classical using write statments, but it is possible using ALV grid.
    Still you can refer to these links:-
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/9ba5061c-0901-0010-2da8-9a0ac9a313c4
    Re: Logo in Report
    Hope this solves your problem.
    Thanks & Regards,
    Tarun Gambhir

  • Second Printed Page of a Report Is Corrupted As Well the Report View When Focus Is Returned To It

    I am having a problem with a report in Access 2010. The report detail has a linked subreport in it. I build a query dynamically for both the report and subreport. There is a form that builds the queries and then displays the report in Report View. Everything
    is displayed correctly. In this view I have a command button that will print the report using “DoCmd.RunCommand acCmdPrint.”The printed report’s first page is correct. The second page has #error for all the fields for next record detail and that is it. At
    this point, there are still multiple records to print. When focus is returned to the Print View, it is corrupted and usually freezes.
    If after the Report View is displayed, I right click on the header and choose to display the Print Preview, all pages are displayed correctly. If I right click again, and select print, all pages are printed correctly, and the Report View is not corrupted.
    To see if I had corrupted the database, I imported everything into an empty database. After compiling the code, the behavior did not change at all.
    Once I place the database into production, everything will be driven by command buttons on the forms and reports so the left-click drop-down menus or any ribbons will not be available.
    Does anyone know what is happening?
    Thanks, in advance.

    Hi Ray,
    I failed to reproduce this issue in my test environment (Access 2013).
    Steps:
    #1 Create a table with the attachment field, add multiple records
    #2 Create a report with the table
    #3 Click Print Preview of the report, it worked correctly
    Can you also reproduce this issue in a newly created database, if no, I will suspect that issue is related to the specific database file (data issue or database is corrupted). You could use the link below to compact and repair the database.
    Compact and repair a database
    If the methods above do not work, it would be helpful if you could share us a simple demo to reproduce this issue. Due to privacy issues, I will also suggest you submitting a professional support incident to get the 1-1 support service so that Microsoft
    engineers can work closely with you to resolve this issue.
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

Maybe you are looking for