06-10-2011 7:06 AM
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.
06-10-2011 7:23 AM
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..
06-10-2011 7:27 AM
IN SE91, it saying "Message class YH01 has not been maintained" after clicked change.
06-10-2011 7:31 AM
then use like this
message 'No data exists for chosen selection' type 'I'.
06-10-2011 7:32 AM
06-10-2011 7:33 AM