Skip to Content
author's profile photo Former Member
Former Member

Trouble using oJournalVocuher's Remove Object

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>

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Dec 09, 2014 at 12:21 AM

    Hi,

    Please repost above query at SDK forum to get quick assistance.

    Close this thread here with helpful answer.

    Thanks & Regards,

    Nagarajan

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.