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

ALV Grid OOPS error

Former Member
0 Likes
724

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

6 REPLIES 6
Read only

vinod_vemuru2
Active Contributor
0 Likes
628

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.

Read only

Former Member
0 Likes
628

Hi,

Check whether data is getting fetched on the double clicking on the row of the Classical report.

Read only

0 Likes
628

Yes i debug the code its giving me the new data..

Even the CAll method sy-subrc is coming out to be 0.

Read only

Former Member
0 Likes
628

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

Read only

Former Member
0 Likes
628

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

Read only

0 Likes
628

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.