Skip to Content
avatar image
Former Member

copy planned cost to estimated cost in work order

hi experiment ,


i have requirement to copy planned cost to estimated cost in the save  work order  please help me to get user exit and function module to get this

i have add this requirment and deleted because it a same in another post but i have to mention here http://scn.sap.com/thread/2079395?start=0&tstart=0

to know is the reply in this post is true or not please advise

best regards Sadin

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Nov 03, 2015 at 10:40 AM

    Sadin,

    I know it can be done in user-exit IWO10009 because we have done it on a previous project

    What you need to do is:

    1. In IWO10009 you need to force a "Determine Costs" function. Get your ABAPers to debug the way the standard program does this via the IW31/2 button (looks like a calculator on the order header).
    2. Then you need to retrieve the cost data from memory - it'll be the one of the PMCO tables in probably in program SAPLICO1.
    3. Put the data into the Estimated Cost field (CAUFVD-USER4). Note this can be done before or after release.

    PeteA

    Add comment
    10|10000 characters needed characters exceeded

    • Hello Wadi,

      It's nice to give some feedback about knowledge. But.....

      It will be useful ONLY if you give the working code to do the same. The code you suggested is a part of which I suggested in a different context in the thread referred by you. The use of the same fm in this context has some issues. So it will be helpful if you share the working code which you might have already tested. Also you need to specify where you've used this suggested fm (in some user-exit like IWO10009).

      I am sure you'd agree when I say, ''When we are posting in a closed thread, the post should be a complete solution. If it is not so, it will become a question again to members.''.

      Regards

      KJogeswaraRao

  • avatar image
    Former Member
    Nov 03, 2015 at 07:55 AM

    Hi Sadin,

    Yes, you can refer the post.very useful.

    Also  Activate LOG_EAM_OLC business function to copy Estimated cost from Planned cost.

    Once the order is released the Estimated Cost field is no longer editable.

    We have copied the Planned Cost at order release into the Estimated Cost field via user-exit IWO10009 or IWO10002.

    Take help from ABAP team and develop logic.

    Regards

    Vivek

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      dear Vivek ,


      thanks alot for reply and help answer i have check with my abap for this


      best regards Sadin


  • Nov 03, 2015 at 09:25 AM

    Hello Sadin,

    You have referred a thread, where the emphasis is on the Tcode i.e., IW31 means the requirement was during Create Order. This makes the things complicated. This requirement indicates that the user will Release the Order at the time of creation itself. Because only then the Planned Costs will be calculated. Means  the code in the user-exit (IWO10009) needs to retrieve the costs at the time of Order Release event and before Save event. Means Order number is not yet available. Without Order number retrieving the planned costs at run time is a difficult task. For this ABAPer uses Field symbols and Assign etc.

    Now a reply in the referred thread was helpful enough to tell about the fm she has used to retrieve the Planned Costs. i.e, PM_WORKORDER_COSTS_LIST. But I'm unable to get the results using this fm. (Possible that I'm doing some mistake, which will not be the case when expert ABAPers works on this).

    Replies like 'We have used and Contact your ABAPer'. are of no use. At least what is the fm used OR what is the table used to retrieve the Planned costs etc should be mentioned. Also the main point should be touched upon while replying to this thread, i.e., whether we are talking about IW32 or IW31.

    Also it is assumed that your requirement is IW31, because your referred thread says so.  If it is the case of IW32 things would be simpler. Means you have created the Order and Saved. And run IW32 and Released the Order, when the Estimated Costs field will be updated. In this case you can make use of user-exit IWO10002 also (IWO10009 also is an option).


    As I mentioned the problem is to retrieve the Planned costs, because only above fm is a way of doing it. Even it is not that easy to retrieve from PMCO table (in case of IW32).

    Once the planned costs issue is solved then updating the Estimated cost field is not an issue at all. I would have given you the full code, had I succeeded in making one in last few hours.

    Perhaps the above narration will be good guidelines for your ABAPer. Show it to him.

    Best of luck

    KJogeswaraRao

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 03, 2015 at 04:16 PM

    dear experiment ,

    thanks for all reply it's very useful and helpful i appreciate all your efforts

    best regards Sadin

    Add comment
    10|10000 characters needed characters exceeded