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

seperating string by new lines

Former Member
0 Likes
630

Hi iam concatenating error messages into a string. While displaying i would like to seperate it by new lines.Can anyone please tell me how to do that.

6 REPLIES 6
Read only

Former Member
0 Likes
602

Hi,

first of al you will be having error messages.

display the error messages in new line.

like

write: / msg 1,

/ msg 2,

/ mgs3 .

like this you can get the output.

reward points if helpful

regards,

venkatesh

Read only

santhosh_patil
Contributor
0 Likes
602

Hi,

use <b>split at</b>

--Patil

Read only

Former Member
0 Likes
602

hi

there should be some separator in your string , or /

data : begin of itab occurs 0,

text(100),

end of itab.

split errmsg_string at '/' into table itab.

loop at itab.

write / text.

endloop.

if helpful, reward

Sathish. R

Message was edited by:

Sathish

Read only

Former Member
0 Likes
602

Actually i need to show my error message as an pop up window and i don;t know how many messages will be there.It is picked by from the application log

Read only

0 Likes
602

hi

pass your itab to fm POPUP_WITH_TABLE_DISPLAY_OK to display itab in a popup

if helpful, reward

Sathish. R

Read only

0 Likes
602

Hi Sathish,

Thanks very much for your reply. I just need one more thing do you know how to change the heading in that pop up window? I have put my heading in TITLETEXT parameter but still it is not reflecting.It comes as Register in that pop up window