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

How to display an attribute of a class, which belongs to a previous step in the stack

hagit
Active Participant
0 Likes
545

Hello Experts,

To display a variable, which belongs to a pervious step in the stack, I can write (<program name>)<variable name>

I want to display an attribute (public) of a class, which belongs to a previous step in the stack.

I tried  (<name of the class>=============CP) <attribute name>    for example (zcl=============CP)<attribute name>

But it did not work

I also tried (<name of the class>=============CP)<name of the class>=> <attribute name>

But in vain.

Do you have any suggestion?

Thankyou

Hagit

Accepted Solutions (0)

Answers (1)

Answers (1)

ulrich_mhrke
Participant
0 Likes

For instance attributes, you need the instance of the class to access an attribute. In my opinion, accessing it using only the name of the class and attribute does not work.
For static attributes, you can write <class name>=><attribute name>.

hagit
Active Participant
0 Likes
@ulrich_mhrke thank you for your replay.
hagit
Active Participant
0 Likes
@ulrich_mhrke, So how can I access the instance of the class (for instance attribute)?
ulrich_mhrke
Participant
0 Likes
@hagit You may be able to remember the instance of the class. Perhaps by implementing an extension (implicit extension options at the beginning and end of methods). There you could remember the instance as a static attribute of your own class.
hagit
Active Participant
0 Likes
@ulrich_mhrke thank you for your replay. How can I remember the instance of the class? what is the statement for it?