Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Validate IDOC to avoid wrong data in SAP PI

Hello:

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.

Regards.

Arturo Santos

Tags:

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question