Application Development 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: 

Catch CX_ROOT under 4.6C system

Former Member
0 Kudos

Hi guys,

I developed a report in 4.7 with try ... catch cx_root endtry constructs.

Now I implemented it at the customer's 4.6C system. It looks like there is no try endtry statement in this release, just catch endcatch. Furthermore I don't find a similar exception as cx_root in the 4.6C system.

Any hints?

Thanks,

Mane

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Class based exceptions are not supported in 4.6C. Even if you could create a class manually, the runtime would not handle it the same as a "class based exception".

http://help.sap.com/saphelp_nw04/helpdata/en/83/636d1412fc11d5991e00508b5d5211/frameset.htm

Regards,

Satish

5 REPLIES 5

Former Member
0 Kudos

Hi,

Class based exceptions are not supported in 4.6C. Even if you could create a class manually, the runtime would not handle it the same as a "class based exception".

http://help.sap.com/saphelp_nw04/helpdata/en/83/636d1412fc11d5991e00508b5d5211/frameset.htm

Regards,

Satish

0 Kudos

But there are class based exceptions in 4.6C, aren't there?

I can catch a conversion exception with

catch system-exceptions convt_no_number = 1.

...

endcatch.

if sy-subrc = 1.

...

endif.

It just looks like there is no root exception I can catch.

0 Kudos

CATCH SYSTEM-EXCEPTIONS is not introduced by the class. This will be triggered when some system exception happens.

Check the online help on CATCH SYSTEM-EXCEPTIONS .

I don't have any idea about your problem related to 4.6 C

Regards,

Naimesh Patel

0 Kudos

Now I got your point, I didn't see the difference between the class based and the system exceptions.

But do you maybe know a system exceptions that acts as a "root" exception, so I can avoid that the report dumps for some reasons?

Thanks,

Mane

0 Kudos

I don't think we have any for 4.6C system

Check the help for the "Alphabetical Overview of Catchable Runtime Errors "

Press F1 on the "CATCH".. it will take you to the CATCH SYSTEM-EXCEPTIONS .

On the left side you can find "Alphabetical ....". Click on that to see all the catchable errors.

Regards,

Naimesh Patel