cancel
Showing results for 
Search instead for 
Did you mean: 

Can we import classes explicitly into webdynpro

Former Member
0 Kudos

i have created a class in se24 , and i need to call this class in my webdynpro component.how can i call ? how can i access the methods of that class ? If i can what should my exporting & importing parameters ?

My case is...

I have created a ui with a selection screen in webdynpro

how can i use the ui components to append a table ,the logic of selection of data should be written method user defined class, this clas i want to call in the wedynpro how to do it.

plz needed urgently

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

you can access your class without declaring it assistance class.

declare an attribute in componenet controller of type your z-class( say zabc ).

Instantiate it in the component controller's WDDOINIT method.now you can access it throughout your component.

if the attribute name you declared is <b>XYZ</b>,then do the below code in the WDDOINIT method of the controller:

if wd_this->xyz is initial.

create object wd_this->xyz.

endif.

Former Member
0 Kudos

Hi,

You can have the Class declared as the Assistance Class in Webdynpro Component. For this go to the WD Component and enter the class name you want to use in the "Assistance Class" field. By this method, you can use all the methods of your assistance class in your WD component.

Regards,

Nirupamaa.