10-10-2008 2:18 PM
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.
10-10-2008 3:30 PM
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.
10-10-2008 3:30 PM
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.
10-10-2008 3:37 PM
Actually on further examination there is the 'IN BYTE MODE' addition to CONCATENATE that allows type x. But then the other values (i.e. irec-nachn) would need to be type x. You can't mix type x and type c in a CONCATENATE.