Cost of Update Transaction

In our current procedure for updating part cost in a table, we compare the field's value with the new value and if it is different, the record gets updated. This is done in a loop. Would it be faster to just update the field with the new value even if the value didn't change or is the cost of update higher than the cost of comparing 2 values?

Table_1 (local table)
Part_ID: Date: Cost
s32 Dec 2008 $450.00
s32 Jan 2008 $400.00
s55 Jan 2008 $125.33
Table_2 (temp table to hold external data for updating table_1)
Part_ID: Date: Cost
z33 Feb 2008 $125.00
s32 Feb 2008 $325.50
s55 Feb 2008 $125.33
For all records in Table_2 we search Table_1 to see if the Part_ID exist. z33 does not exist, so we insert new record in Table_1:
z33, Feb 2008, $125.00
Other 2 Part_ids exist, so we search Table_1 based on s32 and the latest Date to see what was the latest cost for the part_id: we find the record:
s32, Jan 2008, $400.00
We look at the Cost for this part. It was $400.00 and now it is $325.50. The cost has changed, so we insert NEW record :
s32, Feb 2008, $325.50
We look at s55. the latest date for this part is Jan 2008, but the cost didn't change, so we do not insert anything, just ignore the record

Similar Messages

  • About cost center accounting  (Transaction based posting with CO assignment

    Hi,
    I m working on cost center accounting ,and i m stuck in transaction based  posting ,i m post transaction through FB50,
    i m given concern G/L account Dr 8000 and credit to bank account with account assignment cost center 10100.after i simulate this transaction the system accepts and i m enable to see the transacion after simulation,but after that i m going for save it at this time system geting error ,and error is like ---
    Not possible to derive owner from account assignment/bank details
    Message no. REEXFI054
    Diagnosis
    In the condominium owner company code, the system attempts to determine a unique condominium owner for each document.
    To make this determination, the system analyzes:
    The profit centers in the document. Usually the system derives the profit centers from the account assignment objects in the individual line items. In the condominium owner company code, the system determines the profit center for real estate objects from the condominium management contract for the rental object.
    The house bank data in the document. Therefore, the affected bank account has to be entered uniquely in each bank line item.  You can enter the house bank and the account ID in FI posting transactions by choosing Additional Data. The system then searches for the condominium management contract that has these bank details.
    In the current case, the system is not able to determine a unique owner.
    System Response
    The system cannot post the document.
    Procedure
    Check the account assignment data and bank details.
    So plz guide me about this ,
    Regards,
    Pramod Kulkarni

    Hello again,
    First off all thank you both for your answers.
    Dirk,
    When I said enhancing I was not thinking of developing the hole thing. That seems to be a hugely complex task and I do not have the time for that in the project were I am presently working. What I meant was: Is there a SAP Enhancement available? A function exit? A Customer Include? Something that is half way done?
    If this is not the case the solutions I thougth were:
    i) Replicate my infocube's data into a ODS. Develop a report on the R/3 side that reads that data via a RFC and uses Batch Input (Call transaction) to update the data on the R/3 side;
    ii) Develop a function module (similar to the standard one) on the BW side to use in a planning function of type exit which would update a Z database table on the R/3 side and, afterwards, develop a report (also on the R/3 side) which would read that database table and update transactional tables via Batch Input (or Call Transaction with a developed log transaction).
    From the point of view of performance I believe the solution involving the ODS is better because we are talking about 300 000 materials.
    As for your proposed solutions 1) and 2) althougth they seem very nice and elegant I would like to avoid changing the R/3 customizing. Regarding your proposed solution 3) I am going to take a look at the function group you mentioned and the respective note.
    Once again thanks a lot for your answer. You have been very helpfull.
    Best Regards,
    Vasco

  • COST MANAGER 가 ITEM TRANSACTION 에 대하여 COSTING을 수행하지 않는 경우의 처리.

    제품 : MFG_INV
    작성날짜 : 2004-05-25
    COST MANAGER 가 ITEM TRANSACTION 에 대하여 COSTING을 수행하지 않는 경우의 처리.
    ==============================================================
    PURPOSE
    COST MANAGER 가 ITEM TRANSACTION 에 대하여 COSTING을 수행하지 않는 경우의 처리.
    적용 : Oracle Inventory 11
    Oracle Inventory 11.5
    CMCTCM Cost Manager
    Problem Description
    COST MANAGER 가 ITEM TRANSACTION 에 대하여 COSTING을 수행하지 않아 분계
    가 생성되지 않은 데이터가 존재함.
    데이터의 상태는 MTL_MATERIAL_TRANSACTIONS의 COSTED_FLAG, ERROR_CODE, ERROR_EXPLANATION 이 Null 임.
    MTL_MATERIAL_TRANSACTION_TEMP 의 ERROR_CODE = Null 이고,
    ERROR_EXPLANATION = "Transaction Processor Error" 임.
    원인: MTL_MATERIAL_TRANSACTIONS 의 COSTED_FLAG 값이 NULL
    이고, TRANSACTION_GROUP_ID 에 값이 존재함. 그러므로 CMCMCW (Material
    Cost Transaction Processor) 가 이 데이터를 처리하지 않음.
    CMCMCW: 이 프로그램은 INV 와 WIP의 material transactions 의 costing 을
    진행시킨다. 이 프로그램은 mtl_material_transactions 에서 uncosted
    transactions 찾는다. 예) where costed_flag='N'& transaction_group_id=NULL.
    검색된 데이터에 대하여 INLTCP 이 호출되어 처리된다.
    Workaround
    N/A
    Solution Description
    1. SQL*PLUS 를 이용하여 해당 데이터를 아래와 같이 update 한다.
    SQL>
    UPDATE mtl_material_transactions
    SET
    costed_flag = 'N',
    error_code = NULL,
    error_explanation = NULL,
    transaction_group_id = NULL
    WHERE
    costed_flag = 'N'
    AND transaction_group_id is NOT NULL;
    2. Cost Manager 는 schedule 되어 수행된다.
    Reference Documents
    Note:156954.1 - The Cost Manager Is Not Costing An Item Transaction

  • Updating transaction MD61 using information from inbound IDOC

    Is there any standard IDOC type for Planned Independent Requirement(having fields of table PBED and PBIM in its segment)?If such an IDOC type doesnt exist then i have to go for custom idoc type creation
    I have an inbound IDOC having 4 fields in its segment
    1.SAP Material number
    2.Plant
    3.Plant Quantity
    4.Requirement date
    Now i have to use this information in IDOC to update transaction MD61(create a planned order).
    constraints:
    in MD61 screen1
    SCREEN 1
    Material radio button is defaulted to on. This must also be set in the interface. Material number will be valued from the input file.
    Plant will be valued from the input file.
    Version number defaults to 00, so that value should also be used for the interface.
    Planning Horizon From and To dates will be the same date and valued from the input file.
    Planning Period should be set to D for Day
    SCREEN 2
    Material number should default from SCREEN 1 input. The interface should also do this.
    MRP Area will default from the Plant on SCREEN 1 input. The interface should also do this.
    Version will default from the 00 on SCREEN1. If needed on interface, also default to 00.
    Version Active checkbox will be checked by default.
    Base Unit of Measure will default from material master.
    Only a single date column will appear which should be the date input on SCREEN 1. Value this column with the quantity from the input file.
    Input fields are highlighted in screenshots below.
    After input is complete, use the SAVE icon to store the data.
    Kindly tell me the approach to prepare this interface?

    Done,used BAPI_REQUIREMENTS_CREATE TO DO SO

  • How to update transaction data automatically into MySQL database using PI

    Dear All,
    With reference to subject matter I want a sincere advice regarding how to update transaction data automatically into MySQL database using PI. Is there any link available where I can get step-by-step process.
    Ex: I have a MYSQL database in my organization. Whenever a delivery created in SAP some fields like DO Number, DO quantity, SO/STO number should get updated in MYSQL database automatically.
    This scenario is related to updation of transactional data into MYSQL DB and I want your suggestions pertaining to same issue.
    Thanks and Regards,
    Chandra Sekhar

    Hi .
    Develop a sceanrio between SAP to Database system,When the data updates in SAP Tables read the data and update it in DATA Base using JDBC adapter,but there will be some delay in updating data in MySQL.
    serach in sdn for IDOC-TOJDBC sceannario,many documents available for the same.
    Regards,
    Raja Sekhar

  • How much will it cost to update to OSX Mountain lion when it becomes available?

    How much will it cost to update to OSX Mountain Lion when it becomes available?

    Abisingar wrote:
    How much will it cost to update to OSX Mountain Lion when it becomes available?
    I read somewhere it will be $299.00 I also read somewhere that it will be .99c  I also read somewhere.......etc. etc. For goodness sakes, wait till it is released! We know nothing more than you except that it will be the next OSX.
    Pete

  • Cost  not update

    Dear All,
    I carried out the Code CK24 for updating the cost.
    System has given the information message:  1 material ,cost estimates were updated  successfully.
    But MM02 no cost is updated.
    Please guide me to overcome this issue.
    Thanks in advance.
    Vijay Mankar

    Dear Mr.Pradeep,
    I carried out the suggested step for the same.
    But again the system gave message 0 material,0 cost updeted.
    In CK11N error message like material T_234
    1000     CK     694     No structure could be determined for internal activity SETUP (S1000) 2,
    I clicked the error it gives
    Check the master data for activity type SETUP of cost center S1000. It is possible that no activity price calculation has been carried out for the cost center.
    Please do the needful
    Rgds,
    Vijay Mankar

  • Reversal of Cost Price Update and Price Change MR21

    Dear SAP experts
    Recently (on 1st of this month) i did cost price update for all my FIG items. Later i realized that some of FG items cost price was not accurate. So i want to delete cost price of those items and update price by using T code MR 21 
    When i try to cancel these items cost price by using T code CKR1, i am getting error message that particular material current or future standard price is avialable and i am unable to move further
    Please guide how to delete current cost price of these items and update cost price by using MR21. Please note these items does not have any BOM and basically are contract manufacturing items
    Thanks in advance

    Hi Vedsai
    When you use CKR1, it does not give error.. It just gives a warning message
    Enter your Plant / Mat in CKr1 and select "Current cost estimate" or "Future Cost Estimate" as the case may be
    If any warning comes, ignore it and press enter.... It should reverse the cost estimate
    Now update from MR21 or preferably use CK11N again
    Note: If at all it gives any error in CKR1, check in T code OPR4_CK if this msg can be converted into warning message
    Regards
    Ajay M

  • Standard cost price update

    Can anybody tell me in details the logic behind the standard cost price update.
    Regards
    Amitava

    Hi.
    1.After did the cost estimate in ck11n . you need to update the cost for the current period. then only it will update in the MM02 under the costing view.
    2.In the update the costing , 2 steps need to do
    a. MARK the costing . give the period for which you need to mark the costing. and execute in ck24
    if you done . the price will update for the future period . you can see this in the MM02 under costing view / std costs
    It means thats you do calculate and mark the cost but it will show in the future period in MM02 COSTING VIEW. . but you are not release this cost as the current period cost. so you are still in the old period costing only.
    b. RELEASE the costing in ck24 itself. If you release the costing , then the costing will be show in the current period in mm02.

  • Cost automaticall update when services entered manually in Maintenace order

    Dear SAPIENTS,
    How can I get Cost automatically update when services entered manually in Maintenace order. This services comes under agreement.
    I have entered service agreement and now entering service number auomatically since i know the service number. Also i need that cost field should not come as editable.
    Cost comes automatically when go for selection against agreement
    Regards,
    Kaushal Rai

    hi
    In the order whether you are able to see the plan cost in the COST TAB ,for the activity.
    You have to confirm the activities or operation for the order in IW41,then only actual cost will be captured in the order.
    if you complete the notification ,your operation will not confirm automatically
    regards
    thyagarajan

  • ITEM COST HISTORY에서MMT의 PRIOR COSTED HISTORY를 UPDATE해도 PRIOR QTY가 안 바뀔때

    제품 : MFG_CST
    작성날짜 : 2003-12-02
    ITEM COST HISTORY에서
    MMT의 PRIOR COSTED HISTORY를 UPDATE해도 PRIOR QTY가 안 바뀔때
    =========================================================================
    PURPOSE
    item cost history에서
    아무리 mmt의 prior costed history를 upda해도
    prior qty가 안 바뀔때
    Problem Description
    item cost history에서 아무리 mmt의 prior costed history를 upda해도
    prior qty가 안 바뀔때 CST_QUANTITY_LAYERS 테이블의 layer_quantity를
    확인하십시오.
    Workaround
    N/A
    Solution Description
    cst_cg_cost_history_v 에서 해당 열을 조회하면
    layer_id가 있읍니다. 그 layer_id를 갖고
    CST_QUANTITY_LAYERS 테이블에서 layer_quantity를 조회해 보십시오.
    select * from CST_QUANTITY_LAYERS
    where layer_id = ???
    그래서
    CST_QUANTITY_LAYERS 테이블의 layer_quantity를
    update하십시오.
    Reference Documents
    -------------------

  • I want to update my 2008 macbook. It also freezes, says I have no memory, and is just outdated. Any ideas on the cost to update?

    My 2008 Macbook constantly freezes....applications constantly pause or have no response. I often can't even force quit....I need to hold down the power button to shut down the whole system. It also says I have little or no memory all the time, even though I have deleted a lot of things. I can't afford to buy a whole new computer. Any ideas on the approximate cost of updating??

    Cost, no, Maintenance on your part, yes.
    You need to free up disk space. Control click the MacintoshHD icon on your desktop or open the Finder, control click startup disk icon then click Get Info.
    You'll see Available and Capacity. Make sure there's at least 15% available disk space.
    Freeing space on your Mac OS X startup disk

  • Cost estimate updation

    Hi there ,
                    I have done the material cost estimate with Qty structure in CK11n with costing variant PPC1..... It is done sucessfully .... now when I am trying to mark & release the same in CK24.... I am getting the log as Zero matarial & cost estimate updated....
    Please advice
    Regards
    Kaushik

    Dear,
    Your error seems from material master.
    Check following data are maintained or not.
    with qty structure is tick
    Do not cost should not tick
    Material origin is tick.
    Overhead Group is assign.
    Costing lot size.
    GOPAN.

  • Is there any cost to updating apps such as iPhoto?

    I was wondering if there was any cost to updating my pre-installed apps.

    Welcome to Apple Support Communities
    You can update applications like iPhoto, iMovie and GarageBand free of charge, always that you are using the '11 versions of these apps. You can check this by opening iPhoto and going to iPhoto menu (on the menu bar) > About iPhoto. iPhoto '11 is 9.x.x.
    Note that some developers may decide to make some updates paid, but you will get notified of that

  • Actual cost not updating in Pm order

    Hi Experts,
      We have a requirement from management for Having budget control based on department wise.
    For that we are trying out substitution rule by which Pm order is replaced with Internal order .we are having a budget profile and budget for internal order.Now we are able to control budget and system stopping if budget exceeded in migo transaction .We are replacing pm order with IO order with substitution with pm order number range. Issue is after having this setting actual cost is not updating in Pm order and pm report.
    Same is getting updated in mseg against pm order.
    With regards
    Anand.M

    Hi Anand
    Please add the budget profile at Plant maintenance order level no need to add any substitution rule
    budget should also be control at order level
    Thanks
    trinath 

Maybe you are looking for