Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Re-Defined Method

Former Member
0 Likes
867

I am trying to insert a pre-exit method for a an override method.

I get the message that pre/post method enhancements can only be made to

re-defined methods. How would I change this method to a re-defined

one so I can insert a pre-exit method?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
336

Hi,

You are leftwith two options.

1. Redefine the standard SAP Class Method. Forthis you require Access Key. After you redfine method you an insert pre exit or implicit enhacement option.

2. You can goto the super class directly & enhance the class method either to insert pre exit or implicit enhancement option.

The disadvantage with option2 is your code changes will get called where ever the super class is used. If you are going to use the second option make sure that your method gets called only in your class.

For second option you doesn't require accesss key.

Regards,

Mahesh Gattu

1 REPLY 1
Read only

Former Member
0 Likes
337

Hi,

You are leftwith two options.

1. Redefine the standard SAP Class Method. Forthis you require Access Key. After you redfine method you an insert pre exit or implicit enhacement option.

2. You can goto the super class directly & enhance the class method either to insert pre exit or implicit enhancement option.

The disadvantage with option2 is your code changes will get called where ever the super class is used. If you are going to use the second option make sure that your method gets called only in your class.

For second option you doesn't require accesss key.

Regards,

Mahesh Gattu