Skip to Content
avatar image
Former Member

exception CX_SY_NATIVE_SQL_ERROR syntax error

Hi, while trying to catch exception I got this syntax error:

*The type "CX_SY_NATIVE_SQL_ERROR" is unknown. *

data:
myORADB  type dbcon-con_name,
lv_message type string,
lr_error TYPE REF TO cx_sy_native_sql_error,
ret type int4,
nTabs type int4 value 0 .

..............

.............

how to solve this, please do you have any idea? working on 4.6c system...

thanks,

nihad

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Mar 23, 2009 at 12:12 PM

    Hello Friend,

    The class CX_SY_NATIVE_SQL_ERROR has been released internally in SAP version 4.6C.

    May be you can not use that one as reference.

    Generally, if you see TRY...CATCH statement to handle error has been promoted by SAP from version 6.0 onwards.

    Regards

    Krishnendu

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      Do you know how can I hande exeptions in 4.6c, related to DBCON connection to remote oracle db?

      thanks,

      Nihad

  • avatar image
    Former Member
    Mar 26, 2009 at 03:13 PM

    Please stop duplicate posting multiple variants of the same question, and see SAP Note 1259369.

    The forum rules are in the sticky post at the top of each forum page.

    Kindly respect them.

    Cheers,

    Julius

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Thanks!

      Yes, to follow-up on existing questions with further progress or infos is the correct procedure - this keeps the answers together for others who search for it.

      When the question is indeed a different one, then feel free to open a new thread and discuss it until conclusion.

      Many thanks,

      Julius