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

Exception in redefined method

rainer_hbenthal
Active Contributor
0 Likes
673

Hi,

i've written a redefenition of a method. Now i want to add a new exception, but i can not add this to the method. Do i really need to define this in the original method?

1 ACCEPTED SOLUTION
Read only

marcelo_ramos1
SAP Mentor
SAP Mentor
0 Likes
506

Hi Rainer,

You can make a redefinition but... you can't overwrite the method signature, it's not allowed in ABAP Objects.

In this case you must use the same signature of super class method or you can create a new method Including yours new signature ( exceptions ).

Regards.

Marcelo Ramos

1 REPLY 1
Read only

marcelo_ramos1
SAP Mentor
SAP Mentor
0 Likes
507

Hi Rainer,

You can make a redefinition but... you can't overwrite the method signature, it's not allowed in ABAP Objects.

In this case you must use the same signature of super class method or you can create a new method Including yours new signature ( exceptions ).

Regards.

Marcelo Ramos