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: 

Get data in OOALV object

milu123456
Member
0 Kudos

Now i had an OOALV object as input parameter.

I want to get data form this object.

What should I do?

2 REPLIES 2

Sandra_Rossi
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" site:sap.com

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.

raymond_giuseppi
Active Contributor

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

(Inheritance, superclass, etc.)