cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ABAP global class method data access in local class

former_member761924
Participant
0 Likes
4,092

I'm calling an instance public method of a global class from my local class, an internal table is processed and populated inside this method. How can I access this internal table data from my local class?

Ex - data(lo_object) = NEW zcl_xxxx( ).

lo_object->parse_xml( ).

In this Parse_xml method an internal table gt_header is populated, I want to access this table data in my local class.

Note - this method has no returning parameters.

I'm new to ABAP please excuse me if the question is too basic or insensible.

Accepted Solutions (1)

Accepted Solutions (1)

retired_member
Product and Topic Expert
Product and Topic Expert

There is no difference in accessing a global class from a local class or from elsewhere.

Normally, you use local classes as helper classes in global classes and not vice versa.

If you are new to ABAP Objects, you should get used to it by doing simple exercises, you can find in the Web.

In the ABAP documentation, you find the following introduction:

https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abenabap_objects_ovie...

Answers (1)

Answers (1)

FredericGirod
Active Contributor
0 Likes
lo_object->my_beautiful_table 

it does not work ?