Update Unit Cost Estimate in sales order

Hi,
I want to update the Unit cost estimate in the sales order while saving. The unit cost estimate is coming from the Z-table and it is supposed to update in the sales order in the sales order user exit.
Can you guys please suggest any function module or anything to update it ?
Thanks in advance
Hemant

Are you asking in VA01/VA02 "while saving ... in the sales order user exit"
- Check [User Exits In Sales Document Processing|http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm], Use USEREXIT_SAVE_DOCUMENT_PREPARE or USEREXIT_SAVE_DOCUMENT.
Or are you mass-changing order from a report "any function module"
- Check [BAPI_SALESORDER_CHANGE|http://forums.sdn.sap.com/search.jspa?objID=c42&q=BAPI_SALESORDER_CHANGE]
Regards,
Raymond

Similar Messages

  • Error reading material cost estimate for sales order (KE292)

    Dear All,
    I have an issue with billing. we are posting july month transactions, the material cost is maintained through MR21. When releasing billing document for accounting we are getting error message like"Error reading the material cost estimate for sales order "11"
    Message no. KE292
    Diagnosis
    In Profitability Analysis (CO-PA), the system tried to valuate item 000010 of sales order 11 by reading the corresponding product cost estimate.
    However, no product cost estimate could be found for this sales order item.
    The system accessed product costing for product AMLFP011011XX00P using costing key YB3 as defined in the
    CO-PA Customizing settings.
    System Response
    The system cannot process the document any further.
    Procedure
    Check your Customizing settings."
    We cross checked with other client as a current date and we ran cost estimate through CK40N with same material. and we posted entries. Here it is working fine. but in above process it is not working. Can you pls guide me where i missed.
    Regards,
    Nagaraju,

    Hi,
    When the Costing Key is assigned to the material types in the COPA customizing, then system expects Cost estimation when billing is released to Accounts.
    If you dont run cost estimation but update the material master through MR21, system will not accept as in the Costing key configuration you must have selected the Current Standard price field for the valuation.
    Hence, try to run cost estimation and then do releasing.
    Thanks & Regards
    Ravi Kumar

  • Cost estimate for sales order

    Dear Friends,
    In a make to stock scenario a finished good is sold from the depot and thereafter it is returned. After creating the credit memo for return, when the same is being released to accounting in VF02, the system throws an error message which reads 'Error reading the material cost estimate for sales order "12000373". and the document cannot be passed on to accounting. Although, we are able to release the sales invoice to accounting without any error. In the item condition tab for sales order the standard cost VPRS is updated as we enter the plant.
    Strategy group for the material is 40-planning with final assembly. The concern over here is that why the system is asking for cost estimate at the level of sales return.
    Please suggest why this error is coming and how the same can be released to accounting.
    Regards

    Hello Friend,
    The problem is that Material you are using for that Cost Estimate is not done. So go to T.Code CK11 give the Costing Variant, Material & Plant and go on entar and entar. If everything is green in end then save it.
    Then Go to T.code CK24 give the Company Code, material & Plant and then execute.
    Click Back and click on Release Button and then execute.
    Then try the Transaction you have got the error again.
    Hope this helps.

  • BOM Cost Estimate for sales order items

    Hi experts,
        Which data source could extract data created by CK51N (Order BOM Cost Estimate )? We need to get BOM Cost estimate (including input material and activity) for sales order items.
        The closest one is 0CO_PC_01, but it extracts itemizations for production order.
        It's urgent.Helpful answers would be awarded.Thanks.
    Regards,
    Aaron

    Hi Henry,
       They even do not have Sales Order segment. How could I get cost estimate data based on sales order?
    Regards,
    Aaron

  • Product cost collector for sales order related production

    Hi Friends,
    This is Azam and here i am new to this discussion forum.
    we are in situation that use diffrent variant for configurable material in sales order related production,
    I would like to have some information about use product cost collector for this kind of sales order related production,
    also I want to know difference between prelimanary cost estimate or cost estimate for sales order?
    Please co-operate me.
    I would be highly appriciated if you can respond at the earliest.
    Thanks
    Azam

    Hi,
    Here, for each sales order item, you will have sales order cost estimate. This enables the system to compute the variances once the actual costs are booked against the production.
    In the case of preliminery cost, we get the preliminery cost for production order as a plan cost and is not being used for the computation of variance but only for comparision purpose which is very marginally used.
    Trust this helps much and do encourage our efforts!
    Cheers!

  • Re-Cost (CK55) Marked Sales Order Line Items

    My current client resets standards each quarter. They have requested to re-cost open CTO Sales Order line items and update the valuated sales order cost (EK01). I have reviewed the options available in CK55 - Mass Costing and find the processing log retrurns the following message:
       Cost estimate with status VO exists. See long text
       Message no. CK_MCSO014
       Diagnosis
       A cost estimate with the status VO already exists. This cost estimate will not be overwritten.
       System Response
       Processing continues with the next item.
       Note
       You can remove this message from the log with the customizing transaction User-Defined Error Management for Mass Costing of
       Sales Documents. The item will still not be costed, however.
    Short of manually re-costing each open sales order line item. Is there a way to re-cost open CTO Sales Order Line items?
    Regards,
    Dewayne Wesley

    I didn't realize there was a MASS Cost transaction.
    Is there a MASS delete Sales order Cost estimat transaction? That would help.

  • How to change price total for "Change Unit Cost Estimate Screen" for KKE1 Tcode ?

    There is a requirement of bringing the Material Price in KKE1 while entering the Item Catogory M ( M for Material) from the Gross Price in the condition type (P001) that is entered in the Purchase order.Currently systems brings the material value from MAP(Moving average Price) in the Material Master data.
    I have looked into the user exit 1) EXIT_SAPLKKEC_001 2) EXIT_SAPLKKEC_002  available in this T code KKE1.When I put break-point in these user-exit,it is not going in debugging mode while fetching the price value in Price total column  for "Change Unit Cost Estimate" screen in KKE1.
    How will change pricing condition for material in KKE1?
    I want to change price condition for material  as marked in red as shown in the screen-shot.
      Where will write the code such that I will bring Price Total based on material number as shown in the image?

    Hi Ram,
    I think you can do the same in thei manner.
    Go to program SAPMV45A.
    use menu GOTO -
    > Text Elements----
    >Text Symbols
    Here make change of Text-002 Sold-To Party as saleable .
    Regards,
    Pravin

  • Plan cost of Valuated Sales order

    Hello,
    I am using Valuated Sales order and wanted to see the Plan cost is sales order report KKBC_KUN.
    a) When i use a costing variant in the Requirement class with automatic marking, i am able to see the plan costs in the sales order report.
    b) However if i dont use and costing variant in the requirement class and instead use the valuation with standard price of Make to stock inventory (with out val.strategy is checked), my sales order report does not show the plan cost.
    I want to use option (b) and also see the plan cost in the sales order report. Is this acheivable.
    Regards
    Raghu

    Hi Raghu
    Valuation Indicator in Req Class and Costing fields in Req Class are independant things
    You can specify valuation field as A (No Separate Valuation) and still use the Costing fields to calculate sales order cost estimate.. This will remain for info sake only
    However, it does nt make sense to calculate SO Cost est if you dont use that in valuation
    br, Ajay M

  • Cost Analysis by Sale Order

    Hello,
    I'm seeking to enable in BI a Cost Analysis Scenario with repect to the <b>Sales Orders</b>. That is, something similar to the analysis you can easily perform in the R/3 area <i>Accounting -> Controlling -> Product Cost Controlling -> <b>Product Cost by Sales Order</b></i>.
    For instance in standard report KKBC_KUN, you can choose a sales order number and get all the <b>cost elements</b> related to that sales order, with the corresponding costs.
    I have examined the following objects provided by the BW's Business Content:
    - <u>InfoCube 0PC_C01</u>: it contains only the costs related to <b>production orders</b>, and not the costs associated with sales orders.
    - <u>InfoSource 0CO_OM_CCA_9</u>: it seems interesting, in fact it delivers some header and line item data of the <u>Controlling Object Document</u>. Unfortunately it doesn't deliver the crucial characteristics <i><u>Controlling Object</u></i> and <i><u>Controlling Object Type</u></i>, which I definitly need for enabling my analysis scenario!!
    (By the way, are these 2 characteristics delivered by the BC? There exists a 0COSTOBJ characteristic, but it's not used by any object in the flow afterwards. Moreover, I can't find a standard DataSource in R/3 which I can use to load either its attributes or its texts, and see what data enter it..)
    Business Content for Product Cost by Sales Order), but none could help me.
    It seems really weird that it's not possible to carry out a <b>Cost Analysis by Sales Order</b> in BW, so if anyone has some suggestion it'll be very appreciated indeed.
    Thanks & Regards, Davide

    I eventually found the following SAP Note. No BCT for this analysis scenario....
    <b>Note 584791 - BW-BCT-CO: Costs not extracted on sales orders</b>
    <b>Symptom</b>
    In R/3, costs are posted directly to sales orders. The costs have to be analyzed in the BW system. In the standard system, however, this data is not extracted into the BW system.
    <b>Other terms</b>
    0CO_OM_OPA_1; 0CO_OM_OPA_6
    <b>Solution</b>
    1. There are currently no DataSources for costs on sales orders in the standard BW Business Content. Unfortunately, there are currently no resources scheduled for a new development in this area either.
    2. Therefore, the DataSources and the Business Content must be created in the customer project within the framework of consulting as a customer solution concerning the generic extraction options of the BW Service APIs or function modules you have programmed yourself for extracting data.
    3. Technical background information about costs on sales orders:
    The transaction data is available in the following R/3 tables
    COSS and COSP - Totals records or COEP - Line items.
    This concerns records for the VB* object numbers.
    The master data of the sales orders is contained in the VBAK and VBAP tables.
    The 0CO_OM_OPA_1 and 0CO_OM_OPA_6 DataSources only extract costs for orders with master data in the AUFK table. These types of requests always have OR* object numbers. Therefore, these DataSources cannot be used for sales orders.
    However, you may be able to assign requests from the AUFK table (for example, maintenance orders or production orders) to a sales order through the AUFK-KDAUF table field.

  • How to update the condition price in sales order while creating the invoice

    Hi,
    How to update the condition price in the sales order to carry out the new price while creating the invoice?
    While creating the invoice it should update the condition price in sales order.
    Thanks,
    Balaram

    No, pricing is not there in delivery.
    I found an exit for VF01transaction where we can update the price in order.
    Can you please tell me how to update the price if I have the order, material numbers and conditions number?
    Thanks,
    Balaram

  • Sales Order Report Showing Cost on the Sales Order & total invoice dollars

    I am looking for a report in SAP that shows you the Sales Order number, the cost on the sales order (NOT the average cost) the actual cost on the sales order detail line and then the total invoice dollars in month to date and year to date?
    Thanks,
    Linda

    You can use <b>T.code: COOIS </b> if Product Costing has been configured for MTO scenario whcih gives the costing details.
    You can also use To.code: <b>KE30</b> if CO-PA implemented.
    but if you want to link with billing, Please search for any reports in Sales information system.
    One more you can create a ABAP Query Report using T.code: <b>SQVI</b>
    Regards,
    Anbu

  • This field cannot be updated as there are open sales order lines

    When trying to enable Item Attributes then I am getting a message "This field cannot be updated as there are open sales order lines". I cancelled the Sales Order ( which was having only 1 sales order line and that is also cancelled) but still I am getting the same message.
    How to overcome this problem.
    Khan

    Thanks Karthik & Sandeep........
    Issue got fixed. There was an open Sales order Line because of that line the issue was coming. After cancelling that SO Line, Users were able to update the Item field.
    Regards,
    Khan.
    http://moreapps4u.blogspot.com/

  • How to transfer cost from old sales order (cancelled) to new sales order

    Hi Gurus
    I want to know, how to move cost from one sales order to another sales order.
    SD created sales order before 1 month and there was production order behind this. Production was completed and all the cost was moved to sales order and also SD has raised invoice on customer. This transaction was completed.
    The above order was rejected by customer due to some changes in the order. SD raised another sales order and production order was created to to additional work. Production transfered above stock (produce before on old production order) to new production order.
    My problem is stock is now transfered to new production order but cost is still sitting on old sales order. How do I transfer cost from old sales order to new sales order. SD cancelled old invoice and raised new one with full value (old + new work) on new sales order. Now cost is on old sales order and revenue is on new sales order.
    Please help.
    Thanks

    Hi
    I have reverse the sales order settlement, PP order settlement to sales order and I have also done KB11N for transfering the cost to the new production order.
    The only problem is I was unable to transfer labour hour confirmation as cost element used for this are not for transfering cost. If I will reverse the confirmation in PP order system will reverse material movement also which I don't want any more. Can you please tell me how to I reverse the Labour hours with out affecting goods movement?
    Many thanks

  • How can i change unit of measurement in sales order on header

    Dear all,
    I have material master with base unit of measurement " Ea ".
    I have to take unit Pc in sales order.
    how can i change unit on header in sales order.
    i changed unit on line item in sales order by setting in sales unit field in material master.

    Hi,
    You can very well do it, please do the following steps,
    Go to material master and select the Sales Org.1 and 2, here maintain the sales unit PC and
    it will ask you for the conversion, so maintain your conversion for PC to EA. Then maintain
    the Division, delivery plant, material pricing group and account assignment group(if not maintained) and save it
    Now create the sales order for that resp. material, you will find that system will pick up
    the sales unit which is maintained in the material master's sales orgnization tab.
    For this you need not to change at the header level of sales order
    Please check and revert.
    Thanks,
    Hrishi

  • Update error in  RV_SALES_DOCUMENT_ADD during Sales order creation

    I get an Update/ ABAP runtime error during Sales order creation. The error occurs during processing of the update module -RV_SALES_DOCUMENT_ADD.
    This error does not occuring always, as I am sometimes able to create a Sales order without getting update error. I am getting the error of all types of Sales orders and even contracts.
    Am I missing any configuration parameters?
    Thanks,
    Chitra

    Yes , I can see the error in ST22.
    While exceuting VA01 (Oder type OR, Entering Sold-to-party, Purchase order NO, Material, Qty, Plant),
    - I get run-time error "Run-time error "GETWA_NOT_ASSIGNED" occurred".
        Analysis of error shows:
         Update terminated in "Update module: RV_SALES_DOCUMENT_ADD"
          Fails in the Read table in one of the form
            Termination occurred in the ABAP program "SAPLV45U" - in "VBAP_BEARBEITEN"
    The main program was "RSM13000 ". In the source code you have the termination point in
    line 147 (READ TABLE FYVBAP WITH KEY VBAP_KEY.)
    of the (Include) program "LV45UF0V".
    The ABAP's say the functional module is trying to do an 'UPDATE' instead of 'INSERT" in the internal table FYVBAP.
    Thanks,
    Csuman

