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

How can i display the success msg using module pool

Former Member
0 Likes
2,809

Hi frnds,

I want to display the error mesg or success msg in a dialogbox with ok button through module pool,

Pls help me any one.

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,780

Try this code snippet:

For success message:

MESSAGE 'Success' TYPE 'I' DISPLAY LIKE 'S'.

For error message:

MESSAGE 'Error' TYPE 'I' DISPLAY LIKE 'E'.
LEAVE TO SCREEN 0.

Else you can use the FM 'POPUP_DISPLAY_MESSAGE'. Details can be found on SDN.

7 REPLIES 7
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,781

Try this code snippet:

For success message:

MESSAGE 'Success' TYPE 'I' DISPLAY LIKE 'S'.

For error message:

MESSAGE 'Error' TYPE 'I' DISPLAY LIKE 'E'.
LEAVE TO SCREEN 0.

Else you can use the FM 'POPUP_DISPLAY_MESSAGE'. Details can be found on SDN.

Read only

Former Member
0 Likes
1,780

can we use the ' WRITE' STATEMENT for that?

if possible how?

Read only

Former Member
0 Likes
1,780

Hi,

You can also try using the FM POPUP_TO_DISPLAY_TEXT , POPUP_TO_CONFIRM.

Goto SE37 and give POPUP_TO* and find the similar FM

Regards

Read only

Former Member
0 Likes
1,780

Hi,

Check this example in SAP:

DEMO_MESSAGES -


> This is a good example of displaying messages given by SAP.

For more information on messages please visit this link:

http://help.sap.com/saphelp_nw04/helpdata/en/91/dec863880411d194cb0000e8353423/content.htm

This will tell you the complete status of each messages in the ABAP with its displaying position on the screen.

May this information helps you.

Thanks

Deepak Sharma

Read only

Former Member
0 Likes
1,780

Hi YUMKUMAR

By chance are you working on RF programs

VENKAT.

Read only

0 Likes
1,780

Thanks for u'r replays,

Hi,

What is RF programs and explain

Thanks in advance.

Read only

Former Member
0 Likes
1,780

Thanks for replays