cancel
Showing results for 
Search instead for 
Did you mean: 

While sending data to DB2 tables, SAP PI JDBC is adding '&apos' character instead of '(single quote)

Former Member
0 Kudos

Hi Experts,

we have MDM --> PI --> DB2 scenario, while inserting the records into DB2 tables using JDBC channel, SAP PI is adding ''' character instead of '(single quote).because of this field length is getting increased and DB2 is throwing below error

"DB2 SQL Length Error: SQLCODE=-433, SQLSTATE=22001".

Question: How to suppress ''' before sending data to DB2 table to resolve the column length issue without increasing the column length at DB side.

Accepted Solutions (0)

Answers (2)

Answers (2)

iaki_vila
Active Contributor
0 Kudos
Andrzej_Filusz
Contributor
0 Kudos

Hi Ravindra,

I used to replace that in a java mapping. There is an example below.

https://wiki.scn.sap.com/wiki/display/XI/SAP+PI+-+Deciphering+apostrophes+in+XML

Regards,

Andrzej