cancel
Showing results for 
Search instead for 
Did you mean: 

assistance class

vikash_pathak
Participant
0 Kudos

Hi experts,

make me clear What is assistance class in webdynpro .

and where  does it come in webdynpro. and way of use, its advantage and disadvantage??

Thanks

Vikash

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

For each Web Dynpro component, a uniquely assigned assistance class can be created. Creating an assistance class for a component provides the following benefits:

● We can store coding there that is required within the component, but is not linked directly with the layout or with the function of a controller. Method calls of the assistance class are much better from a performance point of view than calls of methods of a Web Dynpro controller.

● The second important function of the assistance class is the management of dynamic texts. Texts that are combined at runtime only and/or contain variables can be stored in the text pool of the assistance class as text symbols.

The assistance class is automatically instantiated when a component is called. The instance is available to each controller of the component through the attribute WD_ASSIST.

● The assistance class may be used by any number of webdynpro components. Therefore an assistance class provides a means of re-using methods, attributes and constants between a number of different components. Originally 'faceless' components were designed to serve this purpose, but in practice assistance classes can achieve the same result

Refer below links for more information

Working with the Assistance Class

Assistance class in Web Dynpro ABAP

Thanks

KH

Answers (1)

Answers (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi Vikash,

An assistance class is just like normal ABAP class but it should inherits from the class CL_WD_COMPONENT_ASSISTANCE.

As WD follows MVC architecture principle, Model viz class , FM holds the business logic.

Benefits:

  • Holds the business logic inside and can communicate with controller of component
  • Method calls of the assistance class is better in performance
  • To manage dynamic texts required by WD application

Please refer the below links for more details.

Working with the Assistance Class - Web Dynpro for ABAP - SAP Library

Hope this helps you.

Regards,

Rama