Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to define exceptions?

Hi

I have an internal table containing Key and Value as fieldnames. I have defined follwoing methods.

ADD(KEY, VALUE);

VALUE GET(KEY);

SET (KEY, VALUE);

DELETE(KEY);

In the Get Method, i need to pass a key, it must return the value. If the key is not found, it must raise some user defined exception. Similar case with set and delete also.

Can anyone tell me in detail how to implement exceptions in my case?

Tags:

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question