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: 

Regarding Fault Class Error

Former Member
0 Kudos

Hello When I do extended check to a Z include inside another Include SAPMV45A...

Messages for Syntax check warnings(Error)

Program: SAPMV45A Include: ZV841INC Row: 122 Prio 1

Syntax check warning

The exception CX_AI_SYSTEM_FAULT is neither caught nor is it declared in the

RAISING clause of "USEREXIT_SAVE_DOCUMENT_PREPARE".

Internal Message Code: MESSAGE G-Q

(The message cannot be hidden using pseudo-comment "#EC .., bzw. durch SET

EXTENDED CHECK OFF/ON)

DATA fault TYPE REF TO cx_ai_system_fault .

CATCH cx_ai_system_fault into FAULT.

WRITE 😕 fault->errortext.

ENDTRY.

Could you please suggest any solution

3 REPLIES 3

matt
Active Contributor
0 Kudos

Please post the entire code of the include within { c o d e } tags (without the separating spaces), so that formatting is retained.

matt

Former Member
0 Kudos

Its not clear for me ..Could you explain a little bit more clear

matt
Active Contributor
0 Kudos

I can't see anything obviously wrong with the code you have posted on this forum. I think I need to see all the code of the include.

If you look to the right of your screen, when you reply to this message, you'll see "Plain Text Help". Underneath that you'll see Further Markup Possibilities. The first of those is the word code surrounded by curly brackets - that is { and a }. This I call a "code tag". If you post your ABAP into this forum and surround the ABAP with a code tag before and a code tag afterwards, it's a LOT easier for me to read, and therefore help you.

Without tags, you get:

  • Sample code

IF mycondition. " Without tags

PERFORM something.

ELSE.

PERFORM something_else.

ENDIF.


* Sample code
IF mycondition.  " With { code } tags
  PERFORM something.
ELSE.
  PERFORM something_else.
ENDIF.

matt

Edited by: Matthew Billingham on Mar 4, 2008 7:08 PM