on 12-08-2014 11:45 PM
I have trouble of executing oJournalVouchers’ RemoveObject.
There are some errors when I tried QueryParams with JdtNum and BatchNum and I have no clues of how to use QueryParams.
Doesn’t DI Server support oJournalVouchers’s RemoveObject?
Or is there any other way to delete oJournalVouchers through DI Server?
Please guide me out.
Below are cases that I’ve tried.
[Case 1 ? Executing QueryParams with JdtNum]
Request
--------
<?xml version="1.0" encoding="utf-16"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header>
<SessionID>20662D4A-D281-4D1D-B14F-1387465AA0FE</SessionID>
</env:Header>
<env:Body>
<dis:RemoveObject xmlns:dis="http://www.sap.com/SBO/DIS" CommandID="Remove JournalVouchers">
<BOM>
<BO xmlns="http://www.sap.com/SBO/DIS">
<AdmInfo>
<Object>oJournalVouchers</Object>
</AdmInfo>
<QueryParams>
<JdtNum>89</JdtNum>
</QueryParams>
</BO>
</BOM>
</dis:RemoveObject>
</env:Body>
</env:Envelope>
Response
--------
<?xml version="1.0"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
<env:Body>
<env:Fault>
<env:Code>
<env:Value>env:Receiver</env:Value>
<env:Subcode>
<env:Value>-1000</env:Value>
</env:Subcode>
</env:Code>
<env:Reason>
<env:Text xml:lang="en">Property 'JdtNum' of 'JournalVoucher' is invalid</env:Text>
</env:Reason>
<env:Detail>
<Object>28</Object>
<ObjectIndex>1</ObjectIndex>
<Command>RemoveObject</Command>
<CommandID>Remove JournalVouchers</CommandID>
<SessionID>20662D4A-D281-4D1D-B14F-1387465AA0FE</SessionID>
</env:Detail>
</env:Fault>
</env:Body>
</env:Envelope>
[Case 2 - Executing QueryParams with BatchNum]
Request
--------
<?xml version="1.0" encoding="utf-16"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header>
<SessionID>E20DDB55-FB2A-4367-8E54-E440AB97E179</SessionID>
</env:Header>
<env:Body>
<dis:RemoveObject xmlns:dis="http://www.sap.com/SBO/DIS" CommandID="Remove JournalVouchers">
<BOM>
<BO xmlns="http://www.sap.com/SBO/DIS">
<AdmInfo>
<Object>oJournalVouchers</Object>
</AdmInfo>
<QueryParams>
<BatchNum>86</BatchNum>
</QueryParams>
</BO>
</BOM>
</dis:RemoveObject>
</env:Body>
</env:Envelope>
Response
--------
<?xml version="1.0"?>
<?xml version="1.0"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
<env:Body>
<env:Fault>
<env:Code>
<env:Value>env:Receiver</env:Value>
<env:Subcode>
<env:Value>-1000</env:Value>
</env:Subcode>
</env:Code>
<env:Reason>
<env:Text xml:lang="en">Property 'BatchNum' of 'JournalVoucher' is invalid</env:Text>
</env:Reason>
<env:Detail>
<Object>28</Object>
<ObjectIndex>1</ObjectIndex>
<Command>RemoveObject</Command>
<CommandID>Remove JournalVouchers</CommandID>
<SessionID>E20DDB55-FB2A-4367-8E54-E440AB97E179</SessionID>
</env:Detail>
</env:Fault>
</env:Body>
</env:Envelope>
Hi,
Please repost above query at SDK forum to get quick assistance.
Close this thread here with helpful answer.
Thanks & Regards,
Nagarajan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
11 | |
10 | |
6 | |
5 | |
5 | |
5 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.