11-22-2005 9:30 AM
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
11-22-2005 9:35 AM
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
11-22-2005 9:35 AM
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
11-22-2005 9:39 AM
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
11-22-2005 9:42 AM
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.
11-22-2005 9:52 AM