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: 

screen problem

Former Member
0 Kudos
78

Hi,

Iam trying to do some validation in table control and iam getting proper(error) message.When i click ok(exit button on the message box)on the message box, the screen also exiting.How can avoid this?

if flag = 'X'.

message e000(z1) with 'Consider delivery unit': tval.

else.

PERFORM BDC_VA02.

endif.

points guaranteed

kaki

1 ACCEPTED SOLUTION

Former Member
0 Kudos
50

hi,

THIS BECAUSE ERROR MSG STOP THE CURRENT PROGRAM.

YOU CAN USE MESSAGE TYPE 'S' OR 'I' IN PLACE OF E.

IF YOU USE 'S' TYPE MESSAGE, A YELLOW COLORED MESSAGE WILL APPEAR IN STATUS BAR (SYSTEM MESSAGE) AND ALL INPUT FIELD WILL BE LOCKED. JUST HIT ENTER TO UNLOCK THE FIELDS AND PROCEED

Message was edited by: Anid

4 REPLIES 4

Former Member
0 Kudos
51

hi,

THIS BECAUSE ERROR MSG STOP THE CURRENT PROGRAM.

YOU CAN USE MESSAGE TYPE 'S' OR 'I' IN PLACE OF E.

IF YOU USE 'S' TYPE MESSAGE, A YELLOW COLORED MESSAGE WILL APPEAR IN STATUS BAR (SYSTEM MESSAGE) AND ALL INPUT FIELD WILL BE LOCKED. JUST HIT ENTER TO UNLOCK THE FIELDS AND PROCEED

Message was edited by: Anid

0 Kudos
50

Hi,

message type E can have different behaviours. In selection-screen it allows to correct the errors. In a popup, it makes the dynpro to exit.

Use type S or I instead and handle manually the program flow.

Regards, Manuel

Former Member
0 Kudos
50

Hi kaki,

the message type you are giving is e000 in this e indicates error so the screen is also exiting.

check the type of messages.

The ABAP runtime environment handles messages according to the message type specified in the MESSAGE statement and the context in which the message is sent. There are six kinds of message type:

A (Abend)

Termination

E (Error)

Error

I (Info)

Information

S (Status)

Status message

W (Warning)

Warning

X (Exit)

Termination with short dump

hope this helps you.

regards,

venu.

0 Kudos
50

Many thanks for all the replies

points allowted

cheers

kaki