Calculation of cost for subcontracting item of type N (non stock) as it calculating for type L(Stock)

Hi Gurus,
I have a Requirement for calculating the cost for Subcontracting  Non stock items N as it is getting calculated in standard functionality for subcontracting items of Type L.
This will be done in CK11n ( used to calculate the standard cost estimate of the product) for header as well as component materials.
please suggest the user exit or Badi where i can change.
Please refer the below logic-
BOM for the material 2000500 as Header and 1LPL0835298AB as a component and this component has an assembly with 7008508 as a component and this component is an Sub contracted item and this has an assembly with component 1LBA182151-3.
Price calculation for the material 7008508 (Item Category as N). Since this is sub contracted item the price will picked from field EINE-NETPR.
In EINA, pass the material (MATNR=7008508) to fetch the list of info records (INFNR) created for that material.
Then it has to input those info records to EINE table along with Purchasing organization (EINE-EKORG=PT02).
From the output of EINE table, it should compare the price (EINE-NETPR) of the PIR and should take the least price from those PIR`s.
If the currency is other than PLN, then it should be converted to PLN based on conversion charges.
For Material (MATNR=1LBA182151-3), it should pass the material number to table MBEW along with valuation area (BWKEY = WERKS).
From the output, it should check the Price control (VPRSV) ‘V’ or ‘S’
If ‘V’ the price will be picked from the field “VERPR”
If ‘S’ the price will be picked from the field “STPRS”
Also from the output, it should check the Price unit (PEINH) ‘1’ or other than ‘1’. If it is other than ‘1’ it should divide the VERPR or STPRS by PEINH. Then this is the price of the Material “1LBA182151-3”.
The material (MATNR=1LBA182151-3) should be passed to table “MARA” and will take the Base unit of measure from that table “MEINS”.
Br,
Surya

Hi Surya,
Please put breakpoints in any of the below BADI's and check if any of them will trigger for your
requirement:
VALUATION_CK                            BAdI for Valuation in Product Costing
CK_KALAMATCON2_CI                       BAdI for CI Fields for Table KALAMATCON2
COSTINGRUN_CK                           Edit Costing Run
COST_APPORTION_CK                       Maint Apportionment Structure Joint Production: Dist Rules
CO_PROD_COSTING_CK                      Cost Management for Joint Products (Costing, Target Costs)
DATA_EXTENSION_CK                       For Data Enrichment in Product Costing
DYNPRO_EXTENSION_CK                     BAdI for Interface Enhancement in Costing
ORDER_COSTING_CK                        Enables Header Data Changes in Preliminary Order Costing
QUANTITY_STRUCT_CK                      Enables Quantity/Structure Changes in Costing
SUR_STOCK_TRANSF_CK                     Overhead on Materials with Stock Transfer Between Plants
Thanks
Sri

Similar Messages

  • Calculation for subcontracting item of type N (non stock) as it for type L(Stock)

    Hi Gurus,
    I have a Requirement for calculating the cost for Subcontracting  Non stock items N as it is getting calculated in standard functionality for subcontracting items of Type L.
    This will be done in CK11n ( used to calculate the standard cost estimate of the product) for header as well as component materials.
    please suggest the user exit or Badi where i can change.
    Please refer the below logic-
    BOM for the material 2000500 as Header and 1LPL0835298AB as a component and this component has an assembly with 7008508 as a component and this component is an Sub contracted item and this has an assembly with component 1LBA182151-3.
    Price calculation for the material 7008508 (Item Category as N). Since this is sub contracted item the price will picked from field EINE-NETPR.
    In EINA, pass the material (MATNR=7008508) to fetch the list of info records (INFNR) created for that material.
    Then it has to input those info records to EINE table along with Purchasing organization (EINE-EKORG=PT02).
    From the output of EINE table, it should compare the price (EINE-NETPR) of the PIR and should take the least price from those PIR`s.
    If the currency is other than PLN, then it should be converted to PLN based on conversion charges.
    For Material (MATNR=1LBA182151-3), it should pass the material number to table MBEW along with valuation area (BWKEY = WERKS).
    From the output, it should check the Price control (VPRSV) ‘V’ or ‘S’
    If ‘V’ the price will be picked from the field “VERPR”
    If ‘S’ the price will be picked from the field “STPRS”
    Also from the output, it should check the Price unit (PEINH) ‘1’ or other than ‘1’. If it is other than ‘1’ it should divide the VERPR or STPRS by PEINH. Then this is the price of the Material “1LBA182151-3”.
    The material (MATNR=1LBA182151-3) should be passed to table “MARA” and will take the Base unit of measure from that table “MEINS”.
    Br,
    Surya

    Hi Surya,
    Please put breakpoints in any of the below BADI's and check if any of them will trigger for your
    requirement:
    VALUATION_CK                            BAdI for Valuation in Product Costing
    CK_KALAMATCON2_CI                       BAdI for CI Fields for Table KALAMATCON2
    COSTINGRUN_CK                           Edit Costing Run
    COST_APPORTION_CK                       Maint Apportionment Structure Joint Production: Dist Rules
    CO_PROD_COSTING_CK                      Cost Management for Joint Products (Costing, Target Costs)
    DATA_EXTENSION_CK                       For Data Enrichment in Product Costing
    DYNPRO_EXTENSION_CK                     BAdI for Interface Enhancement in Costing
    ORDER_COSTING_CK                        Enables Header Data Changes in Preliminary Order Costing
    QUANTITY_STRUCT_CK                      Enables Quantity/Structure Changes in Costing
    SUR_STOCK_TRANSF_CK                     Overhead on Materials with Stock Transfer Between Plants
    Thanks
    Sri

  • Subcontract PO/PR does not generate PR for non stock component

    Hello,
    I need help on above topic.
    SAP Version is ERP Central Component 5.0.
    My problem is that PR is not being generated for non stock component in PR/PO of higher/parent material.
    I notice that in component overview screen the item cat for this non stk comp. has changed to T( text item) even though the BOm has been maintained with item cat as N( non stock). The material type being used for non stk material is custom developed(copy of NLAG).
    Has anyone faced similar issue. or can suggest some missing customization (if any)
    Just to confirm :
    I have done customising for Direct procurement in OPPQ to trigger PR  in requirements planning. Also tried with prod order creation option(though my case is PO creation)
    Any help from forum is highly appreciated.
    Thanks,
    Ram

    Hi ,
    Commitement check is taking place due to availability control. If u dont want to carry out AVAC for PR then in Tolerance limit put the exclude the check for PR.
    SPRO > PS > Budget > define tolerence limit > here u might selected ++ i.e. for all activity type. U select indidula transaction grp excluding PR.
    Rgds

  • Suggestion required for STOCKE MATERIAL to non stock material in the PO

    Hi all
    by mistake system clears account assignment for non stock material due to some user exit.
    1. PO line item 01 -  mm 100011 -stock material - plant 1000
    2 . PO line item 02 -  mm 100011 -non-stock material -plant 1100 - it has account assignment - in the request - by mistake this account assignment got cleared while creatring Purchase order
    now i have realised this issue while doing good receipt.
    now second line item 02 - mm 100011 - needs to be correct to receive goods . what action item needs be taken so that i can pay the invoice.
    can i make in the line item 02 - Account assig category K and enter GL account AND cost center. - to correct the issue.
    i have corrected this issue for future in the user exit.so not clear account assignment.
    Muthu

    Both the cases you need to pay invoice.Only the difference is first line item the material qty goes into stock.Second line item is not stock item as you are assigning account assignment.
    To correct the issue for second line item you can change it to account assignment item if system allowed.Why I am saying you mentioned user exit influencing the PO to change the line item.
    So first check user criteria what are the  controlling perameters to save the PO.It seems your user exit checking line items if first line item stock item then it is changing all th line items as stock item.Take ABAP person help what are the user exits exist in PO

  • What is the formula for calculating average cost for an item in inventory

    Hi,
    Can someone please share the formula to calculate average cost for an item in inventory which uses Average Costing?
    Thank you,
    Naren.

    HI
    When a transaction updates the average cost of an item, the new average cost is calculated as follows: 

  • Specific Identification Cost for batch managed items (Follow-Up from P2P)

    Specific Identification Cost method is used for serial and batch managed item. Using this method, the outbound cost of such items would be the original cost of specific goods, which can be determined according to the serial or batch number of that item.
    Business One allows the user to receive batch managed items with a batch number that already exists in the DB. It’s possible that the received quantity is added to on-hand quantity in the warehouse. In such case, the quantity on-hand of that batch and the received quantity may have different costs.
    What should be the system behavior in such case:
    1. Block receipts to the same batch with different costs.
    2. Write the difference to a price difference account, as done in Standard Cost method.
    3. Manage the batch cost with Moving Average method.
    This thread is continuation from 'Specific Identification Cost for batch managed Items' <a href="http://p2p.sap.com/businessoneforum?type=join&login=1&uid=41FB661A76CED536C825C4E2B6FF4397&cid=91&go=z37225">discussion</a> in P2P SAP Business One Forum (Product Development Collaboration).
    Previous discussion on P2P is summarized in the attached file.

    Hi Peter,
    This is a very important functionality that you are describing here. For example, in the Steel industry, it could be extremely useful to cost by batch or serial number.
    If you receive a batch that already exists in the system and if the costing method for the product is moving average, then teh cost of the batch should be calculated based on the moving average as well.
    If the costing method is standard, then the cost should go in a variance account.
    If the costing method is FIFO, then it is a getting trickier...
    Regards,
    Vincent

  • How the freight cost are transferred from condition type of shipment cost document to service entry sheet and collected in service PO item

    Dear Experts:
    could you please share with me the knowledge for below topic:
    How the freight cost are transferred from condition type of shipment cost document to service entry sheet and collected in service PO item, because these three objects use three different pricing procedures, and different condition type.
    how did the condition type of service entry sheet know to copy the value of whcih condition type in the pricing procedure of shipment cost document?
    Is this SAP standard function OR there need an enhancement to do that?
    I didn’t find related condition value copy setting in background, could you please share related setting with me? Thank you very much for your kind help!
    Best regards,
    Andy

    Hi, Gopi,
    Glad to see your feedback, but i still have question on your feedback:
    which condition type in the pricing procedure of service entry sheet should know to capture the net value of shipment cost doc? becasue there are so many condition types,
    And i have checked the corresponding condition type (PRSX) of service entry sheet pricing procedure in my SAP system, this is a self-defined condition type, but NO any calculation routine maintained for the condition type (PRSX), how did the condition type (PRSX) know to copy the total cost of shipment cost document?
    Below is the example and another question:
    what the relationship between the pricing procedures at service PO item level and service line item level?
    1. The freight cost in shipment cost document—including used condition type and pricing procedure
    The pricing procedure of shipment cost document
    2. The freight cost in service entry sheet—including used condition type and pricing procedure
    The pricing procedure of service entry sheet--the pricing procedure at service line item level
    3. The freight cost in service PO item—including used condition type and pricing procedure:

  • Actual item cost for batched items

    Hi everyone,
    I'm not entirely sure if there is an easy solution to this, however we have a client where their stock consumption method does not match their stock costing method therefore they can never really get a true stock valuation from SAP. 
    They currently have their items set to FIFO however they don't always use the oldest stock as its not always feasible to do so.
    Due to this, they cannot really find out the age of the items in stock as SAP assumes they use the oldest stock first.  To get around this I've suggested using either serial numbers for big items and batch numbers for the smaller items which will allow them to track when it came in to stock and whether it has gone out or not.  This works well and allows the users to find out the age of the stock.  However, the cost calculated in the journals and posted to cost of sales is picking up the cost from the oldest open layer in the FIFO (OINM) table and not the cost from the layer from the associated batch. 
    Is there any way we can get the system to pick up the actual cost of the item being dispatched?
    If not, we may just have to create a report which looks at all open batches, get the incoming cost and get a stock valuation that way. 
    Has anybody faced similar issues?
    Regards,
    Adrian

    Hi Marcella,
    Many thanks for your reply.
    I have looked in to both Standard and Moving Average and ran through various scenarios but unfortunately neither is exactly what the client wants and neither allows them to get a true stock valuation by item.  The client would ideally like the actual cost to be posted, but I'm afraid its either the oldest layer, average cost or a standard cost posted.
    Some items could possibly be standard as the cost doesn't alter too much, however some item costs vary rapidly dependent upon things such as exchange rates and other market influences.
    I think this may have to be done via reports.
    Regards,
    Adrian

  • Delivery cost for Stcok transfer through M.type : 351

    Hi Experts,
    Can anybody explain how to capture the delivery costs for Stock transfer through M.Type 351.
    Also kindly explain the steps involved in configuration of the same.
    Thanks in advance,
    Prabu

    Hi,
    Once the Config releated to Setup stock transfer order is done.
    To include the cost you need to include the pricing procedure related to STO needs to be assigned to your schema group.
    Goto SPRO -MM-Purchasing -- Conditions
    Here you need to assign the Schema determination RM2000 to your Purchasing organization.
    Then when you create the STO in the recieiving plant, then you will get the condition tab in the item details of STO, there you can maintain the delivery costs for that material & send the STO to your supplying plant.
    Supplying plant will send the material through MB1B & with mvt type 351 to recieving plant.
    At the time of Goods reciept system will capture the delivery costs in the recieving plant for that STO.
    rgds
    gsc

  • Create PO return for subcontracting item

    Dear Expert,
    I want to create PO Return for subcontracting item category.But when I tried to create it,the system prompted an error message:"Returns not possible for subcontracting items Message no. ME 548". Then I used SPRO to check the system message and there is no such a message in the system.Also I added this message into my system and set the catetory to "W". But when I create the PO Return,the same error occured.
    What should I do then?
    Any advice?
    Best Regard,
    Pauline

    Thanks for the reply.
    I have done one testing for PO return subcon item. I create the Normal PO return, and I create return delivery (mvt type 122) with reference to original material document.
    But when i checked in the subcon report ( ME2O/ MBLB/ MMBE) the subcon material dont have any effect when I create the return delivery. the subcon material should be increase as we return back the item to the vendor.
    Example here: we return back the boxes to the vendor, means the papers the we provided for them to produce the boxes should be increase ( means that they haven't done anything with the papers so the papers stock should increase)
    In the reports ( ME2O, MBLB, MMBE) they not show the changes in stock level of papers when there is return delivery transaction. I'm not sure whether I miss out something in the report ? or maybe there are other reports to show the subcon stock level.
    Pauline

  • Account assignment question (for subcontracting item category)

    Hello
    Is it possible to have a account assignment category with a consumption posting indicator V work with a subcontracting item category L?
    Our scenario is that a SD item category TAB auto generates a Subcontracting PO with account assignment M and item category L.
    The problem with account assignment M is that it references sales order, and does not propose BOM component material/quantity, like a standalone subcontracting movement (541 reference to PO)
    We want to issue components to the subcontractor referencing a PO, and maintain visibility thru ME2O (Which account assignment M wont allow).
    Is this possible ?
    I tried tweaking the account assignment category M by changing the consumption posting indicator to V.
    This allowed me to do the subcontracting issue 541 movement referencing a PO.
    However, I got 2 accounting errors at MIGO.
    No direct postings possible to G/L account 03-010
    I then changed the FS00 settings to allow direct postings, but got the next error and was stuck. I guess if these accounts are postable, my problem is solved but I don’t know how to do that!
    Acct. 03-010 for trans./event key BSX, postable directly
    If anyone is knowledgeable on account assignments or knows how I can solve these, I would greatly appreciate your input.
    Regards
    Ken

    Thanks for replying again, Gopala.
    Let me clarify, the SAP error I am receiving is at MIGO, following the successful transfer posting at MB1B (mtype 541 referencing the PO number. If I can get the proper account postings at MIGO (as in a standalone MM subcon scenario) here, my problem is resolved.
    When I hit post at MIGO (Finished Product mov type +101/Component reduction is -543 O) I receive the error "Acct. 03-010 for trans./event key BSX, postable directly " I then goto FS00 (G/L accounts) and uncheck the 'post automatically only' box. But then when I goto re-post at MIGO, I get the message
    "No direct postings possible to G/L account 03-010"
    So I am stuck in this circular error.
    Is this correctable?
    Thanks Again
    Ken

  • Costing for activity types in CS

    Dear All
    Hope you all are doing well.I want to perform costing on service order based on activity type for Customer Services. These activities should be assigned to service material. How can activities assign to service materail? Currently I have configured  valuation catagories , assign cost elements to value catagories, define activity types,Price planning for activity type and assign these activity types to work center.
    Your immedite response is higly appreciable
    Thank you,
    Nomi

    Dear All
    Really sorry for late reply! DIP Profile helps a lot in Configuring Quotation and Billing document. What I did was
    1. I create activities with the help of CO consultant and give price to the activities type.
    2. Setting performed for DISPLAY OF COST in Maintenance and Service       ProcessingBasic settings for these activities.
    3. Assign Cost element for these activities. 
    4. Assign these activities type to the work center.
    5. Define Services Materials for each activity type so that they can be displayed in my quotation and billing document.
    6. Assign services materials to DIP Profile as such:
    u2022     Define planned cost u2013 Total Record as source.
    u2022     In Material Determination for profile I assign each of my service material to Transfer cost and Quantity and assign respective cost and revenue element of that activity type to the Service material.
    When I create a service order with revenue u201CSM02u201D.I do not specify service material. I assign my activities types in operations and when I calculate costing it sums up all the revenue in costing for planned costs but when I create quotation and billing document for the service order it shows individual material for each activity type and its amount on item data and total is displayed in header data against EK01 condition type moreover planned and actual cost are displayed in service order.
    The problem is, I have not create any condition record nor assign these condition type to my pricing procedure as value is arising from activity type.
    Which condition types can be assigned to pricing procedure so that they can pick up the value of the activity type?
    Thank you
    Nomi

  • Additional  Cost for Item cost

    Hi all!
    My production ordr have additional cost: labor, electric. I don't define standard cost for them. I want to fill in production order these costs equal x% of Itemcost. Can i do that. Or if you have other ideas to use additional cost, you can help me solve this problem.
    Thank you!

    Some reading about FMS
    [https://websmp108.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_HIER_KEY=701100035871000437965&_OBJECT=011000358700003625432006E&_SCENARIO=01100035870000000183&]
    You can set up a calculation for the value you need based on values of the current Production Order and return the value to the Item added to add Labor cost to the Production Order.
    Franz

  • CALCULATE COST FOR ITEM

    how do i calculate the cost of an item on a report
    in my database i have boms.  master and components. and regular items not bom
    the regular items have a reorder cost, avgcost,.  the master item does not have any of those.  how do i calculate in a report to sum the avgcost of the components for the master item.  if there is no avgcost then sum the reorder cost.
    example
    itemcode-itemtypereorder costavgcost--
    need report to show
    item A----regular item25.0024.00--
    24.00
    item AB--master0.000.00--
    220.00 
    item AB1component(regular item)-129.00--125.00--
    125.00    
    item AB2component(regular item)-100.00--95.00--
    95.00
    item AC--master0.000.00--
    250.00 
    item AC1component(regular item)-150.00-- 0.00--
    150.00
    item AC2component(regular item)-100.00--0.00--
    100.00
    PLEASE HELP.

    Thank you for the example Gordon.  Very helpful
    i created this query just changed the lastpurprc to be the pricelist 9 in opln as my reorder cost.
    SELECT     T0.ItemCode, 'Regular Item' AS 'Item Type',
    CASE T0.AvgPrice WHEN 0 THEN T3.PRICE ELSE T0.AvgPrice END AS 'Item Cost'
    FROM         OITM AS T0 LEFT OUTER JOIN
                          ITM1 AS T3 ON T0.ItemCode = T3.ItemCode
    WHERE     (T3.PriceList = 9)
    UNION ALL
    SELECT     T0.ItemCode, 'Master' AS 'Item Type',
    CASE SUM(T0.AvgPrice) WHEN 0 THEN SUM(T3.PRICE) ELSE SUM(T0.AvgPrice) END AS 'Item Cost'
    FROM         OITM AS T0 INNER JOIN
                          ITT1 AS T1 ON T0.ItemCode = T1.Father INNER JOIN
                          ITM1 AS T3 ON T1.Code = T3.ItemCode
    WHERE     (T3.PriceList = 9)
    GROUP BY T0.ItemCode, T3.Price, T3.PriceList, T1.Code
    UNION ALL
    SELECT DISTINCT
                          T0.ItemCode, 'Component' AS 'Item Type',
    CASE T0.AvgPrice WHEN 0 THEN T3.PRICE ELSE T0.AvgPrice END AS 'Item Cost'
    FROM         OITM AS T0 INNER JOIN
                          ITT1 AS T1 ON T0.ItemCode = T1.Code INNER JOIN
                          ITM1 AS T3 ON T0.ItemCode = T3.ItemCode
    WHERE     (T3.PriceList = 9)
    ORDER BY T0.ItemCode
    however my query gives me this result.
    itemcode-itemtypereorder costavgcost--
    need report to show
    item A----regular item25.0024.00--
    24.00
    item AB--master0.000.00--
    125.00
    item AB--master0.000.00--
    95.00 
    item AB1component129.00125.00--
    125.00
    item AB1regular item129.00125.00--
    125.00 
    item AB2component100.0095.00--
    95.00
    item AB2regular item100.0095.00--
    95.00
    item AC--master0.000.00--
    150.00
    item AC--master0.000.00--
    100.00
    item AC1component150.00 0.00--
    150.00
    item AC1regular item150.00 0.00--
    150.00
    item AC2component100.000.00--
    100.00
    item AC2regular item100.000.00--
    100.00
    if you notice the master is repeated but with cost of the components or regular item instead of the sum.
    also i only want to see only the component not to show as a regular item again.
    can u check my query.
    thank you in advance.
    Edited by: RUSS on Dec 30, 2009 12:41 PM

  • Total Delivery Cost for partial Item delivery

    Hi Guru,
    I have a requirement wherein I have to apply the total delivery cost for partial Item delivery.
    For example: Even if there is partial GR, delievery cost must be paid in full.
    Say PO is for 100 PC and delivery cost is 100 EUR. Now at MIGO if the delivered quantity is 60, the freight vendor must still be paid 100 EUR.
    Is this possible by configuration or do we need to make any changes at code level? If yes, Please guide me on how to do that....

    Create a PO without tick GR-Bsd IV, suppose I have created PO with qty 20 and rate 1 INR and give freight 50 INR (Fixed Amount)..
    Then I have done partial GR for qty 5. My freight amount booked as 12.5 INR (for partial GR)
    Then I have gone for MIRO..
    Here select Goos/Service item + Planned delivery cost.
    Enter the PO, you can see two line items appear..
    One for goods and one for freight...
    Goods will come as qty 5 and amount 5 INR and Freight will come as qty 5 and amount 12.5 INR.
    Just change the freight qty and amount as 20 and 50 INR.
    Then post the MIRO, you can see your total freight will be booked to vendor..
    Now again do GR for qty 2, at that time your freight amount will booked as 5 INR.
    Then when you will go for MIRO, you can see only the GR item, Freight qty and amount will not come at the time MIRO..
    (Note : I have told the scenario as per my previous screen shot)

Maybe you are looking for