cancel
Showing results for 
Search instead for 
Did you mean: 

Validation - Best Strategy

Former Member
0 Kudos

Hi,

If we take a basic example of a File - IDOC scenario.

What validation should we do in PI and what should we leave to standard IDOC error handling.

I have suggested doing File Structural validation in the File Adapter. XML validation to validate fields technically (make sure dates in right format, Only Numbers in a number field, String patterns for field etc etc), Mapping via RFC to the ABAP stack to perform value mapping via Z-tables.

All SAP master data validation should be done via the Standard IDOC handling right? Or Should I be performing RFC's to get information from the ECC6 side to validate the data before I post to IDOC?

I think I'm looking to confirm a validation strategy and so far cannot find a good blog.

Can anyone help?

Cheers

Accepted Solutions (0)

Answers (3)

Answers (3)

udo_martens
Active Contributor
0 Kudos

Hi,

PI / SAP ERP is nearly automaticly validating in standard.

Wrong fileformat leads to an adapter error -> Alert or red CCMS entry (to be configured)

Wrong XML format leads to a mapping error -> Alert or red CCMS entry (to be configured)

Wrong data leads to an idoc processing error (SM02 red entry).

Regards,

Udo

former_member208856
Active Contributor
0 Kudos

Always, it is better to validate the data on a system, where you have data.

If you will validate data on PI System, you will use RFC or Z tables, it will also effect your performance.

It is better to validate data on ECC System, where data is exists.

stefan_grube
Active Contributor
0 Kudos

The question is, how the customer wants it.

In our company, all messages should be sent as Idoc, valid or not.

business people can look in idoc monitor rather then in PI monitor.