Application Development 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: 

Display a message in abap

Former Member
0 Kudos

hi experts,

when i'm trying to print a message using following code

IF SY-SUBRC EQ 0.

PERFORM PRINT_DATA.

else.

message I999(YH01) with 'No data exists for chosen selection'.

ENDIF.

I'm getting the message like "I:YH01:999 No data exists for chosen selection"

how can i only display the "No data exists for chosen selection" message? without "I:YH01:999"

Thanks.

5 REPLIES 5

Former Member
0 Kudos

Hi,

Go to the T.code Se91 give the message class as 'YH01'

select Message in the number type 999 and click on change button.

here you type the message as 'No data exists for chosen selection'.

then in your prg change the code like


REPORT  XXXX MESSAGE-ID YH01."give the Message class name here

message I999." call this one

Regards,

Dhina..

0 Kudos

IN SE91, it saying "Message class YH01 has not been maintained" after clicked change.

0 Kudos

then use like this


message 'No data exists for chosen selection' type 'I'.

0 Kudos

ok it worked.. thanks alot for the help.

Former Member
0 Kudos

Answered perfectly