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: 

message with two lines

Former Member
0 Kudos

Hi experts,

I would like to give error message into my program.

In se91 i have created messages &1 &2 .

How can i display message into two lines?

message should be like this..

This is first line..

This is second line..

MESSAGE e000 WITH 'This is first line' & 'This is second line..'

is not giving in two lines...

5 REPLIES 5

Former Member

suresh_datti
Active Contributor
0 Kudos

It is not possible,, but you can try the long text option for a message & put in how many number of lines you want.. Pl check this <a href="http://help.sap.com/saphelp_47x200/helpdata/EN/d1/801b3e454211d189710000e8322d00/frameset.htm">SAP Help</a>.

~Suresh

Former Member
0 Kudos

hi kaki,

i dont y u want to display messages in 2 lines... anyhow try this way

if ( condition )

MESSAGE e000.

MESSAGE e001.

endif.

reward point if this helps u

ravi

0 Kudos

Hello kaki,

There might a workaround to display both messages at the same time.

After the messages are created in SE91,

1> For the first message. Read table <b>T100</b> using fields SPRSL , ARBGB & MSGNR and get your Message Text and store in a variable.

2> Repeat the above step fro the second message as well.

Call function module '<b>POPUP_TO_DECIDE_INFO</b>' and pass the two messages retrieved from the above to the fields TEXTLINE1 & TEXTLINE2.

Your messages will be displayed as Information message.

If you intend to display as error message, Exit from the program or go back to you previous screen.

Hope this helps.

Kindly reward points, if it helped.

Thanks,

-G

Former Member
0 Kudos

Hi,

Use the FM: POPUP_TO_DISPLAY_TEXT Create a dialog box in which you display a two line message .

Regards,

Bhaskar