on ‎2021 Sep 15 2:17 PM
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.
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
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:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 7 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.