2014 May 13 12:41 PM
Hi Experts
I have a small doubt in object model alv...
Is there any chance to create logo in alv using OBJECT MODEL (CL_SALV_TABLE)..
Regards,
Vamsi
Hi Experts
I have a small doubt in object model alv...
Is there any chance to create logo in alv using OBJECT MODEL (CL_SALV_TABLE)..
Regards,
Vamsi
2014 May 13 12:49 PM
Hi Vamsi
I think you can place logo using Dock-Containers in ALV. And I believe that better use class 'CL_GUI_ALV_GRID' for using Dock-Container.
First you declare a screen and create a container in that.
Then Split the container using CL_GUI_SLIPTTER_CONTAINER class.
Then display logo in one container and ALV in another. Just adjust the size and position of containers as per the requirement.
Regards,
Vijay
2014 May 13 1:02 PM
means..... there is no chance to create logo in alv using object model right....
2014 May 13 2:26 PM
Hey, check this example code:
METHOD alv_set_header.
DATA: lv_grid TYPE REF TO cl_salv_form_layout_grid, "Header Layout
lv_label TYPE REF TO cl_salv_form_label, "Label
lv_logo TYPE REF TO cl_salv_form_layout_logo, "Logo
lv_text TYPE REF TO cl_salv_form_text. "Text
CREATE OBJECT lv_grid.
lv_label = lv_grid->create_label(
text = 'Execution Date:'(008)
row = 1
column = 1 ).
lv_text = lv_grid->create_text(
text = sy-datum
row = 1
column = 2 ).
lv_label = lv_grid->create_label(
text = 'Execution Time:'(009)
row = 2
column = 1 ).
lv_text = lv_grid->create_text(
text = sy-uzeit
row = 2
column = 2 ).
lv_label = lv_grid->create_label(
text = 'Responsible:'(010)
row = 3
column = 1 ).
lv_text = lv_grid->create_text(
text = sy-uname
row = 3
column = 2 ).
lv_grid->add_row( ).
lv_grid->add_row( ).
lv_grid->add_row( ).
lv_label = lv_grid->create_label(
text = 'Total Records:'(011)
row = 5
column = 1 ).
lv_text = lv_grid->create_text(
text = me->mv_total
row = 5
column = 2 ).
lv_label->set_label_for( lv_text ).
CREATE OBJECT lv_logo.
lv_logo->set_left_content( lv_grid ).
lv_logo->set_right_logo( 'CUSTOMER_LOGO' ) .
me->mo_salv_table->set_top_of_list( lv_logo ).
ENDMETHOD. "alv_set_header
2014 May 14 5:58 AM
Hi Renan
thank u for instance reply....
i will try this.....
And one more thing is here ur using the "CUSTOMER_LOGO" right
Is this logo uploading using OAER Tcode or any thing else......
Thanks
vamc......
2014 May 16 7:14 PM