Skip to Content

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

XI interface mapping faulty?

Hello XI Gurus,

we have defined a scenario in XI which exposes a RFC enabled function module

as a webservice through the SOAP adapter.

we build all relevant objects in the Integration repository, imported the RFC,

config'ed the routing for the runtime workbench. However, in the config test I

get following error which I can't seem to figure out (see trace below)

The problem seems to be that the transformation of the message types

ReqCreateNotificationItem_Z_MM into the message type of the function

module ZPM_CREATE_NOTIFICATION is not well-defined. Testing the transformation

in the IR was o.k. though....

Is the reason a missing package? Checking the trace I find this message:

*$Proxy192.processFunction(Unknown Source)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)*

Grateful for any clues.

Bjoern

TRACE

Sender Agreement

| Remote_SRV | CreateNotification_MI | |

 

Runtime exception occurred during execution of application

mapping program com/sap/xi/tf/_ReqCreateNotificationItem_Z_MM_:

com.sap.aii.utilxi.misc.api.BaseRuntimeException; RuntimeException

...etc. messages repeated...

MESSAGE TYPES

<?xml version="1.0" encoding="ISO-8859-1"?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"

xmlns="http://www.absoft.co.uk/remoteinfratructure"

targetNamespace="http://www.absoft.co.uk/remoteinfratructure">

<xsd:element name="ReqCreateNotification_MT" type="ReqCreateNotification_DT" />

<xsd:complexType name="ReqCreateNotification_DT">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

cb8e239001a311ddaf660017a43be5d6

</xsd:appinfo>

</xsd:annotation>

<xsd:sequence>

<xsd:element name="FunctionalLocationLabel">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

603e8dc0fcd811dcc1920012793c860a

</xsd:appinfo>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="30" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="Shorttext">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

603e8dc1fcd811dc91250012793c860a

</xsd:appinfo>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="40" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="Longtext">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

603e8dc2fcd811dc9e710012793c860a

</xsd:appinfo>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="132" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="NotificationType">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

603e8dc3fcd811dcb67b0012793c860a

</xsd:appinfo>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="2" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="PriorityCode">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

603e8dc4fcd811dcaf530012793c860a

</xsd:appinfo>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="1" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="ReportedBy">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

603e8dc5fcd811dccfa70012793c860a

</xsd:appinfo>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="12" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="ConditionBeforeMalfunction" minOccurs="0">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

d4ea2e10016311ddbb2d0012793c860a

</xsd:appinfo>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="1" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="ConditionAfterTask" minOccurs="0">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

d4ea2e11016311dd84170012793c860a

</xsd:appinfo>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="1" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="FailFixIndicator" type="xsd:boolean" minOccurs="0">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

d4ea2e12016311dda3c70012793c860a

</xsd:appinfo>

</xsd:annotation>

</xsd:element>

<xsd:element name="FailIndicator" type="xsd:boolean" minOccurs="0">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

d4ea2e13016311ddc6680012793c860a

</xsd:appinfo>

</xsd:annotation>

</xsd:element>

<xsd:element name="WorkorderNumber" minOccurs="0">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

d4ea2e14016311ddbe7c0012793c860a

</xsd:appinfo>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="12" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="NotificationItem">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

090f5910015d11dd90c00012793c860a

</xsd:appinfo>

</xsd:annotation>

<xsd:complexType>

<xsd:sequence>

<xsd:element name="Item" type="ReqCreateNotificationItem_DT" minOccurs="0" maxOccurs="unbounded">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

090f5911015d11dd87950012793c860a

</xsd:appinfo>

</xsd:annotation>

</xsd:element>

</xsd:sequence>

</xsd:complexType>

</xsd:element>

</xsd:sequence>

</xsd:complexType>

<xsd:complexType name="ReqCreateNotificationItem_DT">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

cb90467001a311dd8da80017a43be5d6

</xsd:appinfo>

</xsd:annotation>

<xsd:sequence>

<xsd:element name="Group">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

b4d25d80015b11ddcdc50012793c860a

</xsd:appinfo>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="8" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="ObjectPartCode">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

b4d25d81015b11dd8fd10012793c860a

</xsd:appinfo>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="4" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="DamageCode">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

b4d25d82015b11dd8a710012793c860a

</xsd:appinfo>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="4" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="ProblemCode">

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

b4d25d83015b11dd966b0012793c860a

</xsd:appinfo>

</xsd:annotation>

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="4" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

</xsd:sequence>

</xsd:complexType>

</xsd:schema>

<?xml version="1.0" encoding="ISO-8859-1"?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"

xmlns="urn:sap-com:document:sap:rfc:functions"

targetNamespace="urn:sap-com:document:sap:rfc:functions">

<xsd:element name="ZPM_CREATE_NOTIFICATION">

<xsd:complexType>

<xsd:all>

<xsd:element name="CONDBEFOREMALFUNCTION" minOccurs="0">

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="1" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="CONDITIONAFTERTASK" minOccurs="0">

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="1" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="FAILFIXINDICATOR" minOccurs="0">

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="1" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="FAILINDICATOR" minOccurs="0">

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="1" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="FUNCTIONALLOCATIONLABEL">

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="30" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="LONGTEXT" minOccurs="0">

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="132" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="NOTIFICATIONTYPE">

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="2" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="PRIORITYCODE" minOccurs="0">

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="1" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="REPORTEDBY">

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="12" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="SHORTTEXT">

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="40" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="WORKORDERNUMBER" minOccurs="0">

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="12" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="NOTIFICATIONITEM">

<xsd:complexType>

<xsd:sequence>

<xsd:element name="item" type="ZIF_XI_NOTIF_ITEM" minOccurs="0" maxOccurs="unbounded" />

