Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Logo in ALV grid display

Former Member
0 Kudos

Hi all ,

how can i add logo to my alv grid display

i have created a logo in se 78

and i have given the logo name in reuse_alv_commentryl_write FM

but it is not displaying logo

can anybody help me

thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

U have to upload logo using OAER t code, and call that in reuse_alv_commentry_write, then it will work.

Regards,

Pavan

9 REPLIES 9

Former Member
0 Kudos

Hi,

U have to upload logo using OAER t code, and call that in reuse_alv_commentry_write, then it will work.

Regards,

Pavan

Former Member
0 Kudos

Hi ,

DATA : gt_list_top_of_page TYPE slis_t_listheader.

FORM top_of_page.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

i_logo = 'ENJOYSAP_LOGO' <----- write the name of the logo in caps

it_list_commentary = gt_list_top_of_page.

ENDFORM.

Plz let me know if its working.

former_member632729
Contributor

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

Hi,

You try this,

call function 'REUSE_ALV_COMMENTARY_WRITE'

exporting

it_list_commentary = header

i_logo = 'logo_name'.

Regards,

Joan

abap_team
Explorer
0 Kudos

Hi Farha

Please use the lik below to find the solution.

I hope it will help you.

Former Member
0 Kudos

Hi ,

Firstly you need to populate the Events table .

Here you need to check for the Event with name "TOP_OF_PAGE".Assign a name to the parameter WA_EVENT-FORM . For instance here it si given as FORM_TOPOFPAGE.

form PREPARE_EVENTS .

CALL FUNCTION 'REUSE_ALV_EVENTS_GET'

EXPORTING

I_LIST_TYPE = 0

IMPORTING

ET_EVENTS = it_event

EXCEPTIONS

LIST_TYPE_WRONG = 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.

read table it_event into wa_event with key name ='TOP_OF_PAGE'.

if sy-subrc = 0.

wa_event-form = 'FRM_TOPOFPAGE'.

modify it_event from wa_event

transporting form where name = wa_event-name.

endif.

endform.

In the next step you need to have a FORM with name FORM_TOPOFPAGE.Here you can use the FM REUSE_ALV_COMMENTARY_WRITE and specify teh Logo Name for the parameter I_LOGO.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

  • it_list_commentary =

I_LOGO = 'LOGO_NAME'

  • I_END_OF_LIST_GRID =

  • I_ALV_FORM =

.

Endform.

And then in the FM for ALV display REUSE_ALV_GRID_DISPLAY, pass the events table that you have populated .( Parameter IT_EVENTS)

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

  • I_INTERFACE_CHECK = ' '

  • I_BYPASSING_BUFFER = ' '

  • I_BUFFER_ACTIVE = ' '

I_CALLBACK_PROGRAM = v_repid

  • I_CALLBACK_PF_STATUS_SET = ' '

  • I_CALLBACK_USER_COMMAND = ' '

  • I_CALLBACK_TOP_OF_PAGE = ' '

  • I_CALLBACK_HTML_TOP_OF_PAGE = ' '

  • I_CALLBACK_HTML_END_OF_LIST = ' '

  • I_STRUCTURE_NAME =

  • I_BACKGROUND_ID = ' '

  • I_GRID_TITLE =

  • I_GRID_SETTINGS =

  • IS_LAYOUT =

IT_FIELDCAT = IT_FIELDCAT

  • IT_EXCLUDING =

  • IT_SPECIAL_GROUPS =

  • IT_SORT =

  • IT_FILTER =

  • IS_SEL_HIDE =

  • I_DEFAULT = 'X'

  • I_SAVE = ' '

  • IS_VARIANT =

IT_EVENTS = IT_EVENT

  • IT_EVENT_EXIT =

  • IS_PRINT =

  • IS_REPREP_ID =

  • I_SCREEN_START_COLUMN = 0

  • I_SCREEN_START_LINE = 0

  • I_SCREEN_END_COLUMN = 0

  • I_SCREEN_END_LINE = 0

  • I_HTML_HEIGHT_TOP = 0

  • I_HTML_HEIGHT_END = 0

  • IT_ALV_GRAPHICS =

  • IT_HYPERLINK =

  • IT_ADD_FIELDCAT =

  • IT_EXCEPT_QINFO =

  • IR_SALV_FULLSCREEN_ADAPTER =

  • IMPORTING

  • E_EXIT_CAUSED_BY_CALLER =

  • ES_EXIT_CAUSED_BY_USER =

TABLES

t_outtab = IT_MARA

  • EXCEPTIONS

  • PROGRAM_ERROR = 1

  • OTHERS = 2

.

In this manner you will ba able to see the Logo in teh dispaly.

Regards,

Radhika.

Former Member
0 Kudos

Hi,

Call the fm 'REUSE_ALV_COMMENTARY_WRITE'

pass the parameters 'it_list_commentary = header' and 'I_LOGO = logo name'.

Regards,

Jyothi CH.

Former Member
0 Kudos

answered