cancel
Showing results for 
Search instead for 
Did you mean: 

Abap error when using Web Dynpro assistance class

Former Member
0 Kudos

Hello All,

I created Web Dynpro component with assistance class.

On the component controller I can see the attribute "WD_ASSIST".

I also can use Goto -> text symbols and create net text key.

But when I tried to read the text:

wd_assist->get_text( '001' ).

There is abap error:

Method get_text is unknown protected or private.

I can see the method get_text inside my assistance class like this:

IF_WD_COMPONENT_ASSISTANCE~GET_TEXT visibility - public.

I think I missed something while creating the assistance class?

Thanks in advanced for the help.

Nir

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Your method call should be:

wd_assist->IF_WD_COMPONENT_ASSISTANCE~get_text( '001' ).

You have to supply the interface name or go into the class definition and create a public alias for that method.

Answers (0)