Skip to Content
avatar image
Former Member

SAP B1if save draft to document

Hi all, I'm trying to add a Purchase Request that needs to be approved in SAP. When I create the PR, it is created as a draft because approval rules that are in place in SAP.

After I approved the draft via B1if I can not find how to convert this approved draft into a PR using B1if. With DI-API/DI-Service I have used the method savedrafttodocument().

How can I convert an approved draf into the PR ?

Regards

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jul 22, 2015 at 07:31 AM

    Hello Lucas,

    In B1i you need to use "addDocWithApproval" to let SBO determinate the approval.

    If you would like to transfer an existing draft to a document you can try to manually enter the method: saveDraftToDocument.

    We did asked SAP for this a time ago,

    Hope this helps.

    Best Regards

    Teun

    Add comment
    10|10000 characters needed characters exceeded