Skip to Content

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

Unicode conversion wrt v_new_line

Hi Guys/Dolls

I have a program that we are trying to convert to make it unicode compliant.

But I'm getting the following error:-

"v_NEW_LINE" must be a character- like data object (data type C, N. D, T, or String).

Basically its falling over at the following line of code:-

DATA: v_new_line(255) TYPE x.

DATA: v_eol(2) TYPE x VALUE '0D0A'.

DATA:v_ees(15),

v_ers(15).

DATA: BEGIN OF irec OCCURS 0,

pernr LIKE p0002-pernr, " Personnel Number (8)

nachn LIKE p0002-nachn(25), " Last Name (25)

vorna LIKE p0002-vorna(20)," First Name (20)

perid LIKE p0002-perid, " NI Number (20)

ees LIKE pc207-betrg, " Employee Cont (15)

ers LIKE pc207-betrg, " Employer Cont (15)

END OF irec.

CLEAR v_new_line.

CONCATENATE irec-pernr

irec-nachn

irec-vorna

irec-perid

v_ees

v_ers

INTO v_new_line SEPARATED BY ','.

CONCATENATE v_new_line v_eol INTO v_new_line.

Tags:
replied

I think the message is pretty self explanatory.

v_new_line (and v_eol) are defined as TYPE x and you can't use CONCATENATE with anything other than data type C, N. D, T, or String.

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