Derivation of Batch number from billing documents

Hi,
The system picks up the batch number for the billing document when I do simulation thru KE4ST but when I release the billing document, it ends up in error of not finding the batch number. The system has default derivation based on table VBAP and I have put additional derivation on table VBRP. Both are working fine when I siumulate and it is not happening and the system end up in error. Anybody having experience in solving this impassee, kindly share.
Regards,
Ashok Singh

Hi
I never implemented this note, but am aware because others implemented it... They were able to get the result with it..
you will ofcourse implement in a test client 1st, check it there and then move to production.. Meanwhile, also raise an OSS msg to SAP to confirm whether this is the right note to be implemented or not..
By the time they reply, you will also have your test result on your hand
Seems logical?
regards
Ajay M

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

  • 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

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

  • 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

  • Origin of sales tax ID number in billing documents

    Hello,
    The field "Origin of sales tax ID number" in billing documents determines from where the tax ID number is taken, for example:
       A - Ship-to party
       B - Payer
       C - Sold to Party
    When the partner functions of the customer are different, how can I decide whose tax ID number the billing document takes? I need to take the tax ID of the payer but it takes of the ship to party.
    Thanks in advance, best regards,
    Silvia

    hi,
    The path here is IMG, Sales and distribution, Basic functions, Taxes, Maintain sales
    tax—Identification number determination.
    Three available options can be assigned to each sales organization. It is recommended that in order to keep consistency throughout the system, use the same determining rules across all sales organizations.
    The first is determination rule A, which indicates that the tax number and tax indicator classification are generally taken from the sold-to party customer master record.
    Determination rule B indicates that the tax number and tax classification are generally taken from the customer master record of the payer.
    Finally, if the field is left blank, the system determines the tax number and the tax classification according to the following sequence:
    1.If the payer has a VAT registration number and is identical to the sold-to party, the tax number and tax classification are copied from the payer (in this case, the ship-to party is not relevant). The tax number is copied according to the country of destination relevant for taxes.
    2. If 1 does not apply, the ship-to party has a VAT registration number, and the sold-to party does not, the tax number and tax classification are copied from the ship-to party.
    3. If 2 does not apply, the tax number and tax classification are copied from the sold-to party.
    CHAN

  • 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

  • How to retrive ship to number from bill to number

    Hi ,
    I have to retrive ship-to-number from bill-to-no,
    Could you plz give me the idea.
    Thanks & Regards
    Suresh.

    Simple logic would be
    Take the sales order number from VBRP based on billing document..
    select single * from vbrp into vbrp
                             where vbeln = your billing number.
    if sy-subrc eq 0.
    here sales order number is VBRP-AUBEL
    now get the data from VBPA Table
    select single * from VBPA into vbpa
                            where vbeln = vbrp-aubel
                             and parvw = 'SH' or  'WE' .
    if sy-subrc eq 0.
    vbpa-kunnr is Ship to number..
    endif.
    Thanks
    Seshu

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

  • Assign batch number from sale order to production order automatic

    Dear all, I have a question for all. Please help me in this case
    My scenario is make to order
    I have a sale order, when i create sale order, i have assigned batch number at each line item.
    When i run MRP for sale order (MD50), the system generate a planned order for it and I've converted to production order.
    So when I view production order, I think that batch number what I've assigned to sale order will be assign to production order but that is not happen.
    So, can you help me solve this problem. I think that sap can assign batch number from sale order to production order automatic but i don't know how to configure that
    Thanks all

    Hi,
    To the best of my knowledge, when system is generating planned order / production order from sales order system doesnt copy batch number from sales order.
    In fact , you are following wrong practice for generating batch no.
    Follow procedure like this :
    Create sales order without any batch assigning there. Run MRP with MD50 and then convert planned order to Production Order.
    While creation / releasing of Production order, you have option to generate batch automatically by following way :
    Go to OPKP (Production Scheduling Profile) -> Take your plant & give suitable name to Production scheduling profile-> Batch Management tab -
    > Automatic Batch creation in the order maintain this field as
    1     Automatic batch creation at order creation
    or
    2     Autom. batch creation at order release
    This will generate batch number automatically at the time of creation or release of order.
    Then follow same process i.e. Goods Issue, Confirmation & GR for production order.
    So you will get sales order stock in the form of batch managed.
    Check & revert if any issue in above flow.
    Regards,
    Tejas

  • Count number of billing documents yearwise

    We wanted to know the number of billing document in cube company and yearwise.  How to achieve this

    HI,
    check this 0SD_C03 cube, you may use this cube for your requirements
    please check the follwing link.
    http://help.sap.com/saphelp_nw70/helpdata/en/17/cd5e407aa4c44ce10000000a1550b0/frameset.htm.
    Regards,
    madhu

  • Removal of Profitablity segment num from billing document

    Hi,
    In the billing documents, system is generating profitability segment number, however the source for number generation is unknow.  Is there anyway we can stop generating the number in billing document, since we dont want this number to be geneated in billing document.
    Please suggest.
    Best Regards,
    Goutham

    Hi,
    These documents are CO related if you implemented CO and CO-PA then
    Profit centre document
    Controlling documents
    Profitability analysis document
    Are generated, still if don't want to generate then take help of FI/CO consultant he/she can guide you properly weather that can be stop or it need to be generate.
    Kapil

  • Derivation of batch number in Profitability Analysis for Sales document

    Hi Gurus
    We are trying to put Batch number in PA derived through sales order sales delivery document but due to timing issue like do not have billing document untill processed and PA derivation done
    scenario SA created with multiple line items
    Batch number can be seen in Delivery document number   
    Thanks in advance

    We are trying to put Batch number in PA derived through sales order sales delivery document but due to timing issue like do not have billing document untill processed and PA derivation done
    scenario
    SO created with no batch number
    In the Delivery split batch into two seperate lines with batch numbers in it
    PA post two seperate lines however unbale to map batch numbers
    Btach number exist in tables MSEG, LIPS and VBRP
    Unfortunately these postings happen after updating PA so not available for derivation in PA
    Thanks in advance

  • Copying PO Number from SO Number to Billing Document

    Hello,
    My requirement is that I need to copy the PO Number from Sales Order to the Billing document whenever there is a Return Order created. What would be the Copy routine number that I need to modify? Or do I need to create a new Routine and then update the Billing Item with the PO Number from Return Sales Order? Please let me know.
    Thank you,
    Venkata Phani Prasad K

    Hi
    What subroutine VOFM are you using in your copy rules? Copy this VOFM to your own VOFM in your range name, and add a line to copy the PO number from SO to invoice (see Note 327220 - VOFM function and its objects).
    Regards
    Eduardo
    PD: sorry, I wanted to update it and I've replied to myself.
    Edited by: E_Hinojosa on Jan 31, 2012 3:39 PM

  • 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

Maybe you are looking for

  • My Mac won't open certain web pages I believe it may be malware

    Hey, about a week ago all of a sudden my mac had a very slow day where everything on it, apps and the internet was going at a snails pace. After i turned it off and on it seemed to be fine, however, since then certain webpages have stopped loading up

  • How do i delete multiple files of the same video in the "all videos" folder?

    i am running out of space on my computer so i went to the "all movies" folder to see if there were items there i could get rid of.  when i went i discovered that there were many instances of the same video being there as many as 4 or 5 times.  why is

  • GMA 950

    Hello- I have a Summer 2006 White MacBook, and I really want to get the Sims 3 which is coming out in about a month. I just found out that "This game will not run on PowerPC (G3/G4/G5) based Mac systems, or the GMA 950 class of integrated video cards

  • Bom and Routing load files.

    Can you let me know how to create a BOM load file and a routing load file from SAP system? I want a list of all Boms and routings in an excel file respectively. I have to get this ready for the ABAPer to load these files into a new system. Any input

  • Is there a way to import an Illustrator CS5 color scheme palette into Dreamweaver?

    ...or is there a color scheme generator in Dreamweaver? Thanks. SS