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

Exceptions classes in 4.6C

Former Member
0 Likes
680

Hello SDNers,

as Uwe had already written in the thread .

What would be better?


1. Would you try to develop in 4.6C the exception classes
   (plenty of work, but keeping myself updated, and I can use them also in the future)

  CX_ROOT                             -> ZCX_ROOT; ZIF_MESSAGE
  CX_STATIC_CHECK (I need this slass) -> ZCX_STATIC_CHECK

2. just to solve the problem with traditionally

  METHOD get_xxx.

  ...
    IF sy-subrc = 0.
       ...
    ELSE.
        RAISE wrong_xxxx.
    ENDIF.

  ENDMETHOD.

With regards,

Peter

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
629

You may appreciate that whatever is possible in OO ABAP is still possible in procedural ABAP with difference in the extent of SW reusability, visibility control etc. So its a design decision whether to go for OO ABAP. In case you have a business case for a class ( you feel that the class will be used many times in your project, you need to control visibility, you have chances of enhancing the functionality of the class, you do not want to incur more resources in testing etc. ), you can go for the development of the exception class.

Otherwise traditional development may be helpful.

4 REPLIES 4
Read only

Former Member
0 Likes
630

You may appreciate that whatever is possible in OO ABAP is still possible in procedural ABAP with difference in the extent of SW reusability, visibility control etc. So its a design decision whether to go for OO ABAP. In case you have a business case for a class ( you feel that the class will be used many times in your project, you need to control visibility, you have chances of enhancing the functionality of the class, you do not want to incur more resources in testing etc. ), you can go for the development of the exception class.

Otherwise traditional development may be helpful.

Read only

0 Likes
629

Hello Pyari,

I have decided in the moment for the traditional development, but also partly

with handling methods in special handling class.

Thanks for your answer.

Bye,

Peter

Read only

Former Member
0 Likes
629

I can not to award points to replies.

Read only

0 Likes
629

I could not award points, now I understand why. See thread

.