Skip to Content
0
Oct 27, 2009 at 03:24 AM

Display new line of text in MESSAGE without using message class

3265 Views

Dear forumers,

How may I display new line of text in MESSAGE without using a message class?

E.g. I'd like to display the following:-

ABCDEF

GHIJKL MNOPQRSTUV WXYZ

But, I can only get the following:-

ABCDEF#GHIJKL MNOPQRSTUV WXYZ

The following codes do not work, but perhaps someone here may have better ideas.

Please do help me out here. Thanks a lot; appreciate any inputs at all. 😊

DATA:
  lv_str1   TYPE string,
  lv_str2   TYPE string,
  lv_string TYPE string.

  lv_str1 = 'ABCDEF'.
  lv_str2 = 'GHIJKL MNOPQRSTUV WXYZ'.

  CONCATENATE lv_str1 cl_abap_char_utilities=>newline lv_str2 INTO lv_string.

    ...

  MESSAGE lv_string TYPE 'I'.