Skip to Content

Convert Data type "String" to "RAW"

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jan 05, 2013 at 10:44 PM

    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.


    JDBCselect6-1.JPG (28.5 kB)
    Add comment
    10|10000 characters needed characters exceeded

  • Jan 06, 2013 at 01:36 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded