Skip to Content
author's profile photo Former Member
Former Member

Display images in ALV

Hi ,

Can anybody help me on how to display an image in the alv commentry area.

I need to display a company logo (image) along with the alv report so that when the print out of the report is taken both the logo and report details appear in the print out.

Best Regards,

Kiran

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 05:22 AM

    Hi,

    Check the program BCALV_FULLSCREEN_DEMO for how to display logo using the FM REUSE_ALV_COMMENTARY_WRITE

    Thanks,

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 09, 2007 at 05:19 AM

    hi,

    <b>chk this link.

    http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_rephead.htm>

    It is possible to print logo 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.

    Regards

    Anver

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      step1---

      U can upload the logo's by following steps

      1. Go to Transaction OAER,

      2. Give Class Name as PICTURES

      3 Class type as OT

      4. Object Key as the name of the Object u want to specify

      5. Upon execution u wd be promted to give the file path details. Just upload which ever logo u want to display

      6. Now u can use the same name in u r FM

      step2-----
      
      you need to have event for TOP_OF_PAGE, and also this works only in case of Grid not in ALV LIST.
      
      FORM TOP_OF_PAGE.
       
        CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
             EXPORTING
                  I_LOGO             = 'ENJOYSAP_LOGO'
                  IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.
      ENDFORM.

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 05:23 AM

    DATA: t_header TYPE slis_t_listheader,

    wa_header TYPE slis_listheader,

    l_date LIKE sy-datum.

    l_date = sy-datum - 1.

    • Title

    wa_header-typ = 'S'.

    wa_header-key = 'Report : '.

    wa_header-info = 'TEST'.

    ENDIF.

    APPEND wa_header TO t_header.

    CLEAR: wa_header.

    wa_header-typ = 'S'.

    wa_header-key = 'Date : '.

    CONCATENATE l_date+6(2) '.'

    l_date+4(2) '.'

    l_date(4) INTO wa_header-info. "todays date

    APPEND wa_header TO t_header.

    CLEAR: wa_header.

    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

    EXPORTING

    it_list_commentary = t_header.

    • i_logo = 'Z_LOGO'.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.