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

message problem in report

Former Member
0 Likes
766

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.

6 REPLIES 6
Read only

Former Member
0 Likes
728

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.

Read only

Former Member
0 Likes
728

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

Read only

Former Member
Read only

Former Member
0 Likes
728

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

Read only

Former Member
0 Likes
728

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.

Read only

former_member378318
Contributor
0 Likes
728

Hi,

Use the following and your message will appear in yellow:

message s001(zal) display like 'W'.

Hope it helps.