cancel
Showing results for 
Search instead for 
Did you mean: 

Class CL_WD_CUSTOM_EVENT-Method Get_object ,WDP ABAP

Former Member
0 Kudos

Hi ,

I want to know what is the return type of the Method Get_Object of the class CL_WD_CUSTOM_EVENT and how to retrieve it by typecasting it as a required reference object . A code snippet will really help.

Regards

Siddharth

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member183804
Active Contributor
0 Kudos

Hello Siddharth,

the event only carries arbitrary parameters which are set by a WD componen. Normally the access to this parameters is done by a static declaration in the application and casting in the event handler within the generated substitute class-pool.

When you want to access these parameters dynamically (should only be necessary for frameworks) it is better to access them via the attribute 'PARAMETERS'. The value needs to inspected by RTTC (CL_ABAP_TYPEDESCR). But this is not advisable for ordinary components.

Best Regards

Klaus