Page 1 of 1

Data not able to load into unicode field

Posted: Mon May 24, 2010 6:07 pm
by BradMiller
I am trying to load the data "XO" into a sap idoc segment field whose datatype is varchar(2) but its failing with the following error message.
"IDoc_Load_ZAFSMATMAS01,0: Fatal Error: Fatal: IDOC_F_00145`:`Segment 'Z2BP_MARCX000', Field 'MRP_TYPE', Value 'ND': CIDocData operator=(char): String too long for field"

I am not able to understand if the value is "XO" why is it not able to load into char(2) could you anyone suggest me.

Posted: Mon May 24, 2010 6:28 pm
by BradMiller
I got the answer by myself usually for unicode the length has to be double.

Posted: Mon May 24, 2010 9:30 pm
by chulett
Bytes, not characters. :wink: