code pal for ABAP > Documentation > Text Assembly
This check searches for locations where text is assembled from different fragments and string templates (marked by |
) are not used.
Use string templates to assemble text from smaller pieces.
In exceptional cases, you can suppress this finding by using the pseudo comment "#EC TEXT_ASSEMBLY
which has to be placed after the statement:
DATA(first) = 'A'.
DATA(second) = 'B'.
DATA(third) = 'C'.
WRITE first && ': ' && second && ' - ' && third. "#EC TEXT_ASSEMBLY
Before the check:
DATA(first) = 'A'.
DATA(second) = 'B'.
DATA(third) = 'C'.
WRITE first && ': ' && second && ' - ' && third.
After the check:
DATA(first) = 'A'.
DATA(second) = 'B'.
DATA(third) = 'C'.
WRITE |{ first }: { second } - { third }|.