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: 

Regarding two containers in alv screen

Former Member
0 Kudos

hi,

i have developed two alv reports,in which if we click on first alv report billing number we should display 2nd alv report item details in second container, but the problem is that for the first time when i click on billing number its item details are displayed properly, whereas for the second time for different billing number the same item details are displayed of the first billing number.

Can any one help me to solve this number.

2 REPLIES 2

Former Member
0 Kudos

hi

Refresh the table

Thanks

Edited by: dharma raj on Jun 29, 2009 5:53 PM

MarcinPciak
Active Contributor
0 Kudos

Hi,

Try this way: each time you click on first alv, first initialize reference variable for container and then recreate the object for that container using below logic:


"handle click method in first ALV
  gr_custom_conatiner2->free( ).   "gr_custom_container2 is reference variable for second container
  clear gr_custom_container2.

 
   "now recreate the object
    CREATE OBJECT g_custom_container2
       EXPORTING
         container_name              = 'CUSTOM_AREA'.

    CREATE OBJECT gr_alv
        EXPORTING
           i_parent          =  g_custom_container2.
 
    CALL METHOD g_alv_grid_ref->set_table_for_first_display
      ...

This will synchronize ABAP object with frontend proxy object, thereby provide correct entry next time.

Regards

Marcin