Skip to Content

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

how to prevent trimming when concatenating strings.

Hi, this is a question on concatenation.

DATA: TXT_FILENUMBER(3) TYPE C.

...

CONCATENATE 'AREA A FILE PATH ' TXT_FILENUMBER ' IS A REQUIRED FIELD.' INTO MAND_ERR_MSG.

...

The output of this concatenation is (assuming txt_filenumber = '2'):

AREA A FILE <b>PATH2</b> IS A REQUIRED FIELD.

==> The word PATH and 2 are joined together. Why is that so?

Tags:
Former Member
replied

hi Kian,

you should do:

CONCATENATE ... INTO ... <b>SEPARATED BY SPACE</b>.

ec

Message was edited by:

Eric Cartman

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question