‎2006 Dec 16 7:52 AM
Hi Friends,
I have one problem in message display in report. I wanted to display my message in status bar of screen as yellow error.
like
select * from lfa1 into lt_lfa1 where lifnr in s_lifnr.
if sy-subrc = 0.
*processing
else
message I001(zal).
endif.
so if the records are not found then it will display the information message as popup.
but my requirement is like i have to display the message in status bar of screen as yellow error.
‎2006 Dec 16 7:54 AM
Hi,
Change ur code like this:
select * from lfa1 into lt_lfa1 where lifnr in s_lifnr.
if sy-subrc = 0.
*processing
else
message <b>W</b>001(zal).
endif.
Regards,
Vinod.
‎2006 Dec 16 8:10 AM
select * from lfa1 into lt_lfa1 where lifnr in s_lifnr.
if sy-subrc = 0.
*processing
else
message W001(zal).
endif.
INSTEAD OF I001(ZA1) USE W001(ZA1).
regards
shiba dutta
‎2006 Dec 16 8:20 AM
‎2006 Dec 16 8:22 AM
Hi,
You can not use message type W in start-of -selection event. This will terminate the report. It behaves as type E message.
In order to get message in status bar, you need to use message type S.
This will not be yellow color but in green. But you can mention as WARNING: followed by message.
Regards,
Navneet
‎2006 Dec 18 11:43 AM
Hi Neha,
Please change the message type to S.
select * from lfa1 into lt_lfa1 where lifnr in s_lifnr.
if sy-subrc = 0.
*processing
else
message <u><i><b>S</b></i></u>001(zal).
endif.
and the it will appear in GREEN color, not in the yellow color.
If this problem is solved kindly mark it as SOLVED.
Thanks and Regards.
Venkat.
‎2006 Dec 18 2:36 PM
Hi,
Use the following and your message will appear in yellow:
message s001(zal) display like 'W'.
Hope it helps.