BAPI call to actual cost of work order

Is there a BAPI call to actual cost of work order operations in PM?
I am looking for to read these actual cost in a PM order and populate the data to the none-SAP application.
Any helps appreciate it.
Tim

I think I have just found it:
IBAPI_ALM_ORDERCOSTS_READ
But, thanks anyway for your quick reply and helpful tips.
points rewarded.

Similar Messages

  • Actual cost of Production Order settled to Fixed Assets

    Dear all,
    My client is doing in-house production of moulds (internal order suggestion is not accepted by the client) for which
    they have the following
    1. BOM
    2. Machine hour
    3. labour
    4. overhead etc
    5.plan value
    6. actual value
    Can i settle the actual cost of production order to Fixed Asset ?
    If yes
    what are process kindly give me if any process other then the below
    1.production order created
    2. settlement profile - FA is settlement optional
    3. allocation structure
    4. Asset created
    5 define asset in settlement rule
    Kindly give me your valuable input
    regards
    elango

    Hi,
    Although i am not CO expert , please check with your FICO consultant who are expert before make the final call.
    During settlement to a G/L account or a fixed asset, the system ignores additional account assignments that were manually specified in the distribution rule.
    Based on what i know .
    you can stipulate that settlement may be made to cost centers and orders, but not to fixed assets.
    The Settlement profile is something that you need to create a settlement rule to settle the actual costs of a sender object.
    About the Settlement rule is something that  contains the distribution rules for the sender. It will define how the way to settle the cost.
    Allocation Structure
    In the settlement structure you combine the primary and secondary cost elements into groups, in which debits are then posted to the sender objects. For each group, you specify whether (for settlement to a given receiver type) settlement is performed
    by cost element or using a settlement cost element.
    For example, you might use settlement cost elements:
      To document the purpose of an order (such as, repairs or maintenance)
      To reduce data volumes (you can combine a number of debit cost elements
    under one settlement cost element).
    TQ

  • Function module for calculating planned and actual cost of production order

    Hi ,
    Do we have any standard function module for calculating planned and actual cost for production order?
    i need to implement this in a Z-report.
    Thanks
    Srini

    Hi,
    try below function module
    CRMCO_GET_PLAN_ACTUAL_COSTS
    CO_IH_GET_PLANNED_COSTS_TOTAL
    Regards,
    Sankaran

  • Actual cost of maintenance order

    Hi SAP Experts
    In Plan/Actual Comparison of maintenance order; i'm not getting actual cost of the order while i'm getting planned cost.
    If anybody knows, plz help on this ?
    Regards
    Pooja

    Hi Pooja,
    I think, the first thing in such case is to verify, if there are actual costs of the PM order ro not.
    To do this, you can run the transaction rkacshow, input the the order number, and check the COSPA & and COSSA,  if there are records with value type 4 (field WRTTP).
    kind regards,
    Zhenbo

  • Sales order costing - tracking of actual costs at sales order item level

    Hi
    We are going with sales order costing for services
    Service material is non-valuated hence the scenario is non-valuated sales order stock
    PP module is not implemented.
    I am having following questions
    1. How to track the actual costs at sales order item level? Is Internal order/CO production order is required to be created for the same?
    2. Can I do activity confirmations directly from cost center to sales order item.
    3. Can Raw material is issued directly against sales order item.
    4. Is Sales order is a real or statistical account assignment object?

    dear friend,
    please look here:
    http://help.sap.com/saphelp_47x200/helpdata/EN/42/d7248ab27111d19e9a080009b0db33/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/EN/90/ba6cfb446711d189420000e829fbbd/frameset.htm
    reagrds,

  • BAPI or FM to get the work order number

    Hi
    Kinldy let me know if there is any BAPI or FM to get the work order number (aufnr)  from to Purchase requisition number (banfn) & Item number of the purchase requisition in the order(bnfpo).
    Thanks ,
    Arun

    Table EBKN will help you.

  • Cost aganist Work orders by Date

    Hi Friends,
    Is there any standard reports available for Cost aganist Work orders by date or else please let me know any tables (apart from COEP & PMCO) are there to get the data Work orders cost per Date wise.
    Thanks & Regards,
    Srinika

    KOTAGIRI SRINIKA
    In COVP, pass the object number (OBJNR) which you will get from table AUFK for orders.
    Based on this you will get the relevant cost elements with respect to document date (BLDAT) as well as the posting date (BUDAT) of the cost booked on orders.
    I think by this you can get the cost based on dates for your orders.
    Hope this helps.
    Chin2.

  • BAPI for transaction IW31 (creating a work order)

    Hi all,
    I need to be able to create a work order ( IW31) using ABAP code and was wondering if any knew if there was a BAPI that should be used for this functionality.
    Thanks in advance
    Mart

    hi,
    You can use
    BAPI_ALM_ORDER_MAINTAIN.
    Have a look at the following documentation.
    FU BAPI_ALM_ORDER_MAINTAIN
    Text
    Process Maintenance-/Service Order
    Functionality
    This Business Application Programming Interface (BAPI) is used for changing maintenance- or service orders and their lower-level objects. The following objects of an order can be processed (for restrictions, see the note at the end of the documentation):
    Order header
    Partner
    User status
    Order operations
    Relationships
    Components
    Long texts for order header, operations, and components
    Function
    Calling up this BAPI once allows you to perform all the operations. For this the system supplies the function module with a method table containing the methods to be performed. The entries in the method table refer to data records in the optionally filled-out data tables. All the methods from the method table are performed. Alternatively, just lower- level objects from existing orders can be changed.
    You can process the transferred data with the Business Add-In (BAdI) IBAPI_ALM_ORD_MODIFY to, for example, merge data from the external system with data from the R/3 system. The BAdI is called up as soon as the transferred data is converted into the internal format. The tests then take place after this.
    Construction of Method Table
    REFNUMBER Reference number for linking object methods - attributes
    The reference number is the line of the database which contains the corresponding data. The data table is determined by the object type.
    OBJECTTYPE Object category
    The object category specifies which object from the order should be processed. The key words listed here are not language-dependent and must be transferred exactly as they are. The following objects exist:
    HEADER Order header
    PARTNER Partner data
    USERSTATUS User status
    OPERATION Operation data
    RELATION Relationships
    COMPONENT Components
    TEXT Long texts
    (empty) ,General BAPI functions (save)
    METHOD Methods
    The methods with which the data should be processed. The following functions exist:
    CREATE Create objects
    CHANGE Change objects
    DELETE Delete objects
    RELEASE Release
    TECHNICALCOMPLETE Technically complete
    ATPCHECK Availability check
    CALCULATE Calculate
    SCHEDULE Schedule
    DELELTEDSEX Delete the status for external scheduling at operation level
    SAVE Save all data
    DIALOG Call-up dialog. See explanation below.
    TRACE Write trace file in the specified file to the frontend
    OBJECTKEY SAP external object key
    This key is for assigning the lower-level objects correctly to the corresponding objects, as there is always just one key in the data table. The key must have the following structure:
    1-12 Order number
    When creating orders with internal number assignment, a reference number beginning with % must be entered here. The BAPI then returns this number and the number actually assigned.
    13-16 Operation number
    17-20 Sub-operation number
    For relationships, the key is structured as follows:
    1-12 ,Order number from
    13-16 Operation number from
    17-28 Order number to
    29-32 Operation number to
    The following methods are permissible for the individual objects:
    HEADER:
    CREATE, CHANGE, RELEASE, TECHNICALCOMPLETE, ATPCHECK, CALCUALTE, SCHEDULE
    OPERATION
    CREATE, CHANGE, DELETE, DELETEDSEX
    PARTNER, RELATION, COMPONENT, USERSTATUS, TEXT:
    CREATE, CHANGE, DELETE
    (empty):
    SAVE, DIALOG, TRACE
    Data tables and update tables
    The objects have one or more data tables. For some objects you can specify which of the fields specified in the structure should be changed. For this you must set the field in the corresponding table to X as in the data table. If no update-table is transferred, then only those fields are set that have a value that is not initial. This simplifies the transfer data. However, this means it is not possible to delete fields. If an update structure should only be specified for some data records, the table with the update fields must nonetheless have the same amount of lines as the data table. The empty lines are then treated as if no update structure was transferred. The objects "Partner", "User Status", and "Text" have no update tables. The whole data record is always copied here.
    References
    The objects use the field REFNUMBER from the method table to refer to the lines in the data table. Counting always begins with 1. In doing this, REFNUMBER also refers to the update table. However, in the method table there is a second reference to higher-level objects for lower-levels objects. The field OBJECTKEY must be filled with order number, operation number, and sub-operation number, as specified above. If lower-level objects of a newly-created order should be changed, then you must enter a temporary order number that must begin with %. Several orders can be numbered serially, for example, with %00000000001, %00000000002 ... .
    The following objects have special treatment for REFNUMBER:
    Partner
    Texts
    Partners have an order number in the data table. During processing of the method table, all those entries in the data table are processed which have an order number that is the same as that in the line to which the method refers. Thus, through just one entry in the method table, several partners can be changed.
    Texts are composed of two tables. The first table (IT_TEXT) is made up of the header data of the text. Here you must specify the object and the first and last line of the text table (respectively inclusive, counting from 1). Through this, a line segment is specified in the text line table (IT_TEXT_LINES).
    Peculiarities in processing
    The BAPI processes the transferred methods in a particular sequence, which must not correspond to the sequence in the methods table.
    Write trace file
    Change user status time period 1
    Delete objects (dependent first)
    Create new objects
    Change existing or newly-created objects
    Change user status time period 2
    Status change of order
    Save data
    The methods are performed such that lower-level objects can also be assigned to newly-created objects. For example, first the operations are created, and then the components. Long texts can also be created for the objects.
    Components have an exceptional position. Components are created through the assignment to an operation, that is, using the "key" order/ operation (item number). However, as this is not the unique component key, you can only access the components to change them, delete them, or add long texts by using the reservation number/-item, which is only given after saving. This means that, for example, you cannot create a long text when you create the component.
    User status changes can take place at two different time points. Time point 1 is before the object changes, time point 2 is after the object changes and before the status change of the system. These time points should be defined in the transfer table in the field CHANGE_EVENT. The field documentation contains the possible values.
    The external scheduling is offered by the BAPI as a special function. THe BAPI can set the date field directly at the operation level, and select the operation with the status DSEX "Date set by external system". This status prevents any further scheduling of the operation, it keeps the transferred dates. For this, set the category 'X' in the restriction categories. When reading the operation, this category is also returned, independent of the category of restriction set in the dialog. To delete the status, you can call up the method DELETEDSEX for the object operation. The external scheduling cannot be influenced in the dialog. All changes to the scheduling restrictions in the dialog are saved as normal, but are not relevant for the scheduling as long as the status DSEX is active.
    Every time the BAPI is called up, a SAVE or DIALOG method must be transferred. Normally, calling up a BAPI is seen as a transaction. All data that is changed in the BAPI should be saved to the database immediately. The BAPI checks whether a SAVE method exists, otherwise it terminates processing. A test run of the BAPI is composed of a normal call-up using the SAVE method and a subsequent BAPI_TRANSACTION_ROLLBACK. To call up the BAPI without the SAVE method, for example, to realize dialog transactions, the BAPI can be called up with the DIALOG method. This switches off the check for the SAVE method. The processor must then ensure that later either a SAVE method or a BAPI_TRANSACTION_ROLLBACK is called up.
    A BAPI_TRANSACTION_COMMIT without SAVE method terminates processing in the update to ensure that no inconsistent data is written to the database. The processor who called up the BAPI does not receive any confirmation for the termination of the update in the target system. This logic is necessary as the order data was flagged for updating with BAPI_TRANSACTION_COMMIT through the SAVE method. However, the status information was already flagged for updating when the BAPI was called up. A BAPI_TRANSACTION_COMMIT without SAVE method then just saves the status information and would generate inconsistent orders, if the updating was not terminated.
    Customer Enhancement
    The BAdI IBAPI_ALM_ORD_MODIFY can be used to change the transferred data. The BAdI is called up after the conversion of the transfer structure into the structures used internally. Additional data can be transferred using the table EXTENSION_IN. Only then is the data checked.
    Example
    The following examples should clarify the use.
    Creating an order
    OBJECTKEY should be filled with a temporary key. The BAPI returns this key together with the assigned order number in the return table ET_NUMBERS . The order number in the HEADER table should also be filled with the number. For external number assignment, the external number should be specified. The update structure can be transferred if necessary.
    Methods table
    REFNUMBER OBJECTTYPE METHOD OBJECTKEY
    1 HEADER CREATE %00000000001
    IT_HEADER
    ORDERID ORDER_TYPE PLANPLANT ...
    %00000000001 PM01 1000 ...
    Creating an order with operation and long text
    Methods table
    REFNUMBER OBJECTTYPE METHOD OBJECTKEY
    1 HEADER CREATE %00000000001
    1 OPERATION CREATE %00000000001
    1 TEXT CREATE %000000000010010
    IT_HEADER
    ORDERID ORDER_TYPE PLANPLANT ...
    %00000000001 PM01 1000 ...
    IT_OPERATION
    ACTIVITY SUB_ACTIVITY CONTROL_KEY WRK_CNTR ...
    10 PM01 MECHANIC ...
    IT_TEXT
    ACTIVITY ... TEXTSTART TEXTEND
    10 ... 1 2
    IT_TEXT_LINES
    TDFORMAT TDLINE
    Longtext for operation 10, line 1
    Line 2 of the long text
    Notes
    Using the BAPI to process the order data cannot support all the functions of the transaction. This applies in particular for the following functions:
    Order header data
    The object list cannot be processed.
    Refurbishment orders are not supported.
    The estimated costs cannot be processed - only the estimated overall costs of the order.
    Notification data cannot be processed with the order BAPI. Even if the settings in Customizing are such that the orders and notifications can be maintained on one screen, no notification is created for the order.
    Permits cannot be processed.
    The order addresses cannot be processed.
    Individual partner addresses cannot be maintained.
    The settlement rule cannot be maintained.
    Order functions
    Printing the papers is not possible.
    Locking and unlocking the order is not possible.
    Accepting and rejecting quotations is not possible.
    Business completion is not possible.
    Flagging for deletion is not possible.
    The log cannot be displayed.
    User default values are not used.
    The field selection is not checked.
    The Customer Exits/BAdIs are not executed completely.
    Joint ventures are not supported.
    Funds Management is not supported.
    Investment orders are not supported.
    No integration of service products with task lists possible.
    No integration of configurable service products possible.
    Assignment of sales document items with service products in accordance with the aforementioned conditions.
    Operation data
    A change of the control key in the operation is not possible, if this leads to a change of the processing type (internal-/external processing)
    User status change not possible.
    Production resources and tools cannot be processed.
    Service lines cannot be processed.
    Task list integration is not supported.
    Linking operations with object list is not supported.
    Component data
    User status change not possible.
    BOM data cannot be processed.
    The delivery address cannot be processed.
    Further Information
    See also the documentation for the individual transfer tables.
    Parameters
    IT_METHODS
    IT_HEADER
    IT_HEADER_UP
    IT_HEADER_SRV
    IT_HEADER_SRV_UP
    IT_USERSTATUS
    IT_PARTNER
    IT_PARTNER_UP
    IT_OPERATION
    IT_OPERATION_UP
    IT_RELATION
    IT_RELATION_UP
    IT_COMPONENT
    IT_COMPONENT_UP
    IT_TEXT
    IT_TEXT_LINES
    EXTENSION_IN
    RETURN
    ET_NUMBERS
    Exceptions
    Function Group
    IBAPI_ALM_ORDER
    ~~Guduri

  • No actual cost in production order

    Hello,
    We just create a new plant in our SAP system, and create a new production in this plant, but there are no actual cost occured after confirmation although there are plan cost in cost analysi, I check the following areas:
    1, cost center, we maintained the price for activity types in KP26
    2, costing variant and valuation variant
    3, confirmation, there are posted quantity of activity types
    4, routing in the production order
    But I can't find the reason.
    When I use COFC, found the error that said no actitivy type price maintained, but we don't use this activity type for this production order's work center(cost tab).
    When I go to cost - itemization, the activity types are what we don't maintained in workcenter(cost tab)
    Any body can help me?
    Thanks,
    Richard

    Hi richard,
    Pls check that in kp26 transaction, which version do you select in the entry screen. Also the period for which the prices are maintained.
    Moreover, if your work centers use that activity type, only then it will show up in your cost itemization.
    Pls confirm the above and revert back.
    Awaiting for your confirmation,
    Regards,
    Ankita

  • Actual cost of production order in inventory valuation

    Hi,
    Kindly tell me in our client requirement to "capture actual cost of drum manufactured. This cost will go to finished mixer. So actual goods receipt of drum should be with actual production order cost . Also actual mixer cost should be taken from actual production order cost. How to map this s cenarionin in SAP" ?
    Best Regards,
    Anindita

    Hi Shyam,
    In SAP product costing we use generally standard cost estimation. Raw material ara taken as moving averagae price as v and finished products are taken as standard price i.e, S. Before cost estimation we update plan price in material master costing view 2 for accurate cost estimation. In case of standard cost estimation price variance is occured which is post to separate gl account. Our client wants actual cost rather than standard cost. Without implementing material ledger is it possible to do actual costing in SAP. Please let me know the process of actual costing...
    Regards,
    Anindita

  • BAPI/FM Help Needed for PM Work Order Update and Notification create

    Hi,
    I am using BAPI - BAPI_ALM_ORDER_MAINTAIN to update the work order details and create notifications for the object list but i am getting errors in doing that.
    IWO_BAPI 203 -Changing the execution factor in the BAPI is not supported
    And i have to create notifications to each object in the object list. This BAPI is not supporting that.
    So i used another BAPI BAPI_ALM_NOTIF_CREATE to create notification and passed the order number , counter etc to it but in the order it is creating a new row for that equipment and linking the notification to it.
    Need some help on these.

    Dear
    1. If you want a Notification mandatory to be created for Order using IW31 you can once make this happen by User Status in Order ,   i would suggest if you are doing implementation better Use Order Types  which has got Notification integrated in it .
    Check Order type PM05 in Ideas server you have PM05 Order with notification fields integrated , which created notification in Background when order is Created or released.
    2.For Work Order B --> Notification A , Not Allowing I donot have any idea check whether is there any User exit from experts or ask ur Abaper
    Regards,
    Edited by: Srinivas Narayana Gowda on Jun 11, 2009 1:10 PM

  • BAPI KPF6 POST PLAN COST FOR INTERNAL ORDER AND COST ELEMENT

    Hi all gurus,
    I would like to use in a custom report a BAPI/Function Module that help me to simulate KPF6 in order to post planning costs for internal order and cost element (layout 1-401).
    So the input should be:
    1) Version
    2) period from
    3) periodo to
    4) year
    5) internal order n.
    6) cost element n.
    7) value
    I found a lot of BAPI but don't know the correct one and how to use it (example how to fill the input value).
    Can anyone help me on that?
    Kind Regards

    In additio  to the previous I found the BAPI_COSTACTPLN_POSTPRIMCOST but don't know if it's the correct one and how to use it (some example fitting the my case will be very appreciated).
    If the quoted BAPI is correct.
    I tested it filling all fields as following:
    HEADERINFO:
    CO_AREA=FFCA
    FISC_YEAR=2008
    PERIOD_FROM=001
    PERIOD_TO=012
    DOC_HDR_TX='blank'
    INDEXSTRUCTURE:
    OBJECT_INDEX=000001
    VALUE_INDEX=000004 (hope this point at Interna Order)
    ATTRIB_INDEX=000000
    COOBJECT:
    OBJECT_INDEX=000001
    ORDERID=ZO53-08IMZ
    TOTVALUE:
    VALUE_INDEX=000004
    COST_ELEM=3224048
    FIX_VALUE= 200,0000
    DIST_KEY_FIX_VAL=2
    The Return table is set to 0. Nothing happens.....I suspect something related to indexstructure or index is wrong..
    Could anyone help me on that?
    Kind Regards

  • Std Costing and Actual costing at process Order

    Hello Friends,
    Followings are the client requirements, Please give me your ideas :-
    1 . Costing variant is same for all three - costing run, process order (plan and actual), means there is no prices variance on process order level. ( material at std price, Activity plan price, overhead fix%)
    2. Alongwith this above client also need to capture actual result (material at MAP, activity at monthly actual price, overhead fix %)
      In this case there is price and  usage variance can see.
    Now as I think that both scenarios are not possible on process order level.  According to me we can do by a customize actual costing cockpit.
    Need your openion that do we have any option thru standard funcations of sap to get this requirement.  If you need any other explanation , please do let me know.
    Thanks
    Ravi

    Thanks friends. I have done.

  • Confirmation with errors in calc. actual costs for PM-order

    Hi,
    We have a PM-order with notifications and good movements that has tecnical completion status and is already settled. So we want to set it with bussines completion status, but an error arises: "Unprocessed future change recs for order 5009385 prevent del. flag/completion"
    We already checked for automatic goods receipt pending, backflushes, etc. and the only found is an error record in actual costs calculation (trn. COFC). Looking at this record the message says: "No prices could be determined for object Activity type CONA/900097/PM-100" (message KW 407).
    We checked price set for the activity type and cost center and is set for all the periods of actual fiscal year. Then looking at the details for above message, we found the following: "No price could be found for object Activity type CONA/900097/PM-100 with price indicator 7 and value type 4"
    The question is: why system is trying to get price for activity type PM-100 with price indicator 7 instead of 3 as usual for our PM-orders? How price indicator is defined from actual PM-order parameters? Any idea?
    Regards,
    mr.

    Hi
    Whats your activity type category? I believe it should be 1
    Your point is right, price indicator shud be 3 because while confirmation system uses the planned rate.. And price indicator pertains to actual activity price..
    Check whether you have calculated or maintaned actual activity price or not in KBK6
    Ajay M

  • Actual Cost in Sales order

    Hi,
    I am running a Unit Cost in my Sales Order. I ran the cost estimate and got the Plan cost. How would I get the Actual Cost? Subsquently I want to settle the Cost in PSG. In settlement with TCode VA88, it is showing no sender selected.
    Please share the answer.
    Regards
    Ashish

    Hi
    Have you completed billing of the sales order ? if not please bill the same and then try ot settle you can check the status of posting in report KVBI.

Maybe you are looking for