</xsd:sequence>

</xsd:complexType>

</xsd:element>

<xsd:element name="RETURN">

<xsd:complexType>

<xsd:sequence>

<xsd:element name="item" type="BAPIRET2" minOccurs="0" maxOccurs="unbounded" />

</xsd:sequence>

</xsd:complexType>

</xsd:element>

</xsd:all>

</xsd:complexType>

</xsd:element>

<xsd:complexType name="ZIF_XI_NOTIF_ITEM">

<xsd:sequence>

<xsd:element name="OBJECTPARTGROUP" minOccurs="0">

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="8" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="OBJECTPARTCODE" minOccurs="0">

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="4" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="DAMAGEGROUP" minOccurs="0">

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="8" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="DAMAGECODE" minOccurs="0">

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="4" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="PROBLEMGROUP" minOccurs="0">

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="8" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="PROBLEMCODE" minOccurs="0">

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="4" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

</xsd:sequence>

</xsd:complexType>

<xsd:complexType name="BAPIRET2">

<xsd:sequence>

<xsd:element name="TYPE" minOccurs="0">

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="1" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="ID" minOccurs="0">

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="20" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="NUMBER" minOccurs="0">

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="3" />

<xsd:pattern value="d+" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="MESSAGE" minOccurs="0">

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="220" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="LOG_NO" minOccurs="0">

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="20" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="LOG_MSG_NO" minOccurs="0">

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="6" />

<xsd:pattern value="d+" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="MESSAGE_V1" minOccurs="0">

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="50" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="MESSAGE_V2" minOccurs="0">

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="50" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="MESSAGE_V3" minOccurs="0">

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="50" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="MESSAGE_V4" minOccurs="0">

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="50" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="PARAMETER" minOccurs="0">

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="32" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="ROW" type="xsd:integer" minOccurs="0" />

<xsd:element name="FIELD" minOccurs="0">

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="30" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

<xsd:element name="SYSTEM" minOccurs="0">

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:maxLength value="10" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

</xsd:sequence>

</xsd:complexType>

</xsd:schema>

MESSAGE MAPPING

/ns1:ZPM_CREATE_NOTIFICATION/CONDBEFOREMALFUNCTION

=/ns0:ReqCreateNotification_MT/ConditionBeforeMalfunction=

/ns1:ZPM_CREATE_NOTIFICATION/CONDITIONAFTERTASK

=/ns0:ReqCreateNotification_MT/ConditionAfterTask=

/ns1:ZPM_CREATE_NOTIFICATION/FUNCTIONALLOCATIONLABEL

=/ns0:ReqCreateNotification_MT/FunctionalLocationLabel=

/ns1:ZPM_CREATE_NOTIFICATION/LONGTEXT

=/ns0:ReqCreateNotification_MT/Longtext=

/ns1:ZPM_CREATE_NOTIFICATION/NOTIFICATIONTYPE

=/ns0:ReqCreateNotification_MT/NotificationType=

/ns1:ZPM_CREATE_NOTIFICATION/PRIORITYCODE

=/ns0:ReqCreateNotification_MT/PriorityCode=

/ns1:ZPM_CREATE_NOTIFICATION/REPORTEDBY

=/ns0:ReqCreateNotification_MT/ReportedBy=

/ns1:ZPM_CREATE_NOTIFICATION/SHORTTEXT

=/ns0:ReqCreateNotification_MT/Shorttext=

/ns1:ZPM_CREATE_NOTIFICATION/NOTIFICATIONITEM

=/ns0:ReqCreateNotification_MT/NotificationItem=

/ns1:ZPM_CREATE_NOTIFICATION/NOTIFICATIONITEM/item

=/ns0:ReqCreateNotification_MT/NotificationItem/Item=

/ns1:ZPM_CREATE_NOTIFICATION/NOTIFICATIONITEM/item/OBJECTPARTGROUP

=/ns0:ReqCreateNotification_MT/NotificationItem/Item/Group=

/ns1:ZPM_CREATE_NOTIFICATION/NOTIFICATIONITEM/item/OBJECTPARTCODE

=/ns0:ReqCreateNotification_MT/NotificationItem/Item/ObjectPartCode=

/ns1:ZPM_CREATE_NOTIFICATION/NOTIFICATIONITEM/item/DAMAGEGROUP

=/ns0:ReqCreateNotification_MT/NotificationItem/Item/Group=

/ns1:ZPM_CREATE_NOTIFICATION/NOTIFICATIONITEM/item/DAMAGECODE

=/ns0:ReqCreateNotification_MT/NotificationItem/Item/DamageCode=

/ns1:ZPM_CREATE_NOTIFICATION/NOTIFICATIONITEM/item/PROBLEMGROUP

=/ns0:ReqCreateNotification_MT/NotificationItem/Item/Group=

/ns1:ZPM_CREATE_NOTIFICATION/NOTIFICATIONITEM/item/PROBLEMCODE

=/ns0:ReqCreateNotification_MT/NotificationItem/Item/ProblemCode=

Edited by: Bjoern Harzer on Apr 3, 2008 7:32 PM

Former Member
Former Member replied

Bjoern:

You said that testing the transformation was ok in IR. But the following to me clearly states that there is mapping problem.

RuntimeException in Message-Mapping transformation: Cannot produce target element /ns1:ZPM_CREATE_NOTIFICATION/FUNCTIONALLOCATIONLABEL. Check xml instance is valid for source xsd and target-field mapping

It seems the target field ZPM_CREATE_NOTIFICATION/FUNCTIONALLOCATIONLABEL is not being created. Did you check the mappings by providing some pay load on the test tab. Can you please once again check the transformations.

0 View this answer in context

Helpful Answer

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