How to get intercompany billing document number

Hi,
I have PO number , Delivery number  for a given shipping plant and receiving plant.I want to get the intercompany billing document number.Is there any method to fetch.Can anyone suggest me how to proceed with this.Intercompany billing document number can be obtained from VBRK-vbeln for type that is VBRK-fkart = iv .But how to relate PO number and delivery number with this.
Regards,
Sowmya.

Hi Friend,
Yes you can check though billing type IV.
Gereally in inter company billing, we generally create a customer in the receiving company. Try to know the name of the customer (generally it is one and fixed) from functional consultant, and pass to bill to party, it will help to reduce lot data.
I thnik delivery has been created through refrence of PO.
You can get PO and delivery number if it is stored in the text of Billing doc.
Consult with functional guys and tell them to store these numbers.
Regards
Krishnendu Laha

Similar Messages

  • How to get the final document number?

    Hi,
    How do I retrieve the document number of a document (e.g. delivery note) that is just added?
    Currently, I use the following event listener:
    [B1Listener(BoEventTypes.et_FORM_DATA_ADD, false)]
    in which I retrieve the document number by reading out the text field on the form:
    EditText text = (EditText)form.Items.Item("8").Specific;
    string deliveryNoteNumber = text.Value;
    This works perfect if only one person is adding documents.  But if two persons are posting a document, they both see the same (temporary) document number in the form while entering the data.  The latest person who finalizes his document, will get another number than the one that was displayed in the form (because the first person already used that number).  So, how can I retrieve the number of a document that is just finalized?
    Thank you very much for your help.
    Regards,
    Pieter Verhaeghe

    You can use the "ObjectKey" property of the BusinessObjectInfo object returned by the form_data_add.
    Catcth the event with BeforeAction = false - after the add event has successfully happened. Then you will see the ObjectKey property of the BusinessObjectInfo object will have an XML string in it. Inside that XML you can find the DocEntry of the newly added document, you will just need to parse it properly!

  • How to get vbrk_vbeln (Billing Document) from VF02 to userexit RV61AFZB

    I am using USEREXIT_PRINT_HEAD to check if a document has been cancel or not.
    But I need to get the Billing Document from transaction VF02 to the userexit.
    How can I get the Billing Document?
    I have tried to use screen field vbrk-vbeln, but it give me Field 'VBRK-VBELN' is unknown.
    Please advice, help needed urgrently. Thanks

    Rupali,
    In USEREXIT_PRINT_HEAD, i'm using both fksto and vbeln from vbrk.
    So I need to get these data inorder to execute my code.
    Below is my code:
    IF fksto EQ 'X'.
            MESSAGE e901(V1) WITH vbeln.
    ENDIF.

  • How to get an accounting document number from an Invoice number

    Dear All,
    I have a requirement where I need to know which accounting document is created against a  particular invoice. As we know that in the document flow of invoice we can see the Accounting document also. But to develop the report I need to pick the accounting document by the invoice document. Please suggest me a table where this value is getting stored. I already tried VBFA and VBKD but nowhere I am getting such information from which I can pick a accounting document number for a particular invoice.
    Please give me your suggestions.
    Regards,
    Sanju

    Dear,
    For Billing document create no. range by Tcode-VN01 and assign it to in Tcode-VOFA
    For Accounting document create no. range by Tcode-FBN1 and activate the External Field and assing it to in Tcode- OBA7
    but Assign the same no. range to both Document types for exp 1000000 to 1999999.
    Regards
    AJIT K SINGH
    HAPPY TO HELP U

  • How to get a Reversal document number from Original Document Number ?

    Hi,
    Say I have a Original Document number. This document has been reversed.
    I am using table BSEG. Original Document Number for any Reversal Document is stored in field "BSEG-REBZG"
    My query is that now I have the Original Document Number. How can I get the Reversal Document from this Original Document number ??
    OR in simple words, Is there any possible way to find out if my original document has been reversed ?
    I need help to write a select query i.e the tables and fields.
    Please help.
    Thanks.

    Hello,
    Check the fields:
    BKPF-XREVERSAL: Reversal Indicator (1: Reversed Document, 2: Reversal Document)
    BKPF-STBLG: Reverse Document Number.
    BR,
    Suhas

  • How to get the Material-Document-Number wie the delivery-Number+Position???

    Hi,
    we want to connect mseg and likp+lips.
    But therefore we need the Material-Document-number concerning this
    delivery and in likp+lips isn't a Material-Document-Number!
    Could anybody help me to connect likp+lips with mseg!

    ok, NICE!!! But how should I get with these information a unique Material-Document-Number for a delivery+deliveryposition?

  • How to get the Billing plan number for Contract Item?

    HI Friends
    I have been stuck up with the billing plan number to fetch perticular item in sales contract.
    When I go to the table FPLA, I can all the billing plan numbers for a contract or sales order and I am not able to locate for a perticular line item.
    Is there any way to fetch the exact billing plan number for a line item of a contract?
    Please help me
    Thanks
    Praveen

    U need to use the table vbfa or fololow thw link
    [http://www.erpgenie.com/sap-functional/sd/read-sales-document-flow-using-a-function-module]

  • How to get the change document Number.

    Hi,
    We have a scenario where the any customer master changes need to be send to the agent. I thought of using CDHDR,CDPOS.I've checked the FMS CHANGEDOCUMENT_READ and position header FMS too.even for these we need to provide the object class.
    But for them we need to have the document number and object class. They can be changed from any transactions. We have many Z transactions through which he can change the customer master data too,but finally master tables only get updated. Is there any FM to find the document numbers.
    Thanks,
    Bharathi.

    Hi Bharti,
    In such situation, you can create the event based on the CDHDR table entries. In fact, based on the object ID and object class, the recent change document can be picked up. If standard change object does not work, a Z change document can be created. This practice can help in picking the change in selected fields as the master tables can be updated in many fields which are not relevant for the requirement.
    Do let me know in case you need more help on it.
    Thanks,
    Jyoti

  • How to get Accounting document number from billing document number

    Hi,
    How to get Accounting document number from billing document number i.e. from VBAK- VBELN.
    Cheta Pant

    Hi,
    VBAK is the Sale Order header table, Billing document table is VBRK.
    Sales tables (VBAK,VBAP,VBRP,VBRK) do not store accounting document numbers.
    You do other way around. Just go to SE16 and enter the Billing document number in field Billing document VBELN in BSEG or BSID or BSAD table and execute, you will find the accounting document number.
    If you just want collect this information once then you can use table BSEG, but if you think to develope a report then use table BSID and BSAD.
    Regards,
    Chintan Joshi

  • How to get po number based on billing document number

    Hi every body
          how to get a po number based on billing document number
    thanks in advance.
    sekhar.k

    Hi,
    Check this field VBRK-BSTNK_VF.
    Regards,
    Satish

  • How to find sales document and billing document number of a accounting doc

    Hi,
    I have opened a accounting doc. using fb03. Now how to find the corresponding sales doc. and billing doc. no. of this accounting doc. no.

    Dear satyam
    Go to SE16 / BKPF, give the accounting document number reference in "Document number" and execute, so that you will get the respective billing document number.  Make a note of it.
    Now go to again SE16 and give table VBFA and give all the billing document references in "Follow-on doc" and maintain "C" in "Prec.doc.categ." and execute.
    Alternatively, you can try with table joining BKPF and VBFA in SQVI.
    thanks
    G. Lakshmipathi

  • Get Sales order from Billing document number

    Given Billing document number from VBRK-VBELN, how to get the Sales order number VBAK-VBELN?

    Please check table VBFA.
    Below code might give you some idea:
    PARAMETERS: P_VBELN TYPE VBELN OBLIGATORY.
    DATA: COMWA TYPE VBCO6.
    DATA: IT_VBFA TYPE TABLE OF VBFA,
          WA_VBFA TYPE VBFA.
    COMWA-VBELN = P_VBELN.
    CALL FUNCTION 'RV_ORDER_FLOW_INFORMATION'
      EXPORTING
       BELEGTYP            = 'M'
       COMWA               = COMWA
      TABLES
        VBFA_TAB            = IT_VBFA
    EXCEPTIONS
       NO_VBFA             = 1
       NO_VBUK_FOUND       = 2
       OTHERS              = 3.
    LOOP AT IT_VBFA INTO WA_VBFA WHERE VBTYP_N = 'C'.
       WRITE:/ WA_VBFA-VBELN.
    ENDLOOP.
    Kind Regards
    Eswar

  • How to fetch Billing Document Number

    Hi All,
    i have Sold to party (kunnr), from this i need to find Billing document number and the corresponding Ship to party.
    i have used
          SELECT vbeln FROM vbpa INTO TABLE gt_vbeln
                                  WHERE PARVW = 'WE' AND
                                        kunnr = p_kunnr.
          if gt_vbeln is NOT INITIAL.
            SELECT KUNNR FROM vbpa
                                 INTO TABLE gt_kunnr
                                 FOR ALL ENTRIES IN gt_vbeln
                                 WHERE vbeln = gt_vbeln-vbeln AND
                                       PARVW = 'AG'.
            DELETE ADJACENT DUPLICATES FROM gt_kunnr COMPARING ALL FIELDS.
          ENDIF.
    the first select query is taking long time n it is going for dump, please suggest me the solution.
    Regards,
    Kumar

    Hi Kumar,
    I will recommend with the below solution:
    1. Select vbeln from vbrk...gt_vbeln
           where kunag = sold-to-party.
    2. if gt_vbeln[] is not initial.
       Select from vbpa...
           for all entries in gt_vbeln
           where vbeln = gt_vbeln-vbeln
                and parvw = 'WE'.  "Ship to party
        endif.
    If you have any qn / concern on the above soln, please let me know.
    Regards,
    Selva K.
    Edited by: Selvakumar Krishnan on Jul 20, 2010 9:21 PM

  • Intercompany billing document setup

    Hi,
          I would like to enquire on intercompany billing document setup.
          We have customized billing type ZIV for intercompany invoice, and ZIG for intercompany credit memo.
           Is is possible to set up the cancellation for each billing type as
              - ZIG for ZIV and
              - ZIV for ZIG
    min

    Hello MIN,
    For practice & understanding or test purpose, this can be ok.
    But, in actual or real time scenario, I don't think it hold good.
    See, you said ZIG is a Credit Memo for Inter-company right?
    How you are going to use it for cancellation?
    As I know, a Credit Note or Credit Memo is a document used to adjust or rectify errors made in a sales invoice which has already been processed and sent to a customer. If you have already sent an invoice to a customer but now need to provide a credit for that invoice, you would send them a Credit Note or Credit Memo. You can think of a credit note as a "negative invoice."
    But not CANCELLATION INVOICE.
    Logically, if you see, there will be a number range issue. So, just visualise, when you have to book an actual credit note, then what you are going to do? And how is you end user and auditor is going to recognize the credit memo?
    For your your purpose of having a different cancellation doc for inter-company sales invoice and credit memo, you can create a Z Cancellation Billing Doc, say, ZIC and assign it to ZIV & ZIG billing Doc.
    Hope it assist you.
    Thanks & Regards
    JP

  • Manual change / copy currency in intercompany billing document

    Hi,
    We are running the SD intercompany process, where 'F1' is the customer invoice billing document type and 'IV' is the intercompany billing document type.
    The currency in billing document type 'F1' is derived from the final customer master data, whereas the currency in billing document 'IV' is taken from the intercompany customer master data. We would like the currency in billing document 'IV' (intercompany) to be the same as the one in 'F1'. It is the Finance team business requirement.
    Is it possible to have the currency copied from 'F1' to 'IV'. We would also be happy to manually change the currency in 'IV'.
    Please advise which settings are required - if this is even possible.
    Thank you,
    Karol
    Edited by: Karol on Jun 17, 2010 12:07 PM

    Hello Karol
    Why do you want to get into copy controls etc,, when you can simply set up the Intercompany customer's currency based  on the  customer's (Sales Org) country.
    Let me explain. US Company is selling to US customer from a Plant in Switzerland.  Real customer is set up with USD in US sales area. The Inter Co Customer created in Swiss Sales Area should be set up with USD as currency based on the country of the Inter Co customer. This is how it is set up in my current client's setup and is working. The only issue you may get is when US is supplying to an International customer based in UK, then you will run into issues, I am assuming you don't have any such cases.
    If the customer master set up  idea does not work for you, then I guess your only option are user exits during Billing document creation or copy control routines.
    Proposals:
    1)  USEREXIT_FILL_VBRK_VBRP (Module pool SAPLV60A, program RV60AFZC). Yo can try filling up VBRK-WAERK with VBAK-WAERK.
    2)  Alternately you may insert the same logic in Include LV60AA95 for program SAPLV60A. This is supposed to be part of the copy control routines but I don't know how it is called etc. It does not appear to be filled in the copy control config. I got the inspiration for this from OSS note 358893 which was meant for Euro conversion, Same concept so why not use it?
    3)Thirdly in the area of copy control (Delivery- Billing Document)  itself, for the item category, set up a custom routine in the feild Data VBRK/VBRP and  insert code there to replace the Document currency with that  from the sales order. You may also want to set up the PricingExchRate type field also with a suitable value right here itself. Only doubt is whether this works for only item or for header also as the field name (VBRK/VBRP) indicates.
    Review  the following OSS note 358893 - Create billing document with different document currency for more on proposal 2.
    Keep us posted on how you are proceeding with the solution.
    Please keep us posted with how you are proceeding on the solution.

