Skip to Content

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

Concat syntax

Hi all

i got a problem in the concat syntax

CONCATENATE it_vbak-admino it_vbak-fname it_vbak-lname into val

SEPARATED BY space.

This is working fine

I receive a error for this syntax

CONCATENATE it_vbak<b>-field1</b> it_vbak<b>-field2</b> it_vbak-<b>field3</b> into val

SEPARATED BY space.

field1, field2, field3 are the paramater value.

it_vbak is the table

How to make the it_vbak<b>-field1</b> it_vbak<b>-field2</b> it_vbak-<b>field3</b> be recognize in the table?

code----


SELECT (it_fldtab)

INTO CORRESPONDING FIELDS OF TABLE it_vbak

FROM ZSTUDGARY.

IF SY-SUBRC = 0.

LOOP AT it_vbak.

*Concat the data as 1 field----


CONCATENATE it_vbak-admino it_vbak-fname it_vbak-lname into val

SEPARATED BY space.

*write:/ it_vbak.

*CONCATENATE it_vbak-field1 it_vbak-field2 it_vbak-field3 into val

*SEPARATED BY space.

write:/ test1.

write:/ val.

ENDLOOP.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question