Invoice number / sales order number
Hi,
Given an invoice number, which tables can I query / join et cetera to obtain the sales order number, basically how are SO and invoice numbers related.
Thanks
Hi,
You can get it from the document flow table VBFA,
Give the invoice number in the VBELN field. Order number will be in the VBELV field with VBTYP_V = I.
Regards,
Usha
Similar Messages
-
My requirement is to get invoice from vbfa table by delivery no., where vbtyp_n is M or N. But there are some deliveries which vbtyp_n is not 'N', then to get those invoices:
I went to lips table retrieve sales order and item(vgbel, vgpos) for a particular delivery.
then I went to vbrp table to get the invoice by sales order and item.
But my question is performance is not good in this way, Is there is any better way to achieve this? Your inputs please.
Thanks
ShailajaHi,
You are right,
Instead of using the relationship between LIPS and VBAP
LIPS-VGBEL = VBAP-VBELN and LIPS-VGPOS = VBAP-POSNR (order related)and
VBRP-VGBEL = LIPS-VBELN (delivery) VBRP-VGPOS= LIPS-POSNR and
VBRP-AUBEL = VBAP-VBELN (Order) VBRP-AUPOS= VBAP-POSNR
it is advisable to use VBFA to fetch the linked documents since it is faster.
so to get the billing doc for the sales order from VBFA
pass Preceding doc type = C and Prece doc no = Sales Order
and subsceeding doc type = M and you will get the billing doc for that sales order.
To get the delivery for sales order pass the Subsceeding doc = J to VBPA
hope this is usful
reward points if useful
regards,
ANJI -
Invoice Split: Sales orders with Differnt PO number
Hi Experts,
I was created two sales orders (OR) with different Purchase order number and done collective delivery using VL10, while create the invoice; Invoice was spited based PO number. (Reference doc is delivery I was given)
I am wondering there was no Purchase order number in delivery document but how system has done Invoice splittingu201D. Can you please explain me How Invoice split had done in above case.
I have maintained everything stranded settings onlyu2026
Thanks in advance,
Regards,
Pa1 _Jackson RobertDear vijay kumar
This is due to the copy controls in between "VTFL" in that you can find the reference number and assignment number. These fields will be use full to pass the SD information to FI.
In our issue The "Reference number" you must have mentioned "A"(Purchase order number) Change this and maintain either D or E.
Because in sales order you have given different purchase order numbers and try to make ot one single invoice with reference to one single delivery documnet.
When you are combining the sales documents in to one invoice system is confusing , which reference purchase order number it should take in order to pass the information to FI.
So it is splitting the invoice.
Please revert if you have any further clarifications
Thanks&Regards
Raghu.k -
Not able to create Invoice against sales order
Hello
I have a sales order with one main item and having 4 sub items to the main item. For all the 4 sub items the delivery and goods issue process is done . For one of the sub item , delivery document is archived in the system.
Now user trying to create the invoice with reference to the sales order and the system is not allowing to create the invoice by giving the following error message " 0001528482 000020 No goods issue has been done for this sales order item" .
For sales order 1528482 item 20 , delivery document already created but archived in the system.
Is it possible to create the invoice ? Any work around solution or any suggestion plz .Hi,
Try like this
go to T-code VF01 and enter the Delivery number after that click on the selection list button , in that you need to select the those line items and click on the execute button or F8
Check & revert
Regards,
Prasanna -
AR invoice and Sales order # to be the same
this is an email from one of our customers, and we cannot confirm if it is possible. Can someone help?
We require the AR Invoice # to be the same as the Sales Order Invoice #, so that the Account Statement shows information (the original Sales Order #) that the client understands. If the Account Statement were a little more flexible, we might be able to get around this issue, but it is hard to change the SAP account statement.
Currently we manually copy the S/O # over from Every Sales Order as we copy the S/O to A/R. This is inefficient & should not be necessary.
Plus, we want to automatically copy one of the dates over from the S/O. Surely other businesses want to copy over a S/O date to the AR Invoice (for instance, to fill in the Document Date field of the AR invoice - ie. the document date of the S/O).
The Bug in SAP is that you can not AUTOMATICALLY retrieve the SO# (using a Formatted Search) BEFORE saving the AR Invoice.
This whole issue also applies to copying over POs to A/P Invoices.
(AFTER saving the AR Invoice on the database, my formatted search CAN pick up the original SO#, but by then it is too late, because the AR Invc # has to be Specified BEFORE saving the AR Invc)Dear Mr. Emery,
I hope you don't mind if I am interfering in your issue.
Regarding the manual Invoice number to be equal to the original based Sales order Number AND
providing that you only work in a 1-2-1 relation between the two sales document:
Settings:
Create the following query: SELECT $[$38.44]
Link that query to the invoice number field, refreshed automatically on 'series, Displayed Saved-User defined values
Process:
The user opens a new sales invoice
The user choose the Business Partner
The user choose u2018copy from a sales orderu2019
The user change the series from u2018primaryu2019 to u2018manualu2019 -> this trigger the query
Regarding the invoice posting date = based sales order posting date:
Settings:
Create the following query: SELECT CONVERT(CHAR,T0.DocDate,103) FROM ORDR T0 WHERE T0.DocNum = $[$8.0.0]
Link that query to the invoice posting date field, refreshed on u2018Seriesu2019, Displayed Saved-User defined values
Process:
When the user change the series to manual, the based sales orderu2019s posting date will automatically overwrite the invoice posting date.
This solution does not cater for an invoice created directly (Not based on Sales Order). But you have here a basic idea on how to solve your issue, thus easily can improve the solution.
Tested on 2007A PL42.
Regards,
Frederic Bada
Pretoria, South Africa -
Proforma Invoice for Sales Order
Hi,
Currently, SAP will generate all items using the entered SO for Proforma Invoice despite that some items already being created.
There isn't any suitable user exit to filter those checking on items being generated.
Please revert if there is any other way in doing it.Hi
My suggestion is to use the copying requirements at the item category level in the copy control in VTFA
Copy routine is created in VOFM
KIndly take the help of ABAPER for the Code, example given below
if vbap-vbeln is not initial.
select single * from vbfa into wa_vbfa
where vbelv = vbap-vbeln
and posnv = vbap-posnr
and VBTYP_N = 'U'.
if sy-subrc = 0.
concatenate 'proforma for sales order ' vbap-vbeln 'and' vbap-posnr 'already generated' into lv_text separated by space.
message lv_text type 'E'.
endif.
endif.
Regards
Damu -
Error while creating AR Invoice from Sales order
Hi All,
I have created a sales order ,when i try to create AR Invoice through Copy To option i am getting an error
Business partner of copied down payment document must be the same as business partner of target document
Please help me to solve this issue
Thanks in Advance
Regards
ArunHi Arun,
Check if you have Down payment AR Invoice created from this Sales order.
Thanks,
Gordon -
Temporary invoice on sales order containing items with & without delivery
Hi,
I have a sales order which contains both items due to be billed on delivery and due to be billed without delivery.
Could you please let me know how to create a temporary invoice on the basis of the order. The true/final invoice will work on the basis of the goods issue for the items on delivery and on the order for the other items.
Thanks,Order & Delivery Related Billing depends on Item Category.First check these settings in VOV7.Now check the Copy Control settings in VTLA for Item Category relevant for Delivery Related Billing (F2).
Now check in VTFA for Item Category relevant for Order Related Billing (F5).
As per my understanding , you need the Final Invoice with both Line Items which could not be possible as Billing relevance is different for these two Items.
Best Regards,
Ankur -
Referencing invoice vs. sales order in credit memo
Can someone please explain to me why one would create a credit memo referencing an invoice as opposed to a sales order? What would the business scenario be for this case?
Thanks,Because Invoice is the official document for transactions. Your customer has got the original invoice and not sales order. So while sending Credit/Debit note print to customer you need to mention the invoice no. on it. It becomes easy to print invoice no.
Also, always order and invoice may not have 1:1 relationship.
There may be cases that ordered quantity and price and that of invoice varies. Invoice quantity, price, terms are considered as final.
Thanks -
Creation of Invoice from Sales Order
Hello Gurus
I have to create Invoice against the Sales Order. I do not want the delivery document. I just want to save the Sales Order and raise the Invoice against the Sales Order. What are the necessary configuration steps to achieve this?
I really appreciate any kind of help.
Thanks
RajeshHi Rajesh,
Order Related billing is when we bill directly as per the order no delivery needed or involved
Eg; Service's items here there is no delivery involved hence
after order directly billing is done
In order related billing, the Invoice will be generated with reference to the order. Example... For service relevent scenario we will be doing the order related billing because there is no physical goods movement happens. (doing some repair).
Try with below :
In vov7 for the item cat---billng relevance maintain order related billing. In vovg against the order type mention the order related billing type. Maintain the copy controls.
Please Reward If Really Helpful,
Thanks and Regards,
Sateesh.Kandula -
Recalculate the cost when invoicing a sales order
Hello,
My customer often creates sales orders before receiving merchandise. So when he creates the sles order the base price is $0.00. And even though he receives the merchandise before creating the AR invoice the base price is recorded at $0.00 instead of picking up the last purchase price (base price origin comes from Last purchase price).
Is there any way to set up the system so that it picks up the base price at the time the AR invoice creation?To set the invoice time last purchase price as base price you can set an FS on the Gross Profit Base Price column autorefresh according to the ItemCode:
Select LastPurPrc From OITM Where ItemCode=$[$38.1] -
Diff pricing procedure for invoice and sales order?
can u please help me out in the following question
Is it possible to have different pricing procedure for sales order and invoice?hi venkat,
yes we can very well have different pricing procedures for order and invoice. for the combination of
sales org + dist chan + div + <b>document pric proc</b> + cust pric proc --- > Pric Proc.
we determine the pric procedure. So, just have a different document pricing procedure for sales order document type and invoice document type. You can have a different pricing procedure with this change.
Hope it helps. Pl reward if useful.
Thanks
Sadhu Kishore -
Why paymnent term changed in invoice from Sales order
Hi Friends,
we maintained the payment term in customer master..it was carried over to SO,,Then suddendly the payment term was changed in invoice..check the change history..seems no change in SO..
Would you help if you ever experience the same thing..
Thanks in advance
LDid you check the payment term assigned at the sales order line item level? Also check whether any user-exit in billing document causing this.
Regards, -
To Remove Discount Condition Type In Invoice from Sales Order
Hi All,
For my sales order I have the net price and discount but when I create invoice, I would like the discount to be removed automatically. May I know how can I configure that other than remove the item line manually.
Kindly advise.
Thank you!
Regards,
YvonneHello,
Do you want to delete Discount Condition in Invoice & its effect should not happen on Invoice Amount calculation?
If the above is your requirement, then have two seperate Pricing Procedures for Sales Order & Invoice.
Both these Pricing Procedures will have same Condition types & other settings except the Discount Condition will not be present in the Invoice Pricing Procedure.
Define a new DoPP for Invoice Document Type & maintain Pricing Procedure determination (Sales Area + CoPP + DoPP).
Thus while creating Invoice, the Discount condition & its value will not appear in Invoice.
Hope this helps...
Thanks,
Jignesh Mehta -
hi ,
i have a scenario
sales order header has a billing block , sales orders has been completely delivered, shippingcost document has been created but not invoiced.
customer has a sales area block in the customer master.
Question:
if i want to bill these sales order , what is the process?
deleting the billing block in the sales order header will allow me to bill ?
if i have to change it in the customer master , how does it update in the already created sales document
thanks in advanceHi,
Firstly if order has a billing block then you will have to remove the billing block in the order and then do billing.
If customer had sales area block in customer master..how you were able to create sales order for the same ?
Reward points if useful
Regards,
Amrish Purohit -
Invoices without Sales order reference
Hi,
I am new to Oracle receivables.
Can anybody explain me, what is the purpose of Invoice transactions that not having sales order references?
Thanks.Hello,
1. If I were you I will ask user to specify transaction types or accounts because user maybe do not want some kind of transaction example: interest invoices etc. Maybe want only transaction from order entry. You must check this.
2. I'm not developer but look at http://www.oracleappshub.com/accounts-receivable/ar-back-to-basictechnical-foundation/ this will help you.
I pick this sql from http://www.oraclebusinessapps.com/downloads/revcogs1/revcogs.sql
Look at account_class = 'REV'
SELECT *
FROM ra_cust_trx_line_gl_dist_all
WHERE customer_trx_line_id IN (
SELECT customer_trx_line_id
FROM ra_customer_trx_lines_all
WHERE interface_line_context = 'ORDER ENTRY'
AND interface_line_attribute6 IN (SELECT line_id
FROM oe_order_lines_all
WHERE header_id = (SELECT header_id
FROM oe_order_headers_all
WHERE order_number = &your_order_number))
AND account_set_flag = 'N'
AND account_class = 'REV');
Regards,
Luko
Maybe you are looking for
-
Route Summarization ... Good or Bad !
Hi, [1] Is route summarization good or not good ? While reading, I am confused as the docs says route summaization is good as it uses less CPU cycles and less memory but on the other hand it is not that good as well as some of the routes might be los
-
How to get rid of the CS4 registration number?
Hi, I'm running into a problem as usual with the Adobe upgrades. Not just their fault! After installing on my desktop Mac, I copied my disk to my Powerbook's new drive and added a fresh OS install. Now, the CS4 apps won't launch and I get the usual m
-
There are about 10 activities in a process. Most of them have some PBL code snippet such as calculating deadline (including calendar rules) and throwing exceptions. I also need to create about 50 processes and about more than 500 activities. It is te
-
SXI_Cache Error. Pls help
When I use sxi_cache SXI_Cache shows "Unable to refresh cache contents" and "error during last attempt to refresth cache". When I click on error it shows Error when reading HTTP destination: INTEGRATION_DIRECTORY_HMI. The same error I am getting in s
-
6 in 1 card Reader not found after installing Windows 8 - HP Pavillion Dv6
I am running a dv6874ca and after installing Windows 8 the 6 in 1 card reader no longer works - the system does not read any information. I cannot find the card reader in the device manager. Note: I am trying to view a Sony Pro Duo card which was po