Draft Conversion Triggers Duplicate Approval in SAP Business One Service Layer

4 months ago 28

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:

  1. Create a PO: The PO draught is created and submitted for approval.
  2. Approval Process: The PO draught goes done the support process and is approved.
  3. Convert Draft to Document: I usage the DraftsService_SaveDraftToDocument work to person the approved draught to a last document.
  4. 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

staseeb_0-1718281590790.png

Template Settings

staseeb_1-1718281644129.png

SAP Version

staseeb_2-1718281689648.png

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

Read Entire Article