cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a method from custom Class in WD Application

Former Member
0 Kudos

Hi,

I wrote a piece of code in method SEARCH for my WD Application.

Instead of diectly callling the method I would like to create a class and then call the method.

How do we proceed?

Do we use SE24 first or can we start creating class from WD application itself?

Rgds

vara

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can use concept of ASSISTANCE CLASS for using custom classes in your Web Dynpro Application.

While creating Web Dynpro Component, just enter the custom class name in Assistance class tab of your component controller & double click. From there you can directly create it & use in your WDA Component.

Regards

Shruti

Former Member
0 Kudos

Thank you all.

Answers (4)

Answers (4)

Former Member
0 Kudos

Check this [Link|http://help.sap.com/saphelp_nw04s/helpdata/EN/43/1f6442a3d9e72ce10000000a1550b0/content.htm]

Former Member
0 Kudos

Refer the standard Component : DEMO_COMMON_ASSISTANCE1

Thanx.

Former Member
0 Kudos

Hi Vara,

Either way it is possible if you are creating from web dynpro then you can create assistance class from component properties there you can write one method and to access that method always you have an instance wd_assist.

From se24 create a class and declare a method. if you declare level of method is instance then you have to create object first in application and then access your method using created instance.

abhimanyu_lagishetti7
Active Contributor
0 Kudos