‎2009 Jul 02 3:42 PM
Hi all,
I am using ALV oops for displaying table.
CL_GUI_ALV_GRID->set_table_for_first_display.
I have cretaed an Custom Container for this.
Now scenario is like, First i have to display normal classical report when user double click on classical report
it will show alv grid on other screen depending on the row of report user clicks i am picking data and showing it on other screen as ALV grid.
First time its showing correct data when i press back on ALV grid screen and came back on report screen and select other row and double click its not showing anything ..
Please help.
Its required very urgently by client.
Thanks in advance..
Harsh
‎2009 Jul 02 3:50 PM
Hi,
Please debug and see where r u going wrong.
After u click for second time in the screen called again with new data???
Use statement LEAVE TO SCREEN <screen number> after clicking on clasical report.
Thanks,
Vinod.
‎2009 Jul 02 3:52 PM
Hi,
Check whether data is getting fetched on the double clicking on the row of the Classical report.
‎2009 Jul 02 3:53 PM
Yes i debug the code its giving me the new data..
Even the CAll method sy-subrc is coming out to be 0.
‎2009 Jul 02 3:53 PM
r u clearing the work area and passing the second row data correctly. check this in debugging.
also try to use LEAVE TO SCREEN.
Thanks
Kiran
‎2009 Jul 02 4:00 PM
Hi,
Check whether the internal table in which you are passing data to the grid has the correct data.
Do not call the method set_table_for_first_display once again.
Instead call the method REFRESH_TABLE_DISPLAY.
Call the method SET_TABLE_FOR_FIRST_DISPLAY only once when the ALV grid object is created.
Call the method flush of the class cl_gui_cfw in the PBO after the grid is displayed; after the method SET_TABLE_FOR_FIRST_DISPLAY
Check if this works.
Regards,
Ankur Parab
‎2009 Jul 02 4:26 PM
Thanks Ankur so much..
I thiink problem was that i was calling the method again ..
Instead now i use Refresh_table_display,
Thanks All for your Kind Inputs.