Query to get invoice with multiple sales order

Hi
Our requirement is to customize the invoice report as per new requirement. For this customization we need to get the invoice which has multiple sales order with it. Please help to me get the invoice number from database which has multiple sales order with it.
Thanks and regards,
Sundar

Sunder,
interface_line_attribute6 in ra_customer_trx_all is nothing but the sales order line id. And sales_order in ra_customer_trx_lines_all is the sales order number.
You can use the following 2 conditions to fetch your requirement.
sales_order = TO_CHAR (order_number)
interface_line_attribute6 = TO_CHAR (line_id)
Please let me know if you are still facing any issue.
Regards,
Jyoti

Similar Messages

  • Create invoice with out sales order or delivery

    Hi,
    is it possible to create invoice with out sales document or delivery. A scenario, where you buy some article and get the invoice and pay the money.

    need to raise direct VF01 for a customer. Is there any Bapi
    Go to SE37, input BAPI_BILLINGDOC_CREATEMULTIPLE and execute. 
    1)  There press F8
    2)  Double click on the value "BILLINGDATAIN"
    3)  Input Sales Organization, Dis.Chnl, Div, Order Type, Bill date, Sold to etc., and press F3
    4)  Now execute (F8)
    5)  Press "Success"
    thanks
    G. Lakshmipathi

  • Single invoice for multiple sales orders

    Hi all,
    When delivery order is created based on Collective processing, Billing document is created based on delivery order for delivery based billing.
    But, is it possible to filter the line items in the Collective delivery order further for billing? Based on customer PO number, etc.
    That is, one Invoice for each Sales order or each customer PO number from the delivery document.
    Billing based on Sales order is one solution, which is not possible in the current Bussiness scenario.
    Could anyone suggest some other solution?
    Regards,
    Jennifer Smily.

    Hello Jennifer,
    if I understood well you have: more sales orders (everyone wiht its PO number), delivered togheter within one delivery.
    Then you bill the delivery, and you need to create one billing document for every sales order.
    Is it right my understanding ?
    If so you could simply customize the copy control (transaction VTFL) at header level setting field 'Assignment Number' and/or field 'Reference number' with 'A' or 'B'.
    In this way field VBRK-ZUONR and/or VBRK-XBLNR of billing document is filled with PO number or sales order number, and one billing document for every sales order will be created.
    Best regards,
    Ivano.

  • Invoice against multiple sales order?

    Hi,
    My client has a requirement of Clubbing of sales order in one invoice. Is there a possiblity to achieve the same. Details would be appreciated.
    Thanks

    Thanks Lakshmi,
    for clubbing multiple sales order in an invoice, you mentioned the common parameters like Payer
    Inco Term ,Payment Term etc to be maintained in all the sales order for which the common invoice has to be created.
    Apart from that are there any img settings to be maintained for achieving the same?
    or are we talking of the standard order(va01)>delivery(vl01n)>invoice process (vf01)  where i should enter multiple delivery numbers to be billed in the vf01 screen.
    thanks for help again!
    Regards

  • Question - SD user exit for Billing with multiple sales orders

    We have a situation where we are summarizing Accounting Billing document updates via OBCY, transaction type VBRK .
    We will also have multiple sales orders per billing document.
    One of our accounts is a COGS- clearing account which will post for both delivery and billing documents.
    Our goal will be to clear the COGS-clearing account after the delivery and billing has occurred.
    One alternative being evaluated is to update the assignment field ( bseg -zuonr) for the sales order. 
    To do this, one of the SD user exits , perhaps SDVFX008, would be necessary to update the sales order from vbrp-vbel2 to bseg-zuonr.
    I am concerned about
    1) will the update work
    2) what will be the effect on summarization
    If we try to implement the user exit , would we be successful to just update the assignment field for just the COGS accruall account.   _Therefore the next effect is that AR,Rev, etc, would summarize , but the COGS clearing would break out due to the update to the assignment field..
    Does anyone have any experience similar to this situation.
    Thank you,
    Jeff

    Hi
    You can use SDVFX008 or FI Substitution exit RGGBS000 (Form U100)
    You can very well update the required GL (COGS Clearing) with the Sales order No... However, how exactly it would behave upon summarization, I am not sure about that.. you need to develop that and see
    In the COGS account during PGI, Sales Order No is populated always in the field "Sales Order"... In your case, the COGS clearing account should be having sales order no populated...
    So, if you are successful to populate Sales Order No during billing in the "Sale Order" Field for the COGS clearing account, that should also suffice...
    or See if you can have relevant sort key in FS00 for the COGS clearing account so that Sales order no is always populated..
    Regards
    Ajay M

  • Single invoice against multiple sales order for a single customer PO

    Hi all,
    Customer provide a single order via EDI per Depot.  When the order is received into SAP these are split into multiple order based on the Production or distrubtion location of the products. The customer will receive a number of deliveries to the depot from the various locations.  Each delivery has his own SAP sales order and delivery note.  This creates mutliple invoice against a single Purchase order sent by the customer.
    We have a requirement from two customers that they only wish to receive a single invoice per depot per day.   This means we need to change the way we currently invoice the customers(no multiple invoices needed).We need to be able to combine multiple deliveries with the same PO to a single invoice.  This would mean that the invoice can't be generated until all the deliveries relating to the single PO have been POD flagged or 7 days  have passed from PO date and invoicing is due.
    how to achieve the above,whether through user exit in billing or data transfer routine in copy control(delivery to billing) or through config and how ??
    regards
    sachin

    Hi Sachin,
    You will have to create a new data transfer requirement on the copy control between the delivery and the invoice. In the new data transfer requirement, you will need a programmer to code when there should be an invoice split.
    Regards,
    Finbarr

  • URGENT - Query to get employes with multiple cost center

    Hello,
    The sample data for my requirement is:
    create table a
    (year     number(4),
    month      number(2),
    empno number(5),
    cost_center number(3)
    insert into a values(2003, 10, 1034, 102);
    insert into a values(2003, 10, 1034, 102);
    insert into a values(2003, 10, 1034, 102);
    insert into a values(2003, 10, 1034, 103);
    insert into a values(2003, 10, 1034, 103);
    insert into a values(2003, 10, 1039, 102);
    insert into a values(2003, 10, 1039, 102);
    insert into a values(2003, 10, 1070, 102);
    insert into a values(2003, 10, 1070, 103);
    commit;
    In the above sample data, empno 1034 & 1070 has two different cost centers (102 & 103) whereas empno 1039 has one only cost center i.e. (102).
    Now I want a query that returns empno, cost_center with employees having more than one cost center. Considering the above sample data, the query should return empno 1034 & 1070. Empno 1039 should not appear in the query output as it has only cost center.
    The output should be something like...
    Empno cost_center
    1034 102
    1034 103
    1070 102
    1070 103
    I'll b grateful for an urgent reply.
    HASAN.

    select distinct empno, cost_center
    from a a1
    where exists (select 1 from a a2
    where a2.empno = a1.empno
    having count(distinct cost_center) > 1)
    /

  • Combine invoice for multiple sales orders

    Hi All,
    we have an issue, invoice is splitting if different ship-to parties. where in business want to combine even though ship-to parties are different.
    how do i avoid this splitting if different ship-to's.
    If anybody come across the same situation, please revert back to this ASAP
    Thank you.
    Regards,
    Madhavi

    Hi Srinath,
    thank you for quick reply.
    Actually i am  technical consultant. can you please let me know where exactly this splitting happens i  mean which routine handles this splitting if different ship-to's then split invoice.
    if i know this, it will be easy for me to handle the logic.
    Regards,
    Madhavi

  • Multiple sales order  with single invoice

    Hi !
    For the same dealer can we make single Invoice dispatching  with multiple sales order ???  and How ?
    Thanks.

    Hi Indrajit
    If you want to create a single sales order into Multiple delivery then make sure that the delivery split should take place
    The following are the parameters for the delivery split
    Ship to party ,  route , delivery date, Shipping point ,Confirmed quantity date  , Delivery priority
    Example :
    Say you have line item 1 & line item 2 , for line item 1 you have different ship to party and for line item 2 you have different ship to party then delivery split will take place for this two line items
    Regards
    Srinath

  • Billing document for multiple sales orders

    Hi All,
    I am in to ECC 6.0. How can i get single billing document for multiple sales orders?
    Can anyone tell me those configuration settings?
    Thanks
    Patel J

    Dear Jaganath,
    For Single Invoice, for multiple Sales Order, following details must be same:
    1. Sales Document Type for all Sales Order must be same
    2. Payer
    3. Incoterms
    4.Payment Term
    5. Account Assignment Grp - Customer
    6. Billing Date
    7. Exchange Rate
    8. Foreign Trade Data
    Now, in Copy-Control Settings between Sales Order and Billing (T. Code: VTFA - Order to bill copying control), Select your combination for Sales Order-->Invoice;
    and Double Click: Item (from Left-Hand side, Dialog Structure) and Double Click on to your Item Category.
    Here, in Filed: VBRK/VBRP, maintain Routine: 003 - Single Invoice.
    Important: Also, if Sales Orders have different Divisions,
    T. Code: VOV8 - Sales Document Type Maintenance
    untick the Box: Item Division.
    T. Code: VOR2 - Common Division
    Assign those Divisions to Common Divisions.
    Best Regards,
    Amit

  • Wrong VL-367 error while creating delivery from multiple sales orders

    Hi,
    We have a Z program* that runs BAPI_OUTB_DELIVERY_CREATE_SLS with multiple sales order items to create one delivery.
    The program runs as a job. The problem is sometimes Bupi turns "VL367 - an item with no delivery quantity..." error for some of the items. But actually we have no availability problem, after a minute in the next job the delivery is being created for those items.
    We couldnt find the the state that causes this wrong error. Have any ideas, is there any problem with the bapi ?

    Hi,
    You should check if you got other Sales Order that might be have items with quantities confirmed. Quantities confirmed in a sales order will be appear as unrestricted stock, although is reserved, and therefore for example:
    Sales Order A: item 10, quantity 10
    Unrestricted stock: 10
    Sales Order B: item 10 (Same material as Sales Order A), quantity 2
    Creating outbound delivery for Sales Order B will generate the message, because that stock is being taken for the Sales Order A already.
    Hope it helps.

  • Multiple Sales Order in one Delivery Order

    Is it possible to create a delivery order with multiple sales order in it ? Does it need any additional configuration or the basic SD Module in SAP can support this kind of transaction?
    Anyone can advise me on this issue as my experience in SAP SD Module is not more than a year. Thanks a lot in advance.

    Hi Heng,
      The sales orders can be combined in one delivery if the following parameters are same for those orders:
    1) Delivery date for the materials( schedule line tab)
    2) Ship to party is same for them
    3) Shipping point is same for all of them.
    If all the above parameters are same then you can goto transaction VL10A and can put your aboce 3 parameters and execute the transaction.
    All the orders will have one delivery order in that case.
    Reward points if it helps.
    Regards
    Karan

  • SQL Query, to know the list of Invoices associated with a sales order

    Hello All,
    Can any one let me know the query to know the list of all the invoices associated with a sales order.
    Please do the needful.
    Thanks,

    Hello All,
    Please let me know is this possible to have the list of Invoices for an associated Sales Order.
    Thanks,
    Abdul

  • Invoice request based on multiple sales order for same customer

    Hi Team,
    I just wanted to know if we can create manual invoice request based on multiple sales order for same customer?
    For project based invoice request i have create based on single invoice request.
    Appreciate your input here.
    Thanks,
    Nitin

    Dear Ratish,
    Thanks for yr reply.
    I already did that but it is not serving business purpose.
    Comm payment  - comes diff time than sales payment.
    so ,I will post one entry customer will get hit with total amount Sales + commission
    like below
    Let say 10, 000 is the sales value and 500 is the commission
    So , This entry will get posted
    Customer Db- 10,500
    Sales Cr- 10,000
    Comm Income Cr- 500
    But, As I said sales amt will be paid before so We need to clear it partially and some time customer pays also diff amount due to some defect.
    So, We wont be knowing for which case we have or havnet received the payment against commission.
    As , Customer account is got hit with total amount( Sales+ Comm..value).
    Pls advise how to solve this.
    Regards,
    Sukh

  • 1.     Multiple Sales Orders with single billing .

    Hi gurus,
    I am doing in EC6. how can i get single billing document for multiple sales orders. please tellme that configuration settings i need to do.
    I am wating for reply
    Thanks and regards
    DVSk

    Hi,
    Order-to-Bill Copy Control Settings are maintained in
    T. Code: VTFA
    But Header Data, say exchange rate differences or Payer or Terms of Payment, for both the Orders must be same in order to avoid Invoice split.
    You may write routine, based upon your requirement in VOFM and attach it to Field: Data VBRK/VBRP (Under "Item" - left hand tree structure).
    for your Order-toBill combination.
    Best Regards,
    Amit

