Symptom
There is a malfunction in the process for updating the Supplier Invoice via the Web service, resulting in missing information.
Environment
SAP Business ByDesign
Reproducing the Issue
- Go to Supplier Invoicing on Work Center.
- Go to Invoices and Credit Memos view.
- Search for Supplier Invoice.
- Click Edit and View All.
- Navigate to Itens tab.
- Select Item.
- Click Check button.
- The Net price is displayed in a red square with a zero value, and other columns contain no data and error message "Account assignment data missing for item; see Cost Distribution".
Cause
Upon creation of a Supplier Invoice with the status "In Process" for a single line item via payload, attempting to add a line item to the respective invoice through the webservice results in an error. The error message states: "Account assignment data missing for item; see Cost Distribution."
Resolution
Scenario 1 (Negative): Not adding line item for the respective Invoice via webservice. After executing the payload for the Supplier Invoice, the line item's cost distribution reference item is not fetched correctly. The quantity is added to the Purchase Order item, generates an error and fails to recognize the Net price, leading to an error.
Scenario 2: After created second Supplier Invoice for the two-line items for the respective Purchase Order and Inbound delivery reference is picking and calculating correctly and working fine is the expected behavior.
After attempting to update any line item to make changes, Scenario 1 applies because adding a line item to an already created invoice results in issues. Specifically, the system does not read the reference correctly, as observed in the cost distribution.
Keywords
Item missing information, Webservice, Updating Supplier Invoice via Webservice, Payload , KBA , SRD-SRM-SI , Supplier Invoicing , Problem