Billing doc corresponding to article doc

Hi all ,   
I want to know  in which table both  billing Document  no .   vbrp-vbeln
and  corresponding article document no .
mkpf-mblnr  
are stored .While   doing  POS upload   for sales idoc
article documents are created  corresponding to each billing  document no .
This is with respect to billing and consignment articles
withdarawal table RKWA which has a field reference document no , the first ten digits of whose are stored in
table VBRP as VGBEL .
I would like to thank you all in advance .
Regards ,
Sun

Hi max ,
  thank you . Actually for idoc type wpuums in tcode  'wper'  two document nos are created for each idoc no .
1. Article ocument no .
2. Biliing document no .
I have to find in a table which article doc corresponds to which billing doc .
This table 'VBFA' has no such entry .
while simulating with tcode 'wpuk'   for pos upload of sales idoc One idoc with two docs one article and another billing gets created .
after that I do not find any link in between these two numbers anywhere in vbrp or in mkpf or in rkwa .
Any help !!!
Regards ,
Sun

Similar Messages

  • ZUONR field in billing doc to item texts in Accounting Doc

    I have a client who wants to have the contents of the ZUONR field in the billing document appear in the line item texts of the resultant accounting document. Does anyone know how I can achieve this?
    Cheers,
    Ross Goodman

    Thanks,
              I know where the data lives The process involved is WPUBON idoc from POS inbound in SAP retail automatically creates 3 documents for a sale of article
    1] Article document
    2] Billing document
    3] Accounting document created from the billing document
    This is all automatic.
    So I will look into the use of the user exit to get the ZUONR content from the billing doc to flow through to the accounting document also.
    Many thanks, will let you know if ity works.
    Ross

  • Cost Price for Returns order adopting cost from preceding billing doc

    Hi Forum Experts,
    Our Returns Order (SO) currently obtains cost price (VPRS) based on material moving average price.
    However, what we really need is to copy the cost price from the preceding Billing Document.
    I've explored using VOFM and created a routine under (Formulas --> Condition Value) as per below.
    I found that while the debugger steps through this code, the value of the cost gets copied from the preceding document.
    However, immediately after the code finishes execution, the value gets resetted back to the material moving average price again.
    What can I do do let the system keep the copied cost price from the preceding document instead?
    FORM FRM_KONDI_WERT_998.
    DATA: lv_kbetr TYPE kbetr,
          ls_vbfa  TYPE vbfa,
          lv_knumv TYPE knumv.
    IF SY-TCODE = 'VA01' OR SY-TCODE = 'VA02' OR
           SY-TCODE = 'VA21' OR SY-TCODE = 'VA22'.
    IF xkomv-kschl EQ 'VPRS'.
    Get billing doc and position
    SELECT SINGLE vbelv posnv
    INTO corresponding fields of ls_vbfa
    FROM vbfa
    WHERE vbeln EQ komp-aubel "returns order number
    AND posnn EQ komp-aupos "returns order item
    AND vbtyp_n EQ 'H' "returns order
    AND vbtyp_v EQ 'M'. "invoice
    IF sy-subrc EQ 0.
    Get billing doc conditions key
    SELECT SINGLE knumv
    INTO lv_knumv
    FROM vbrk
    WHERE vbeln EQ ls_vbfa-vbelv.
    IF sy-subrc EQ 0.
    Get moving average price from billing doc conditions
    SELECT SINGLE kbetr
    INTO lv_kbetr
    FROM konv
    WHERE knumv EQ lv_knumv
    AND kposn EQ ls_vbfa-posnv
    AND kschl EQ 'VPRS'.
    IF sy-subrc EQ 0.
    Recalculate condition values
    xkomv-kbetr = lv_kbetr.
    xkomv-kwert = lv_kbetr.
    xkwert = xkomv-kwert.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDFORM.
    Regards,
    Edric

    Hi,
    If you bring the Freight condition after PBXX and include in the net value, your problem will be solved.  so it will be 120 in MIGO, MIRO, Dellivery and VPRS in billing.
    We have the same situation and its working fine for us. 
    Thanks
    Krishna.

  • Tax invoice not show in assignment field of billing doc & ref doc of FI doc

    Dear Gurues
    Does anyone know how to able to display Tax invoice numbering at the assignment field of Billing doc and reference doc header field in FI doc generated by posting billing doc. Also post through POS IDoc?
    I have change SD config to correct the existing non vat billing to be able to record vat billing.  The result seem ok when I enter regular billing, system generate FI doc with Psk01 customer, Psk50 Revenue acc, output tax.  This shows Tax invoice number at reference doc header and assignment field at output tax line item.  Assignment field of billing doc is also display.  
    But when entering to billing with a dummy article (same meaning as material master) that was set up to GL acc, I found that the FI doc after posting billing show a billing doc number instead of Tax invoice number at reference doc header field.  This result is same when post thru POS IDoc as well. (FI doc is Psk40 Cash on hand, Psk50 Revenue acc, output tax)
    Out put tax acc has sort key as 009 - external doc number
    Your suggestion is mostly appreciated.
    Yours sincerely,
    Kulsri K.

    OK I can clear it now.  Just set tax category to Dummy Article to be Full tax then Tax sequence number is running.

  • Mass updation of merchandise category in Billing doc.  ------  ( IS-Retail

    HI!
    My problem is in regard to the Merchandise Category Reclassification in SAP IS-Retail.
    My senario was that there were some Merchandise categories(MC) which were unallocated i.e they were not assigned to any Merchandise Cat. Heirarchy.
    Also there was a Merchandise Category (90000001) MC_Common, which was a collection of articles that were not assigned to other MC, there were miscllanious.
    But now, the above mentioned MC and articles in MC_Common have been assigned to their correct heirarchy or MC's.
    What I want is, the old billing documents, which contained the articles with their old Merchandise Cat. no. gets changed such that the old merchandise cat. being displayed against the article reflects my new merchandise cat. assignment no. Without creating any new billing document.
    How to go for it.
    How billing doc can reflect, newly reclassified Merc. Cat.

    Hi,
    please get in contact with the SLO team.
    System landscape Optimization, they have a tool to do such changes in mass.

  • Creating Billing Doc

    Hello Professionals,
    I need some clarification on the copy control and item determination for Billing doc creation.
    Am I right to say that :
    1. Item category determination can be done 2 ways : from setting in SPRO assign item category and the Maintain copy control for Billing doc in SPRO.
    2. Of the 2 places to set item category, the copy control setting for item category will overwrite the Item category determined from assign item category setting in SPRO.
    A question I have is :
    1. In SPRO maintain Copy Control for Billing Doc, I selected the Target Billing Type and the Source Delivery Type and went into   the item screen, In this screen , I see Item category for Delivery Type but there is no corresponding item category below the Target Billing Type area.
    May i know what does this imply?
    Thanks.
    regards
    John

    hi john,
    read it and revert i hope will clear the issue
    system copies the item category from the item category determination rule as specified in the earlier posts,
    on the basis of  item category grp in material master,sales  document.
    this happens ,provided that you are creating the order w/o ref to any quotation or any other preceding document .
    and when the system creates the delivery for this order copying control is used for the data transfer from item category and schedule line data of the order in to the delivery.
    -item cat det is done for the first time when the user punches in the data in any document(sales-delivery).
    -when user creates any subsequent document from this document then system uses the copy control to fetch in the data that is to be copied from the item category of this preceding document's item category inn to the followup or subsequent doc.
    hope this clear your some issues
    revert if helpful
    Mohit Singh

  • IS-Retail  ---- Mass updation of merchandise category in old billing docs.

    Please help me in this.
    I have changed the merchandise category of some articles in Retail now I want to update this merchandise category in my old billing docs also.
    Could any one can tell me how I will do the mass maintenace of old billing docs......Standard object for billing docs in Retail.
    Thanks & Regards
    Sunil Garg

    Hi,
    please get in contact with the SLO team.
    System landscape Optimization, they have a tool to do such changes in mass.

  • Bugget billing plan-billing doc creation

    Hi experts,
    For a resential customer that is monthy charged for 50$(BBP) a billing doc. is created with different billing lines.
    The tarrif contains differents components: Fixed amount, distirbution cost, transaport cost, energy cost, rental cost, etc..
    I see in the billing lines that the 50$ is split between those differents components.
    How SAP billing engine breaks this amount into differents small amounts corresponding to those components ?
    Can anyone explain how I can debug this when creating the BBP with t-code EA61, in order to follow the creation process ?
    Thank in advance,
    Tierno

    Hi,
    Here is the Documentation on BBP amount, it may be somewhat helpful too.
    The basis for amounts is extrapolation - billing simulation. Try setting breakpoint in Function Module ISU_BUDGET_BILLING_EXTRAPOLATE - it returns the simulated billing document per contract. That should give an initial breakdown of amounts, which then gets distributed over open due dates and rounded. Look into ISU_BBP_EABPS_CREATE - it turns the billing document lines into "internal BBP positions". The entry point to the whole BBP Create, Change, Display Logic is ISU_O_BUDBILPLAN_OPEN.
    Have fun and good luck - the logic is much more complex and *err, how shall I put it..?* convoluted than simple sounding 1) simulate bill, 2) split the result and 3) round it
    cheers,
    Janis

  • Collective Billing doc./online stops if a delivery document saves with error

    Dear Gurus
    We will save the billing documents using VF04 (Maintain Billing Due list) by selecting all the delivery documents and will click on   "Collective Billing Doc. /Online'. Sometimes, if a single delivery documents was incomplete or saved with error, system stops the execution at the error delivery document. Again we will exclude the error delivery document and tries to select the remaining documents. We will repeat it till all documents cleared (except the error Document).
    Is there any option, where we can successfully execute all the documents with excluding the error delivery documents. That means, system should save all the billing documents without stopping at the error document. This will helps us to minimize our time. Suggest us a solution.
    Regards
    Maheshwar Rao Gudepu

    Normally, for any reason, if billing documents cannot be generated, it could be due to incompletion log exists in sale order and not in delivery.  So in all probabilities, wherever system has stopped generation of billing document, if you check the corresponding sale order, it would have been saved with incompletion log.  So before executing VF04, user has to educate to check this.  On the other hand, if you want to automate this process, you can try with USEREXIT_FILL_VBRK_VBRP in program RV60AFZC
    G. Lakshmipathi

  • Where can I find the Billing Doc. Header Text SO10 text name?

    I have to write some logic in the billing document header text “country of origin”.
    VF02-- GOTO-- HEADER---HEADER TEXT----- COUNTRY OF ORIGIN.
    When a billing document is created it automatically creating the header text with the following details:
    Name :                       Billing doc number
    Language : EN
    Text ID:        ZD17
    Text object : VBBK.
    I need to find the SO10 text name from which the above dynamic text is generating, so that I can change the code in the original text..
    I searched in the SCN and found the Tcode VOTXN.
    I went to this tcode and selected the Billing Doc. Header Radio button.
    And I found the Access sequence number corresponding ID(ZD17-country of origin)
    When I gone through the sequence number I found one SO10 text name, but that is not the right SO10 name because the contents are totally deferrent.
    is there any way to find the SO10 text name, or did I went to any wrong path...
    please help me..
    Regards,
    Ramesh

    Double on the right hand side and Click on Goto-> Header for the Name and object details.

  • Billing Comparison on quantities when two or more time slice in bill doc.

    I our project for commercial customer consumption history of past six years is normalized to create a monthly consumption base line (calendar months) this base line is maintained as installation fact and while billing execution this is used to calculate billing  base line
    E.g
    Jan consumption base line u2013 100000 KWH
    Feb Consumption base line u2013 90000 KWH
    Billing period is 15 Jan u2013 15 Feb
    Billing base line is calculated by prorating Jan and Feb consumption base line
    ((100000/31) X 17 ) + (( 90000/28) X 15) = 103053
    Periodic consumption is compared with billing base line and if
    A. Consumption is more than billing base line
          Excess consumption is billed to produce debit $ amount in bill doc
    E.g Billing base line 103053,     Periodic consumption 110000
    Excess consumption = 110000 u2013 103053 = 6947 KWH
    6947 X price = Debit $ amount
    B. Consumption is less than billing base line
    Difference between billing base line and consumption is billed to produce credit $ amount in bill doc
    E.g Billing base line 103053,     Periodic consumption 90000
    Difference = 103053 - 90000 = 13053 KWH  
    13053 X ( -Price) = Credit $ amount
    Comparison between Billing base line and Consumption is done using standard variant IF01
    The problem occurs when bill document has two or more time slice due to price change or change in facts like factor at rate category facts. If  for one time slice consumption is more than billing base line and for other time slice consumption is less than billing base line.
    Variant IF01 does not take into account time slice but it compares quantities considering whole billing period.
    E.G Billing period is 25 Jan u2013 25 Feb
    Price changes on 20 Feb
    Billing base line 25 Jan to 19 Feb u2013 50000
                                20 Feb to 25 Feb u2013 20000
    Billing base line for complete billing period 50000 + 20000 = 70000
    Consumption  (prorated by SAP)     25 Jan to 19 Feb u2013 56000
                                                              20 Feb to 25 Feb u2013 18000
    Total consumption for billing period 56000 + 18000 = 74000
    Consumption is more than billing base line for 25 Jan to 19 Feb time period and consumption is less than billing base line for 20 Feb to 25 Feb time period  but since for complete billing period consumption (74000)is more than billing base line (70000) and this comparison is done by IF01. Control in schema flows to rate which calculate the Debit $ amount for both the time slice which results incorrect calculation of bill amount
    Has anybody encountered similar scenario before. Is there a way out so that individual comparison is carried out for each time slice to pass control to correct rate in schema.
    Thanks
    Amit

    Hi,
    You can use variant quanti02 to determine the difference between the periodic consumption and base consuption.
    first, you calculate the positive difference only ( periodic consumption - base period) by selecting variant control  2  - Negative differences are not updated. You store this into a new QUANT operand called QPLUSDIFF
    then you do the same quanti02 to determine the negative difference, but first you detemine it as positive difference between base consumption and periodic consumption) and multiply the result with factor -1 with quanti09 and store it into a new QUANT operand called QNEGDIFF
    Then you have your negative and positive differences and you can bill them with the corresponding prices in subsequent steps.
    Hope this helps,
    Daniel Toba
    http://www.sap-isu.net

  • ISA: Billing doc search

    Dear guru's
      The Billing doc search in the ISA searches both open and closed billing docs(Invoices, Credit Memos). How do I restrict to get only the open items in the search.
    Thanks,
    Vivek.

    Hi Vivek,
            Use the following logic.
    Note : lit_isu_cont contains the list of isu contracts,lit_isu_cont-lv_vertrag.
    SELECT belnr vertrag endabrpe bergrund abrvorg loevm
            FROM erch
            INTO TABLE lit_bill_data
            FOR ALL ENTRIES IN lit_isu_cont
            WHERE vertrag = lit_isu_cont-lv_vertrag
            AND ( bcreason = space
                  AND loevm = space
                  AND simulation = space ).
    If sy-subrc = 0.
    " Billing document exits ".
    endif.
    Hope this helps.
    Regards,
    Kapil

  • Open sales orders and open deliveries and open billing doc to sap from legesy

    Dear all
    i have some open sales orders and open deliveries and open billing doc are there in the legesy system
    so i want to know how to transfer the doc to sap by using lsmw plz tell me

    Hi Amith,
    it is always good to search in Google before posting .LSMW is very old topic and i am sure you will get lots of Documents on this .Please go through the below link .you will get some idea on this.
    http://scn.sap.com/thread/1012472
    there are 14 steps in LSMW and it is same for all (master data and Transaction Data)
    Pls practice this in your sand box or quality system before working it in the client requirement.
    Hope this helps to you
    Regards
    Sundar

  • Error while creating Billing doc using VF01 for Debit memo req. from RRB

    Hi,
    I am creating billing doc for my Debit memo req. which is created using RRB(DP90, DP95).
    Error message - Item 000010 does not exist.
    When I debugged and looked into code it seems following lines are causing problem.
    Program
    LV60AA28
    Line u2013 734
      IF  vbap-vkgru EQ vkgru_dyn_posten.
        IF vbap-aufnr IS INITIAL .
    set AUBEL because it was overwritten by VBAP-VBELN
          vbrp-aubel = vbap-vgbel.
          vbrp-aupos = vbap-vgpos.
          vbrp-autyp = vbap-vgtyp.
    This code was not in 4.6 system.
    We have just migrating from 4.6 to 6.0 and facing this issue while testing.

    First of all you should try to learn how to express in a public forum like this. 
    On your comments
    Do some ground work from your end
    why should I ??  if you want you can do ground work or any work.  If you post a question, you have to hear patiently all suggestions and dont scribble whatever you want.
    You should have some basic
       understanding of SAP ABAP.
    You should have posted this question ABAP forum !!!!   Why without any sense you have posted in sales forum ??

  • Vf02 error while releasing a billing doc to accounting

    Hello All,
    I m getting the below mentioned error while releasing a billing doc for a accouting.
    I have checked all the settings in vkoa , ob52 and many more and all are set properly, now m not able to track where actually the prob is.
    error is: No account is specified in item 0000001004
    Message no. F5670
    Diagnosis
    No account was specified for account type "S" in item "0000001004" of the FI/CO document.
    System Response
    The Financial Accounting program cannot process the document.
    Procedure
    A system error has probably occurred in the application you called up. Check the data transferred to item "0000001004" of the FI/CO document.
    Points wil be rewarded
    Thanks,
    SUnny

    Hi,
    Have you checked what is the determination account determination log ? You can do this by entering in VF02 and select from the menu Environment -> Account Determination Analisys -> Revenue Accounts.
    In this log you can see what are posting keys determined from the pricing procedure that should be posted in the FI document and determine very easy in which step the account was not determined.
    After that you can maintain the correct account in VKOA transaction.
    BR,
    Valentin

Maybe you are looking for