Is there a table Sales Order #, Invoice#
Dear All,
Is there any table which gives Sales order#, Invoice #, customer#, materail#.
I wanted to check for given sales orders, invoice #.. etc..
Thanks & regards
Venkat
Hi,
<b>1.</b> Fetch Sales Order # (VBAK-VBELN) and Customer (VBAK-KUNNR)(Sold-To Party) from table VBAK
<b>2.</b> All Partners can be fetched from table VBPA based on VBPA-VBELN = VBAK-VBELN
<b>3.</b> Fetch Material # (VBAP-MATNR) from table VBAP based on VBAP-VBELN = VBAK-VBELN
<b>4.</b> Fetch Invoice # (VBRK-VBELN) from table VBRK.
To get invoice number for a particular sales order, follow following steps :
a. Fetch VBELN from table LIPS based on LIPS-VGBEL = VBAK-VBELN.
b. Fetch VBELN from VBRP based on VBRP-VGBEL = LIPS-VBELN.
So, VBRP-VBELN will give you an invoice no based on a sales order and delivery.
<b>OR</b>
Goto table VBFA, give sales order no in field VBELV and give VBTYP_N = M. You will get the invoice no in field VBELN.
Reward points if the answer is helpful.
Regards,
Mukul
Message was edited by:
Mukul R. Kulkarni
Similar Messages
-
Hi
Please send the sales order invoice query as basic columns.. Further I will modify the query according to the requirement.
Pleas send to my personal ID: [email protected]
Thanks
SreeThanks. There's a few problems though.
1) It seems that OINV DocTotal != Balance Due. I'm seeing a number of invoices where there was a balance due, but we applied additional money (either we took another incoming payment and applied it or applied money from the account balance, etc.) and yet it still shows a total.
2) It's pulling incoming payments from different customers. I think this is because the table was joined based on "RCT2 T4 on T4.[DocEntry] = T3.[DocNum] and T4.[InvoiceId] = T2.[LineNum]" In one example I have 2 incoming payments 446 and 614. Both have the DocEntry 542, but one relates to A/R Invoice 542 (for a different client) while the other relates to Down Payment Invoice 542. *I was able to fix this by adding WHERE T5.CardCode = [%0]*
3) I'm going to work with this a little bit and see if I can alter it to make it work for me. Basically this query falls a little short on the following:
- Doesn't include incoming payments that aren't linked to a down payment invoice.
- Does not give the Invoice Total (I'd like to know how much of the SO was invoiced. DocTotal seems to give me Amount Invoiced - Down Payments. I'm not sure the best way to get this number. Maybe I could do the sum of each line * tax + freight)
- Does not give the outstanding amount on an invoice. The ARtotal [DocTotal] column gives me how much was owed when the invoice was created, but it doesn't tell me what is currently owed.
- Lastly it may complicate the query too much and could be left off, but it would be nice to see if they have any money from credits or incoming payments that has not been applied. Perhaps this would be easily accomplished by simply pulling in their account balance. -
How to block material issuing after sales order invoiced?
As the subject mentioned, could be a possible to block material issuing since sales order invoiced, or
in the another words, after the sales order completed?
Or could be a possible to set sales order as closed, and then material issuing related with this sales order are
forbidden?
Thanks in advanced,
Zhou ZhenDear Friend
A sales order is created say order no 10000 and for material X say 10 units this order is delivered and PGIed and invoiced and the payment too has come
That means the order 10000 is closed
Case 1
Now an user goes to VA02 t code and put this order no 10000 and changes the material X qty from 10 to 12 and opens up the whole order once again
This can be controlled by using t code OVAH choosing message class the V4 message no 083 and change from warning to error
Case2
But to avoid the user to add material Y to the existing order say 10000 then i think we have to go for user exit
Because the system doesnot even throw a warning message too in case 2 (according to my knowledge) and allows another line item to be added in the same order
But you can test it if it throws any warning message we can try to convert that error
But in case 2 it is not happening(even warning is not there)
Regards
Raja -
Report needed to view different prices applied in a sales order / invoice
Hi Friends
In the sales order/ Invoices there are 2 different prices , List price and another special price . These 2 condition types are generally determined in pricing .
Requirement is to have a report which displays these 2 prices per customer per a specified time period .
Customer wants to see how much discount in the form of special price he received .
Is there any standard report for this , or can this be created using ABAP queries or Net price list ?
Regards
Ragav...Hi All ,
Thank you all for your quick respose . Let me give your more info for a better understanding of my requirement . Basically here two prices are to be compared . List price which is based on sales org / distribution channel and material . The other is special price matained for sales org , customer and material .
In my system I have 2 different pricing reports ( T- code SAP1 ) , one is based on sales org , material - This I can use to find list price . I also have another customer based report and using this I can get the special price
But user wants to see both these prices side by side in a single report . Is there a way these two reports can be combined ?
Regards
Raghav -
Sales order invoice extraction
i want the tables and fields about sales order invoice extraction
Hi Bala,
Welcome to SDN.
Please check this link for sales order invoice tables.
http://www.erpgenie.com/sap/abap/tables_sd.htm
Regards,
Ferry Lianto
Please reward points if helpful. -
This field cannot be updated as there are open sales order lines
When trying to enable Item Attributes then I am getting a message "This field cannot be updated as there are open sales order lines". I cancelled the Sales Order ( which was having only 1 sales order line and that is also cancelled) but still I am getting the same message.
How to overcome this problem.
KhanThanks Karthik & Sandeep........
Issue got fixed. There was an open Sales order Line because of that line the issue was coming. After cancelling that SO Line, Users were able to update the Item field.
Regards,
Khan.
http://moreapps4u.blogspot.com/ -
SD How to create IDoc once Sales Order Invoice (Billing) has been created ?
Hi,
How to create IDoc once Sales Order Invoice (Billing) has been created ?
I.e Once you click on save button of Invoice , IDoc Should genrate Automatically.
ThanksHello,
Go to T.code VV31 and select the billing output type and select the access sequence required and in the details screen of create condition records give all the required entries for eg: may be Billing Type, Sales Organsiation etc.and in the medium choose the option as 6(EDI) and time select as 4 that is immediately after saving the document.Also please ensure that particular partners for whom idoc should be generated they need to have partner profile setup with the billing message types. Hope this helps. -
How to create IDoc once Sales Order Invoice (Billing) has been created
Hi,
How to create IDoc once Sales Order Invoice (Billing) has been created ?
I.e Once you click on save button of Invoice , IDoc Should genrate Automatically.
Thanks.Hi,
We need to do custom configuration for this scenario such that an output type will be attached when ever an INVOICE is created.
Refer to application V3 in NACE. The Output type should contain an entry with transmission medium: Distribution (ALE).
for example check the customization done for an output type in NACE.
Goto NACE ---> Select an application V3 ---> Click on processing routines ---> select the output type (Eg: RD00) ---> Click on Details button (CNTRL + SHFT + F2) which gives the configuration info.
For example we can generate the IDOC based on the settings in partner profiles for the customer (Sold To)
With Regards,
Dwaraka.S
Edited by: Dwarakanath Sankarayogi on Jan 29, 2009 8:16 AM -
Any standard SMARTFORMS available for purchase order, sales order, invoice
Hi,
Any standard SMARTFORMS available for purchase order, sales order, invoice ?
RR.Hi Rama,
Goto NACE tcode-> choose the application u want( like billing for invoice, PO)->output type->output type->processing routineon left side
Here u will find the standard program name and smartform .
Hope it helps.
Regards,
Sonika -
Currently working on SAP B1 v8.82
I'm looking to generate a query that will give an overall report for a given customer that shows Sales Order No, Invoice No, Sales Order Total, Invoice Total, Amount Paid on Invoice, Amount Remaining on Invoice, Down Payments Available, Open on Sales Order.
I'm not sure what the best way to select the columns in bold above. Invoice Total should be self-explanatory. Amount Paid should be any down payments or applied payments on the invoice. The balance due on the invoice (which seems to be T0.DocTotal if I'm not mistaken) should = 'Invoice Total' - 'Amount Paid on Invoice'. In the Down Payments Available column I want the total amount of money on the account or on down payments that aren't tied to a Sales Order. If a client overpaid in the past for instance and there's a credit on their account, then it should contribute to this sum. Open on Sales Order should be pretty easy. I guess it's just the sum of everything that is still open on the Sales Order. I'm just not sure what the best way to sum all the un-delivered freight, tax, and line items is. Here's what my query looks like so far.
SELECT DISTINCT T4.[DocNum] [Sales Order No],
T0.DocNum [Invoice No],
T4.DocTotal [Sales Order Total]
T0.DocTotal [Amount Outstanding],
FROM OINV T0
INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
INNER JOIN DLN1 T2 ON T1.BaseEntry = T2.DocEntry AND T1.BaseLine = T2.LineNum
INNER JOIN RDR1 T3 ON T2.BaseEntry = T3.DocEntry AND T2.BaseLine = T3.LineNum
INNER JOIN ORDR T4 ON T3.DocEntry = T4.DocEntry
INNER JOIN OSLP T5 ON T4.SlpCode = T5.SlpCode
WHERE T0.CardName Like '%%[%0]%%'
GROUP BY T4.DocNum, T0.DocNum, T0.DocTotal, T4.DocTotal
I tried doing a little searching around for queries similar to what I need, but I could find exactly what I was looking for and I'm very unfamiliar with OJDT, JDT1, and ITR1 tables which I think might be important to finding unapplied payments...Thanks. There's a few problems though.
1) It seems that OINV DocTotal != Balance Due. I'm seeing a number of invoices where there was a balance due, but we applied additional money (either we took another incoming payment and applied it or applied money from the account balance, etc.) and yet it still shows a total.
2) It's pulling incoming payments from different customers. I think this is because the table was joined based on "RCT2 T4 on T4.[DocEntry] = T3.[DocNum] and T4.[InvoiceId] = T2.[LineNum]" In one example I have 2 incoming payments 446 and 614. Both have the DocEntry 542, but one relates to A/R Invoice 542 (for a different client) while the other relates to Down Payment Invoice 542. *I was able to fix this by adding WHERE T5.CardCode = [%0]*
3) I'm going to work with this a little bit and see if I can alter it to make it work for me. Basically this query falls a little short on the following:
- Doesn't include incoming payments that aren't linked to a down payment invoice.
- Does not give the Invoice Total (I'd like to know how much of the SO was invoiced. DocTotal seems to give me Amount Invoiced - Down Payments. I'm not sure the best way to get this number. Maybe I could do the sum of each line * tax + freight)
- Does not give the outstanding amount on an invoice. The ARtotal [DocTotal] column gives me how much was owed when the invoice was created, but it doesn't tell me what is currently owed.
- Lastly it may complicate the query too much and could be left off, but it would be nice to see if they have any money from credits or incoming payments that has not been applied. Perhaps this would be easily accomplished by simply pulling in their account balance. -
Open sales order, Invoice.......
Hi
Is there any standard report where i can see all the open order for sales organisation level. similarly i want see all the invoice created on a particular month at sales organisation level.
I know we can see at VA05 Open sales orders but this is for Customer or material specific..
VF05 For payer and material Specific... here i cannot see for sales organisation level..
I want this report at sales organisation level.. can any body guide me in this regard.
Regards
MBSHi
One way of getting the open sales order report at sales org level is the "Backorder Report" - try using transaction V_RA
For Billing info at sales org level, an easy way is to get the information at the table level - please use transaction SE16 and table VBRK to get the relevant information
Reward points if this helps you
Rgds -
Exchange Rate calculation mismatch in Sales Order Invoice and Cancelled Invoice
Hi,
In Sales Invoice, Exchange Rate is maintained as 7.75132
Invoice Amount is 72000 USD. So the Amount calculated should be 558095.04.
But in Accounting Document the Amount is posted as 558095.15 for the GL Sales Account.
In Cancelled Sales Invoice, Amount posted is 558095.04 in GL Sales Account which is correct.
Please help me understand why there is difference in both the Amount even when the Exchange Rate is same.
Regards,
Debashri DuttaHi Ankur,
Thanks for your reply.But our problem is sales order,exchange rates are defined with M type in OB08 as u have said.However when the periods are different for order entry and invoice generation we are facing the following problem.Orders are at old exchange rates and excise invoice is getting generated at current exchange rate.This is resulting in value difference between commercial invoice and excise invoice.
Please help.
Regards,
Praveen -
Hello Friends,
When We create a sales order in VA01, for the corresponding order where can we get the invoice number.
Thanks in Advance,
Shejal Shetty.You can find the information in table VBFA.
VBELV - Your Sales Order Number
VBTYP_N - 'M'
VBELN is the invoice number. -
GL accounts Hits- Sales order & Invoice ( for Service Material)
Hi Gurus,
While i create the sales order for a service material, which GL accounts hits in the system.
and which GL accounts hits while creating an invoice for this order?
Cheers,
Sumithwhen you are creating an order nothing hits the GL account and when you create a bill it does. Now there are several entries in an Invoice which hits different GL account. Which specific do youwant to know. It will also differ from company to company how they manage their FI
Regards -
Hi all,
For my stock items say i have standard item category as TAN. The billing relevance for TAN is "A" - delivery related billing.
Can I create a new item category ZTAN & use the billing relevance as "C".
Now when i create the sales order - delivery - billing. Here my billing will be order related only. I create the delivery & do the PGI........
My doubt is will it have any adverse effects........if i use order related billing instead of delivery related billing for the normal stock items........?
With best regards,
Niyaz.hello, friend.
an example of an adverse effect on your business procedures: it is possible that you have billed a customer for an order, and the delivery has been delayed. the payment terms are in effect and the customer's subsequent orders have been blocked for credit, even if he has not received his first order yet!
to do order-related invoicing for standard items really is a business decision. you just have to realize that there are trade-offs. i don't see any problems if you anticipate that the system will allow you to invoice even without posting goods issue.
do post again for feedback.
regards.
Maybe you are looking for
-
I have a client who wants to offer an ebook with an online exam form. I'll create a secure zone for the exam form. She wants 3 sales opportunities: Buy the ebook Buy the same ebook and include access to the exam form as an upgrade option, possibly p
-
IPhoto 9.1 will not load my library that I transferred from a backup.
I recently started fresh on a new hard drive with my 13" Mac Core 2 Duo OSX 10.6.8 iPhoto 9.1. I saved my pictures folder to an external HD formatted in mac journaled and when I attempt to open it from the library file it will not allow me to. I ho
-
My HP s5610f PC has no video signal going to my monitor (connection to VGA jack). Can I connect the monitor to the DVI jack using a VGA to DVI adapter? Which model DVI is needed? My hope is that the DVI output has circuitry independent from the VGA
-
Display/Edit custom document attributes in PC-UI
Hi CRM Fellows, we've customized via transaction DMWB - Document Modelling Workbench some additional attributes for the documents derived from Class CRM_P_ORD and CRM_L_ORD. Via the GUI in Transaction CRMD_BUS2000126 - Activities we can upload docume
-
.mp4 videos only play sound plus 1 frozen frame every 20 seconds
Hello, I am trying to edit some .mp4 videos in QT 7 pro. I was able to edit them before updating but now all they do is play the sound with like a frozen frame every 20 seconds that morphs into the next frame that it chooses to play. I can play these