Maybe you are looking for

  • H:selectBooleanCheckbox onclick

    Hello, Is it possible to use the onclick property of selectBooleanCheckbox to uncheck two other checkboxes? Thanks

  • IPod Updater 2005-09-23

    My updater will not recognize my 30 g iPod now. I updated iTunes to the 5.0.1 version and it recognizes my iPod fine now, however said that it could not download some some songs because the software on my iPod needed to be updated. I installed the up

  • Not compatible with OS X 10.5.8 on pre-Intel processor

    I downloaded Firefox and when I tried to open it a message said it was not compatible with this architecture. I am running on a Mac mini with a pre-Intel processor and OS X10.5.8

  • I dont meet the Mac OS x 10.4.10 requirement for the iphone

    Hi, I hope some one can point me in the right direction here.... I've just realised i need Mac OS X v10.4.10 for the iPhone, and my Powerbook g4 is on v.10.3.9. Can anyone tell me what this means? will the two not be compatible? And is there a softwa

  • Message :"Adobe Premiere Pro CC a cessé de fontionner" au demarrage

    Hello, Everytime I launch Adobe Premiere Pro CC, a message says : "Adobe Premiere Pro CC a cessé de fonctionner". In English : "Adobe Premiere Pro stopped working". Does someone know where the problem comes from ? Thank you