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 long message

Karan_Chopra_
Active Participant
0 Likes
3,198

i have to display a message with 100 characters

how can i display it without getting it truncated in the message window

6 REPLIES 6
Read only

Former Member
0 Likes
1,358

Hi,

Split the message into two strings and concatenate it into single variable, decalre this variable length as 100 then dsiplay.

Thanks,

Sriram POnna.

Edited by: Sriram Ponna on Jan 30, 2008 4:26 PM

Read only

Former Member
0 Likes
1,358

"create text and use in message then it'll display full message
MESSAGE text-001 TYPE 'S'.  "here text-001 is of length 100
Read only

Former Member
0 Likes
1,358

Hi,

save the message as "abcd &1 xyz"

data:var type string.

data:num.

DO 100 TIMES.

num = sy-index.

concatenate var num into var.

ENDDO.

MESSAGE s036(zcls) with var.

rgds,

bharat.

Read only

Former Member
0 Likes
1,358

Hi

You can not display the length specied you need to divide the message into 3 and then use a message with & & & with text-t01 text-t02 text-t03

message zsd(999) with text-t01 text-t02 text-t03.

regards

Shiva

Read only

0 Likes
1,358

This solution works.

Read only

Former Member
0 Likes
1,358

Message syntax is

MESSAGE type(msg no.) msg1 msg2 msg3 msg4

Msg1, Msg2, Msg3 and Msg4 can hold 50 chars each.

So split your msg into 2 variables of 50 chars and display along with your message statement.