Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Appending to a Message statement

Hi All,

I have to display a message, with a variable field, shown down as 'XXXX'. How do I append the variable string XXXX to the message.

str = 'XXXX'.

I have to append str(variable string) to the Message display.

-->

MESSAGE 'CORRECT METER READING UNIT,THE POSTCODE STARTS WITH XXXX' TYPE 'I'.

Thx...

Pradipta

Tags:
replied
DATA str(255) TYPE c.
DATA c_xxxx(10).

c_xxxx = xxxx.

CONCATENATE 'CORRECT METER READING UNIT,THE POSTCODE STARTS WITH' c_xxxx
  INTO str SEPARATED BY space.

MESSAGE str TYPE 'I'.
0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question