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

NOT_FOUND Exception

fabio_bellocchio
Participant
0 Likes
2,334

(SRM 5.00)

Dear SDN,

please, how can I catch an exception NOT_FOUND, defined in the method GET_ENTITY_WITH_GUID of the class CL_CGPL_ENTITIES, if there is no exception TYPE defined for this exception, and the programs that call this method are all standard, and there is no treatment, in those programs, for catching this exception ?

In my program, I've tried many different error treatments, but nothing works. Once inside that method, this exception crashes the program suddenly, giving no chances for treatment.

On ST22, the description is:

"A RAISE statement in the program "CL_CGPL_ENTITIES==============CP" raised the exception condition "NOT_FOUND".

Since the exception was not intercepted by a superior program, processing was terminated."

Any idea is welcome.

Thank you very much!

Fabio

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,640

You can try put a RAISE NOT_FOUND after the method call.

Regards,

3 REPLIES 3
Read only

Former Member
0 Likes
1,641

You can try put a RAISE NOT_FOUND after the method call.

Regards,

Read only

Former Member
0 Likes
1,640

Hi

You're getting that dump because the excption NOT_FOUND is not managed in the program, but probably that means (if the program is std one) this execption shouldn't be triggered, it is not expected.

Where the method is called you should find:

CALL METHOD .....
   ......................
   EXCPTION
      NOT_FOUND = <number>

When the developer supposes the execption should never triggered, he can omit it.

So it the program is your, you need to add the execption where u call the method, but if the method is called by a standard class you've a problem.

Max

Read only

0 Likes
1,640

Yes Max.

Definetly I have a problem.

Both programs (caller and called) are std.

I think there should be a catch or any other subsequent treatment, wherever there is a RAISE command, for preventing crashes, and specially for allowing the tracking of errors.

Anyway....

Thank you for the answer.

The problem has been solved by other ways.

(pts assigned)