on 2020 Jun 29 4:51 AM
Hello
I have the following issue: when I create a CreditNote based on an A/R invoice, without delivery it works fine but when a Delivery exists I receive the following error: Quantity cannot exceed the quantity in the base document, the quantity is the same as the base document, so the quantity is not exceeding the base document for sure.
Any help will be greatly appreciated!
Thanks!
Request clarification before answering.
I am having the same issue on SAP 9.3 pl12 (SQL).
The steps are;
1. Add a Reserve Invoice (in UI or SDK). OK.
2. Add a Delivery linked to the Reserve Invoice (in UI or SDK). OK.
3. Add a Credit Note linked to the Reserve Invoice with 'Without Qty Posting' set on or off (SDK). 'Quantity cannot exceed the quantity in the base document' error.
4. Cancel the Delivery (in UI or SDK). OK.
5. Now Add a Credit Note linked to the Reserve Invoice (SDK). OK.
This means that the only way to do the Credit Note with the SDK is to put the stock back first, which may not always be correct.
Do you know if this has been raised as a SAP Issue?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear andy.bolton & jaime.briz,
I checked this issue in the DEMO Database on SAP Business One Version 10.0 PL02 and added the Credit Memo using the following code:
SAPbobsCOM.Documents oCreditNote = (SAPbobsCOM.Documents)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oCreditNotes);
oCreditNote.CardCode = "C20000";
oCreditNote.Lines.BaseLine = 0;
oCreditNote.Lines.BaseEntry = 361;
oCreditNote.Lines.BaseType = 13;
oCreditNote.Lines.Quantity = 2;
oCreditNote.Lines.ActualBaseEntry = 391; //DocEntry of Delivery Document
oCreditNote.Lines.ActualBaseLine = 0; //Line Number from the Delivery Document Lines
int oCNAdd = oCreditNote.Add();
Kindly check whether the created Credit Memo is as per your expectations or not? Check whether all the documents are in correct order?
Kind regards,
ANKIT CHAUHAN
SAP Business One Support
User | Count |
---|---|
92 | |
11 | |
9 | |
7 | |
6 | |
4 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.