Biztalk uses SAP data types

Source: Internet
Author: User
Tags biztalk

When sending a document to sap, or making a RFC or bapi call you may get this error: Microsoft. servicemodel. channels. common. xmlreadergenerationexception: an error occurred when trying to convert the byte array [30-00-30-00-30-00-30-00-30-00-30-00-30-30-00-30 -00] of rfctype rfctype_date with length 8 and decimals 0 to XML format. parameter/field name: ref_date error message: year, month, and day parameters describe an un-representable datetime. ---> system. argumentoutofrangeexception: year, month, and day parameters describe an un-representable datetime. usually its the date field, most likely one you do not even use, and do not care about, sadly sap date format is different from yours, and a null date is a big no. it comes down to how you generated your sap schemas in the first place. add generated items/Add adapter meta data/WCF-SAP under the Configure button are three tabs, set up your connection on the first two, and then there is binding properties. look at the metadata section, change the Enable Safe typing to true, this will generate your schema with safe types, its a fancy way of saying that all of the types generated will be of Type string, rather than of Type datetime, long, Int, Etc... SAP does not seem to care, it will do the conversion correctly now. the node names do not change, just the types, so you can simply replace your current schema, keeping the same name, with the definition generated now. then your problem, will go away, and SAP will once again be happy.
At run time: ensure your send or receive port also has the same setting or it will not work. Source: http://paulsomers.blogspot.com/2013/05/sap-data-types.html

Biztalk uses SAP data types

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.