Application Development and Automation 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: 
Read only

Logo in Object Model ALV ?

vamsilakshman_pendurti
Active Participant
1,402

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

5 REPLIES 5
Read only

VijayaKrishnaG
Active Contributor
0 Likes
1,155

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

Read only

0 Likes
1,155

means..... there is no chance to create logo in alv using object model right....

Read only

Former Member
1,155

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

Read only

0 Likes
1,155

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

Read only

0 Likes
1,155

Yes, refers a graphic (SE78)