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

Doubt in Smartform

Former Member
0 Likes
505

Hi Experts,

I wan to know what is the use of fields in EXCEPTION tab in FORM INTERFACE.

FORMATTING_ERROR

INTERNAL_ERROR

SEND_ERROR

USER_CANCELLED.

Thanks & Regards,

Ramana.

3 REPLIES 3
Read only

Former Member
0 Likes
471

hi,

You can make a function module trigger exceptions.

To do this, you must first declare the exceptions in the interface definition, that is, assign each one a

different name.

In the source code of your function module, you program the statements that trigger an exception under

the required condition. At runtime, the function module is terminated when an exception is triggered. The

changes to exporting and changing parameters are the same as in subroutines. There are two

statements that you can use to trigger an exception. In the forms given below, <exception> stands for

the name of an exception that you declared in the interface.

The system reacts differently according to

whether or not the exception was listed in the function module call:

RAISE <exception>.

If the exception is listed in the calling program, the system returns control to it directly. If the exception is

not listed, a runtime error occurs.

MESSAGE <kind><num>(<id>) RAISING <exception>.

If the exception is listed in the calling program, the statement has the same effect as RAISE

<exception>. If it is not listed, the system sends message <num> from message class <id> with type

<kind>, and no runtime error occurs.

Hope this helps, Do reward.

Read only

Former Member
0 Likes
471

These are the exceptions raised when there is some problem in the Smartform during run time.

FORMATTING_ERROR "It will be raised when there some fromatting problems

INTERNAL_ERROR "It is internal error