Using Transaction Cost Extension - CSTPACHK - to calculate cost

We want to use the transaction costing extension (CSTPACHK) to modify the cost of items. The procedure we want to modify is 'actual_cost_hook'. The documentation available, like the Costing User Guide, specify that we have to include our custom code and then return a 1 from the package to tell the Cost Manager to use the custom code instead of the standard code.
What I don't understand, and what is not clear in any of the documentation, is what to do after we determined the custom cost. It is not a parameter in the procedure that we can send back to the standard process. Do we have to insert or update a table with the newly generated code? The documentation seems to suggest that we update the 'mtl_cst_actual_cost_details' table. But my concern is that it is a standard table and should therefore not be updated.
What is the correct way of sending the newly generated code back to the standard process?
Thank you,
Elisca

Hi Elisca,
If you observe carefully structure of CSTPACHK, procedure actual_cost_hook is function called from Oracle standard package CSTPAVCP which use to process all material transactions.
Now for your situation you should try to return calculated cost in fucntion actual_cost_hook thats enough.
Remaining things system will take care.
So dont think to update any standard tables, whatever function re turns system should update that cost.
Let me know if you have any concern.
Regards,
Sarvottam.

Similar Messages

  • Javascript - Working with Dates, Selection Boxes & Pro-Rated Amounts to Calculate Costs

    Hi, I'm looking for some help. I'm new to Javascript and working off my limited knowledge. Below are three (3) items I need help figuring out.
    ---JavaScript 1: Today---
    I have a Document Level Javascript that gets the current date and automatically enters it into a field. Below is the example:
    var f = this.getField("Today");f.value = util.printd("mm/dd/yyyy", new Date());
    Problem: Each time I open the PDF, the date gets updated.
    Need: I would like for the date to only be updated if the field is blank (empty).
    ---JavaScript 2: Registration Fee---
    On this same form (application) I would like to calculate TWO costs. The first cost is mandatory registration cost, however the amount is prorated based on the month the application is filled out. Below is the pro-rated amounts based on the remaining months in the year:
    Months Remaining     Fee
              12                       $15.00
              11                       $13.75
              10                       $12.50
              9                         $11.25
              8                         $10.00
              7                         $8.75
              6                         $7.50
              5                         $6.25
              4                         $5.00
              3                         $3.75
              2                         $2.50
              1                         $1.25
    Note: The cost per month is $1.25. You are required to pay for the current month plus any remaining months.
    So let's assume that you fill the application out in May 15th (05/18/2013). There are eight (8) months remaining in the year [May - Dec], so the pro-rated cost is $10.00 (See chart above).
    For this calculation, I need to create a Document Level Javascript that would get the date from the field we used above called "Today" and calculate the "Registration Fee" based on the pro-rated amount. Then I would enter the cost into two fields (Dollars & Cents) as "10 00". (See below).
    Form Example: $ [Text Field - Combo 2 characters] . [Text Field - Combo 2 characters] ---> "$ 10 . 00"
    ---JavaScript 3: Subscription Fee---
    The next fee is an optional fee for a magazine subscription. On the form, the user will check a box (Named: "Subscription") if they want to subscribe to this magazine. This is similar to the example above in that the costs is based on a pro-rated amount. Below is the pro-rated amounts based on the remaining months in the year:
    Months Remaining               Fee
              12                       $12.00
              11                       $11.00
              10                       $10.00
              9                         $9.00
              8                         $8.00
              7                         $7.00
              6                         $6.00
              5                         $5.00
              4                         $4.00
              3                         $3.00
              2                         $2.00
              1                         $0.00
    Note: The cost per month is $1.00. Unlike the previous example, you are ONLY required to pay for the remaining months.
    So let's assume that you fill the application out in May 15th (05/18/2013). There are eight (7) months remaining in the year [Jun - Dec], so the pro-rated cost is $7.00 (See chart above).
    For this calculation, I need to create a Document Level Javascript: If the user checks a box (Named: "Subscription") requesting the subscription, then get the date from the field we used above called "Today" and calculate the "Subscription Fee" based on the pro-rated amount. I would enter the cost into two fields (Dollars & Cents) as "10 00". (Same as above).
    Thanks,
    Stephen

    Two questions:
    1. For "function calculateRegistrationFee", how do I format the return value into 2 parts in order to populate the different fields below. Let's use this example, see screen shot below:
    2. For "function calculateSubscriptionFee", how do I format the return value into 2 parts (like question 1) & adjust for check box variable. If the user checks a box (named: "Subscription") requesting the subscription, then calculate cost. Else cost is $0.00. See screen shot:
    Thanks,
    Stephen

  • How to calculate cost(COGS) in Sales from project

    Dear all,
    I have a situation like this:
    My customer do not emplement PS(project system) and when managing sales from project, i don't know how to calculate cost of good sold for the service line.
    Each project (contruction site; building, ....), I use 1 material master as service item to manage. while project excecution, we issue material; collect labor cost; cost of external service, so on.... total up to COGS. but i don't know how to get this one in Sales order. Could you give me some suggestions?
    thanks!

    Dear,
    You need to create all these activities ( LABOUR CCOST/ COST OSFG EXTERNAL SERVICES)as Service Material and then put it into S.O. as Service Item and Bill the same.
    Regards
    AJIT K SINGH
    HAPPY TO HELP U

  • TCode where we can enter sales order number and calculate costing?

    At the sales order there is "Costing" (Ctrl + F7) button. Item by item we can calculate costing. Is there any transaction code where we can enter sales order number and calculate its items' costing?
    Thanks in advance....

    You can calculate cost in Va02 itself
    Is there any transaction code where we can enter sales order number and calculate its items' costing?
    In CK51 you can enter sale order line item and execute costing, system will update EKo2 value in sale order line item condition

  • Transaction of item with cost-group 2008 results in cost-group comingle

    Hi Folks,
    I have the following error on Miscellaneous Transaction when I use a different cost group than the default one assign on subinventory:
    Transaction of item with cost-group 2008 results in cost-group comingle
    In our specific case, we define a CONVERSION subinventory with default Cost Group is X
    We would like to create Miscellaneous Transactions (interface table) which use CONVERSION subinventory with different Cost Group.
    The problem is when we use a Cost Group other than X, the "comingle" error occured.
    Is there a manner to create a Miscellaneous Transactions base on a Cost Group different than the default define in the subinventory?
    Regards

    HI,
    is not that type of error.
    Actually there is no error. the system is working as it should.
    I have used different cost groups in subinventories.
    I need a way to change the cost group for some of the items.
    I found some workaround in article 837816.1 but i'm not able to follow it.
    Pls,
    help with procedure to follow.
    Thank you in advance,
    Denis

  • To calculate costs

    Hi,
    I'm using a summary column to calculate costs. I need to write a query to retrieve multiple values for costs and then add all of them up in the formula columns itself. I am a newbie. Could someone give me leads as to how to go abt with it? Thanks.

    Do whatever you need to do in a formula column (PLSQL formula of a formula column):
    function CF_1Formula return Number is
    v_value1 number := 0;
    v_value2 number := 0;
    v_value3 number := 0;
    begin
    select sum(cost),
            a.country
       into v_value1
       from my_table a
      where a.country = :p_country; --a report parameter
    v_value2 := :cs_cost; -- a summary column from a group below the one this cf_1 is in
    select decode(:column1,'A',1,2)
       into value3
       from dual; -- a decode of the current value of column1
    return v_value1 + v_value2 + v_value3;
    end;

  • Using Primay cost element instead of secondary cost element for expenses tr

    Hai  SAP Guru
    WE are developer company, so when a land is acquired we create the project under business development with nomenclature "BD/LG/01" with  corporate  profit centre linked to it (as we are not sure if the project takes of due to various issues.)
    When the project commences we create another project structure with nomenclature "BE/LG/01u201D  with new profit centre.
    So when we transfer the cost lying in u201C BD u201D  project to u201C BE u201C project by giving settlement profile, the cost get transferred using secondary cost element. when we see the statement through CJI3 report the cost would have get transferred but when we
    see the report through Finance Profit Centre report the cost would have not transferred.
    So in order to get the report in profit centre, can we use primary cost element instead of secondary cost element, if we use the primary cost element what the consequence and what care needs to be taken for settlement.
    Thanks.

    Thanks.

  • Use of Import Log feild in Landed Cost

    Hi Experts,
    I just wanted to know about what is the use of Import log field in Landed cost.
    Regards-
    Mona.

    Hi
    Are you using the conditions of taxes for the Import duty. If the import duty is not recoverable then the NAVS is used to load the charge on the material. For the CHA charges you can use standard conditions relating to freight or you can create new ones and use that in the pricing procedure.
    Thanks
    Anupam Murarka

  • Is RGX part of FCX (Freight Cost Extension )

    Hello Gurus,
    Is RGX part of FCX (Freight Cost Extension add on to R/3) ) ? Looking for your feedbacks.
    Thanks

    Hi James,
    Under SCM: We have the following...
    APO
    F&R
    ICH
    EM
    ExWM
    Under APO you have
    DP
    TPVS
    SDM
    GATP
    PP/DS
    TM
    SPP
    SNP
    Can you tell under which FCX falls under. Assuming routing guide is part of FCX.
    Thanks

  • How to calculate fixed cost for by-product in costing run?

    Dear,
    We want to have some fixed cost calculated for by-product B in costing run.
    Our current practise,  we only calculate the delivery cost as variable cost for this by-product B in the costing run for B. The by-product B is a component in the BOM of finish product A.
    However, we need some fixed cost to be countered in for by-product B, which can be by controlled by us.
    Any thought?
    Thank you all in advance.
    Christina.

    Dear,
    You have to maintain  BOM Usage-Costing-6 i.e., Costing BOM with all your required  Fixed Cost related Material components and assign it  in the by-product Material Master to include the Fixed Cost in by-product Standard Cost Estimate.  Based on this setting, system will calculate Standard Cost Estimate with this Fixed Cost and display in the related reports.
    Regards
    appalas

  • I am travelling overseas and want to transfer photos from my iPhone to the iPad using iCloud. will this incur data roaming costs?

    i am travelling overseas and want to transfer photos from my iPhone to the iPad using iCloud. will this incur data roaming costs?

    Yes, unless you are connected to free Wi-Fi.

  • I travel between countries often for my work.  What is the best iphone to use for international calling at a reasonable cost?

    I travel between countries often for my work.  What is the best iphone to use for international calling at a reasonable cost?

    All six Uk carriers carry the iPhone officially and micro sims are very common therefore
    PAYG is very common in UK every carrier offers a number of packages but all commitment free
    http://support.apple.com/kb/ht1937
    List of Turkish Carriers within this doc

  • To calculate cost from a cost factor to another

    Hi,
    Can we calculate cost from a cost factor to another?
    ex:
    A,B,X,Y,Z are cost factors
    A is a combination of 3 cost factors such as X+Y+Z=A
    B= 2.25 % of A.
    How can we achieve this through pricing?
    Regards,
    Sri
    Edited by: user12116236 on May 10, 2012 4:02 AM

    Hi,
    Did you get a solution for the cost factor calculation that you had mentioned? If so, can you please share it with me? I am having a similar issue and am not sure how to approach this.
    Thanks,
    Karthik

  • Calculate costs on customer-orders

    Hello,
    I'm unexperienced to IP / BPS (but I'm very experienced in BW! )but have to make proposal to a new project.
    We have to calcuale the margin of our customer orders.
    Therefore I have the following idea.
    Take orders, different attributes and quantity from Order-InfoCube (already available in BW with order - customer - quantity-revenue1-revenue2)
    Upload cost per Euro / Tonnage into IP (I have 10 different sub-cost-tables).
    My question is: how can I reach, that Tonnages from orders are multiplied by costs Euro / Tonnage ?? Can I write a formula like: (take attribute 1 and Quantity) * (cost per Euro/ Tonne) from Cost-Table 1 and write Keyfigure Cost_Attribute1 to a new Provider?
    At the end I want to build a query where I can report order - customer - orderd quantity- revenue1 - revenue2 - cost - margin.
    Thanks for your replies,
    Thomas

    Dear Harihara,
    <b>You must have all manufacturing master data associated with your manufactured material(s) set up.</b> This includes bills of material, work centres, routings, and activity prices. If you are charging overhead, you must also have maintained the costing sheet and the material master overhead key field.
    Hope this is helpful.
    Regards,
    Naveen.

  • Can skype be used for multiple extensions off one ...

    In a small office is it possible to create a network of phones with their own extension numbers using skype or some hardware/software? 
    Forgive me if this is an obvious question but Im new to this and can't find simple answers online!
    Im looking to have one number that customers call from skype and normal phonelines (a skype number), whereby they get through to a recorded message "press 1 for Bob, press 2 for Jill" etc and the call can then be routed to the appropriate phone. 
    I'd also like it to be possible to recieve multiple calls at the same time i.e. both Bob and Jill could be making and recieving calls at the same time, and when their extension is busy calls are diverted to their personal voicemail instead. 
    Is this possible to do using skype? 
    I'd ideally like to have one bill and be able to change the recorded options whenever staff change, with up to 8 extensions. 
    Im currently costing up options of services like Skype versus traditional phone services, and as we're a small business keeping costs down is essential. Any help/advice is really appreciated.
    Thanks 

    Hi, Lunaray, and welcome to the Community,
    Have you contacted the Skype Connect team?  You would start with this instruction on contacting Skype customer service
    You may also check the information supplied here, which looks like you may have already reviewed:
    https://support.skype.com/en/category/SC_GETTING_STARTED/
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

Maybe you are looking for

  • External Display Won't Recognize in Native Resolution

    I have a 40" Sony Bravia 1080p TV. I'm currently hooking it up using mini display adapter to vga, then vga into the PC port in the TV. Display preferences recognizes the TV as a VGA display. which is fine, however it won't display in the 1920 x 1080

  • Getting error while deploying  jspx page given in OTN

    I was trying to create a demo application(ExampleSedsApplication) using the link http://www.oracle.com/technology/products/jdev/11/cuecards111/adf_set_43/ccset43_ALL.html I had followed all the steps as given on the website . Build is successful but

  • How do I remove an empty gmail folder from my iPad2?

    How do I remove an empty gmail folder from my iPad2?

  • Is there a way to speed up a UDP connection?

    Hello All I receive a UDP packets over a network generated on full speed by another (C#) application. Even with the "UDP read" placed alone in the while loop in a vi running in separated thread and with highest priority, it happens that "UDP read" do

  • Sequence Settings Video Previews and GPU?

    Dear PrP CC Users, I wanted to get some information partaining to sequence settings. In the bottom box of Sequence Settings: Video Previews. There are three un/tick boxes: Maximum Bit Depth Maximum Render Quality Composite In Linear Color (requires G