cancel
Showing results for 
Search instead for 
Did you mean: 

Storing object references inside a context ?

Former Member
0 Kudos

Dear Developers,

<i>[ I am learning WebDynPro for ABAP. Please be indulgent with my question ]</i>

I would like to create an <u>Interface Component</u> which would be responsible for creating ABAP OO. It would allow other components to use these objects.

So I bet I would have to create methods for the <u>Interface Controller</u> of the <u>Interface Component</u> (like create_object, get_object...). The object should be stored locally in the <u>Interface Controller</u> and I supposed the object reference should be living in the <u>context</u>.

But it seems that <u>contexts</u> cannot store references to objects. How can I solve this problem?

Is my understanding of the WDP concepts wrong? Which would be WDP way of sharing ABAP Objects between different components?

Sincerely,

Olivier MATT

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Olivier.

If you add a new attribute to a context node set the type assignment to

type ref to .. .

But if youi create an interface component the implementation of the methods have to be done by the implementing components, just like in OO.

Cheers,

Sascha

Message was edited by:

Sascha Dingeldey