‎2006 Jan 28 9:00 AM
hi friends this is surekha.
i posted 1 query about oss note 2 days back.thank u for ur response.
now i have a doubt.
how to set the logo in events block at alv.
Regards,
surekha.
‎2006 Jan 31 5:16 AM
Hi,
Look at the sample code............
**************
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 = text-t06
it_sort = gt_sort[]
i_default = 'X'
i_save = 'U'
is_variant = gt_variant
it_events = gt_events
TABLES
t_outtab = ITAB.
clear itab.
endif.
----
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-t04." Report Description
append wa to header.
wa-typ = 'S'.
write sy-datum to wa-info MM/DD/YYYY.
concatenate text-t03 wa-info into wa-info separated by space.
append wa to header."Current Date
wa-typ = 'S'.
concatenate text-t02 sy-UNAME into wa-info separated by space.
append wa to header." User Name
wa-typ = 'S'.
concatenate text-t01 sy-repid into wa-info separated by space.
append wa to header."Report Name
***********"LOGO IN TOP OF PAGE
call function 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = header
i_logo = 'ENJOYSAP_LOGO1'.
endform.
Thanks.
If this helps you reward with points.
‎2006 Jan 28 9:17 AM
hi,
Just go through the demo programs bcalv* series it will solve all your queries.
regards,
animesh
‎2006 Jan 28 9:46 AM
Hi,
you can set the logo in top_of_page event using
FM <b>REUSE_ALV_COMMENTARY_WRITE</b>
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = lt_list_commentary
i_logo = 'ENJOYSAP_LOGO'
i_end_of_list_grid = space.you need to call this in top_of_page event of alv.
for reference check this program <b>BCALV_TEST_FULLSCREEN_EVENTS</b>
regards
vijay
‎2006 Jan 28 9:47 AM
Hi Surekha,
When you are calling REUSE_ALV_GRID_DISPLAY function module you can display the image in top of the report.
1. Diclare GT_Event internal table of type slis_t_event.
2. Call fucntion module REUSE_ALV_EVENTS_GET to get the availble events for your ALV type.
3. update form field of GT_Event with 'PAGE_TOP'(for ex:)where the name = slis_ev_top_of_page.
4. Inside PAGE_TOP form you call function module REUSE_ALV_COMMENTARY_WRITE.
5. Pass the image to i_logo parameter.
Still if you are not comfortble go through program
BCALV_FULLSCREEN_DEMO.
Meeru telugu ammaayi anukunta?
Regards
Jaker.
‎2006 Jan 31 4:46 AM
‎2006 Jan 31 5:16 AM
Hi,
Look at the sample code............
**************
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 = text-t06
it_sort = gt_sort[]
i_default = 'X'
i_save = 'U'
is_variant = gt_variant
it_events = gt_events
TABLES
t_outtab = ITAB.
clear itab.
endif.
----
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-t04." Report Description
append wa to header.
wa-typ = 'S'.
write sy-datum to wa-info MM/DD/YYYY.
concatenate text-t03 wa-info into wa-info separated by space.
append wa to header."Current Date
wa-typ = 'S'.
concatenate text-t02 sy-UNAME into wa-info separated by space.
append wa to header." User Name
wa-typ = 'S'.
concatenate text-t01 sy-repid into wa-info separated by space.
append wa to header."Report Name
***********"LOGO IN TOP OF PAGE
call function 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = header
i_logo = 'ENJOYSAP_LOGO1'.
endform.
Thanks.
If this helps you reward with points.
‎2006 Feb 01 6:02 AM
Hi Deepak
Thanks.
u have cleared my doubt.
what is the purpose od i_save = 'u'.
regards,
surekha.
‎2006 Feb 01 6:40 AM
Hi,
I_SAVE is used to save the LAYOUT settings.
I_SAVE Determines the options available to the user for saving a layout.
'X': global saving only
'U': user-specific saving only
'A': corresponds to 'X' and 'U'
SPACE: no saving
Thanks.
If this helps you reward with points.