Skip to Content

Change document status via di-api

Hi,

Is it possible to change a A/R document status via DI-API?

Scenario: I want to create a A/R credit note for a paid invoice, without cancelling first the linked payment. In SAP client, I just need to right click my Invoice, select popup menu option "Change documento status do Open" and save invoice. Then I can create a CN directly to my Invoice.

Can't find a way to do it via DI-API.

Please help!

Thanks

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on May 07 at 05:53 AM

    Hi Manuel,

    The client does all the work in the background (cancel linked payment, open invoice), when you click the menu option. With the DI API you simply have to perform the steps manually.

    Regards,

    Johan

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 07 at 03:24 PM

    Hi Johan,

    Thanks for the feedback.

    When you change the invoice status to open, SAP only changes the document status and does not cancel the payment as you say (please execute the test, in case you have never used this functionality).

    There must be a way to do this via DI-API, since this is a normal situation when you want to return only specific items in the invoice. Due to specific VAT / SAFT rules on some EU countries, you can't cancel the full payment just to return some items; additionally the Credit Note must be linked to the original Invoice.

    Manuel Dias

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 11 at 10:25 AM

    After several attempts, this is the solution to reopen a A/R Invoice status or other document, via DI-API:

    SAPbobsCOM.Documents dInvoice = ...;
    dInvoice.GetByKey(...); 
    dInvoice.Reopen();
    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.