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: 

How to run Custom Container in BackGround

vikash_pathak
Participant
0 Kudos

Hi Experts,

I have Created oops Alv using Custom Container

now my requirement is that i want to run this Custom Container

in Background, So how can i do it

Thanks

Vikash

2 REPLIES 2

aarif_baig
Active Participant
0 Kudos

Hi Vikash,

                 you can use class cl_salv_table without using custom container ,like below

DATA: ispfli TYPE TABLE OF spfli.

DATA: gr_table TYPE REF TO cl_salv_table.

data: gr_funct type ref to cl_salv_functions.

data: gr_columns type ref to cl_salv_columns_table.

data: gr_column type ref to CL_SALV_COLUMN_table.

START-OF-SELECTION.

  SELECT * INTO TABLE ispfli FROM spfli.

  TRY.

      CALL METHOD cl_salv_table=>factory

        IMPORTING

          r_salv_table = gr_table

        CHANGING

          t_table      = ispfli.

    CATCH cx_salv_msg .

  ENDTRY.

  gr_funct = gr_table->get_functions( ).

  gr_funct->set_all( Abap_True ).

  gr_columns = gr_table->get_columns( ).

  gr_column ?= gr_columns->Get_Column( 'DISTANCE' ).

  gr_column->SET_VISIBLE( abap_false ).

  gr_table->display( ).

0 Kudos

Hi,

this issue has already been discussed for class CL_GUI_ALV_GRID - you could use a docking container:

Regards,

Ulrich