on 08-08-2016 11:12 AM
Hello Experts,
I am trying to call a create deep entity set method which I have programmed to Create a PM order with multiple operations and services. I have maintained the relevant associations and the read operation works fine as expected.
I am trying to pass a xml payload to call the create deep entity set operation and I am getting an error which says
System expected the element '{http://www.w3.org/2005/Atom}entry'
<code>CX_ST_MATCH_ELEMENT/544FAE4641562346A1372144E7396586</code>
<message xml:lang="en">System expected the element '{http://www.w3.org/2005/Atom}entry'</message>
I am attaching my payload file along with this post.
Please check and let me know if I am missing any steps/details.
Regards,
Manu
Hello Manu,
Please try with the below payload and check.
<?xml version="1.0" encoding="utf-8"?>
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">
<atom:content type="application/xml">
<m:properties>
<d:ORDERID>%00000000001</d:ORDERID>
<d:ORDER_TYPE>ZRR1</d:ORDER_TYPE>
<d:PLANPLANT>1110</d:PLANPLANT>
<d:MN_WK_CTR>24/7</d:MN_WK_CTR>
<d:PMACTTYPE>R05</d:PMACTTYPE>
<d:PLANGROUP>003</d:PLANGROUP>
<d:FUNCT_LOC>000003/0001/001</d:FUNCT_LOC>
<d:SHORT_TEXT>First Test from Deep Entity</d:SHORT_TEXT>
<d:START_DATE>2016-08-04T00:00:00</d:START_DATE>
<d:FINISH_DATE>2016-08-05T00:00:00</d:FINISH_DATE>
</m:properties>
</atom:content>
<atom:link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/PMOrderOperationsSet" type="application/atom+xml;type=feed" title="ZPMORDERS1_SRV.PMOrderHeaderOperationsAssociation">
<m:inline>
<atom:feed>
<atom:entry>
<atom:content type="application/xml">
<m:properties>
<d:ORDERID>%00000000001</d:ORDERID>
<d:ACTIVITY>0010</d:ACTIVITY>
<d:CONTROL_KEY>ZINT</d:CONTROL_KEY>
<d:WORK_CNTR>24/7</d:WORK_CNTR>
<d:DESCRIPTION>test2342423</d:DESCRIPTION>
<d:QUANTITY>1.000</d:QUANTITY>
<d:BASE_UOM/>
<d:ACTTYPE>ZSERV</d:ACTTYPE>
</m:properties>
</atom:content>
</atom:entry>
<atom:entry>
<atom:content type="application/xml">
<m:properties>
<d:ORDERID>%00000000001</d:ORDERID>
<d:ACTIVITY>0020</d:ACTIVITY>
<d:CONTROL_KEY>ZINT</d:CONTROL_KEY>
<d:WORK_CNTR>24/7</d:WORK_CNTR>
<d:DESCRIPTION>test2342423</d:DESCRIPTION>
<d:QUANTITY>2.000</d:QUANTITY>
<d:PRICE>0.00</d:PRICE>
<d:PURCH_ORG/><d:PUR_GROUP/>
<d:ACTTYPE>ZSERV</d:ACTTYPE>
</m:properties>
</atom:content>
</atom:entry>
</atom:feed>
</m:inline>
</atom:link>
<atom:link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/PMOperationServicesSet" type="application/atom+xml;type=feed" title="ZPMORDERS1_SRV.PMOperationServicesAssociation">
<m:inline>
<atom:feed>
<atom:entry>
<atom:content type="application/xml">
<m:properties>
<d:ORDERID>%00000000001</d:ORDERID>
<d:ACTIVITY>0010</d:ACTIVITY>
<d:OUTLINE>0000000001</d:OUTLINE>
<d:SRV_LINE>0000000010</d:SRV_LINE>
<d:SERVICE>L010001LC-Z0100900</d:SERVICE>
<d:SHORT_TEXT>ELECREP</d:SHORT_TEXT>
<d:SSC_SRV_TYPE>L01</d:SSC_SRV_TYPE>
<d:QUANTITY>4.000</d:QUANTITY>
<d:UOM>EA</d:UOM>
<d:OVF_UNLIM>X</d:OVF_UNLIM>
</m:properties>
</atom:content>
</atom:entry>
<atom:entry>
<atom:content type="application/xml">
<m:properties>
<d:ORDERID>%00000000001</d:ORDERID>
<d:ACTIVITY>0020</d:ACTIVITY>
<d:OUTLINE>0000000042</d:OUTLINE>
<d:SRV_LINE>0000000010</d:SRV_LINE>
<d:SERVICE>L010001LC-Z0100900</d:SERVICE>
<d:SHORT_TEXT>ELECREP</d:SHORT_TEXT>
<d:SSC_SRV_TYPE>L01</d:SSC_SRV_TYPE>
<d:QUANTITY>3.000</d:QUANTITY>
<d:UOM>EA</d:UOM>
<d:OVF_UNLIM>X</d:OVF_UNLIM>
</m:properties>
</atom:content>
</atom:entry>
</atom:feed>
</m:inline>
</atom:link>
</atom:entry>
Regards,
Ashwin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.