No VPRS In Billing

Hi Gurus,
I am facing with a wierd issue.I am not getting VPRS cost to Billing.It is there in order and it is not copying to Billing.That too it is for some materials.The item categories of the materials are the same.I know that VPRS in billing is not going to affect any entries and generally the consept of cost ends at creation of goods issue COGS is triggered.
Even for some materials ( Line items ) VPRS is copied and for some materials it is not copied.In conditions it is showing requirement 004 is not fulfilled.How come this happen for some line items when all the configuration is same ( The item categories order types billing types Delivery types are same for all the line items)
Can any one help.
Regards
Narayana.Manam
Edited by: manam narayana on May 2, 2008 5:00 PM

Hi
Requirement 4 is as follows
Determine costs according to item category configuration (TVAP)
form kobed_004.
  sy-subrc = 4.
  if komp-kposn ne 0.
    check: t001-bukrs = t001k-bukrs.
    check: komp-werks ne space.
    check: komp-evrwr = 'X'.
    check: komp-fareg na '45'.
  endif.
  sy-subrc = 0.
endform.
Prestep
form kobev_004.
  sy-subrc = 0.
endform.
check: t001-bukrs = t001k-bukrs.     this line indicates that company code in company Codes table , should be be same as valuation area table, so check the valuation area from the material master and check that valuation area in T001K if it is in same company code.
check: komp-werks ne space this checks if plant is populated 99% it will be.
check: komp-evrwr = 'X'., this is for determine cost indicator, please check first in item category definition if cost indicator is checked then in item table of sales order als, it may happen at time of sales order creation this was not checked.
check: komp-fareg na '45' Rule in billing plan/invoice plan, please check if it is configured.
you can put a breakpoint and check
Regards
Jitesh

