on 12-26-2005 2:55 PM
Hi,Everyone
I am in trouble with the External Definitions. The situation is the i had uploaded the XSD documents from the local files in 'External Definitions'.I want to use the XSD document as 'Output Message' in Message Interfaces or as 'Source Message' in Message Mapping, now i can see the separated field but not the structure that containts the all fields of the XSD.
So i wish to know either how to convert the XSD or the other ways to make me see the structure. I also want to know more threads about using XSD.
I am waiting for your help, thanks
Best Wishes
Amanda
Hi,
Also for that particular field in mapping, check mapping is done and check by giving test input and display Queue for that particular field
Regards,
Sudharshan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check whether the Namespace and Message Type that you see in the Test and in the input file that u give,exactly match. This may cause exception during run time.
Regards,
Sudharshan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Just to cross check your scenario. once you have loaded your xsd, you will have an entry in External Definitions in the navigation window. Now in your message mapping either at the source or Target Message Type click the Question Mark (?)icon and choose the External Definition that u have uploaded. once this is done the structure of that XSD i.e message type will appear and check whether all your intended structures are present.
Regards,
Sudharshan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi amanda,
when ever u get an XSD, there could be many number of messages as u are seeing while selecting that particular external definition into message mapping. Normally how XSDs are prepared is like we include only those messages which are relevant to us under one element.
it is not necessary that u can see all the messages defined in XSD into ur mapping..
Let us say u see like:
File
Record
Name
Age
Address
Street
City
Address
as ur message u ll see onlyAddress
Street
City
File
, u might see;File
Record
Name
Age
Address
Street
City
It totally depends on how ur XSD is structured. So u need to select the appropriate message..
I hope it helps
Shailesh
OK, Thanks everyone
Now I have gotten the structure as what you see,thanks a lot.
But I have another question about Message Mapping,
The error message like this:
- <!-- Request Message Mapping
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>Application</SAP:Category>
<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
<SAP:P1>com/sap/xi/tf/_MM_RM_CRM_</SAP:P1>
<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
<SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>Während des Anwendungs-Mappings com/sap/xi/tf/_MM_RM_CRM_ wurde eine com.sap.aii.utilxi.misc.api.BaseRuntimeException geworfen: RuntimeException in Message-Mapping transformatio~.</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
I don't know how to solve this trouble.
I am waiting for your help
Best Wishes
Amanda
Hi Amanda,
This kind of error occurs when ur XML file containing the Test Data and the XSD does not match in strucutre.Please check for the compatibility of both whether the test dat contains all values for XSD and that all nodes of XSD properly mapped.
If any conditions applied on the nodes for the incoming values that must also be checked.
Cheers,
Rashmi
hi,everyone
Go on talking above questions,
the message in the trace like this:
<Trace level="1" type="T">Runtime exception occurred during execution of application mapping program com/sap/xi/tf/_MM_RM_CRM_: com.sap.aii.utilxi.misc.api.BaseRuntimeException; RuntimeException in Message-Mapping transformation: Cannot produce target element /ZCRMXIF_PARTNER_SAVE_M01. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd</Trace>
thanks a lot and i am waiting for your help
Amanda
Hi Amanda,
1. Check the occurence of the element <i>ZCRMXIF_PARTNER_SAVE_M01</i>.
2.Check whether u have a valid mapping for that particular element.If u have any conditions applied upon this element and if the incoming value doesnt satisfy this condition you will get such a error.
To check for XSD and XML compatibilty you can create an XML from the XSD with any of the XML editor like XML SPY or Stylus.
Cheers,
Rashmi
Hi Amanda,
When you are selecting ur XSd from the message mapping, you will get many nodes under'External Definitions'.From these you need to select ur root node (of the XSD).Only then you will get the structure as you expected in the 'source message' option in mapping. hope this helps.
Regards,
Priyanka
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amanda,
After importing XSD into External Definition, go to the messages tab. Their either you can see one message or a number of messages. Just go thru your XSD and search for the field which has in itself reference to all the fields. For eg 'A' in this case :
<xs:element name="A">
<xs:complexType>
<xs:sequence maxOccurs="unbounded">
<xs:element ref="Trans" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Trans">
<xs:complexType>
<xs:sequence>
<xs:element ref="Header" />
<xs:element ref="Detail" maxOccurs="unbounded" />
<xs:element ref="Summary" />
</xs:sequence>
</xs:complexType>
</xs:element>
Hope this will be helpful for you.
Regards
Suraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
The following threads can help you.
The following link might also help.
http://help.sap.com/saphelp_nw04/helpdata/en/c8/7e5e3c754e476ee10000000a11405a/content.htm
Regards,
P.Venkataramanan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amanda,
Open your xsd in tools like XML spy and check for the well-formedness and go to the view where you can see the nodes and its childs associated. Check whether the one which you have uploaded is having the nodes that are needed.
Cheers
JK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.