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

logo inclding in ALV

hai all

i am working on ALV report,,

in this report i have to include a logo in top of report

please help me how to do in ALV,,,

by

raj.K

Add comment
10|10000 characters needed characters exceeded

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 26, 2006 at 10:04 AM

    check sample program BALVST02_GRID

    regards

    prabhu

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 26, 2006 at 10:05 AM

    Hi,

    Look at the sample code to display LOGO.

    **********************

    call function 'REUSE_ALV_GRID_DISPLAY'

    exporting

    i_callback_program = i_repid

    • i_callback_user_command = 'USER_COMMAND_PERNR'

    it_fieldcat = header

    is_layout = gt_layout

    i_callback_top_of_page = 'TOP-OF-PAGE1'

    i_grid_title = xyz

    it_sort = gt_sort[]

    i_default = 'X'

    i_save = 'U'

    is_variant = gt_variant

    it_events = gt_events

    tables

    t_outtab = t_output.

    clear t_output.

    *****************

    ----


    • Form TOP-OF-PAGE1

    ----


    form top-of-page1.

    data: header type slis_t_listheader,

    wa type slis_listheader. "infield like wa-info, nline type n.

    • TITLE AREA

    wa-typ = 'S'.

    wa-info = text-h04.

    append wa to header.

    wa-typ = 'S'.

    write sy-datum to wa-info mm/dd/yyyy.

    concatenate text-h03 wa-info into wa-info separated by space.

    append wa to header.

    wa-typ = 'S'.

    concatenate text-h02 sy-uname into wa-info separated by space.

    append wa to header.

    wa-typ = 'S'.

    concatenate text-h01 sy-repid into wa-info separated by space.

    append wa to header.

    ********" LOGO

    call function 'REUSE_ALV_COMMENTARY_WRITE'

    exporting

    it_list_commentary = header

    i_logo = 'ENJOYSAP_LOGO'.

    *********" LOGO

    endform.

    Here in TOP-OF-PAGE form it will show you the Prog name,Date, User Name.

    Just you need to give the text in it.

    You can refer the below link also.

    http://www.sapdevelopment.co.uk/reporting/alv/alvgrid.htm

    Thanks.

    If this helps you reward with points.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 26, 2006 at 10:16 AM

    Hi Kumar,

    Try this:

    call function 'REUSE_ALV_COMMENTARY_WRITE'

    exporting

    it_list_commentary = header

    i_logo = 'ENJOYSAP_LOGO'.

    Add comment
    10|10000 characters needed characters exceeded