SAP Knowledge Base Article - Public

2598509 - 500 Internal Server Error Appears When Using the Function Distribute Among Other Invoices and Credit Memos in Supplier Invoice

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

  1. Go to Supplier Invoicing work center.
  2. Select Invoices and Credit Memos view.
  3. Show All Documents and Find ABC (ABC represents the relevant Supplier Invoice ID).
  4. Click on Edit and then click on View All.
  5. Go to Items tab.
  6. Choose the Cost Distribution subtab.
  7. Click on Distribute among other invoices and credit memos.
  8. Enter the relevant Purchase Order ID into the Order ID field.
  9. Click on Distribute.
  10. 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

  1. Go to Supplier Invoicing work center.
  2. Select Invoices and Credit Memos view.
  3. Show All Documents and Find ABC (ABC represents the relevant Supplier Invoice ID).
  4. Click on Edit and then click on View All.
  5. Go to Items tab.
  6. Choose the Cost Distribution subtab.
  7. Click on Distribute among other invoices and credit memos.
  8. Enter the relevant Purchase Order ID into the Order ID field.
  9. Enter the corresponding Invoice ID into the Invoice ID field.
  10. 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

Product

SAP Business ByDesign 2302 ; SAP Business ByDesign 2305