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

Error message

Former Member
0 Likes
729

Hi All,

I want to display some error message i have used following syntax.

IF zbapi_struct_as1_import-bukrs_clr EQ space.

MESSAGE s001(Z9).

ENDIF.

This gives me the error message on the next screen at the status bar, my requirement is to display it on the same screen

Please help.

Thanx

Amruta.

6 REPLIES 6
Read only

Former Member
0 Likes
700

at selection screen.

IF zbapi_struct_as1_import-bukrs_clr EQ space.

MESSAGE s001(Z9).

ENDIF.

else.

IF zbapi_struct_as1_import-bukrs_clr EQ space.

MESSAGE s001(Z9).

exit.

ENDIF.

Read only

former_member188829
Active Contributor
0 Likes
700

Deleted...

Message was edited by:

Vishnu Reddy

Read only

former_member386202
Active Contributor
0 Likes
700

Hi,

Try like this.

IF zbapi_struct_as1_import-bukrs_clr EQ space.

MESSAGE s001(Z9).

LEAVE LIST-PROCESSING.

ENDIF.

Regards,

Prashant

Read only

Former Member
0 Likes
700

Hi Amruta,

Try like this..


IF zbapi_struct_as1_import-bukrs_clr EQ space.
MESSAGE s001(Z9).
EXIT.
ENDIF.

Read only

Former Member
0 Likes
700

HI

your giving theer MESSAGE type as S means STATUS , it will allow you to go to the next screen

PUT E type there

IF zbapi_struct_as1_import-bukrs_clr EQ space.

MESSAGE <b>E</b>001(Z9).

ENDIF.

then it won't allow to enter into the new screen

it will show error in that scren only

<b>Reward uif usefull</b>

Read only

Former Member
0 Likes
700

Hi amruta,

use stop statement:

IF zbapi_struct_as1_import-bukrs_clr EQ space.

MESSAGE s001(Z9).

<b>stop.</b>

ENDIF.

rgs