cancel
Showing results for 
Search instead for 
Did you mean: 

Wat is Assistance class in WD for Abap

Former Member
0 Kudos

hi,

Can any one gives perfect picture about Asisstance class in Webdynpro abap.

Thanks in advance.

Best Regards,

Kranthi.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Assistance Class in WD is used for storing common reusable logic apart from component controller.

It can also be used to store Text Symbols for displaying messages or lables for the WD application.

Per WD session there will be one instance of assistance class ( if mentioned ) will be automatically instantiated and you can access it by wd_assist.

It can also be used to store a reusable set of constants, public attributes, types etc.

Assistance class has some standard methods like get_text to fetch text from text symbols.

To craete an assistance class you have to create a normal class and then mention CL_WD_COMPONENT_ASSISTANCE as superclass. Then you can metion you class name in WD Component Header Details.

To have a look of assistance class you can look at CL_WD_COMPONENT_ASSISTANCE class then navigate to all its Subclasses ( Assistance Class ). The methods will give you an idea of the usage.

Hope this helps

Regards

manas Dua

ChrisPaine
Active Contributor
0 Kudos

To follow on from Manas's excellent description - an assistance class can also be thought of as the Model in the MVC design paradigm - if you choose to use this approach in your WD ABAP development.

It is also very useful in that the editor is the same one used for ABAP development elsewhere and so is a little better developed than the editor for WD ABAP (forward creation of methods, variables, etc) are allowed.

It is also by far the easiest way to add dynamic texts to your application , the alternative being using the OTR, and translation of those texts is very easy - and familiar to SAP users.

I always try to use the MVC approach and use the assistance class to help with this - guess it's a hangover from my WD Java days.

Cheers,

Chris

Former Member
0 Kudos

Dear Manasa and Chris ..Thansk for your Quick and Valuable responses:-)

Cheers,

Kranthi

Answers (2)

Answers (2)

Former Member
0 Kudos
saket_abhyankar
Active Participant
0 Kudos

Kindly go through the below links for info on assistance class:

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

[Link2|http://wiki.sdn.sap.com/wiki/display/WDABAP/AssistanceclassfunctionalityinWDA]

Regards,

Saket.