cancel
Showing results for 
Search instead for 
Did you mean: 

Enhancing a Method in Standard Web Dynpro Component

mayank_agarwal7
Explorer
0 Kudos

Hi All,

I want to enhance a method on Standard Web dynpro component.

I have created an enhancement implementation and I created a Post Exit enhancement for the method- ONACTIONSAVE.

I dont need the pre exit enhancement.

However when I try to activate the code then I am getting the below error:-

Web Dynpro Comp. / Intf. /SAPSRM/WDC_SC_GAF_TOOLBA,Web Dynpro View V_DODC_GAF_TOOLBAR

*Pre-Exit PST4D6DZV8IHYSFNHC41TGHNQ9Q1 for ONACTIONSAVE *

*You can only use "class=>method" with static methods. *

Please let me know the way to resolve this error.

Thanks & Regards,

Mayank Agarwal

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member402443
Contributor
0 Kudos

Hi Mayank,

Seeing your problem , I think you are using a class in this method and you are calling the method using the class reference directly.

Check whether the method you are calling will be a static or not.

Because you can only call a static method using the class reference.

For calling the general method of a class , we have to use the object reference of that class.

Hope this will helps you.

Regard

Manoj Kumar