Symptom
You are creating a Supplier Invoice with Item Type Additional Cost Debit Item. You want to use the function Distribute Among Other Invoices and Credit Memos for the Item Cost Distribution. When you enter the relevant Purchase Order ID into the Order ID field the system triggers a 500 internal server error appears.
Environment
SAP Business ByDesign
Reproducing the Issue
- Go to Supplier Invoicing work center.
- Select Invoices and Credit Memos view.
- Show All Documents and Find ABC (ABC represents the relevant Supplier Invoice ID).
- Click on Edit and then click on View All.
- Go to Items tab.
- Choose the Cost Distribution subtab.
- Click on Distribute among other invoices and credit memos.
- Enter the relevant Purchase Order ID into the Order ID field.
- Click on Distribute.
- 500 internal server error appears.
Cause
The relevant Purchase Order is assigned to a Credit Memo that has no Invoice Reference. While doing cost distribution to a Purchase Order, the system will consider all relevant Invoices and Credit Memos. For Credit Memos, the system will only pick Items that have Item Type Credit Memo Item and will search for their Invoice Reference. When the Invoice Reference is missing in the Credit Memo Item, the system will trigger a dump.
We are currently working on changing the system behaviour so that instead of the dump, an error message is triggered that clearly points out the missing Invoice Reference. These changes will be implemented in a future release. Release or implementation date have not been confirmed yet.
Resolution
We suggest that, instead of distributing only with Purchase Order ID, you enter also the relevant Invoice IDs
- Go to Supplier Invoicing work center.
- Select Invoices and Credit Memos view.
- Show All Documents and Find ABC (ABC represents the relevant Supplier Invoice ID).
- Click on Edit and then click on View All.
- Go to Items tab.
- Choose the Cost Distribution subtab.
- Click on Distribute among other invoices and credit memos.
- Enter the relevant Purchase Order ID into the Order ID field.
- Enter the corresponding Invoice ID into the Invoice ID field.
- Click on Distribute.
This will allow you to post the document.
Keywords
Distribute, Among, Other, Invoices, And, Credit Memos, Purchase Order ID, Dump, Supplier Invoice, Cost Distribution; Distribute among other invoices or credit memos , KBA , AP-SIP-SIV , Supplier Invoice , Problem