cancel
Showing results for 
Search instead for 
Did you mean: 

How to call method in web dynpro for ABAP

Former Member
0 Kudos

Hi All,

I created a z class and two methods to get the data.

I created a WE4A application. Now i want to call these methods from my Z calss in the web dynpro ,but i am getting amessage saying 'type zclass is unknown".

when i am trying to declare

data: cl_class type ref to zclass . i am getting above message.

can anyone explain how to call zcalss methods in my application.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

thanks

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

There is nothing special about declaring a class reference or calling a class from WDA. Normal syntax will work. If you are getting an error that your class doesn't exist, then it either is misspelled or (as somone already suggested) not activated.

Former Member
0 Kudos

Hi,

You can call any global class method in WDA via. Wizard.

Even more you can make your class as assistance class and call their methods by wd_assist.

Thanks

Pradeep

Former Member
0 Kudos

Hello,

Just a silly question but did you check if the zclass is activated before using in webdynpro component?

Regards,

Srilatha M