cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with update actual costs - CS orders

DoanManhQuynh
Active Contributor
0 Kudos

Hi experts.

Im new with CS module and stuck with problem to update actual costs for CS order through BAPI. I were look around and found some helped post and here is my process:

1. create notification (through tcode iw54 or iw51).

2. create service order (dircect from notification then edit it with tcode iw32)

3. assign operation, components....

My requirement are retreive corressponding data to show and technical could do confirmation through his pocket PC. Im using bapi BAPI_ALM_CONF_CREATE to do this requirement but i couldn't update actual costs for that order even I can manually do it in tcode iw41.Here is my questions:

1. Some one told that we need tick backflushing indicator under general data tab of component, i did it but nothing change, I dont know if i miss anything here.

2. Incase backflush is only option and could work so with order that does not have component how can we update actual costs?

3. After finish all operations, do goods movements by backflush, acutal costs updated too how can I close that order ( system status = CLSD) using BAPI? I find out BAPI K099_PM_ORD_STATUS_ABGS_SET but dont know how to use it.

Please kindly help me out, some piece of sample code would be helpfull, sorry for a noob question and not good english.

Thanks and regard.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

As per my understanding based on your query, actual cost is not getting calculated either through BAPI or manual confirmation.

If it is so, please check the following.

  1. About the planned cost for that order (whether its getting calculated or not)
  2. Activity type & Actual work hours mentioned in the confirmation
  3. Under control tab in Service Order, what is the costing variant maintained for Actual Costing??

If possible, attach all above 3 screen shots for our reference.

DoanManhQuynh
Active Contributor
0 Kudos

Thanks for quick reply Maheswaran.

1. planned cost were calculated:

2. I dont input activity type to BAPI (cause i dont know what does it mean and how to input the right data ), work hours i ussually input the same with values are planned.

3.this is screen shot:

Thanks and regard.

Former Member
0 Kudos

As you have not given input for Activity type to BAPI, actual cost has not been getting calculated.

Try by giving the activity type as input for that BAPI.

former_member186385
Active Contributor
0 Kudos

Hi,

I think it is not problem with the Activity types passing to BAPI, since Planned cost already calculated

and in your second screen attached, i don't see any Status for Confirmation or Goods movement

does the BAPI is used for confirmation and goods movement as well?

please try to confirm the operations and goods movement manually at first place, if the actual cost is being posted then it could be issue with the BAPI which you have to debugg and see

just for your information

try to manually confirm the operations in IW41

and goods movement from IW41 as you already set Backflusing indicator

try and revert

regards,

santosh

Former Member
0 Kudos

Planned cost will be calculated based on the activity type mentioned in PM order. Actual cost will be calculated based on activity type entered in confirmation.

So its mandatory to pass Activity type to BAPI.

DoanManhQuynh
Active Contributor
0 Kudos

You are right Maheswaran, I input activity type and actual costs were getting calculated. thanks for your advance .

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

The Activity type need to be maintained in the work center, which will auto populate in the workorder to calculate the planned cost.

Maintain the Activity type in the Costing tab of the workcenter used in the workorder.

Thanks

Mani

Former Member
0 Kudos

Hi,

All values should be captured for manual processing same mandatory and Default values should  be Populated in BAPI.