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 in subscreen

Former Member
0 Likes
2,069

Hi,

I have used 4 tabstrips inside one main screen and created 4 subscreens for those 4 tabs. Now when i show an error message using MESSAGE SXXX , it just shows the message in info format and continues with the further code. If i use the format MESSAGE EXXX then it freezes the subscreen right there.

My requirment is that to show an error message which wont execute the further code and will retain the values filled by user.

I cant use MESSAGE SXXX TYPE 'E' and LEAVE TO SCREEN SY-DYNNR as they are subscreens and not screens.

Please help.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,134

Hi,

Error messages always stops the execution and freezes the screen. Instead you display the message in this format.


MESSAGE ID 'ZDM_MESSAGE_GENERIC' TYPE 'S' NUMBER 001 DISPLAY LIKE 'E'.

or use type W

thanks and regards.

Aswath.

3 REPLIES 3
Read only

Former Member
0 Likes
1,135

Hi,

Error messages always stops the execution and freezes the screen. Instead you display the message in this format.


MESSAGE ID 'ZDM_MESSAGE_GENERIC' TYPE 'S' NUMBER 001 DISPLAY LIKE 'E'.

or use type W

thanks and regards.

Aswath.

Read only

Former Member
0 Likes
1,134

Hi,

Try using message class.

MESSAGE e<msg_no> (<msg_class_name>).

Regards,

Sharin

Read only

Former Member
0 Likes
1,134

Problem solved. Thanks aswathsa and Sharin.