Procurement costs in the optimizer

HI all,
In my optimization run, the procurement costs are not being considered. I updated the procurement costs in the transportation lane and updated the cost profile. Do anyone know if I have to do any other configuration with this cost?
thanks a lot and regards,
Luiz Manssur

Hi Luiz Manssur,
You can define cost function in the Procurement tab of APO master data maintenance(mat1).
Cost functions are used by optimization-based planning in Supply Network Planning (SNP), to calculate the costs of procuring, producing, and transporting varying quantities of products. The following types of cost function are available:
The cost function in the location product master defines the cost of procurement.
The cost function in the production process model (PPM) or in the production data structure (PDS) defines the costs of production.
The cost function in the master data of the transportation lane defines the transportation costs.
Regards
R. Senthil Mareeswaran.

Similar Messages

  • Penalty costs in the optimizer

    I have a requirement in my project where the sales orders should have a higher priority than the forecast.  I have defined the delay penalty for the sales orders as 1 per unit per day and the delay penalty for the forecast as 0.01 per unit per day.  I have defined the maximum delay as 45 days for
    both the sales orders and forecast.  This is how I have setup all the products.
    Does the above setting ensure that the sales orders are satisfied all the time before the forecast is
    satisfied by the deployment optimizer.  Could there be a scenario where the forecast is satisfied before the sales orders with the above penalty structure.
    Thanks in advance.
    Regards,
    Venkat

    Hi venkat,
    You must maintain distinctly higher penaly costs in the SNP 1 tab for customer demand than for demand forecast.
    But I do not understand the statement "sale order should always be fulfilled before forecast".  If you are talking about same location, what difference does it make? 
    If yoy are saying that there is a forecast for one product and sale order for another which are manufactured with same resource and that the product wih sale order should be produced in preference over the product with forecast, the above solution should work.
    Regards,
    Nitin Thatte

  • Can I trust the optimizer to do the right thing every time?

    Hello,
    I have a Business Objects report that is performing poorly, I kind of found something akin to a solution but I'd like a second (and third, and...) opinion about is suitability. I don't know much about BO, so I'll stick to the SQL part.
    So, the query looks something like that:
    SELECT ..... FROM
    -- this is the generic part of the report
    < long list of ANSI joins here>
    RIGHT JOIN some_table ON (conditions - non parametrizable from the report - not allowed by BO)
    <some more joins for good measure>
    -- end of the generic part, up to here nothing can take user parameters
    WHERE
    -- this is the specific part, from here on, the conditions can take user parameters
    some_column = @some_param
    ....So far so simple. Now, I'm trying to find a way to push some user defined parameters in the generic part.
    I can to this using package variables, something like that (very simplified form) :
    CREATE OR REPLACE PACKAGE vars AS
    my_filter VARCHAR2(100);
    FUNCTION set_filter(filter_val IN VARCHAR2) return number;
    END vars;
    CREATE OR REPLACE PACKAGE BODY vars AS
    FUNCTION set_filter(filter_val IN VARCHAR2) return number DETERMINISTIC IS
          my_filter := filter_val;
          return 1;
    END set_filter;
    END vars;And ask the developers to rewrite the report like that:
    SELECT ..... FROM
    -- this is the generic part of the report
    < long list of ANSI joins here>
    RIGHT JOIN some_table ON (conditions  - as above
                                                    *AND my_varchar_column = vars.my_filter*)
    <some more joins for good measure>
    -- end of the generic part, up to here nothing can take user parameters
    WHERE
    -- this is the specific part, from here on, the conditions can take user parameters
    some_column = @some_param
    *AND vars.set_filter('some text here') = 1*
    ....The question is, can I trust the optimizer to evaluate my where clause (thus executing set_filter) before trying to enter the joins?
    I know that this works nicely with conditions like "1=0", in this case it doesn't even bother to read the tables involved. But can I assume it will do the same with a pl/sql function? Always?
    In my tests it seems to work but obviously they are not exhaustive. So I guess what I'm asking is, can anyone imagine a scenario where the above would fail?
    Thanks,
    Iulian
    Edited by: Iulian J. Dragan on Feb 27, 2013 2:57 AM

    Iulian J. Dragan wrote:
    Even though I tell the optimizer, "look, this function is ridiculously expensive, plus it won't filter any rows" it keeps evaluating it first.
    So it looks like not only can I rely on Oracle to evaluate a literal expression first, much as I try I can't make it behave otherwise.
    Still, this is only empirical, I wouldn't use it in a production environment. Probably...Iulian,
    I think I understand what you are trying to do here. Something like using cost to drive the optimizer to process the SQL statement "procedurely"...
    But I believe SQL, by definition, is a set-based language and this means one can not rely on the way an SQL statement is executed by the oracle engine.
    I believe this is good in most of the situations. However, I understand that it is possible that one may want to use his/her knowledge of the data to write
    SQL so that it is more efficient. CBO, being a software, has its limitations and may not always make the right decision, depending upon complexity of rewrite.
    I don't know enough about your original problem, which involves a third-party product i.e. Business Objects, but there is a way in your example to enforce
    the sequence in which he functions are called.
    Here is your code, as it is, producing the results that you have demonstrated:
    SQL> select * from v$version ;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE     11.2.0.1.0     Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    SQL> create table testtab(n number) cache;
    Table created.
    SQL> insert into testtab values(1);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> exec dbms_stats.gather_table_stats(user, 'TESTTAB', METHOD_OPT=>'FOR ALL COLUMNS SIZE 1');
    PL/SQL procedure successfully completed.
    SQL> create or replace function testfunc(p in varchar2)
      2  return number
      3  as
      4  begin
      5    dbms_application_info.set_client_info('executed with argument ' || p);
      6    return 1;
      7  end testfunc;
      8  /
    Function created.
    SQL> select * from testtab where n=5 and testfunc('no worries')=1;
    no rows selected
    SQL> select sys_context('USERENV', 'CLIENT_INFO') from dual;
    SYS_CONTEXT('USERENV','CLIENT_INFO')
    executed with argument no worries
    SQL> create or replace function testfunc(p in varchar2)
      2  return number
      3  as
      4  begin
      5    dbms_application_info.set_client_info(sys_context('USERENV', 'CLIENT_INFO') || '|testfunc with argument ' || p);
      6    return 1;
      7  end testfunc ;
      8  /
    Function created.
    SQL> create or replace function testfunc2(p in varchar2)
      2  return number
      3  as
      4  begin
      5    dbms_application_info.set_client_info(sys_context('USERENV', 'CLIENT_INFO') || '|testfunc2 with argument ' || p);
      6    return p;
      7  end testfunc2;
      8  /
    Function created.
    SQL> EXEC dbms_application_info.set_client_info('');
    PL/SQL procedure successfully completed.
    SQL> select * from testtab where testfunc2(n)=5   and testfunc('am I first?')=1;
    no rows selected
    SQL> select sys_context('USERENV', 'CLIENT_INFO') from dual;
    SYS_CONTEXT('USERENV','CLIENT_INFO')
    |testfunc with argument am I first?|testfunc2 with argument 1
    SQL> EXEC dbms_application_info.set_client_info('');
    PL/SQL procedure successfully completed.
    SQL> select * from testtab where testfunc2(n)=1 and testfunc('so lonely...') = 0;
    no rows selected
    SQL> select sys_context('USERENV', 'CLIENT_INFO') from dual;
    SYS_CONTEXT('USERENV','CLIENT_INFO')
    |testfunc with argument so lonely...I have left out the statistics association part above as I believe it does not affect.
    And below is the rewritten queries that result in functions being called in specific order
    SQL> EXEC dbms_application_info.set_client_info('');
    PL/SQL procedure successfully completed.
    SQL> select * from testtab where decode(testfunc2(n),5,testfunc('am I first?'))=1;
    no rows selected
    SQL> select sys_context('USERENV', 'CLIENT_INFO') from dual;
    SYS_CONTEXT('USERENV','CLIENT_INFO')
    |testfunc2 with argument 1
    SQL> EXEC dbms_application_info.set_client_info('');
    PL/SQL procedure successfully completed.
    SQL> select * from testtab where decode(testfunc2(n), 1, testfunc('so lonely...')) = 0;
    no rows selected
    SQL> select sys_context('USERENV', 'CLIENT_INFO') from dual;
    SYS_CONTEXT('USERENV','CLIENT_INFO')
    |testfunc2 with argument 1|testfunc with argument so lonely...One can also use the more flexible CASE expressions in place of DECODE.
    Hope this helps.

  • Plan cost  in the costing variant

    Hello,Experts,
    I have one problem in controlling .I have Finish product which is produced through subcontracting.
    i have maintained Special procurement key 30(subcontracting) in the material master.
    I have produced material through subcontracting only (first P.O & then by MIGO).
    No  Production Order is there.
    Now the question is how plan cost of the subcontracting material has to be fetch?.
    Please help me out
    regards,
    mys

    Dear,
    While doing subcontracting process the following accounting docs will come
    suppose "X" is the finished component
    "A" & "B" are the child components
    the following documents will come
    X - stock BSX( debit)
    off set account X - ( credit)
    service cost FRL (debit)
    while doing with m.type 101
    NEXT
    stock account of chaild component A - BSX
    off set acount of stock - GBB - VBO(+)
    stock account of chaild component B - BSX(-)
    off set account of stock - GBB - VBO(-)
    while receiving the finished component i.e 543 m.type(raw material consumption account)
    Subcontracting handled through external operation in routing i.e Prod.Order>PR>PO>GR>Confirmation of Prod.Order is planned subcontracting which provide the subcontracting cost on order.That cost is loaded on the as actual cost on the order.Which in turn settle on the cost object.
    I don't think without production order you will get plann cost.
    Regards,
    R.Brahmankar

  • Standard Report for Procurement Costs by Cost Centre

    Hi Experts,
    Is there a standard report available in SAP that shows the procurement costs according to the Cost Centre?
    Regards
    Lindsay

    Hi
    I dont know what do you mean by Proc costs...
    if you mean Account assigned purchases - Then use MB51 and after you get the output, change the layout and include Cost center in the layout
    Else, you can also see the Costs by GL in FBL3N or S_ALR_87013611
    br, Ajay M

  • Special Procurement costing

    Hello Group
    We have a situation here where our planning team wants to put X as procurement type and also wants to keep special procurement type as 12.(Which is procuring from specific plant)
    Now situation is when we are doing costing system is exploding BOM for plant with 12 special procurment type. I want system to explod BOM for this plant and not of procured from plant.
    We also have cross company code costing active. Do you think by deactivating it will help. Also for profit center valuation and group valuation cross company code was activated long back I am not sure what was a reason to activate those two and not legal valuation.
    1. How to make sure production BOM expode rather than procured from plant's BOM
    2. If we want to remove cross company code costing for profit center valuation and group valuation what are the consequences.
    Thanks,
    Santosh Malisetti.

    How to make sure production BOM expode rather than procured from plant's BOM?
    Have you looked at the Quantity structure data on Costing 1?
    We use it when MAterials are procured from a warehouse plant, but we want to cost from the manufacturing plant.
    Entries on the Costing 1 tab will take priority over MRP2

  • ZERO Total Costs of the Solution and No Result Log after Optimiser Run

    Hi Experts
    I found that after SNP optimiser run for one variant with selected product and location, the Result Log generated & Total Costs of the Determined Solution is ZERO from OPTIMISER LOG.
    Before optimiser run, I had run consistency check /SAPAPO/CONSCHK, /SAPAPO/TSCONS & /SAPAPO/OM17.
    Also note, sale optimiser profile is used later with other set of products and location, but there Result Log and Total Costs of the Determined Solution is there in optimiser log.
    What could be the reason of this? Please suggest.
    Regards
    Pradipta Sahoo

    Hi Pradipta,
    Did you see any result from your optimizer run? Means, if you see some pln ord/purch req. , generated from the optimizer run, to meet the demand?  If yes, then it sounds like a master data issue with cost maintenance. If no, then it could be master data issue with  cost maintenance or there is no source (for example- no t-lane for those products you used in the optimizer run) to meet the demand and you have set the indicator for 'no order w/o source'.
    Anyway I would suggest to check the following-
    1. As Anand said, make sure you have maintain all the penalty cost for the product-locations where you have the demand. Also please check if the products are assigned to the lane (from Source to destination location).
    2. If you have maintained any production cost  in PPM (if used one) or storage cost in the demand location or transportation cost (in the T-lane), then make sure these all cost are way lesser than the non-delivery penalty cost.
    But yes, even if, this is the case, then optimizer should generate some non-delivery penalty cost, when demands are not fulfilled! So, it seems like there is no penalty cost.
    Did you use any optimizer cost profile or it is same as previous one?
    Please update us.
    Thanks,
    Satyajit

  • How do you run the optimizer with fixed orders?

    Hi experts,
    If the planner wishes to prioritize orders based on the customer demand, orders should be set as fixed.
    How do I run the optimizer when using fixed orders??
    Regards,
    Analía Nahmías

    Hi Analia,
    Will you please elaborate more ?
    It looks you are running SNP optimizer and want to use also make use of order prioirty functionlity.
    You may be knowing already the contents below :
    We know that Demand Prioritization functionlity is handled differently in SNP CTM and in SNP Optimizer.
    In SNP CTM, Demand can be sorted by different sort criteria.
    Whereas in SNP-Optimizer, Demand can be aggregated for three demand classes or by customer locations.
    We set prioirties on the SNP Optimizer profile Maintenance for demand classes ,
    1. Sales orders
    2. The Corrected demand forecast
    3.The demand forecast
    Apart from this, we can set flag for priority of location products
    The optimizer considers the priority of location products in combination with the priority of priority classes of the demand. To simplify this combination, we  must group the priorities of the location products into three classes.
    Within every priority class as above, the APO system uses all available cost information to determine the final solution
    With the above way, planner does not have to fix an order.
    regards
    Datta

  • Distributing Actual Costs to the Product Level

    We are using Material Ledger at my client and we have some things such as Freight, Depreciation etc. being added to the standard cost as an additive cost. For the actual values for these is it possible to include this in the ML actual cost without having to go through MR22?
    Thank you

    Hello,
    I think you need to rethink the scenario. Freight should have been added to the material cost at the time of procurement and depreciation should flow from cost centers. Another alternate can be that you post actual freight and depreciation both in cost centers , define activity for them , plan them as well and use formula based planning templates to allocate so that they are build up in the cost estimate as well and in actuals they are actualised through the cost center route.
    Kind Regards // Shaubhik

  • COGS (Cost of the Goods Sold) in OPM reg.

    Hi
    Can anyone provide the details about COGS (Cost of the goods sold) documents/set up in R12.
    This is very urgent.
    Kindly do the needful.
    Mail id : [email protected]
    Regards
    Raj

    Hi,
    1. Cost of manufacture of a Product is what the value of goods sold or Cost of Goods sold (COGS). Either, you use the SAP Costing module (CO-PC) to let SAP determine COGS or you can manullay input COGS into material master fields (Standard or Moving Average) in Accounting view of Material master. In either case, COGS is stored in the material master valuation (Accounting) view.
    2. You mean in a COGS? Whatever costs it takes to manufacture a product is included in COGS, for instance Material cost, Labor cost etc.,
    Hope this helps.
    PS: There is lot of documentation available online SAP help protals and please refrain from using this forum for asking such basic questions and restrict to only questions of clarificatory in nature or issue based questions.
    Make an effort to read the SAP help documentation for all your basic questions.
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/80/ea89395eb58c4f9d0c3e837cf0909d/frameset.htm
    Mods (Moderators) will lock your threads, if you continue to ask such basic questions, so no one can reply to it.
    Edited by: Pradeep kumar Athmakur on Feb 27, 2010 12:41 AM

  • Ordered item to absorb the cost of the free goods

    We have created an exclusive free goods agreement and we would like the ordered item to absorb the cost of the free goods.  In order to transfer the correct information to CO-PA from SD billing, what should we do? Can anybody explain briefly?

    Hi Yasar,
    we do the setting for this in copy controls from delivery to billing.
    pl go to t.code VTFL, select the item which is required to abasorb the cost.
    there you will find a check box " cummulate cost ". Tick it here, this will make the cost of the free item to be transferred to the main item. This can also be used even incase of BOM's.
    regards
    sadhu kishore

  • All of a sudden my desktop apps and files went missing.what is the cost of the problem

    all of a sudden, my desktop applications, (i mean the whole applications and files,document in my desktop), went missing .what could be the cost of the problem?

    all of a sudden, my desktop applications, (i mean the whole applications and files,document in my desktop), went missing .what could be the cost of the problem?

  • Is it possible to force 16/32-bit stack alignment without using the optimizer?

    The compiler emits code targeted at the classic Pentium architecture for the -m32 memory model.  I'm running into problems mixing Sun Studio compiled code with code built with other compilers because the other compiler builds under the assumption that the stack is 16-byte aligned.
    The only way I've found to force Sun Studio to comply with that restriction is with -xarch={sse2a,sse3,...}, but this causes the code to pass through the optimizer.  As noted in the documentation, if you want to avoid optimizations you must remove all flags that imply optimizations -- that is to say, there's no way to disable optimizations once enabled.  This should not, however, be treated as an optimization because it's an ABI requirement.
    I've scoured the documentation, spent many hours googling, digging through forums, and asking questions.
    The best I've come up with is the -xarch option which is sub-optimal because it has side effects.  I tried -xchip=pentium4 (this is what my other compilers have set as their default target), but the generated code doesn't force 16-byte stack alignment.
    Is there a way to force the compiler to emit code conforming to a different ABI without using the optimizer?
    -Brian

    Thank you for your response.
    I hope you won't mind my asking: do you have a way to prove that it's not possible to force 16-byte alignment without using the optimizer?  I ask because your username / profile don't give the impression you work for Oracle, so while I think you're probably right it's at least possible that we're both mistaken.  I haven't been able to find any documentation on either stack alignment or altering the targeted ABI short of using the -xarch flag, and even there the details are fairly sketchy.
    -Brian

  • Target Cost in the settled process order become zero after cost deletion

    Dear all,
    User has standard cost estimates created in Jan 2010 that valid until the end of 2010 for every material in the system.  user created a process order in April 2010. Target cost of the order was created based on the standard cost estimate and recipes as well as order qty.    The order was also confirmed and settled in April 2010 without problem. 
    However, after I deleted all old costing estimates before I did a costing run for all materials in May 2010, the old order was resettled and all Target cost is removed from the order.  I guess system try to look at April costing estimate but it is not there since it was deleted before I created the new costing estimate in May.  Therefore, all varainces are throwed into remaining variances since the target cost become zero.
    Other than mark the settled order for deletion or keep all old costing estimates,  I am just wondering is anyway in the configuration to prevent the system to recaculate the target cost again for the settlement so I can avoid the problem happens?
    Thanks.

    Hi,
    Target costs are only calculated after goods movements have occured on the order, the Target Costs are then calculated during the Variance calculation.
    Target costs will only be calculated after the first goods receipt has been posted to the order. Also you have to ensure that the information to calculate target costs exists on the system in particular in OKV6.
    This estimation is based on the customizing for the Target cost version in transaction OKV6 as in turn will the "real" calculation of the Target costs via the variance calculation.
    So in OKV6 the Target cost will be based on preliminary costing on the order, an alternative cost estimate or the current standard cost estimate. Importantly if the choosen option is not fulfilled e.g. no current standard cost estimate, the target costs will not be predicted or calculated.
    regards
    Waman

  • Sales Order Report Showing Cost on the Sales Order & total invoice dollars

    I am looking for a report in SAP that shows you the Sales Order number, the cost on the sales order (NOT the average cost) the actual cost on the sales order detail line and then the total invoice dollars in month to date and year to date?
    Thanks,
    Linda

    You can use <b>T.code: COOIS </b> if Product Costing has been configured for MTO scenario whcih gives the costing details.
    You can also use To.code: <b>KE30</b> if CO-PA implemented.
    but if you want to link with billing, Please search for any reports in Sales information system.
    One more you can create a ABAP Query Report using T.code: <b>SQVI</b>
    Regards,
    Anbu

Maybe you are looking for