SAP Knowledge Base Article - Public

3220710 - Error Occurs when Accessing Standard API ProductAvailabilityDeterminationIn

Symptom

You access standard web service - ProductAvailabilityDeterminationIn and would like to see in result quantity from stock overview but facing an error message as below
"Combination of product XXX and planning area YYY not valid."

Environment

SAP BUSINESS BYDESIGN

Reproducing the Issue

Request XML:

 n0:ProductAvailabilityDeterminationQuery_sync xmlns:n0="http://sap.com/xi/SAPGlobal20/Global">
<ProductAvailabilityDeterminationQuery>
<ConsiderScopeOfCheckIndicator>false</ConsiderScopeOfCheckIndicator>
<ProductAndSupplyPlanningArea>
<ProductInternalID>XXX</ProductInternalID>
<ProductTypeCode>1</ProductTypeCode>
<ProductRequirementSpecificationID/>
<SupplyPlanningAreaID>YYY</SupplyPlanningAreaID>
</ProductAndSupplyPlanningArea>
<ProductAvailabilityDeterminationHorizonDuration>P0D</ProductAvailabilityDeterminationHorizonDuration>
</ProductAvailabilityDeterminationQuery>
</n0:ProductAvailabilityDeterminationQuery_sync>

Cause

In the request XML, ConsiderScopeOfCheckIndicator indicator is 'true' meaning all the products in the request XML should have an availability scope maintained. If not, the error "Availability confirmation mode for product <product> not maintained " will be raised.

The mentioned issue would only occur when any of the product/SPA combination in the request XML do not have an availability scope maintained when scope of check tag in the request XML is true.

Resolution

In order to add availability scope, steps are as follows;

  1. Navigate to Product Data - Materials View
  2. Search and Edit Product
  3. Go to Availability Confirmation Tab
  4. You will find that the "Availability Check Scope" is blank, this needs to be filled.

In order to maintain availability confirmation combination;

Follow steps 1 through 3.

Add Product XXX and maintain the required planning area YYY mentioned in the error message "Combination of product XXX and planning area YYY not valid".

Keywords

ProductAvailabilityDeterminationIn;   Availability Confirmation;  Combination;  Availability Check Scope , KBA , AP-SDM-SPR , Supply Planning Requirement , Problem

Product

SAP Business ByDesign 2022