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

passing values between methods in the same class

Former Member
0 Likes
623

Hi,

How to pass internal tables or values between methods in the same class.

How to check if the internal method in another method is initial or not.

How to see if the method has already been executed.

Thanks.

1 REPLY 1
Read only

Former Member
0 Likes
505

Just declare the internal table as an attribute in the class - that way every method in this class has access to it.

Since any method has access to all class attributes you can easily check if the internal table is initial or not.

I am not aware of any standard functionality if a method has already been executed or not, one way would be to declare a class attribute for each method and set it once the method has been executed. That way every method in that class would know which method has already been executed or not.

Hope that helps,

Michael