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

Start-OF-Selection and Error Message

Former Member
0 Likes
7,220

Hello Experts,

I have one issue.

In the event STAR-OF-SELECTION, i put an error message like: Message Exxx(yyy).

But, when this error message occurs, it bolcks all of the process and i will leave the program.

Even though, i want that when the error message occurs, i return to the selection screen and the

message will be displayed at the bottom like an error message in the event AT SELECTION-SCREEN.

Do you have any idea what i do must to reach that?

Thank you

Hello Experts,

I have one issue.

In the event STAR-OF-SELECTION, i put an error message like: Message Exxx(yyy).

But, when this error message occurs, it bolcks all of the process and i will leave the program.

Even though, i want that when the error message occurs, i return to the selection screen and the

message will be displayed at the bottom like an error message in the event AT SELECTION-SCREEN.

Do you have any idea what i do must to reach that?

Thank you

11 REPLIES 11
Read only

Former Member
3,815

hi,

in place of Exxx

you can use Wxxx (warning)

or iXXX(information)if you want to use Exxx

then use statement Leave to list processing.

Edited by: AD on Nov 28, 2008 10:55 AM

Read only

agnihotro_sinha2
Active Contributor
0 Likes
3,815

use leave list-processing.

Read only

abdul_hakim
Active Contributor
0 Likes
3,815

Hi

Error message @ start-of-selection will allow you to exit. You cannot come back to your selection screen.

Read only

Former Member
0 Likes
3,815

Hi,

error messages in start-of-selection will take you out the prog, Use other type of messages other than Error.

may be a status message.

Rhea.

Read only

Former Member
0 Likes
3,815

Hello,

Error message will block all the processing and will take you to a blank screen. To go back to selection screen after the message display use Information message, type 'I' and use LEAVE to LIST-PROCESSING which will take you back to selection screen. Instead of leave to list-processing you can also use CALL SCREEN 1000 (selection screen).

If you want to show message in selection screen itself use Status message.

Message 'ERROR' type 'S'.

LEAVE to LIST-PROCESSING or CALL SCREEN 1000.

Hope it helps.

Thanks,

Jayant

Read only

Former Member
0 Likes
3,815

Hi,

This is due to declaration of message type 'E'. Do change the message type

.

Thanks

Nitesh

Read only

Former Member
0 Likes
3,815

Hi SALHI,

use informative message like this:

message ixxx(yyy) display like 'E'.

Hope it helps.

Regards,

Rahul

Read only

0 Likes
3,815

Thanks for you all.

But when i put the message type I or W, it's displayed like a Pop-up. I want that the error message

will be displayed at the bottom in the selection screen like an error message in the event AT SELECTION-SCREEN.

What do you think?

Read only

0 Likes
3,815

Hi,

Then use this.

MESSAGE ID 'yyyy' TYPE 'S' NUMBER xxx

WITH TEXT-032 .

Rhea.

Read only

Rajkadthala
Explorer
3,815

Hi,

If you want to throw error message in AT SELECTION-SCREEN, then directly write Leave list-processign after message.

If you want to throw error message in START OF SELECTION, Then you have to write message like below.

MESSAGE 'No data exist' TYPE 'S' DISPLAY LIKE 'E'.

LEAVE LIST-PROCESSING.

ie: throw message type S display like E then Leave list processing.

Thanks,

Rajesh Kadthala

Read only

EnnoWulff
Active Contributor
0 Likes
3,815

Have a look at the documentation of message to see the behaviour of MESSAGE in different sections:

https://help.sap.com/doc/abapdocu_751_index_htm/7.51/en-us/abenabap_message_dialog.htm