cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping field decimals

Former Member
0 Kudos

Hello,

I've a field defined: decimals 5 positions and 3 decimals

In message mapping to this field have the value 9999999 and it's allowed. Why? I need occurs error in this case, when the value does not meet the length or format of the field

Thanks,

Regards,

Silvia

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi again Silvia,

at the end, as Raja suggests, the XML is going to set any type as a string, so if you want the mapping to raise some error or to format that value you'll have to implement that logic at the mapping.

cheers,

Edu

nabendu_sen
Active Contributor
0 Kudos

Hi Silvia,

You need to perform XML Validation at Sender side. The XML payload is syntactically validated against the schema for both Inbound and Outbound message in this feature and throws error for mismatch.

Please check the below blogs for end to end implementation:

PI 7.1: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d026d253-3108-2c10-69a0-a5460fc1f...

http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/01/30/xml-xsd-validation--an-alternativ...

PI 7.3: http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/02/15/michals-pi-tips-xml-validation--c...

Former Member
0 Kudos

Hi Silvia,

are you trying to raise some error before leaving PI or is that Data type for receiving some info as a target message?

cheers,

Edu

Former Member
0 Kudos

I'm trying raise error when the value of field that's not right.

nabendu_sen
Active Contributor
0 Kudos

Please check the blogs mentioned in my reply.

Former Member
0 Kudos

Hi Silivia,

The max length you put it as 5 and you are getting 7 characters from source.  That's why you will get the error. Change it to 7 and test.  The pattern will useful when you are getting same values from source end.

Thanks,

Satish.

rajasekhar_reddy14
Active Contributor
0 Kudos

write a validation logic in mapping, i dont think by defualt it throws error.

Former Member
0 Kudos

if no default error is thrown, why indicate the length and format, if it allows any value?