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: 

Error message being displayed in next screen.

Former Member
0 Kudos
233

Hi,

I have decalred an error message within START-OF-SELECTION, and once this error message is triggered the screen changes. The back button of the resulting screen gets disabled.

Please help me to print the error message within the same page rather than moving onto the next page.

Thank you.

The code has been given below.

CASE 'X'.

WHEN p_add.

g_res = p_intone + p_inttwo.

WHEN p_subt.

g_res = p_intone - p_inttwo.

WHEN p_div.

IF p_inttwo = 0.

MESSAGE E601(ZWB).

ENDIF.

g_res = p_intone / p_inttwo.

WHEN p_mul.

g_res = p_intone * p_inttwo.

WHEN OTHERS.

MESSAGE I600(ZWB).

ENDCASE.

2 REPLIES 2

former_member209217
Active Contributor
0 Kudos
173

Hi,

Add this code lines after if condition.

SET SCREEN 0.

LEAVE SCREEN.

Regards,

Lakshman.

Former Member
0 Kudos
173

Declare it with the

Program or report statement name like

PROGRAM 'xxxx' message id 'zz'