Symptom
When trying to trying to confirm outbound warehouse task for supplier return delivery via web service managesitelogisticstaskin, following error occurs:
-Accessing read-only fields not permitted
-Logistics area XXX not valid (XXX represent for the logistics area ID)
Environment
SAP Business ByDesign
Reproducing the Issue
- Logon to the back-end.
- Open the Transaction MDRS and open the Inbound Service: ManageSiteLogisticsTaskIn.
- Consume the corresponding payload, then above error occurs.
- Then navigate to the Outbound Logistics work center.
- Go to the Task Control view.
- Find and select the desired warehouse task.
- See it is Not Started.
- Click Confirm.
- Enter the Source Logistics Area: XXX.
- If open the Logistics Area help value, note it is Active and contains the correct Quantity and Identified Stock.
Cause
For Return to supplier scenario, the Restricted checkbox is checked by default and system is searching for Stock with restricted indicator. Current the restricted product inventory status is unable to fulfilled the business needed, hence, system is not finding the stock with restricted indicator in system, it is giving error.
Resolution
Check from UI side, if necessary we can delete this default indicator in the confirmation screen and the system will then propose logistics areas which have the use Restrict Stock and which also contain non-Restrict Stock.
While using web service to confirm the task, Elements <InventoryRestrictedIndicator> when set to true, marks the particular input material for the given actual quantity as restricted. Normal task confirmations cannot be performed on a stock marked as restricted, user can uncheck the 'Restricted stock' flag when use API to confirm supplier return logistics task since same function implemented in UI.
Here is an correct payload for reference:
<BasicMessageHeader>
<ID schemeID="Token 1" schemeAgencyID="Token 2" schemeAgencySchemeAgencyID="Tok">Token 4</ID>
<UUID schemeID="Token 5" schemeAgencyID="Token 6">?</UUID>
<ReferenceID schemeID="Token 7" schemeAgencyID="Token 8" schemeAgencySchemeAgencyID="Tok">Token 10</ReferenceID>
<ReferenceUUID schemeID="Token 11" schemeAgencyID="Token 12">?</ReferenceUUID>
</BasicMessageHeader>
<SiteLogisticsTask>
<SiteLogisticTaskID>?</SiteLogisticTaskID>
<ReferenceObject>
<ReferenceObjectUUID>?</ReferenceObjectUUID>
<OperationActivity>
<OperationActivityUUID>?</OperationActivityUUID>
<MaterialInput>
<MaterialInputUUID>?</MaterialInputUUID>
<ProductID>?</ProductID>
<SourceLogisticsAreaID>XXX</SourceLogisticsAreaID>
<ActualQuantity unitCode="EA">1</ActualQuantity>
<IdentifiedStockID>?</IdentifiedStockID>
</MaterialInput>
<MaterialOutput>
<MaterialOutputUUID>?</MaterialOutputUUID>
<ProductID>?</ProductID>
<SourceLogisticsAreaID>XXX</SourceLogisticsAreaID>
<ActualQuantity unitCode="EA">1</ActualQuantity>
<IdentifiedStockID>?</IdentifiedStockID>
<InventoryRestrictedIndicator>true</InventoryRestrictedIndicator>
</MaterialOutput>
</OperationActivity>
</ReferenceObject>
</SiteLogisticsTask>
See Also
Keywords
Web service, confirm warehouse task, warehouse task, return to supplier, supplier return delivery, ManageSiteLogisticsTaskIn, Accessing read-only fields not permitted, Logistics area not valid , KBA , AP-SLP-TSK , Site Logistics Task , Problem
SAP Knowledge Base Article - Public