cancel
Showing results for 
Search instead for 
Did you mean: 

XSD validation

Former Member
0 Kudos

Hi,

Did anyone implement a validation based on XSD on the mapping programm/ can anyone sahre an example?

thnaks

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Udi,

From SAP help and through some tests in XI,it is seen that, the only validation that takes place within XI is for mandatory nodes and occurrence of nodes of the target message. There is no validation of the source message (workaround is shown in the blog provided below), and there is no validation of details (like length, maxLength, minLength etc.) as specified in the XSD.

Do go through these links......

/people/jacob.vandborg/blog/2005/11/29/schema-validation-of-incoming-message

The following link gives mapping XSD to JAVA.

http://help.sap.com/saphelp_nw04/helpdata/en/c8/7e5e3c754e476ee10000000a11405a/content.htm

You can also get some help by following this thread.

Regards,

Abhy

bhavesh_kantilal
Active Contributor
0 Kudos

Udi,

Did you take a look at this blog,

<a href="/people/morten.wittrock/blog/2006/03/21/validating-messages-in-xi-using-xml-schema">Validating messages in XI using XML Schema</a>

Regards,

Bhavesh

former_member206604
Active Contributor
0 Kudos

Hi,

Define a temp source structure with all strings. During first mapping map this temp source structure to the actual source structure. In other words the temp source will have the same number of fields and name, so the mapping will be one-one straight. When you execute the mapping it will validate the incoming XML with the schema and will throw error if it is not as per schema.

Thanks,

Prakash