cancel
Showing results for 
Search instead for 
Did you mean: 

Method Parameter, Associated type: Node of context ?

Former Member
0 Kudos

Hi Guys,

I just would like to specify a GETTER with a return PARAMETER typed like that:

Unfortunately, the associated type: "ELEMENT_TROMBI" does not work.

Do you know, how can I specify the returned type without creating a local structure mapped on the node again?

Thank you all.

Rachid.

Accepted Solutions (0)

Answers (2)

Answers (2)

ramakrishnappa
Active Contributor
0 Kudos

Hi Rachid,

You cannot use the context node as type in method parameters as it expects DDIC type.

I would suggest to use either

1. generic type ref to "DATA" as associated type in method signature and convert data to your context node type wherever required.

          assign ro_data->* to <ft_data>. " Here <ft_data> is field symbol

    

2. DDIC structure

Regards,

Rama

Gowtham
Contributor
0 Kudos

Hi Rachid,

I Hope it wont be possible to export the data without creating structure else you can export the values as a single parameter.


- Gowtham