Hi
I am trying to send a batch request for Updating a PO. I have a GW service in which I have redefined the methods for this class
method /IWBEP/IF_MGW_APPL_SRV_RUNTIME~CHANGESET_BEGIN and END.
I am testing in GW Client and this is the error I get. Can you pls advise what could be the problem here?
The header value for my Request is like this
URL: /sap/opu/odata/sap/ZXXXXXXXX<servicename>/$batch
application/atom+xml;type=entry; charset=utf-8;boundary=batch
X-CSRF-Token: xxxxxxx
Response
--------------
<?xml version="1.0" encoding="UTF-8"?><error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><code>005056A509B11ED199D8826D151FC0FE</code><message xml:lang="en">The specified HTTP method is not allowed for the resource identified by the Data Service Request URI</message></error>
Request
--------------
--batch
Content-Type: multipart/mixed; boundary=changeset
--changeset
Content-Type: application/http
Content-Transfer-Encoding: binary
PUT POItem_Set(PoItem='00010',PoId='XXXXX') HTTP/1.1
Content-Type: application/atom+xml
Content-Length: 1000
<?xml version="1.0" encoding="utf-8"?>
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<atom:content type="application/xml">
<m:properties>
<d:AgmtItem>00000</d:AgmtItem>
<d:Agreement/>
<d:AcknowlNo/>
<d:AcknReqd>X</d:AcknReqd>
<d:GrBasediv>X</d:GrBasediv>
<d:FreeItem/>
<d:IrInd>X</d:IrInd>
<d:GrNonVal/>
<d:GrInd>X</d:GrInd>
<d:PartInv/>
<d:Distrib/>
<d:Acctasscat>K</d:Acctasscat>
<d:ItemCat>0</d:ItemCat>
<d:FinalInv/>
<d:NoMoreGr>X</d:NoMoreGr>
<d:PoItem>00030</d:PoItem>
<d:DeleteInd/>
<d:ShortText>HMST CHK PAT 80/20 2.5</d:ShortText>
<d:ValType/>
<d:Material>023321-3504</d:Material>
<d:MaterialExternal/>
<d:MaterialGuid/>
<d:MaterialVersion/>
<d:Ematerial>023321-3504</d:Ematerial>
<d:UnderDlvTol>90.0</d:UnderDlvTol>
<d:EmaterialExternal/>
<d:EmaterialGuid/>
<d:EmaterialVersion/>
<d:UnlimitedDlv/>
<d:Plant>8882</d:Plant>
<d:StgeLoc/>
<d:Trackingno>3331100100</d:Trackingno>
<d:OverDlvTol>90.0</d:OverDlvTol>
<d:MatlGroup>18003</d:MatlGroup>
<d:InfoRec>5300504187</d:InfoRec>
<d:VendMat/>
<d:Reminder3>0</d:Reminder3>
<d:Quantity>4230.000</d:Quantity>
<d:PoUnit>LB</d:PoUnit>
<d:PoUnitIso>LB</d:PoUnitIso>
<d:Reminder2>0</d:Reminder2>
<d:OrderprUn>LB</d:OrderprUn>
<d:OrderprUnIso>LB</d:OrderprUnIso>
<d:ConvNum1>1</d:ConvNum1>
<d:Reminder1>0</d:Reminder1>
<d:ConvDen1>1</d:ConvDen1>
<d:NetPrice>322.070000000</d:NetPrice>
<d:PriceUnit>100</d:PriceUnit>
<d:EstPrice/>
<d:GrPrTime>0</d:GrPrTime>
<d:TaxCode>I0</d:TaxCode>
<d:BonGrp1/>
<d:PrntPrice>X</d:PrntPrice>
<d:QualInsp/>
<d:InfoUpd>B</d:InfoUpd>
<d:Shipping/>
<d:Customer/>
<d:CondGroup/>
<d:NoDisct/>
<d:PlanDel>0</d:PlanDel>
<d:NetWeight>1.000</d:NetWeight>
<d:Weightunit>LB</d:Weightunit>
<d:WeightunitIso>LB</d:WeightunitIso>
<d:Taxjurcode>0414305600</d:Taxjurcode>
<d:CtrlKey/>
<d:ConfCtrl/>
<d:RevLev/>
<d:Fund/>
<d:FundsCtr/>
<d:CmmtItem/>
<d:Pricedate/>
<d:PriceDate>2014-07-09T00:00:00</d:PriceDate>
<d:GrossWt>1.520</d:GrossWt>
<d:Volume>0.135</d:Volume>
<d:Volumeunit>FT3</d:Volumeunit>
<d:VolumeunitIso>CF</d:VolumeunitIso>
<d:Incoterms1/>
<d:Incoterms2/>
<d:PreVendor/>
<d:VendPart/>
<d:HlItem>00000</d:HlItem>
<d:GrToDate m:null="true"/>
<d:SuppVendor/>
<d:ScVendor/>
<d:KanbanInd/>
<d:Ers>X</d:Ers>
<d:RPromo/>
<d:Points>0.000</d:Points>
<d:PointUnit/>
<d:PointUnitIso/>
<d:Season/>
<d:SeasonYr/>
<d:BonGrp2/>
<d:BonGrp3/>
<d:SettItem/>
<d:Minremlife>1</d:Minremlife>
<d:RfqNo/>
<d:RfqItem>00000</d:RfqItem>
<d:PreqNo/>
<d:PreqItem>00000</d:PreqItem>
<d:RefDoc/>
<d:RefItem>00000</d:RefItem>
<d:SiCat/>
<d:RetItem/>
<d:AtRelev/>
<d:OrderReason/>
<d:BrasNbm/>
<d:MatlUsage/>
<d:MatOrigin/>
<d:InHouse/>
<d:Indus3/>
<d:InfIndex/>
<d:UntilDate m:null="true"/>
<d:DelivCompl/>
<d:PartDeliv/>
<d:ShipBlocked/>
<d:PreqName/>
<d:PeriodIndExpirationDate/>
<d:IntObjNo>000000000000000000</d:IntObjNo>
<d:PckgNo>0000000000</d:PckgNo>
<d:Batch/>
<d:Vendrbatch/>
<d:Calctype/>
<d:GrantNbr/>
<d:CmmtItemLong/>
<d:FuncAreaLong/>
<d:NoRounding/>
<d:PoPrice/>
<d:SupplStloc/>
<d:SrvBasedIv/>
<d:FundsRes/>
<d:ResItem>000</d:ResItem>
<d:OrigAccept/>
<d:AllocTbl/>
<d:AllocTblItem>00000</d:AllocTblItem>
<d:SrcStockType/>
<d:ReasonRej/>
<d:CrmSalesOrderNo/>
<d:CrmSalesOrderItemNo>000000</d:CrmSalesOrderItemNo>
<d:CrmRefSalesOrderNo/>
<d:CrmRefSoItemNo/>
<d:PrioUrgency>00</d:PrioUrgency>
<d:PrioRequirement>000</d:PrioRequirement>
<d:ReasonCode/>
<d:FundLong/>
<d:LongItemNumber/>
<d:ExternalSortNumber>00000</d:ExternalSortNumber>
<d:ExternalHierarchyType/>
<d:RetentionPercentage>0.00</d:RetentionPercentage>
<d:DownpayType/>
<d:DownpayAmount>0.0000</d:DownpayAmount>
<d:DownpayPercent>0.00</d:DownpayPercent>
<d:DownpayDuedate m:null="true"/>
<d:ExtRfxNumber/>
<d:ExtRfxItem/>
<d:ExtRfxSystem/>
<d:SrmContractId/>
<d:SrmContractItm>0000000000</d:SrmContractItm>
<d:BudgetPeriod/>
<d:BlockReasonId/>
<d:BlockReasonText/>
<d:PoId>3470035923</d:PoId>
<d:SpeCrmFkrel/>
<d:DateQtyFixed/>
</m:properties>
</atom:content>
</atom:entry>
--changeset--
--batch--
When I don't use batch mode then the update works fine.
Thanks
Ashish