cancel
Showing results for 
Search instead for 
Did you mean: 

Referencing a Contect Nodes Structure in a Methods Signature??

Former Member
0 Kudos

Hi All,

I am implementing a method in the Component Controller and - as always - I am referencing a Context Nodes Structure as follows:

IT_SOME_PARAM Importing Type IG_COMPONENTCONTROLLER=>ELEMENTS_SOME_NODE

in the signature of the mehtod.

The thing is, if I declare the method as an "Interface" method (a method that can be called from outside of the component), the framework tells me that it doesn't know the type IG_COMPONENTCONTROLLER=>ELEMENTS_SOME_NODE anymore.

What is going on there and how can I declare a parameter of the type of a node in an interface method?

THANKS, Johannes

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

IG_COMPONENTCONTROLLER is a local class within the scope of the component. As so as you use the interface option, this method and its interface must be accessible to other components. Therefore any local declarations (like those of the context) are not visible to other components. Instead of declaring the method interface from the context definition, you will need to use a data dictionary definition that matches the context definition.

Former Member
0 Kudos

Yeah, that is what I thought.. I was trying to avoid this, but now I'll do it this way. Thanks.

Answers (0)