Cannot creat Invoice based on Delivery
G'day folks,
I have never seen this error before, but I have a Delivery that was copied to (or from) a Sales Order for the remaining balance of items on the Sales Order. When trying to copy this seemingly correct Delivery to an Invoice, I receive the following error:
This document cannot be added because the base document row was updated. Copy the document again from its base document.
To my knowledge, no modifications were made to the Sales Order or any of the two subsequent Deliveries so hopefully someone else has encountered and solved this issue in the past.
Thank you all for your time.
Best regards,
Pat Heaphy
Hi,
Check the following Note :
[1148344|https://websmp130.sap-ag.de/sap(bD1odSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1148344]
[1268393|https://websmp130.sap-ag.de/sap(bD1odSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1268393]
Regards,
Jitin
SAP Business One Forum Team
Similar Messages
-
Creating Invoice from a Delivery Note using SDK
Hi,
I am working on SAP 2005 A Patch 4 with SQL 2000 SP 4. I am using VB.NET (VS2005). I am trying to create a Invoice from a Delivery note which is created based on a Sales order.
I am getting the following error
Error occured while saving Invoice: 0 - '15' is not a valid value for field 'BaseType'. The valid values are: '-1' - '', '0' - '', '23' - 'Sales Quotation', '17' - 'Sales Order', '16' - 'A/R Returns'
The Code that i used to create the invoice is as follows
Dim oInvoice As SAPbobsCOM.Documents
oInvoice = pcompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
oDelivery = pcompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDeliveryNotes)
Try
If oDelivery.GetByKey(iDlvNo) = True Then
sTaxCodes = sTaxCode
oInvoice = pcompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
oInvoice.CardCode = oDelivery.CardCode
oInvoice.SalesPersonCode = oDelivery.SalesPersonCode
oInvoice.DocType = SAPbobsCOM.BoDocumentTypes.dDocument_Items
oInvoice.DocumentSubType = SAPbobsCOM.BoDocumentSubType.bod_None
oInvoice.Address = oDelivery.Address
oInvoice.ShipToCode = oDelivery.ShipToCode
oInvoice.Address2 = oDelivery.Address2
oInvoice.JournalMemo = "Invoice - " & oDelivery.CardCode
oInvoice.Comments = "Based on Delivery " & oDelivery.DocNum
oInvoice.PaymentGroupCode = oDelivery.PaymentGroupCode
oInvoice.DocDueDate = Now.Month & "/" & Now.Day & "/" & Now.Year
For iRowNo = 0 To oDelivery.Lines.Count - 1
If iRowNo > 0 Then
oInvoice.Lines.Add()
End If
oDelivery.Lines.SetCurrentLine(iRowNo)
oInvoice.Lines.ItemCode = oDelivery.Lines.ItemCode
oInvoice.Lines.Quantity = oDelivery.Lines.Quantity
oInvoice.Lines.Rate = oDelivery.Lines.Rate
oInvoice.Lines.BaseType = SAPbobsCOM.BoAPARDocumentTypes.bodt_DeliveryNote
oInvoice.Lines.BaseEntry = iDlvNo 'DocEntry of Delivery Note
oInvoice.Lines.BaseLine = iRowNo
oInvoice.Lines.TaxCode = sTaxCodes
Next
iReturnValue = oInvoice.Add()
If iReturnValue <> 0 Then
pcompany.GetLastError(iReturnValue, sErrorDescription)
Throw New Exception("Error occured while saving Invoice: " + _
iErrorNo.ToString() + " - " + sErrorDescription)
Else
MessageBox.Show("Invoice created succesfully")
End If
End If
Since in the error message it has specified that i have given the BaseType as Delivery which has a value of 15 i changed that from bodt_DeliveryNote to bodt_Order which has a value as 17.
When i tried creating the invoice again it gave the error
Error occured while saving Invoice: 0 - Target item number does not match base item number. [RDR1.TargetType][line: 2]
I am not able to proceed further ... can any one help me
thanks in advance
GaneshGreetings,
I am having a similar problem, only I'm doing it as suggested in Louis' reply. In fact I copied that code and tried it. It's giving me a 2028 error with no description.
I had been doing it slightly differently and the error I was getting was 5002 "Item no. is missing [INV1.ItemCode][line 2]" I don't have 2 lines and I'm certain I have an item code. The numbers I'm putting in for baseentry & baseline are absolutely in the table and the order is open.
Here is that code:
oDNUpd = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
oDNUpd.CardCode = CardCode.Text
oDNUpd.Lines.BaseEntry = CInt(SalesOrder.Text)
oDNUpd.Lines.BaseLine = CInt(baseline.Text)
oDNUpd.Lines.BaseType = SAPbobsCOM.BoObjectTypes.oOrders
oDNUpd.Lines.Add()
lretcode = oDNUpd.Add
I'm using SBO 2005 patch 7 (and the new dll). I have similar code doing a stock transfer and it's working fine.
Thanks for any suggestions you can offer
John -
Synch of invoice based on delivery (without Delivery doc)
I've created in SBO Invoice based on Order (without Delivery document). Such Invoice act like delivery document and make stock postings. Why my order after synchronization doesn't change status to <i>send</i>? I've checked SHIPMENT table and there is no such document like my invoice.
Hello John,
I think the most simple way is to create a delivery first in SBO. After you have created all your deliveries you can use the Document Genaration Wizard to create all your invoices. After that you can use the option Document Printing to print all the invoices.
This way you only have to enter all the information once and the information (delivery) will be synchronized with Webtools.
Tim -
Function module to create Invoice from the Delivery no ?
Hi All,
Is there any way (function module) to create an Invoice from the Delivery no and the Billing Type ? We do not want to go with BDC for transaction VF01.
Details:
We want to generate a pro-forma invoice while saving the delivery. We will have 'Special Function' (NAST-NACHA = 8) in the output determination and a routine would be called from there. That routine would contain the code to generate the Invoice. We will have only the 'Delivery no and the Billing Type' in that routine. So trying to find any function module which can create an Invoice from the Delivery no and the Billing Type.
Any suggestion / hint is welcome.
Thanks,
AshokHello Ashok Satapathy ,
The only option for you is to call the FM "GN_INVOICE_CREATE" .
There is no special FM availaible to pass only the delivery number at this point.
You need to retrieve all the delivery information details and need to pass it to the FM "GN_INVOICE_CREATE".
Thanks,
Greetson -
How to create invoice by passing delivery number..?
Plz suggest any method or code to create automatic invoice by passing delivery number...
Through BDC we have done it .
we are passing delivery number as well text field also.
Thanks -
Can't create invoice from the delivery
Hello.
Ship out the trade order then i created the delivery and PGI successfully.
But when i went to VF01 to invoice the delivery i can´t create it.
I take a look to the LOG and this is what i found:
Error Log
6910517662 000010 The item is blocked for billing
I double click the item and in the configuration of Financial processing there is a field called "Block" but there is nothing selected over there. Do you have any suggestion?
I appreciate your helpThe item is blocked for billing
Apart from the suggestions, if that particular material is kept open in some other system, then also, system will throw this error. Also ensure that in material master Sales Org.1 view, this material is not blocked against the field "X-distr.chain status"
thanks
G. Lakshmipathi -
Sales return invoice based on delivery
Hi Experts,
i have requirement like this.
ex: i have raised a return sales order(RE) for 10 items and delivery has has done for 7 items(due to some manual problems).here the invoice is based on order,
but here my requirement is invoice is based on return delivery(LR). for 7 items.
when i am doing this transaction invoice is done for 10 items.but i want 7 itemsin invoice.how to do it.
urgent requirement.pls do needful
otherwise pls send solution to [email protected]
thanks®ards
veera.Hi
Pls enable your copy control in VTFL from return delivery to credit memo (LR to RE) similar to RE to RE Return order to Credit memo in VTAF.
If copy control is maintained, then you can do delivery related return invoice. But it is always suggested to have return order related billing especially in returns.
Reward if this helps you -
Hi,
A billing document was created but it was not posted to accounting. This document was cancelled which created a cancelled document (For ex, cancelled doc no. 197865430) which is also not posted to accounting.
When i try to create a billing document again, Im getting a error saying "Doc 197865430 has to be released to accounting first".
How to create the invoice now..?
Regards,
Rahul.Hi Rahul
First you go to VF02, select one line item. then in the above menu clicl on " GO TO". From there you click on item, then to item details.There you find the field account assignment group for material. If this field is blank then give the required account assignment group and save. again go to VF02 and click on the green flag.
also check in MM02, sales Org2, if account assignment is maintained for the material and to XD02 in sales area data, Billing Tab page is customer account group is maintained. If they are blank , pls enter the required data
If you have saved the billing document, go to VFX3. There u give payer( Customer), sales organisation and delete the field " created by".Then you execute. Inside you will find out the billing document for which no accounting document is generated. Select that line and click on the green flag. Then go to Note. It will give you the detail error. Please let me know the error for which accounting document is not generated.
Rever once u follow it
Chandra -
10.5.6 windows cannot create server based profiles
Hi @ all,
at time i plan to migrate my 10.4.11 tiger to 10.5.6 leopard, this fileserver stores the user home and profiles for 40 Windows Users.
I installed a new server with leopard 10.5.6 and tested the server if the user who are loggin into my OD gets his porfile and home from this server.
Yes right, it won't work.
Following is the setup
Windows XP sp2 joined in the domain MYDOMAIN and gets his profile and home from filesrv1 (this setup works)
filesrv3 with AFP/NFS/SMB
smb standalone, identifiedy by NTLMv2 & Kerberos/NTLM/LAN-Manager, Latin 1(850), Use wins sever xxx.yyy.zzz.
sharing a folder /Volumes/System/Users as Users with SMB guest access allowed and owner rights read&write
sharing a folder /Volumes/System/Users/Profiles as Profiles wit SMB guest access allowed, strict locking, owner rights read&write
Now setting in the WGM the home directory and the windows Profile to filesrv3 following appears
By Logging in in Windows, windows says cannot load profile check you directory ... bla bla...
The logs on my server says the following
....snip....
==> /Library/Logs/WindowsServices/log.smbd <==
[2008/12/30 14:28:36, 1, pid=5310] /SourceCache/samba/samba-187.8/samba/source/smbd/service.c:close_cnum(1284)
brcheck1 (172.17.35.52) closed connection to service profiles
[2008/12/30 14:28:36, 1, pid=5310] /SourceCache/samba/samba-187.8/samba/source/smbd/service.c:close_cnum(1284)
brcheck1 (172.17.35.52) closed connection to service vroni
[2008/12/30 14:28:36, 2, pid=5310] /SourceCache/samba/samba-187.8/samba/source/smbd/sesssetup.c:setupnew_vcsession(1260)
setupnew_vcsession: New VC == 0, if NT4.x compatible we would close all old resources.
[2008/12/30 14:28:36, 2, pid=5310] /SourceCache/samba/samba-187.8/samba/source/smbd/sesssetup.c:setupnew_vcsession(1260)
setupnew_vcsession: New VC == 0, if NT4.x compatible we would close all old resources.
[2008/12/30 14:28:36, 2, pid=5310] /SourceCache/samba/samba-187.8/samba/source/auth/auth.c:checkntlmpassword(319)
checkntlmpassword: Authentication for user [] -> [] FAILED with error NTSTATUS_NO_SUCHUSER
[2008/12/30 14:28:36, 2, pid=5310] /SourceCache/samba/samba-187.8/samba/source/smbd/sesssetup.c:setupnew_vcsession(1260)
setupnew_vcsession: New VC == 0, if NT4.x compatible we would close all old resources.
[2008/12/30 14:28:36, 2, pid=5310] /SourceCache/samba/samba-187.8/samba/source/smbd/sesssetup.c:setupnew_vcsession(1260)
setupnew_vcsession: New VC == 0, if NT4.x compatible we would close all old resources.
[2008/12/30 14:28:36, 2, pid=5310] /SourceCache/samba/samba-187.8/samba/source/auth/auth.c:checkntlmpassword(309)
checkntlmpassword: authentication for user [vroni] -> [vroni] -> [vroni] succeeded
[2008/12/30 14:28:36, 1, pid=5310] /SourceCache/samba/samba-187.8/samba/source/smbd/service.c:makeconnectionsnum(1087)
brcheck1 (172.17.35.52) connect to service profiles initially as user vroni (uid=1033, gid=20) (pid 5310)
[2008/12/30 14:28:36, 1, pid=5310] /SourceCache/samba/samba-187.8/samba/source/smbd/service.c:close_cnum(1284)
brcheck1 (172.17.35.52) closed connection to service profiles
....snip....
In the profile folder the directory for this user is created but nothing more.
The Home is mapped to V: after login but no profile is created or loaded.
It seems the the samba cannot speack correctly with the LDAP.
anyone knows somthing about this?This doesnt work for me either, I ended up setting the profile path to C:\Documents and Settings\shortname which is OK for me but I only have a few users and a handful of PC's.
This results in proper authentication using OD, and a roaming profile that exists on the local XP computer. I map H: to my home directory and store everything there and I am done.
When Roaming Profiles work properly Id like to implement them. But even then, because Id like to implement 'group policies' I need more and it seems hard to avoid a Windows server for profiles and policy management. I would prefer not to have any Windows admin machines.
Angus -
How to make invoicing based on GRN
Dear All,
How can we create Invoice Based on GRN...normally when we go to MIRO the option..we see under
PO Reference
- Purchase Order / Schel. Agr.
- Delivery Note
Can we create invoice based on GRN (Material Document)...???
cheersHI
Enter the delivery note number while doing the GR in MIGO.
While doing the invoice select the delivery note as reference and give the delivery number which you have given in the MIGO.
system will propose all the details of the material document in the invoive.
Regards
Srinivas. -
Bapi to create Invoice with reference to SalesOrder
Hi All,
I want to create Invoice with reference to SalesOrder ,
can anybody help me regarding
--> what is the Bapi to Create Invoice with reference to SalesOrder
--> what are the import parameters
Thanks in Advance
Regards
SrinivasHi Giuseppi,
Thanks to your reply,
i have used BAPI_BILLINGDOC_CREATEMULTIPLE , i have given the following input values in the BILLINGDATAIN
-- salesorg,distrchan,division,doc-type,sold-to,plant,material,doc-number,item-number , when i execute the Bapi , i got the DocNo:0090021983 , but i did not find that DocNo. by executing the Bapi BAPI_BILLINGDOC_GETLIST.
i found the short description for
BAPI_BILLINGDOC_CREATEMULTIPLE -- is for Individual Customer Billing Document, is it the correct Bapi to create invoice
what is the correct Bapi to create invoice based on the salesorder.
RV_INVOICE_CREATE OR GN_INVOICE_CREATE OR BAPI_BILLINGDOC_CREATEMULTIPLE.
Can u specify the import parameters for that Bapi.
Thanks & Regards
Srinivas -
Creating an invoice based on a delivery via DI API
Hi,
Each time a user creates a delivery (not always based on a sales order), the add on I have developed creates an invoice based on it. This happens without any issue in most cases but I am receiving the following two errors on the client site and have not been able to recreate the issue here...
One of the base documents has already been closed [INV1.BaseEntry][line: 1]
Number of items drawn is greater than open quantity , 'Item A'
Does anyone have any idea what could be causing this?
Thans for any help,
RobinHi Thomas,
Thanks for teh reply but unfortunately this is not the case - for example...
A delivery which is returning this error for Item A, has a quantity of 20 but has 7400 in stock, so it is not going into a negative quantity.
The only way I could get this error ("Number of items drawn is greater than open quantity"), not using the add on but working within B1, was to create a delivery note, then create an invoice based on it, increase the quantity of the item on the invoice, and the error displays in B1 on the info bar at the bottom.
I cannot see how the user can affect this, as when they are creating the Delivery, the Invoice creation is automatic (triggers on the add button after the Delivery has been successfully added), and they don't even see the Invoice form.
Robin -
Cannot create A/R Invoice from Delivery
Hi everyone.
I have a Delivery based on a Sales Order and want to make an A/R Invoice from the Delivery using the "Copy to" button on the Delivery form. When I do that I get the following message:
"One or more down payment that are linked to the base document(s) have not been paid. Continue?"
When I press "Yes" the following error occurs:
"Business partner of copied down payment document must be the same as business partner of target document."
But I didn't create any down payments.
Do you have any suggestions as to what may be the cause of the problem?
Vladimir.Hi Vladimir,
What is your B1 version and PL? Is there any relation between your question and SDK?
Thanks,
Gordon -
Creating Excise Invoice from Sales Delivery using DI API.
Hi Experts,
I have been searching a lot for any Business Object for creating Excise Invoice base on Sales Delivery using DI API.. But have not yet found any one.
I want to create Invoice for excisable items from Sales Delivery using DI API.,for Excisable items we cannot create standalone A/R Invoice . We need to create Excise Invoice also . But How to create Excise Invoice based on Sales Delivery using DI API. Is there any Business Object for that.
Please suggest me.
Thanks and Regards,
Pooja Singh.Hi all,
I have not received any reply for this thread. Does this mean that there is no provision for creating Excise Invoice from Sales Delivery ? Actually I was asked to create sales delivery and then Outgoing Excise Invoice and then Sales Invoice using DI API.
But I don't find any Business Object for this in SDK ? Is it really not possible to create Outgoing Excise Invoice from Sales Delivery using DI API.? If possible then how?
Please reply me if anyone has got any idea in this regard.
Thanks and Regards,
Pooja Singh. -
Delivery type LR cannot be invoiced with billing type RE?
Hi,
I am refering below flow to create an return order, but face an error when creating credit billing document:
ret sale order(RE)-ret delivery(LR)-post goods receipt(stock will be restored in corresponding storage loc)---credit for return(RE)
Error msg: " Delivery type LR cannot be invoiced with billing type RE;
Check the table entries for the copying control of billing
documents and add the missing entries as necessary.
Make the appropriate settings in Customizing if you have
the authorization to do so."
So i guess i might need maintain corresponding copying control for 'delivery document to billing document'...As the source order type is LR, and target order type is RE...I checked SPRO and found there are below inputs needed. May i know what kind of data should be inputed normally??
"Copying requirements
Determ.export data
Assignment Number
Reference number"
Thank you very much!!Hi
In standard SAP credit memo for sale returns with refrence to return order only. (RE). Thats why you are getting this error. If your requirement is to refer the delivery quantity for the credit memo then you can do any one of the following
1. Change the copy control setting for Return order to Credit memo.
Go to VTFA transaction and select your return order type (RE) and Credit memo type (RE) and go to item category level and select your returns item category (REN) and change the billing quantity to 'D' -Delivery quantity.
Now create your credit note with reference to your returns sale order. (not delivery). Onlly delivered quantity will be copied to the credit memo.
2. If you want to create return credit memo with reference to your return delivery then follow the first two guy's reply. Also you have to do one more setting at your return order document type (RE).
Go to VOV8 and enter ur return order type and go to details then enter the return credit memo type in the delivery related billing field. (FKARV) in the billing section.
Regards
Shiva
Maybe you are looking for
-
I had the worst experience while updating my Iphone4 to IOS5.x I had always been delaying this update decision, as I had a hunch that something unnecessarily wrong is going to happen - plus ofcourse I had an aversion to using archaic technologies req
-
I have a syncing problem!Help please!
Today when I tried to download a podcast, a message saying "The iPod cannot be synced.The disk could not be read or written to", appeared.I had no previous problems syncing anything on my iPod.This is the first time I've had problems with my iPod.Not
-
My business is Almeria at Ocotillo Apartments and is located in Chandler Arizona. When you use Apple Maps it takes my customers to Tempe, Arizona which is a completely different city. Please help, address is below: 2471 W. Edgewater Way Chandler, A
-
Principal Propagation: User needs to be defined in PI???
Hi All, We have a major SRM implementation using Principal Propagation(PP) for most of the interfaces. We are currently in design state. One of the things that were brought to my attention was that the user to be propagated from Sender needs to be ma
-
AirPlay to multiple AppleTVs - will sound be in sync?
I am currently researching options on how to get music to multiple rooms synchronously. I don't need any fancy multiroom "play different music in every room" options, I just want the same music to play in every room, and I don't want to lay cables. T