cancel
Showing results for 
Search instead for 
Did you mean: 

Error Mapping as xsi:nil="true"

Former Member
0 Kudos

I need to map a nillable as a xsi:nil="true" to a tibco service.

The SAP systems are SAP XI 700 and R/3 6.4.

The problem is that when a date comes empty from R/3 and I map it to a nillable = "True" target XI doesn't support the transformation and parameter isn't mapped.

I think the most affordable solution is a xsl mapping to correct and parse in the target the missing <dateEnd xsi:nil="true"/>.

Can you provide hints to a xsl to map the xsi:nil="true" for certain parameters of type dateTime to the target in a soap message environment?

Thanks in advance,

Miguel

Accepted Solutions (1)

Accepted Solutions (1)

former_member200962
Active Contributor
0 Kudos

Check if Michal's reference helps you:

Regards,

Abhishek.

Former Member
0 Kudos

I found this link last night. Worked for me.

Tx all

Edited by: Miguel Pereira on Jun 4, 2010 6:54 PM

Answers (1)

Answers (1)

stefan_grube
Active Contributor
0 Kudos

Maybe you could use Java mapping for this?

In graphical mapping tool you provide an entry, that no other element could have like @@, then in Java mapping you use replace method to change >@@ with xsi:nil="true">

You also have to provide namespace declaration xmlns:xsi="..."

Former Member
0 Kudos

i agree to Stefan...Java mapping is the most appropriate way to add this...

so whichever is your actual mapping, add after that a java mapping in the interface mapping chain which does simply a check if the tag doesnt have any value and then add an attribute xsi:nil=true and offcourse with the additional of namespace declaration at the start of the XML.

the java mapping could also be designed as a reusable one.

Rgds,