Problem Statement: Draft Conversion Triggers Duplicate Approval successful SAP Business One Service Layer
Hello SAP Community,
I’m encountering an contented with the DraftsService_SaveDraftToDocument work successful SAP Business One, and I’m hoping idiosyncratic tin supply guidance oregon a solution.
Scenario:
- System: SAP Business One (Service Layer)
- Process: Converting a draught Approved Purchase Order (PO) to a last document
Issue:
When I usage the DraftsService_SaveDraftToDocument work to person an approved draught PO to a last document, it triggers the support process again. Here’s the elaborate workflow:
- Create a PO: The PO draught is created and submitted for approval.
- Approval Process: The PO draught goes done the support process and is approved.
- Convert Draft to Document: I usage the DraftsService_SaveDraftToDocument work to person the approved draught to a last document.
- Re-trigger Approval: The conversion process re-triggers the approval, and I person to o.k. it again. Only aft the 2nd support does the papers get saved by calling DraftsService_SaveDraftToDocument.
Observations:
- The support template is acceptable to “Always” cheque for approvals.
- The papers presumption earlier conversion is afloat approved.
Payload Example:
Here is the JSON payload I americium utilizing for the conversion:
{ "Document": { "DocEntry": 12345 } }Steps Taken:
- Verified that the support template settings are close and bash not person duplicate conditions.
- Ensured the draught presumption is afloat approved earlier conversion.
General Settings
Template Settings
SAP Version
Question:
Has anyone experienced akin issues with the DraftsService_SaveDraftToDocument service? How tin I forestall the support process from being re-triggered upon conversion of the approved draught to a last document?
Any insights oregon solutions would beryllium greatly appreciated. Thank you!
@ANKIT_CHAUHAN