cancel
Showing results for 
Search instead for 
Did you mean: 

Convert Data type "String" to "RAW"

Former Member
0 Kudos

Hi Team,

scenario:jdbc to jdbc

How to insert string data in to the DB field with data type as "Raw" from SAP PI.

what is the equivalent data type in PI for DB data type "Raw".

Thanks in advance..VASU

Accepted Solutions (0)

Answers (2)

Answers (2)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

IMO, you cannot  use RAW data type in the jdbc adapter. You have to use only string which would do Varchar type in the database end. You can get help from DBA's to convert string to raw.

nabendu_sen
Active Contributor
0 Kudos

Hi Vasu,

I think you have defined the Target Structure as mentioned in the below document.

http://help.sap.com/saphelp_nw04/helpdata/en/4d/8c103e05df2e4b95cbcc68fed61705/frameset.htm

It should look like:

I can see RAW datatype in ABAP based XSD:

http://help.sap.com/erp2005_ehp_04/helpdata/EN/de/705c3c3806af06e10000000a11402f/content.htm

but not in Java:

http://help.sap.com/erp2005_ehp_04/helpdata/EN/c8/7e5e3c754e476ee10000000a11405a/content.htm

Please explain what exact error you are getting when using String / Long.