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.
Showing results for 
Search instead for 
Did you mean: 

Get data in OOALV object

0 Kudos

Now i had an OOALV object as input parameter.

I want to get data form this object.

What should I do?


Active Contributor
0 Kudos

First, search. I can find one potentially good answer posted as a comment in 2022:

"cl_gui_alv_grid" "mt_outtab"

Two ways.

Either you know ABAP Objects well and you can find workarounds to access the protected attribute.

Or you learn how to program with CL_GUI_ALV_GRID, the output table of ALV is being set by the method SET_TABLE_FOR_FIRST_DISPLAY, so you add a break-point to find the place and try to see if there's a way to get the original internal table.

Active Contributor

It's time to revisit your object programming lessons, and rediscover how to access protected attributes of a class

(Inheritance, superclass, etc.)