Skip to Content

Validate IDOC to avoid wrong data in SAP PI


I need to apply some validations to an IDoc structure in SAP PI 7.3, to reject wrong data arriving to this middleware.

I tried to solve it using XSD, but it doesn't work yet.

What I did was:

In Enterprise Services Builder, exported the IDoc structure and imported as an external message, applied the validations and then used it in the message mapping. However, into the operation mapping, as the surce operation I used the IDOC; as mapping program I used the message mapping and, as target, certain message type.

In Integration Builder, created an integrated configuration to the IDOC sender interface. On inbound processing, selected a communication channel IDoc_AAE with schema validation as "Validation by Adapter".

When I run my test, the IDoc is processed successfully and sent to the destination (in my case, JDBC adapter). But it has to fail, because some fields does not agree the XSD conditions. I test the message with the XSD withing other tool, and it fails.

I appreciate any comment or sugestion.


Arturo Santos

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 17, 2014 at 07:41 AM

    Hi Arturo,

    You can use schema validation, this blog should be a start

    PI 7.3 - XML Validation



    Add comment
    10|10000 characters needed characters exceeded