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 a message in abap

Former Member
0 Likes
2,679

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.

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
Read only

Former Member
0 Likes
908

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..

Read only

0 Likes
908

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

Read only

0 Likes
908

then use like this


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

Read only

0 Likes
908

ok it worked.. thanks alot for the help.

Read only

Former Member
0 Likes
908

Answered perfectly