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

Showing different behavior

Former Member
0 Likes
398

Hi All..

I am facing a problem with this following lines of code. Different time its showing different behavior .

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE 'W' NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

EXIT.

ENDIF.

In the first case, for normal saving procedure its working fine. But if there is a confirmation Pop-up for saving, then

the application terminated with abort Message A. its does not show the warning message also. even in debugger mode,

pressing F5, itu2019s not going insure, directly aborted showing abort message.

I have check all those system variables in both the cases, they are same. But I am not able to understand, why its showing different behavior in different cases

Could anyone help me out in this problemu2026

Regards

Satrajit

2 REPLIES 2
Read only

Former Member
0 Likes
366

HI THERE...

chk ur code.... it says sy-subrc 0....

it should be sy-subrc ne '0'.

i hope this helps.

do reward if it does.

Read only

0 Likes
366

Here sy-subrc = 1 but its not reach at EXIT statement.

Itu2019s aborting from the message statement itself, and itu2019s showing abort thpe message u201CAu201D, but it should be warning type as its hard coded.