Maybe you are looking for

  • How connect client to mySQL via SSL

    Hi, I created client in Swing/AWT and configured mySQL. How can I configure my client to enable connection via SSL (not necessary with certificate). I have to switch on field in driver JDBC, but that'a all? How can I verify if connection is really en

  • What version of Data Modeler comes with SQL Developer EA 3.1?

    Hi: I've looked but can't find what version of Data Modeler is shipped with SQL Developer 3.1 EA1. Is it Data Modeler EA 3.1 or the production Data Modeler 3.0 version? Thanks, Doc

  • Flash Video not showing on Server

    Hi, wonder if anyone can help on this one. Going round in circles. Not sure why, should be simple enough. I have created a Flash Video in Flash 8 and published and picked up in Dreamweaver 8. Published files were sample.swf, sample.html and SteelExte

  • Can´t render&preview stabilized quicktime-video

    Hello all, I´ve encountered a very annoying problem while using After Effects warp stabilizer on a quicktime-video (4K, ProRes444, 24fps, 16-Bit). After applying the effect, I can see the results in the preview. But when I am closing the AE-project a

  • I have Adobe CS3 Premium Design, but can't find Dreamweaver to open it.

    Can someone tell me where to open Dreamweaver.     It is not listed with my other programmes under Adobe Premium Design CS3