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

Unable to access Class Attributes data

Former Member
0 Likes
695

Hi, In my Class I have a private instance attribute T_OUTTAB of Type Ref To DATA. In one of my Methods(M1) I'm filling this attribute in the below way. GET REFERENCE OF e_table INTO t_outtab. E_TABLE is exporting parameter of Method M1 of Type STANDARD TABLE. When I'm accessing this class attribute T_OUTTAB in another Method(M2) which is called separately, there is no data in it, instead its showing some junk data as below. "FREED STACK:{A:3*\TYPE=%_T00004S00000000O0000023808} " This method M2 has exporting parameter ET_OUTPUT of Type STANDARD TABLE. I want to move T_OUTTAB data into Method M2's exporting parameter ET_OUTPUT. Could you please help me how to access T_OUTTAB data in another Method and move Class Attribute data(of Type Ref To DATA) to Method's Exporting parameter(of Type STANDARD TABLE). Thanks, Adithya M.

Hi, In my Class I have a private instance attribute T_OUTTAB of Type Ref To DATA. In one of my Methods(M1) I'm filling this attribute in the below way. GET REFERENCE OF e_table INTO t_outtab. E_TABLE is exporting parameter of Method M1 of Type STANDARD TABLE. When I'm accessing this class attribute T_OUTTAB in another Method(M2) which is called separately, there is no data in it, instead its showing some junk data as below. "FREED STACK:{A:3*\TYPE=%_T00004S00000000O0000023808} " This method M2 has exporting parameter ET_OUTPUT of Type STANDARD TABLE. I want to move T_OUTTAB data into Method M2's exporting parameter ET_OUTPUT. Could you please help me how to access T_OUTTAB data in another Method and move Class Attribute data(of Type Ref To DATA) to Method's Exporting parameter(of Type STANDARD TABLE). Thanks, Adithya M.

1 REPLY 1
Read only

naimesh_patel
Active Contributor
0 Likes
509

You wrote:

When I'm accessing this class attribute T_OUTTAB in another Method(M2) which is called separately, there is no data in it, instead its showing some junk data as below. "FREED STACK:{A:3*\TYPE=%_T00004S00000000O0000023808} " This method M2 has exporting parameter ET_OUTPUT of Type STANDARD TABLE.

How did you decide this is junk value? It is valuable information that, your data object from which you are doing GET REFERENCE is no more available in the global memory. You MUST have Global variable to do the GET REFERENCE.

Thanks,

Naimesh Patel