Skip to Content

EXCEPTION class CX_CTS_INVALID_NUMBER is not available after EHP7 upgrade

Hi Expert,

One of my client's custom include uses CX_CTS_INVALID_NUMBER class to catch exception. But after upgrade to EHP7 , we are getting syntax error saying that this class is unknown.

I did check in the upgraded system and this is not available contrast to the non-upgraded system where it is available, my question is which exception class can be used to replace CX_CTS_INVALID_NUMBER and does it actually got removed after upgrade.

Thank you in advance.

Regards,

Bhupesh

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • May 11 at 05:32 PM

    Find out where the old exception was thrown, then look at the replacement code.

    Add comment
    10|10000 characters needed characters exceeded

  • May 11 at 12:16 PM

    Hey,

    Not in front of an SAP system, but the CX_ROOT exception class is the root class for all exceptions and it will catch everything that is catchable and in it, you can handle the specific case you are interested. You can also look for the matching INVALID_NUMBER exception class by looking for one that has the same description/implementation. Finally, you can create your own and copy the logic from the non-upgraded one.

    Add comment
    10|10000 characters needed characters exceeded