Skip to Content
author's profile photo
Former Member

Production Order Costs Breakup

Hi all,

I am trying to get the production order costs (CO03>Goto>Costs-->Cost comp. Structure). This displays the various costs (Overall, variable and fixed) for different cost components (material, Labour etc).

My question is; where can I find this data. I have tried the following:

1. Debugging the transaction and it uses a lot of CK_F* modules but cannot replicate the data in my owm program as the function modules seem to be pulling data populated elsewhere into the data structures of the function group.

2. Selecting data from COSS & COSP and indeed most of the CO* tables. The issue is that there does not seem to be any consistency in the fields in which SAP stores the costs in COSS and COSP. The selection works for some order s and not for others.

2a. There are also some orders which dont have an entry in COSS and/or COSP or any CO* tables or MCKALKW table which is also something I have tried; but the transaction CO03 still shows the cost breakup for the same.

If anyone has extracted all the costs of a production

order, could they please share their experience?

I am not very familiar with PP; in fact this is probably just the second/third program I have written in PP. So I dont have much idea of the process flow.

Any help will be highly appreciated. I dont want to sound desparate but will be very grateful for a straight-forward answer at present as I am under pressure to complete this requirement.


Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • author's profile photo
    Former Member
    Posted on Jul 24, 2004 at 11:44 AM

    Also I have been searching online for some answer to the above question for nearly a week but havent been able to do so. The material & total order cost (materiallabouroverhead) is just a single field required in a larger report involving sales order, material and production order data...I am only stuck very badly on the production order costs data selection.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Jul 27, 2004 at 10:38 AM

    Hi Preet,

    I had done a report for costing which was a Production cost Analysis which had data to be picked up for the Overhead, Labour and Material. The tables that we were using for these purposes were CKMLHD and CKMLCR, try to get some data for these. Also one of my collegues had written a function module that could calculate the MLO breakup for a production order depending on the type of material. I'll try to get that if possible.



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Sudhindra,

      Thanks for the reply. I will have a look at the tables you have mentioned.

      If you could help me with the function module, I will be very grateful.

      Thanks in advance,


  • author's profile photo
    Former Member
    Posted on Jul 29, 2004 at 09:28 AM

    Try using mseg and supply production order number in your query .......

    By doing all plus and minus (H/S) you will get total cost of production order , and if you dont require total cost then i am sure that you will find some fields which will allow you to calculate breakups.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member


      Apologies for bringing this up again but the fact that at least I have got an answer to this post in this forum makes me hopeful. Also I didnt want to start a duplicate post.

      Please can someone tell me how to find out CONSISTENTLY the production order costs. In CO03 going to the menu path GOTO->COSTS->COSTS COMP. STRUCTURE, one gets a list of the various costs in the production order. Now in one of my reports, this cost has to be captured as Materials Order costs and the total production costs (material + all other costs).

      I just need these values for one field in my report. For this I have spent nearly a month and posted on all the discussion groups that I could find but with no one even replying. At least on this site someone has replied.

      So.. can anyone please please help me.. I know I'm sounding desparate but that is only because I am. I just cannot understnd the logic that SAP is using and I do not have any functional consultant to go to for help.

      Once again I request all of you on the SDN forums, please do try to help me out.

      I am not trying for a quick fix solution ( although I will be extremely grateful for that) but at least some guidance. Please see my above posts for the difficulties I am facing. In short they are:

      1. Production order which do not have entries in either COSS/COSP, MCKALKW or any of the other costing/PP tables that I could find except of course AFKO/AFPO.

      2. No consistent way of storing the costs of the production orders. What I mean is that in COSS/COSP, the costs seem to be randomly stored in the fields from WEGO* in COSP and it is basically by reverse logic that I have built up the selection logic.

      3. The functions CK_F* in the main are what SAP Seems to use for getting production costs but these function modules are very deeply complex, filling up various internal tables during some other process and are (for me at least) very difficult to debug.

      Please someone help me out. Thanks for reading through this long rant but I truly am getting desparate.