Populating Trading Partner in Accounting document from Billing document

Hi, How to pass the trading partner information to the FI G/L details (BSEG-VBUND) from a Billing document (VBRK-VBUND)? I am understanding through User exit EXIT_SAPLV60B_004 we can pass the information. Is there any other way (User exit/BAdi/IDoc) to pass the information? Because in one our system EXIT_SAPLV60B_004 is not active but BSEG-VBUND is getting populated properly. Thanks.

Hi,
Once you post collection against this invoice in F-28 and clear it against collection in F-32 ,the invoice status will be shown as cleared in document flow.
Regards

Similar Messages

  • Enhancement - Accounting Document from Billing Document - change line items

    Hi Experts,
           Our client has a requirement to display all line items(as shown in Billing document) along with the tax line in the Accounting document. I can explain it as below:
          In VF01 transaction code: enter the delivery number.
          Press enter to see the number of line items that will be populated in the Billing document.
          Click on save.
          Here in the Accounting Doc you'll find only 2 line items, one line item is the consolidation of WRBTR and quatity of all the line items in the Billing Document and the other line item is the tax.
          We are required to replace the consolidated line item in the Account Doc with all the actual lines as populated in the Billing Document.
          For this we tried various methods:
                 Searched for a BAPI - couldnt find any which will help in modifying the line items before creation of Account Doc
                 Checked UserExits - Found one SDVFX008 but it didnt have the table which is sent for population of Accounting doc hence there was no way we could modify any table to get the desired output.
                 Searched the VF01 Flow in Debugger to check when the Accounting Doc is updated, but it also didnt yield any fruits.
          Kindly please guide on a way this can be accomplished. Appreciate the help from you all...

    Hi
    I think that your requirement is related with summarization of items in the FI doc for the billing document. Please, see SAP Note 36353 - AC interface: Summarizing FI documents. See also Note 301077 - User exits for the interface to accounting.
    I hope this helps you
    Regards
    Eduardo

  • How to get MR Document from Billing Document at the table level

    Hi All,
    I am looking to find the MR Document based on which the Billing Document was generated. I need to find it out at the table level.
    I looked into DBERCHZ2 table, but I can see a single billing document is linked to multiple Meter Reading Documents via different Line Items.
    Could you guyz please help me? Am I seeing the right table? Is there any FM or ABAP program for the same?
    Thanks a lot in advance.
    Regards.

    Hi ,
    The link is Installation to get MR Doc from Bill Doc .
    from ERCH-BELNR  , fetch Contract (VERTRAg )  and then from EVER-VERTRAG get Installation (ANLAGE).
    Get MR Doc(ABLBELNR) from EABLG based on EABLG-ANLAGE.
    Thanks ,
    Sachin

  • 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

  • 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 general account for a billing document ( BSEG) ?

    Hello,
    For a billing document to a client , We need to get the general account for each item of the invoice . We based on the field XBLNR of table VBRK to select a document from BKPF with condition : VBRK-XBLNR = BKPF-vbeln . If yes we will get from table BSEG for bseg-vbeln = bkpf-vbeln and bseg-posnr = vbrk-posnr . then get HKONT.
    But as you know BSEG is a cluster table, Select directly from this table is extremly long and seems impossible in our case. Could you please show me the way to do this ?
    Our main purpose is to get HKONT ( General account ) for a  billing document .
    Thanks in advance for your help

    Hi  Hoa Binh Xanh,
    Why don't you look into tables BSAD and BSID (Transperant Tables) rather directly hitting BSEG ( Cluster Table)
    Pass VBELN (Billing Document) in above two tables and get the doucment numbers and then if you need further info hit BSEG with the data you got from BSAD and BSID
    OR else Pass KOART = 'D' while selecting data from BSEG it will help in improving performance
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7
    ilesh Nandaniya

  • Zero BED value when posted J1IIN excise invoice from billing document

    Hi Guys,
    I created VA01, VL01N and VF01. Bed value is showing in VF03 but when I created J1IIN from billing document, BED value is zero. I checked several places like below
    a) Logistics-General > Tax on Goods Movements > India > Account Determination > Specify Excise Accounts per Excise Transaction. Here ensure that for DLFC, necessary Account names are maintained.
    b) Similarly, in the next tab, Specify G/L Accounts per Excise Transaction, ensure that for that Excise Group, relevant G/L Accounts are assigned
    c) Finally, in Business Transaction tab, select Outgoing Excise Invoices where you need to ensure that you have assigned billing type to delivery type and also the default Excise Groups and Series Groups are maintained.
    I couldn't figure it out where the problem is. Please help me where to check and what should be done for this?
    Thanks,
    Manohar.

    I maintained excise defaults for TAXINN, I am maintaining A/R BED % which is coming in billing document but not in J1IIN. When I click on simulate it is giving a popup box saying 'No defaults could be proposed for Excise utilization' and click on continue then it is giving another message saying 'Excise modvat accounts not defined for GRPO transaction and E2 excise group'. Please help me what is it?
    Thanks,
    Manohar.

  • Line Item Text ( Accounting Doc ) From Billing

    Hi Experts,
    As i know in Standard process, the Line item text FI Doc ( Accounting Document ) from billing doesn't have any value ( please correct me if i am wrong ).
    But in my case there is value in line item text ( billing doc no )
    i already check and not found any substistution or userexit, i try to search in customizing but dont have any clue where this text from. please advice where do i have to look.
    Thanks,
    Ricko

    Hello Burak,
    Thanks for reply, as i told in the message
    right now, there is value in my line item text
    it should be blank, but i couldnt find any customizing or anything that cause my line item text filled with billing document number. do you have any idea ?
    Thanks,
    RIcko
    Edited by: Chapii on Mar 19, 2010 5:24 AM

  • Populating Trading Partner

    Hi All,
    I have a requirement as below,
    1) For vendor/customer posting I have to populate the trading partner field in GL line item with trading partner of vendor/customer.
    2) If it is a GL to GL posting I have to populate the trading partner from GL master.
    Please help me on how to achieve this.
    Thanks
    SK

    Dear:
    In case of customers please follow and also check its account group field status in OBD3for trading partner.
                     In the SAP menu, select  Accounting -> Financial accounting -> Accounts receivable -> Master records -> Change. Proceed as follows to maintain customer master records:
    1. In the initial screen, flag the indicator "Control data" in the general data area.
    2. In the detail screen for control data, enter the company ID in the field "Trading partner".
    For vendors ( also check its account group field status in OBD3for trading partner)
    Select  Accounting -> Financial accounting -> Accounts receivable -> Master records -> Change. Proceed as follows to maintain vendor master records:
    1. In the initial screen, select the indicator "Control data" in the general data area.
    2. In the detail screen for control data, enter the company ID in the field "Trading partner".
    For GL A/c ( also check its account group field status in OBD4 for trading partner)
    Select  Accounting -> Financial accounting -> General ledger -> Master records -> Change.
    In the detail screen, enter the company ID in the "Trading partner" field.
    Regards

  • VBUND(Trading Partner) field in BSEG from Tcode FB50 through programs

    Dear Friends,
    I am traying to update the VBUND(Trading Partner) field in BSEG from Tcode FB50 through programs....but its not updating in BSEG.
    for that we have used substitution programs,
    Did we have any other way to update the VBUND in BSEG from FB50?
    I have debuged the Tcode FB50, and in there its updating the BSEG from internal table t_bseg, and passing the values to t_bseg from SACCIT, but SACCIT is not having the field VBUND. thats the reasone its failed in my case.
    do we have any other better solutions and idea on this???
    Thanks,
    Sridhar

    Refer to the following trheads:
    Change field bseg-vbund
    Trading Partner field (VBUND) is left blank in EC-PCA historical data load
    Validation document type
    Field VBUND does not allow changes to the document ?
    Regards,
    Fernando Evangelista

  • 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

  • Problem with copy control from sales document to billing document

    Hi,
    I have a copy control from a sales document to a billing document,
    which is copying everything from the sales document, except the
    conditoin values. Any ideas on why will a copy routine won't copy the
    condition values from a source document? I don't even have a document
    pricing procedure assigned to my billing document. Any setting, that
    we can do to for the conditions to get copied from the sales document
    to the billing document...just as they are in the sales document?
    Thanks for the help in advance.
    Regards,
    Vijay

    In IMG,
    Implementation Guide for R/3 Customizing (IMG)
    -->Sales and Distribution
       -->Billing
          -->Billing Documents
             -->Maintain Copying Control For Billing Documents
                -->Copying control: Sales document to billing document
    What setting do you have for your source sales document type to target billing document type? Select the row that shows the document type you are interested in and double click on item(on the left pane). Select the item category and do display. What value do you see under the 'Pricing Type' and 'Price Source'?
    May be that is where some config setting is missing.
    Srinivas

  • How to Copy from Billing document F2 to Credit or Debit memo?

    Hello,
    I know the Menu path for copy control of billing document to billing document which  is as follows
    SPROIMG-Sales and Distribution-BillingBilling Documents-Maintain Copy Control of Billing document--Copy COntrol: Billing Document to Billing Document where I give the Source and the target.
    Now I have a scenarion where F2 invoice has ForTrade/Customs information in the Header of F2 invoice which can be viewd through VF03->Header->ForTrade/Customs tab.
    Now that inforamtion has to be transferred to CR/DR which is now not being copied although I have set the copy controls between the billing document.
    So, can anyone help me by providing the information for the following questions?
    1.How will I acheive the copy of Foreign trade to CR/DR from F2?
    2. When I copy from F2 to CR/DR, which all information from F2 will be copied to CR/DR?
    Thanks for the help.
    Anupama Rao

    Anupama,
    The foreign trade data is copied from delivery to billing and any order doesn't contains the foreign trade data and when you create a credit memo request CR by copying F2 invoice the foreign trade data is not copied to CR and when you create a G2 invoice from CR the foreign trade data is not copied because it doesn't exists
    the optimal solution for this is to keep the incompletion for foreign trade in the G2 and L2 inovices
    Regards,
    Santosh

  • COPA document created from billing document, cost components are twice

    Hi Experts,
    Ref Subject line : COPA document created from billing document, cost components are twice.
    I have checked the following :
    1.  Cost Estimate of a material
    2.  Production Confirmation of the Order
    When comparing both of the above, they are same, without variance.
    Now when a COPA document is created, we observe the Cost Component Split in Sales Order to be exactly TWICE as compared to Cost Estimate of the material.
    May I please request help from you all. What must be the cause & where do i check / rectify.
    Regards,
    Hussein.

    Hi Hussein
    If you are seeing double in KE30 Report - May be you are updating both sales order and billing doc in COPA and hence you are seeing 2 line items.. But one of them will be record type A and the other one with F
    If the above is not the case and you are seeing double in the COPA document itself - Then See if you have mapped VPRS cond type in KE4I to the same value fields as Cost Comp Split
    Also, one strong possibility that you are using Batch Split in SD.. .... Which means your delivery document (VL03N) will have multiple batches of materials being delivered to the customer....
    a. In this case, your Item Category for main item (HPOS) and Sub Item (UPOS) has to be different and the Item catg for UPOS should not be relevant for billing / Costs... Note 77414 descirbes this situation and the settings to be done in SD Customizing
    b. You may need to apply note 352441 in your system
    Regards
    Ajay M
    Edited by: Ajay Maheshwari on Dec 1, 2010 5:36 PM

  • 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.

Maybe you are looking for

  • Order to cash cycle

    can we have an indication of cash operating cycle taken into consideration the stock, debtors and creditors.. will we need to develop a special report for that? Rdgs krish Edited by: user11268969 krish on Jun 15, 2009 7:09 AM

  • Installation requires too many services to stop

    I'm trying to install the Developer Tools for Visual Studio .Net and the installer is requiring over 30 core windows services to be shutdown. This includes but is not limied to: Computer Browser, Logical Disk Manager, Remote Registry, Server, Worksta

  • Quick and dirty sound advice...

    ...bit off topic I know but: Filming just the service part of a friends wedding tomorrow. With their little Sony Handycam, hiding in a bush for sake of discretion. Want to put a mic by the couple so you hear them, not the bush rustling. I have an ECM

  • Need documentation on  "[SWF (....)]"

    I have some example actionscript files working with Papervision3D and they contain the following line : [SWF (width="640", height="480", backgroundColor="0x000000")] Is this part of the AS3 language? If so, where can I find documention for what this

  • Continous sound output with variable frequency?

    Hi all! I wanted to output a signal via the soundcard with one variable frequency. How can I do that? Thanks ANDY