cancel
Showing results for 
Search instead for 
Did you mean: 

SAP B1if save draft to document

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member192773
Active Participant
0 Kudos

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