Sales order number in customer invoice

Hello,
I have an FI custome invoice created automatically from SD module.
Is it possible to enter the sales order number in the fI invoice?
In the FIinvoice there is the field KDAUF (Sales order number) how is possible to popultate automatically this field?
Thanks a lot,
Cheers,
Emanuela

In standard this is not possible.
You have to develop a zee transaction which should consider Tables VBFA and VBRK or VBRP.  In this zee transaction, automatically you can populate sale order reference and billing documents with the above table combinations so that the end user can see against one sale order, how many billing documents have generated in a day.  There should be one more editable field  where the end user has to key in the value against the sale order so that the same has to be updated in VBRP table.
This is possible only if the accounting document has not been generated.
thanks
G. Lakshmipathi

Similar Messages

  • To save the sales order number in custom table while creation of the order.

    Hi Experts,
    Does there exist any exit to save the sales order number in a custom table while the sales order is created in VA01. The requirement is to capture the sales order number in a Z table when a field (payment terms ) is changed during the sales order creation.
    Regards,
    Sunitha

    Hi Sunita,
    You can store your data in the User exit MV45AFZZ in the form 'userexit_save_document'.
    You can navigate to MV45AFZZ from SE38 wherein an access key needs to be generated for that program, if you know to implement enhancement points then you can create an implicit enhancement point in this form without generating an access Key.
    Regards,
    Ravi Kiran

  • Sales order number in customer line item

    Hi All,
    we have a requirement whereby we need to get the sales order number in the customer line item. Normally, the sales order number is populated in the GL line item (BSEG - VBEL2). We need to copy the sales order number to the customer line item.
    Can anyone let me know if you have worked on such requirement.
    Thanks in advance!!
    Aman Goel

    You can map Sales Order number to either 'Assignment' or 'Reference' fields in accounting document using Copy control function in SD. Please use transaction VTFA, this needs to be maintained for combinations of billing type and sales document type. Please ensure these fields are not currently used in your system for other information.
    Following fields can be mapped to 'Assignment' or 'Reference'.
    A Purchase order number
    B Sales order number
    C Delivery number
    D External delivery number
    E Current billing document number
    F External delivery no. if available, otherwise delivery no.
    If you currently use 'Assignment' or 'Reference' fields for other details, you can use user exit EXIT_SAPLV60B_008.
    Thanks
    Venkata Ganesh Perumalla
    Edited by: Venkata Ganesh Perumalla on Oct 4, 2010 11:52 AM

  • How to show Invoice number same as Sales Order Number..?

    HI,
    I need to show Sales Order Number same as Invoice Number how i can setup this..? can any one help me on this..?
    Ex: I raised a Sales Order: 00001, this has booked and shpieed now i ran the WF back ground process and run the autocreate master program to generate the invoice, here i need to show the invoice number as 00001 i..e same as the Sales Order Number.
    How i can achieve this..?
    Please advice..
    Regards,
    KV.

    KV,
    I suspect you'll need to customize the Autocreate routine to ignore the sequence nextval call and instead look at your sales order number.
    You would also need to be very careful that your OM setups supported this. I've seen this as a 'business requirement' before but almost invariably it doesn't make a lot of sense when you have the originating sales order number, line and shipment to quote as a reference on the invoice. Have you considered all of the following:
    <li> If you ever need to short ship or to ship on different dates, you will need more than one invoice for the same order. How would you manage that given that those invoices would need unique numbers?
    <li> Different order types - by adopting a 'synchronized' invoice sequence, you will need to ensure that you don't create a conflict with order type sequences - i.e. OM allows you to have an order 100001 of Order Type A and an order 100001 of Order Type B if you give different sequence assignments but this would cause problems with your invoice sequence.
    Regards,
    Jon

  • Invoice numbers to generate Sales Order Number

    I work for a billing department and we use SAP to key our invoices however we have a sales order that has a different number that corresponds with each invoice.
    If i get a list from my manager that has a bunch of invoice numbers, is there a way i can load them into sap and have it create something where it tells me the sales order number that goes with the invoice number? If it can work with multiple numbers at once will be best..
    what if the invoice numbers have a customer name in the Bill To line that i want to see as well. can that happen?

    Hello,
    Yes, I'm struggling to understand what you're after too. You could create a z table to keep track of the number if it's bespoke. Otherwise try these tables: FBN1, NRIV (intervals), T161 (po) TNRO (linked to NRIV).
    Good luck!
    Ash Thomas
    http://www.ashthomas.com
    Sap Abap Developer & Sap Abap Programmer

  • Sales Order Number in A/R Invoice PLD

    Dear All,
                 I copy a Sales Order to a Delivery Challan, i Copy This Delivery Challan to a A/ R Invoice.
                 I Need the Document number and their posting dates of both sales order and delivery documnet base number onto the A/R Invoice PLD.
                 I AM able to achieve the delivery number and date of Delivery documnet can anyone advice how to retireve the base sales order number on A/ R Invoice PLD

    Hi Aslam,
    Check this thread,
    Re: SO delivery date on A/R invoice
    OR
    Try to Create Query PLD. or Stored Procedure
    Regards,
    Madhan.

  • How to copy Customer Sales Order number to Purchase Order for 3rd party sal

    Hi experts,
    We are doing third party sales. So once we create Customer Sales Orders manually via VA01, users also manually create Purchase Req for it.
    We do not automatically create PR from Sales Order, as this is not my clients requirement. So we don't use item category group BANS in the material master.
    In the item level in the PR under the Contact Person tab, the creation indicator shows "V Sales & distribution document". Once PR is created this updates the PR number under the item level Schedule lines in the Sales Order.
    After PR creation, we run a job to create PO's.
    But the new requirement from the client is to automate this PO creation thru EDI.
    Our SAP is 4.6C & the Idoc type we use is ORDERS05 & Message Type is ORDERS. We are using EDIFACT std.
    Once I get the idoc xml file for this PO, I find that my Customer PO number (from the Sales Order) & also the Customer Sales Order number is not copying to the xml output.
    Please advise what needs to be done inorder to have it.
    This will be great help & I will reward for the answers !
    Rgds,
    Pri

    Tables are related.
    MATNR
    WERKS
    MBDAT
    LGORT
    CHARG
    etc fields are common in both VBBS and VBBE.
    May be you can generate a condition a fetch data using this.
    I hope it helps.
    thanks

  • Print Sale Order Number In PLD of A/R Invoice in SAP B1

    Dear support team,
    How to print Sale Order Number In PLD of A/R Invoice in SAP B1
    Thanking you
    Pradnya

    Hi Pradnya......
    You can do one thing.
    Create a UDF at SO header level and via FMS pull Document No. to that UDF.
    for this FMS please try this...
    Select $[ORDR.DocNum.0]
    Save above FMS to UDF at SO level.
    When you copy SO to Delivery and then to Invoice the SO no. gets copied to Invoice...
    from this fiedl you can pick in PLD....
    Hope this will help you......
    Regards,
    Rahul

  • Customer Sales Order number to display in Purchase Order idoc

    Hi experts,
    I have the Customer Sales Order number in the PO item level under "account assignment" tab.
    But it does not show in the idoc xml ouput of the PO.
    Could you let me know if it is not standard field to display in the ORDERS05 idoc type of the PO?
    If not what print program or form that can be used to show the sales order number.
    Also I want to show the Customer PO number into the Purchase Order idoc VBKD-BSTKD and the PO date will be in VBKD-BSTDK.
    This is very urgent !  Will reward.
    Rgds,
    Pri

    Hi experts,
    I have the Customer Sales Order number in the PO item level under "account assignment" tab.
    But it does not show in the idoc xml ouput of the PO.
    Could you let me know if it is not standard field to display in the ORDERS05 idoc type of the PO?
    If not what print program or form that can be used to show the sales order number.
    Also I want to show the Customer PO number into the Purchase Order idoc VBKD-BSTKD and the PO date will be in VBKD-BSTDK.
    This is very urgent !  Will reward.
    Rgds,
    Pri

  • Customer Sales Order number & Customer PO number

    Hi experts,
    We are doing third party sales. So once we create Customer Sales Orders manually via VA01, users also manually create Purchase Req for it.
    We do not automatically create PR from Sales Order, as this is not my clients requirement. So we don't use item category group BANS in the material master.
    In the item level in the PR under the Contact Person tab, the creation indicator shows "V Sales & distribution document".  Once PR is created this updates the PR number under the item level Schedule lines in the Sales Order.
    After PR creation, we run a job to create PO's.
    But the new requirement from the client is to automate this PO creation thru EDI.
    Our SAP is 4.6C & the Idoc type we use is ORDERS05 & Message Type is ORDERS. We are using EDIFACT std.
    Once I get the idoc xml file for this PO, I find that my Customer PO number (from the Sales Order) & also the Customer Sales Order number is not copying to the xml output.
    Please advise what needs to be done inorder to have it.
    This will be great help & I will reward for the answers !
    Rgds,
    Pri

    Hi,
    In VOV8 you can only Check whether the purchase order number already exists or not.
    If you want to do any other check like you said based on customer & PO number combination then follow steps below:
    Ask your ABAPER to
    1: Create a Z-table where you can store the required Customer No & PO No combinations.
    2: Write a code to check the PO no & Customer No entered in Sales order with the entries in the Z-table & throw an error if there is no match.
    This code needs to be written in the User exit Save_document_prepare by your ABAPER.
    3: This will work at time of Save & not a point of entry. The result will be same "error msg will be thrown"
    regards
    Edited by: Innovation is key on Feb 28, 2011 6:08 PM

  • Sales order number on the AR Invoice PLD

    I know I've seen a formatted search that enters the sales order number in a UDF so I can use it in the AR invoice PLD?  Could someone direct me in the right direction of give me the query to do this?
    Thanks, Jeff

    Hi,
    Do this,
    Create One UDF Header Level on A/R Invoice and Put FMS (or) Type direct SO No. (USER)
    Try this FMS in UDF, Exactly Sales Order No. Will Come.
    SELECT Distinct(T0.DocNum )
    FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN ODLN T2 ON T2.DocEntry = T1.TrgetEntry
    INNER JOIN DLN1 T3 on T3.DocEntry = T2.Docentry
    INNER JOIN OINV T4 ON T4.DocEntry = T3.TrgetEntry
    INNER JOIN INV1 T5 ON T5.DocEntry = T4.DocEntry
    Where T0.DocNum = (Select $[$38.44.0] )
    OR
    T2.DocNum = (Select $[$38.44.0] )
    Finally Put Remarks in Command Field. This is mendatory because you should give to use of Auto Refresh to UDF
    ->> Auto Refresh Remarks.
    Put the Remarks in Command Field and Click Tap Button(TAP button is Auto Refresh) and will come*
    the Sales Order Number in UDF
    Else
    You can put this Query in Remarks Field and Shift + F2, Sales Order No. will Come Exactly.
    Regards,
    Madhan.

  • 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

  • Any function module or bapi to get sales order number and invoice number?

    hi all,
    with delivery order number provided, do we have any function module or bapi to get sales order number
    and invoice number?
    thanks.

    Hi,
    Check
    BAPI_SALESORDER_CREATEFROMDAT1
    BAPI_REMUREQSLISTA_CREATEMULT  Agency Business: BAPI Create Invoice Lists from Vendor Billing Documents
    BAPI_REMUREQSLISTB_CREATEMULT  Agency Business: BAPI Create Invoice Lists from Payment Documents
    BAPI_REMUREQSLISTC_CREATEMULT  Agency Business: BAPI Create Invoice Lists from Posting Lists
    BAPI_REMUREQSLIST_CHANGEMULT   Agency Business: Change Invoice List Documents BAPI
    BAPI_REMUREQSLIST_GETLIST      Agency Business: BAPI Determine Detailed Data for Invoice List Documents
    BAPI_REMUREQSLIST_RELEASE      Agency Business: BAPI Release Invoice List Documents to FI
    Edited by: Neenu Jose on Nov 26, 2008 8:53 AM

  • Invoice number sales order number one to one relation

    Hi all,
    How to check the sales order whether open(invoice) or closed(invoiced).From VBFA table it is difficult to find.
    Is there any other way to find. Ex. one sales order no is there 1014421. how to find it is open or not.
    From Document Flow i can get VBFA table .But it it is not one to one relatation

    Hi
    In VA02 or VA03 after givinging the sales order number Press Document Flow  (F5) button.
    you can see the document flow of that particular Sales order, whether it is delievered or invoiced and passed on to accounting.
    Regards
    Neelima

  • 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

Maybe you are looking for

  • Incomimg Payment / AR invoice B1 2005 Question

    I have an issue with and Incoming Payment in B1 2005 I appled a check to 2 invoices.  First Invoice had a Credit Memo applied to part of the balance.  The check was for the remaing balance on the forst invoice plus the total of the second invoice.  W

  • Accounting view:Moving avg price and standard price

    Dear Friends, Can anyone explain what for these two fiels are maintained?.....also what difference it makes with the price we maintain thru pricing procedure(considering only PR00)?......can both the prices be at the same value?......Thanks in advanc

  • Retina Display: Does it help with reading e-books?

    Hey guys, I was reading about how the new iPhone/iPod has a retina display and I just read that the new iMac has a 5K Retina Display quality, BUT I've never seen these screens in real life. Do these screens make reading e-books easier or better? My c

  • X1 Music channel delay and video function issue.

    For the longest time we have a delay when switching from a video channel to a music channel. 1 time out of 10 the music plays instantly. The other 9 times we have to wait 30 seconds to 7 mins for the music actually play. Sometimes the X1 resests itse

  • How to add a printer to a mac ?

    I have a printer hooked up directly to a windows based pc which is connected to wifi how would i have my mac be connected to that printer at all times ?