Similar Messages

  • VPRS in billing is not matching PGI document

    Short Text    
    VPRS value differs in billing and PGI documents    
    Long Text    
    Hi,
    Please be Informed that the value of the cost (VPRS) in the billing
    document is different from the value in the post goods issue document.
    In which Cases
    Sales order is created in the month of Dec 2009 but the delivery has
    been created in the month of Jan 2010.Because of this year change the
    standard price in the material master has been changed and so the PGI
    document has picked up the new standard price(2010) where as for the
    billing it has copied the cost from sales order which is the old
    standard price (2009).
    Following is the configuration
    Pricing type in copy control (VTFL) is 'D'-copy pricing elements
    unchanged
    Pricing source - Order
    Condition category of VPRS is G-Internal price
    Please help what should i do in order to make VPRS pick the price from GI document with pricing type as D.
    Regards
    Ravi

    Hi Sanjay,
    Firstly thanks for your reply.
    As I said earlier we are using the pricing type -D and following are the dates for your reference
    Sales order created on : 25.11.2009
    Pricing date in sales order : 25.11.2009
    std price got changed in material master from 01.01.2010
    PGI carried out on 26.01.2010 which has taken new price
    where as billing which was created on 15.02.2010 still taken the cost from the order which is 2009 cost.
    Hope I am clear.
    Do you mean though the pricing type is( D =copy unchanged ) the billing date cost should be taken from PGI . Already I have seen the condition control by double clicking VPRS and found it as D . In the sense the system is capturing the cost from preceding document (may be sales order ). Do you have any other idea to find out why its happening like this.
    Thanks
    Ravi

  • Change VPRS during billing -( order related Billing )

    Hi Guru's,
    There is a requirement for changing the VPRS value during Billing - ( Order Related billing ).  There is a particular requirement for which this scenario is needed.   I did manage to change the value or XKOMV via a custom requirement but it is not getting reflected in the Invoice.
    Can someone advice on how to achieve the same.
    The following is the data i get during Analysis.
    Condition type      VPRS
    Message              216
    Description       Condition value has been taken from preceding document
    Further Analysis
    "Condition types (e.g. VPRS), which have been provided with the condition category 'G', determine your condition amount either from the material evaluation segment or the amount is calculated from the condition value.
    Therefore the condition value - possibly a billing document - can be determined from the goods issue or in third-party order processing of a preceding document, for example, from the vendor billing document.
    Der Konditionsbetrag wurde hier aus dem übergebenen Konditionswert berechnet."
    Regards
    G

    Hi Guru's,
    There is a requirement for changing the VPRS value during Billing - ( Order Related billing ).  There is a particular requirement for which this scenario is needed.   I did manage to change the value or XKOMV via a custom requirement but it is not getting reflected in the Invoice.
    Can someone advice on how to achieve the same.
    The following is the data i get during Analysis.
    Condition type      VPRS
    Message              216
    Description       Condition value has been taken from preceding document
    Further Analysis
    "Condition types (e.g. VPRS), which have been provided with the condition category 'G', determine your condition amount either from the material evaluation segment or the amount is calculated from the condition value.
    Therefore the condition value - possibly a billing document - can be determined from the goods issue or in third-party order processing of a preceding document, for example, from the vendor billing document.
    Der Konditionsbetrag wurde hier aus dem übergebenen Konditionswert berechnet."
    Regards
    G

  • Piece of code that is getting executed in determining vprs in billing

    Hi,
    I am a functional consultant and I desperatley need your help in finding out the piece of code that is responsible in calculating the value for VPRS condition in billing document. Its a special condition type(with condition category G) whose value is determined in the background by SAP. Generally the business scenario is like this
    SALES ORDER-DELIVERY DOCUMENT-BILLING.
    of course there are so many sources for the system to find out the value for VPRS  like from material master,sales order and material document .
    please give me the set of lines in the standard program which are relvant for this calculation because system is not behaving in a what SAP is saying .
    Thanks in advance.
    Ravi

    Can you post your bean and exception code? Is your exception checked or unchecked exception? If logMsg method throws an application exception, it should be thrown to the calling MDB as is.
    -cheng

  • Delivery-related billing for TAS : take VPRS value from GR or Invoice

    Hello,
    One my customers currently invoices stock items and Third-Party Items separately. He now wishes to invoice both items together.
    In Third-Party standard flow no delivery is needed. In order to invoice both items together I have now activated the delivery for the Third-Party item flow (item category TAS).
    I can now invoice both items together based on the common delivery.
    I have now another problem regarding the TAS item invoiced...
    -  In standard flow (third-party processing = order-related billing), the value for VPRS is taken from the MM flow (either from Goods Receipt or from vendor's invoice depending on the customizing) automatically. This is great since the vendor might enter a different cost than the one from the sales order and it is that cost that we need to find in the billing doc and in CO-PA.
    -  When I do delivery-related billing for my TAS item the VPRS is not updated from MM but is taken from Sales order (thus from material cost) --> incorrect value for my customers's need
    I need to do delivery-related billing for item TAS with VPRS in billing doc (SD invoice) = value of MIGO or MIRO
    Can anyone indicate me how to do this (user-exit? routine? ....)
    Thank you
    Regards,
    Cynthia

    Hi Cynthia,
    Anyone, please correct me if i am wrong.
    can we do like this for the given situation:
    instead of changing TAS functionality, let us have billing relevance G (Order-related billing of the delivery quantity) in the item category for the stock items. so that you can bill both stock item and third party item in one billing document with reference to Order instead of delivery document.
    you can have separate Item category for changing in SO for stock item whenever you want to club Third party item and Stock item for billing in the same document.
    thanks
    Rajam

  • Cost VPRS in 3rd Party TAB scenario

    Hi,
    we are using 3rd party processing for some of our materials. In this case sales order triggers the purchase requistion and hence purchase order. Then for TAB, do MIGO and then we post invoice verification for this GR. Then we create delivery and finally billing to customer. Now the problem is that in Billing, VPRS is still taking the value of Sales order VPRS value Hence the cost appearing in Billing is not accurate.
    Hence the profit margin calculations are not correct.
    Can anyone suggest the way to populate the value of MIRO in VPRS while billing?
    Interestingly, when using TAS scenario, we are getting the MIRO cost in Billing into VPRS but not so for TAS...
    Thanks

    Hi,
    Inbound delivery is one way of doing it but in our case, the vendor would deliver the goods at out plant and we simply take the stocks into out inventory by MIGO. Even In inbound delivery process, we do goods receipt from the delivery doc itself (hence equivalent to MIGO)
    Now the Vendor sends the invoice in hard copy and we go MIRO w.r.t the PO issued earlier. Now logic says that whatever value we pass in the MIRO should be the actual cost of the product and should be picked up in VPRS in the billing doc for our customer.....
    I dont know whether i have been able to explain this or not.
    And to your question of using TAB instead of TAS....TAB we are using for some vendors who would not deliver directly to our c/s (like in TAS) but would deliver to our plant and we in turn would deliver to ur c/s.

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

  • Third Party VPRS cost needs to be redetermine in F2 invoice.

    HI All,
    Can anybody tell me how we can update VPRS in billing as per MIRO invoice. following are the steps that i am following to process this process:
    1-Sales Order with item category TAS and purchase Req authomatically created.
    2-Purchase order created with ref to PR.
    3-Inbound Dlivery create with ref to PO
    4-MIRO create with ref to inbound delivery
    5- create customer invoice for two material
    a- with value
    b without value
    a-with value vprs is comming from material master
    b-without value is now showing any value.
    thanx in advance.....
    Regards,
    Danish

    Hello
    As per the standard Third party process, cost in the billing document will be picked from Invoice receipt of the vendor (MIRO).
    Basically here the cost determination happens from below three sources.
    1. MIRO (invoice receipt of Vendor)
    2.Goods receipts (MIGO )
    3.Purchase order
    Highest priority is given to the number 1. MIRO.
    In your both the cases, kindly check MIRO price & quantitiy.
    thank you
    Anirudh

  • CONDITION TYPE VPRS

    Dear All,
    While determining the cost condition type VPRS in billing we know that it is derived from goods issue .Where do we maintain the goods issue information.
    Secondly when you click on item condition detail the condition control and condition origin is defined as 'A' and 'A' respectively.
    How are these values derived????.
    Soliciting your valuable feedback in this regard.
    Regards

    Hi Sen,
    Condition control- A- adjust for quantity variance. it indicates the prices for conditions can be fixed or changed into what way. For example- the pice is adjusted when you increse or decrease quantity 'A'.
    Condition Origin- From where the condition originated either system determined or it is mannually.
    if it's A- it is determined by automatically from system.
    thanks
    Hemant

  • Cost value for third party sales order scenario

    Greetings, I have a cost question involving the Third Party Sales Order (Item category TAS).
    At billing (VF01), the cost being picked up by the system are the value from the PO (PBXX condition type). I would like the system to pick up the entire  COGS value (inclusive of freight values) posted at MIGO.
    Ex. If Purchase price is 100 and freight is 20, I want 120 (the COGS value) to be shown in the cost field. It currently shows 100.
    The steps I follow are
    1) Create OR sales order (item category TAS)
    2) Create PO referencing PR
    3) Goods Receipt  D 120 COGS/ C 100 GRIR /C 20 freight
    4) Outbound Delivery (Confirmation only)
    5) Billing (Costs showing 100?!)
    Again, only the PBXX condition type value (From MM Calculation Schema) is being picked up.
    How can I get the system to pick up the freight value as well?
    Regards
    Ken

    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.

  • Proforma

    Hi,
    Issue of this is that the ZPRS (copy of VPRS) of billing type YWIA and proforma should be the same. But in my case, it is different.
    I have an invoice with billing type of YWIA. The amount in ZPRS (copy of VPRS) is 21,833.20. while the proforma is 20, 210.00. They both have same Pricing Procedure, Delivery type and Item category (NLN).
    For copy control of YWIA: copying requirements is 004 and Data VBRK/VBRP is 000.
    while in ZZF8: copying requirements is 010 and Data VBRK/VBRP is 001
    Is it a coding issue or a copy control issue. what should i need to check?
    Regards,
    Bluetag

    Hi,
    Check on two points
    1)VPRS is the cost price.Check if your cost price has changed in the material master.
    2)See the copy control setting at the item level in the billing document.Please check what is the value for pricing type is there.
    Change it to copy all prices as it is.
    I guess this should resolve the issue.
    Regards,
    Vishwajit

  • Condition Type VPRS not appearing on some billing items

    Hi,
    I have a discrepancy between COPA and postings on the FI account. In COPA in transaction ke4i I have assigned the SD condition type VPRS - Internal price to the COPA value field VRPRS u2013 Stock Value.
    The problem arises when the outbound delivery is split on several batches. In this case the condition type VPRS does not appear on the invoice for the split billing item and the amount 0 is loaded into to the COPA filed VRPRS for this billing item instead of value that should appear in the VPRS field. And this causes discrepancies between COPA and FI.
    Do you know how to solve this problem? Is it possible to make the condition type VPRS always appear on the invoice, also in case when the delivery is sent in many batches?
    Best regards,
    Marcin

    Hi
    Welcome to the confusing world of Invoice *** batch split.. The situation you are facing is due to incorrect customization of your position types in SD during billing of the batch split. Plz check note 77414
    You can grossly summarize it as below -
    When you have batch split - the line items in Out bound delivery and biling can be divided into 2 types HPOS and UPOS i.e. Main Line items and Sub line items.. The note describes of 3 situations.. Your SD consultant will have to decide which situation you fall in...  based on that config changes have to be made in SD....
    If your billing is done at HPOS level (Main Item) and not at Item splits level or Vice Versa - Then T codes VOV7 and VTFL, you have to make settings accordingly in the fields "Biling Relevance" and "Cost"..
    Also, the item category of HPOS and UPOS has to be different - One has to be relevant for billing/Cost and the other not
    Apart from VOV7 and VTFL, check your settings in T code 0184.. Your Item catg has to be assigned against :
    Delivery Type / usage Type= CHSP/ Item category Group = "Norm"
    To correct the invoices already posted, cancel them and repost after making the config changes...
    Regards
    Ajay M

  • Billing type..VPRS

    Hi Experts,
    I have mapped VPRS to one Value fiels for COGM.
    Client is giving free of goods to customers, for that no revenue is generating only std cost is picking for condition type VPRS,the same amount is going to CO-PA, But he dont want that amount to CO-PA under COGM.
    He want that amount under selling expenses, for that perpose it is hitting one GL account in FI(not COGS GL account)
    he is using only one billing type for all.
    he is using different item catagiry.
    Pls advise how can i avoid COGM to CO-PA in sample orders?
    If there is any possibility by using Materila numer or item category?
    Thanka
    Chandu

    Hi,
    As you are stating that there is no separate Billing Type, the below solution may meet your requirement:
    u2022 Create a new Condition Type (ZPRS) same as VPRS with Condition Class u201CAu201D (Rebates and Discounts) instead of u201CBu201D (Prices). Give u201Cminusu201D sign in the Condition Type setup.
    u2022 Assign ZPRS in the step below VPRS and make it Statistical in the Pricing Procedure.
    u2022 Give a Requirement Routine such that when the Order Reason for Free of Charge is active, ZPRS is also active (need an ABAP consultant).
    u2022 Assign ZPRS to same Value Field as VPRS in KEI2. This will nullify the value in COPA for Free of Charge as value from VPRS is +ve and same value from ZPRS is u2013ve.
    Regards,
    Kiron Kumar T.

  • VPRS - Cost price from sales to billing not valuation record

    Hi,
    I need to get the cost to flow from the sales document to the billing document for the cost price.
    We allow selected users to change the cost price at the time of the sales order. But when I create a billing document the moving average price is determined and not the cost price on the sales order.
    In copy control pricing is 'G' and price source is order.
    Is there a way around this via configuration ?

    Dear Javaid
    Can you confirm that the sale order quantity and the billing quantity are same.  In most of the cases, these would be different and hence the cost also.
    Meanwhile, in V/06, for this condition type VPRS, ensure that the Calculation Type is "C"
    thanks
    G. Lakshmipathi

  • VPRS Cost Determination in Billing document

    Dear Friends,
      We are facing an issue in cost determination,  we are creating intercompany billing between the companies.  As part of price determination, we determine standard cost from the material master for price calculation.  Addtionally, we are using split valuation for all the materials.   The problem we are facing -
    -> When using the material without spli valution, then system determining the cost into billing document for price calculation
    -> When using the material with split valuation then system not determining the cost into billing document and showing as zero price.
    Please help to recrify this problem
    Best Regards,
    Goutham

    Hi,
    Surely you know them, but these notes use to help me:
    SAP Note Number 547570 FAQ: VPRS in pricing
    SAP Note 1365939 - VPRS logic and Customizing settings in SD
    I hope this helps you
    REgards
    Eduardo

Maybe you are looking for

  • SOUND for Macbook Pro to emerson TV! HELP

    I just recieved an Emerson HDTV and am trying to connect it to my Macbook Pro.  By using an HDMI2 cable, I have picture.  But, I cannot get the sound.  I have plugged in an audio cable (don't know the name of it but it is the type that fits into the

  • Deleting photo's from ipod etc

    i need to delete all photo files from my ipod 80g and i see that on the summary it says i have 177mb in 'other' i don't know what that refers to anyone have similar probs

  • Deployment Issue with Rules file

    Hi, We have Rules file issue after the deployment in Development and Re7 environment. We have modified/created the rules file and after the deployment if we execute the rules file from the treatment then we got the error message like mentioned below.

  • V$timer problem

    Hi, I want to know something moer about v$timer v$timer:This view lists the elapsed time in hundredths of seconds.. So does it mean SQL> select * from v$timer;      HSECS 4017590975My Db was running from last 464 days i.e 4017590975/100=x sec x/60 =y

  • Extracting Data From HR InfoTypes

    Hi Experts, I am implementing HR(Personnal Administation) module. Here I need to extract data using InfoTypes. So can any body pls help me How to create Generic Datasource with InfoTypes? Hoe to Extract Data using HR InfoTypes? If any body having any