SAP Knowledge Base Article - Public

3223402 - Error: Operation not possible. Document is not finished when creating a Physical Inventory

Symptom

The below error appears when trying to create a Physical Inventory Count with an .ABSL script on your custom solution from the Cloud Applications Studio:

  • Operation not possible. Document is not finished

Environment

  • SAP Cloud Applications Studio
  • SAP Business ByDesign

Cause

Every physical inventory document has a CountMethodCode type on Root node, from PhysicalInventoryCount BO.

CountMethodCode = "2" is a Inventory Adjustment.

CountMethodCode = "3" is a Product Count.

When creating a physical inventory document with ABSL where the CountMethodCode = "2", the document needs to be approved with method ApproveCount(). If the document is not approved, the error is thrown and the document is not created.

However, documents can be created with CountMethodCode = "3" without approving.

Resolution

Add the ApproveCount() method on the ABSL when creating an Inventory Adjustment (CountMethodCode = "2") document type.

Keywords

PDI, SDK, message, fault, operation, not, possible, document, is, finished , KBA , AP-RC-BDS-SCR , ByDesign Studio Scripting (ABSL) , How To

Product

SAP Business ByDesign all versions ; SAP Cloud Applications Studio all versions