Skip to Content

assistance class

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 26, 2014 at 04:21 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 26, 2014 at 04:21 AM

    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.

    Web Dynpro ABAP: Assistance Class

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

    Hope this helps you.

    Regards,

    Rama

    Add comment
    10|10000 characters needed characters exceeded