Maybe you are looking for

  • Any ideas for security and parental control software yet???

    Just received two of the touchpads from the fire sale and gave them to my kids, both under 10.  I am very interested in limiting the sites that can be accessed through the browser, as well as a few other things.  Has anyone found a practical means of

  • Exporting Avid project to iDVD on a Macbook Pro

    First, let me say that I know this is a Final Ct forum. But it's also a MacBook pro forum, and I know that many FCP editors also edit on Avid (like me). I hope someone here can help me. I created a project on Avid Media Composer. It was shot in 4:3 b

  • Weirdness with Bullets and Numbers

    I'm using RH8 on Windows XP.  Ever since I upgraded, every time I format a block of text with bullets OR numbers, the software changes my Arial 10 point text to Times New Roman 12.  It's getting annoying having to reformat my text every time I put it

  • Searches showing up in foreign language

    Usually it's Japanese, sometimes it's Greek. Mostly it's Google searches, but it occurs at the mozella.com website as well; the ff 3.6.15 download I received, in order to revert to ff 3.6 from ff 4 because of incompatible plugins that were important,

  • A few more FCP X Bugs/Annoyances

    Hello all, I cannot thank the help and expertise from some of the members in the FCP X support community.  Luis Sequeira and Tom Wolsky you guys are part of the reason why I am persevering with FCP X and am finding it to be the future of editing desp