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

Display Error Messages

Former Member
0 Likes
719

Dear All,

I have 3 error messages i have to display all messages.

like in migo we get messages like Popup.

how to get that one.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
681

HI

if u want to get as the MIgo u need to use the class as their is method available with cl_alv_grid* class.

if u want just like pop-up need to show as error then us the FM: POPUP_DISPLAY_MESSAGE.

and if the status found as error stop the process.

Dear All,

I have 3 error messages i have to display all messages.

like in migo we get messages like Popup.

how to get that one.

4 REPLIES 4
Read only

Former Member
0 Likes
680

Hi Karthik,

We can display all messages as you like...

Could you elobrate your requirement, are you developing any Report or Any Enhancements in Standard programs...?

You can display error messages as per your requirement....

However I will explain one scenario...

If the data is not available for specified conditions then it will display an error message 'Data is not avialble for selected criteria '

SELECT GUID_PRCTSC "Primary Key as GUID in "RAW" Format

GUID_PR "Primary Key as GUID in "RAW" Format

STCTS "Numbering Scheme for Customs Tariff System

DATAB "Definitive Date (Valid-From Time)

GUID_CTSNUMC "Primary Key as GUID in "RAW" Format

FROM /SAPSLL/PRCTSC

INTO TABLE T_PRCTSC

WHERE STCTS IN S_STCTS.

IF T_PRCTSC IS INITIAL.

MESSAGE : I007(ZMSSG) WITH 'Data is not avialble for selected criteria'.

STOP.

ENDIF.

You can also refer to the link below :

http://sapbrainsonline.com/sap-training/SAP-tutorial-pdf-material_332.html

Hope thsi answers your question...

You can serach in SDN, you will get many answers.

Regards,

Kittu

Read only

former_member222860
Active Contributor
0 Likes
681

Use F1 help and go through this demo Program: DEMO_MESSAGES

Read only

Former Member
0 Likes
682

HI

if u want to get as the MIgo u need to use the class as their is method available with cl_alv_grid* class.

if u want just like pop-up need to show as error then us the FM: POPUP_DISPLAY_MESSAGE.

and if the status found as error stop the process.

Read only

0 Likes
681

Hi Karthik,

please take a look at Function Group SBAL.

Regards