Skip to Content
0
Former Member
Oct 19, 2007 at 03:03 PM

how to prevent trimming when concatenating strings.

18 Views

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?