To know Customer from Billing Document number

Hi,
In VF03 IN we enter BILLING DOCUMENT NUMBER then we get detail of that. How can we find Customer(KUNNR from KNA1) from this BILLING DOCUMENT NUMBER. Please help me in this.
Thanks in advance.

Hi  Suresh..
Table: VBFA (sales doc flow)
From Billing Document No  find the Sales order no.
Table VBAK - From sales order No find the Customer No.
reward if Helpful.

Similar Messages

  • 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

  • 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

  • Sales Document Number from billing document

    Dear all,
    How can i get the corresponding sales document number form a billing document number?
    I currently have data from VBRK and VBAK tables.
    so is it possible to get the corresponding sales order number for that billing doc no?
    Plz let me know.
    Regards
    Rahul.

    Dear Rahul
    If you want to see for a particular billing document the corresponding sale order reference, go to VF03, input the billing document and click on Document Flow
    If you want to see sale order references for multiple billing documents, go to SE16, input table VBFA, paste the billing document references in [Follow on doc] and C in [Prec doc categ] and execute.
    thanks
    G. Lakshmipathi

  • 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

  • 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

  • Reservation of billing document number range

    Hi,
    it ios necessary for our project to have the delivery note number equals to the billing document number (as the invoice given to the customer is based on delivery).
    Is there any user exit in order to perform this ?
    Regards.

    Hi,
    As fas as i know there is no such exit,it is only left to user to maintain the discpline and keep a track of all the invoices cancelled as he has to delete a delivery also.
    I dont understand the business logic behind this requirement.

  • Billing document number based on plant

    Hi friends, I have new requirement from customer
    Billing document number should be based on plant
    Ex: Range start from 900000 u2013 for plant ABC1
          Range start from 800000 u2013 for plant  ABC2
    How to achive this
    regards
    Satish

    Create a zee table say ZV_NUMRANGE for the combination of plant, billing type & number range object.  There maintain some objects according to plant and save.
    Next go to VN01 and maintain number ranges according to requirement and save.
    Finally apply USEREXIT_NUMBER_RANGE (Module pool SAPLV60A, program RV60AFZZ) and trigger the above table as and when VF01 or VF04 is executed.
    thanks
    G. Lakshmipathi

  • Gaps in billing document number range

    Dear all,
    Our SAP system is getting gaps in number range for billing document. I have checked the buffering status for number range its status is "No buffering".
    SAMUNDER SINGH

    Dear Customer,
    In SD module, the gaps in invoice number may be caused normally due to         
    two reasons:                                                                               
    - update interruptions - the number is set in to the invoice at the            
    beggining of the program . If an interruption of the process happens          
    after the assignation of this number, the number has run in the range         
    and cannot be recovered. Update terminations in transaction VF01 and          
    VF04. The billing document number is reserved prior to the update.            
    After a possible update termination, it cannot be used again.                 
    Update terminations are displayed in transaction SM13. At present,            
    is no possible solution.                                                                               
    - Object RV_BELEG  is buffered. In this case the performace is improved        
      but this gaps are produced.                                                                               
    I am sorry to tell you that there is no way to solve the gaps or to            
    'refill' the missing invoice numbers.                                          
    There is a report RFBNUM00 that shows the gaps regarding the FI-               
    document numbers.                                                              
    But for the SD invoice numbers you could do a hardcopy of the update           
    termination that caused the invoice number gap; this termination can           
    be seen in the syslog.                                                                               
    We know that in different countries you have to explain document gaps     
    to Legal Authorities.                                                     
    For this reason there is report RFVBER00 to document gaps occured due     
    to an update termination. The report RFVBER00 does only list update       
    terminations that are not older than 50 days (or according to what time   
    is maintained in your system).                                            
    So it could be that this log has already been cleaned up.                 
    It is necessary that these update terminations are documented  before     
    the 50 days expire.                                                       
    Or a second possibility is that the gaps occured NOT due to an update     
    termination.                                                              
    Gaps without update terminations cannot be (easily) explained.            
    They can be (only) detected via report RFBNUM00.                          
    Report RFBNUM00 displays these document number gaps for the number range  
    object RF_BELEG.                                                                               
    The only thing I can offer to you is to monitor the  VBRK numbers         
    carefully.            
    To fulfill the legal requirements I would recommend to document the       
    number gaps but not to add any invoice numbers manually.    
    regards
    Claudia

  • P.O number for a billing document number

    Hi Experts,
    From  which table we can find a PO number for corresponding billing document number(VF03)?

    hi RAVI,
    Go to T.code SE16
      enter table name VBRK-->enter
       billing doc type,billing doc no,s.org,d.channel
      execute
    waiting for reward points
    mcm

  • Transfer document header text from billing document to FI document

    Dear all,
    Where do I specify that the document header text out of the billing document should be transferred to the corresponding FI document?
    Currently, the FI document header text (BKPF-BKTXT) remeans blank after transfer from billing document. We need this field to be filled in, but I haven't found how to have this filled in.
    In copy control from sales doc to billing doc, there is the possibility to transfer the Reference number & Assignment, but nothing about document header texts.
    Some say that it would only be possible via coding, but anybody has any idea if it might be possible via standard SAP?
    Many thanks!
    Best regards

    Hi,
    We also had a bit same requirement, which is to copy the billing header text to FI item text (BSEG-SGTXT). The solution we took is to use FI Substitution (t-code GGB1), so that every time a FI document created from SD... the substitution reads the billing header text and put it in the FI item text. I think the same method could be used for FI header text (BKPF-BKTXT). Below is the solution for your reference.
    Prerequisite:
    Document Type = 'RV' AND Reference <> '' AND
    ( Transaction code = 'VF01' OR Transaction code = 'VF02' OR
    Transaction code = 'VF03' )
    Substitution:
    Using exit which coding is as below.
    *&      Form  u900
          Copy Billing Header Text to SGTXT
         -->P_SGTXT    FI Item Text
    FORM u900 USING p_sgtxt TYPE bseg-sgtxt.
      DATA: lv_name TYPE thead-tdname,
            lt_line TYPE STANDARD TABLE OF tline,
            lw_line TYPE tline.
      lv_name = bkpf-xblnr.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          id                      = 'Z001'
          language                = sy-langu
          name                    = lv_name
          object                  = 'VBBK'
        TABLES
          lines                   = lt_line[]
        EXCEPTIONS
          id                      = 1
          language                = 2
          name                    = 3
          not_found               = 4
          object                  = 5
          reference_check         = 6
          wrong_access_to_archive = 7
          OTHERS                  = 8.
      IF sy-subrc EQ 0.
        READ TABLE lt_line
          INTO lw_line
          INDEX 1.
      In Billing Header Text, the sign '&' (ampersand) is automatically
      added some characters so it becomes '<(>&<)>'.
      The logic below is to fix that issue.
        REPLACE ALL OCCURRENCES OF '<(>' IN lw_line-tdline WITH space.
        REPLACE ALL OCCURRENCES OF '<)>' IN lw_line-tdline WITH space.
        p_sgtxt = lw_line-tdline.
      ENDIF.
    ENDFORM.
    Regards,
    Teddy Kurniawan

  • KE30 report - Unable to see billing document number

    Dear SAP community
    I have a requirement to be able to show the billing document number in a KE30 report.
    Background as follows:
    Sales order created, delivery is created, stock is picked and transferred and delivered, post goods isssue and invoice created to produce the accounting documents.
    The requirement is to show a report which is broken down by sales order and then further drilldown to things like cost centre and billing document numbers.. On running the report, no billing document number is shown.
    I have created a custom characteristic called WWINV in KEA5 using data element VBLEN_VF, Domain VBLEN, check table VBUK.
    WWINV is then assigned to the operating concern (op concern regenerated).
    Next step I created a lookup in KEDR
    Source fields:
    Origin        Field Name    Name                                    Assigned   Origin       Field Name     Name            
    VBRP        VBELN          Billing Document                    =                CO-PA    KAUFN            Sales Document
    VBRP         POSNR         Billing Item                             =                 CO-PA   KDPOS             item number
    Target Fields:
    VBRP        VBELV         Originating Document           =                  CO-PA   WWINV            Billing Doc

    Message" no. DS 016.
    For the above error, you can check note 312392
    thanks
    G. Lakshmipathi

  • FBL3n -billing document number

    Hi All,
    My user wants to see the billing document number for sales gl account in the fbl3n
    I changed the layout there i am getting the billing docuemnt filed but iam not getting the numbers
    Plz give me ur vluable suggestions
    Regards
    Renu

    Hi,
    The field billing document 'VBELN' is contained in table BSEG AND in
    table BSID but NOT in table BSIS.
    So Billing document number can be displayed in customer line item
    display (FBL5N) and not in G/L line item display (FBL3N). So, first
    please check if field VBELN has been filled for the relevant G/L items.
    The value of VBELN is saved in table BSEG. So, this means, you
    have to define the field BSEG-VBELN as a special field in table
    T021S. Then you can use it in FBL3N, because then the report looks
    directly in BSEG-VBELN.
    Please create the field BSEG-VBELN as special field
    in transaction OBVU (FBL3N  >MENU  >SETTINGS  >SPECIAL FIELDS);
    Create a variant in FBL3N to include this field (FBL3N > SETTINGS >
    DISPLAY VARIANT > CURRENT... Add the required fields
    Follow the instruction as given in note 215798 which is very helpful.
    Please also review note 373268 and note 207436. You don't have to
    implement the coding corrections, if you are on a higher version. But
    it explains in detail the system behaviour. The example in the note
    with field EBELN could be replicated on your field VBELN.
    Hope this helps.
    BR,
    Monika

  • Billing document number terminated

    Hi,
    I have a scenario wherein I am creating billing document post delivery, but the billing document number that is generated gets terminated. Hence while creating a billing document, I see a billing doc number on screen. But on going to VF03/VF02 i get a message that the billing document number is terminated. There is another message: " No handling units could be found".
    Please help..urgent!

    Hi
    Do you have any outputs with custom coded Smartforms/reports assigned to the output. If so please remove their masterdata so that they are not triggered while invoice creation, and then try invoice creation. If you are able to create teh invoice successfully now and see it, then the error is with the output programs.
    Else, check the number range assignment to the billing document number and check whether all the numbers have been utilised.
    Pls assign reward points, if this helps to solve your problem

  • Sales Document from billing document

    Dear all,
    How can i get the corresponding sales document number form a billing document number?
    Plz let me know.
    Rahul.

    Please look at the below code.. It will give you the sales document no corresponding to the billing document no:
    DATA: wa_comwa TYPE vbco6,
          i_vbfa TYPE STANDARD TABLE OF vbfa INITIAL SIZE 0,
          wa_vbfa TYPE vbfa,
          l_vbeln TYPE vbeln.
    *billing document no
    l_vbeln = '90000049'.
    *Padding leading zeros
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        input  = l_vbeln
      IMPORTING
        output = wa_comwa-vbeln.
    *Get the order info
    CALL FUNCTION 'RV_ORDER_FLOW_INFORMATION'
      EXPORTING
        belegtyp      = 'M'                      "Billing docu
        comwa         = wa_comwa
      TABLES
        vbfa_tab      = i_vbfa
      EXCEPTIONS
        no_vbfa       = 1
        no_vbuk_found = 2
        OTHERS        = 3.
    IF sy-subrc = 0.
      READ TABLE i_vbfa INTO wa_vbfa
        WITH KEY vbtyp_n = 'J'                   "Shipment
        vbtyp_v = 'C'.                           "Order
      IF sy-subrc = 0.
      Display order
        WRITE wa_vbfa-vbelv.
      ENDIF.
    ENDIF.
    Please reward if useful
    -Tushar

Maybe you are looking for

  • Slow performance in iPhoto - library is huge

    Hello, I have a huge number of pix in iPhoto (approx 11k) that I have accumulated of my kids over the last three years. The library is about 9.4 GB. When I open iPhoto, it imports all the pictures every time. I really cannot have any other applicatio

  • HtmlUnit buttons not working for popup windows

    When I click a button element which opens a pop up window in the browser give me following javascript exception from DebugCommon10_1_3_2_0.js when I click the buttonthrough a htmlunit test. I have set my WebClient to default. Exception class=[org.moz

  • Reading form data

    Hi all, I just started working on JSF. I have a simple application with one user input form with 5 input fields. I have created a managed bean. When the user hits the insert button i need to read the input field values and insert a record in the data

  • Web Dynpro Calendar / Scheduler

    Hi, Is there a standard web dynpro component that i can use that has calendar or scheduler functions. I am planning to write an application that is a scheduler planning tool and would be grateful of any builtin functionality that may help! Many thank

  • When I synced my iPad with my laptop it did not transfer 3 videos I took with my Sony Cybershot camera. Why?

    When I synced my iPad with my laptop, it did not transfer three videos I recorded on my Sony Cybershot camera. Why didn't it do this?