Allocation of Cost based on Match for 2 Dimensions

Hi Experts,
We are running an allocation where we assign an expense account balance (transportation costs) based on the combination of the dimensions entity and country.  Please see the attached for a full example.
A brief example:
ORIGINAL DATA
Entity:  Country AI Units (Currency)
1120  Holland AI_01 50
1120 Holland AI_03 30
1120 France  AI_02 10
PRICING DATA
Entity:  Country USD
1120 Holland 8
1120 France  10
DESIRED RESULT
1120 Holland AI_01 (50*8)=400
1120 Holland AI_03 (30*8)=240
1120 France AI_02 ((10*10)=100
ACTUAL RESULT
1120 Holland AI_01 (50+30) *8=640
1120 Holland AI_03 (50+ 30)*8=640
The original data is multiplied by a "pricing table" data that resides in a statistical account with similar dimensions for Entity and Country.  Based on the match between Entity and Country between the data and country we assign the cost.
Issue is that other dimensions e.g. AI or other should be ignored for this calculation and the postings occur as they were originally.  However the actual result based on the script below is duplicating data
Any ideas?
Thanks in advance
Eyal Feiler
SCRIPT USED
*RUNALLOCATION       
*FACTOR=USING*1       
*DIM CURRENCY WHAT=KL_Q ; WHERE=USD; USING=USD; 
*DIM COUNTRY WHAT=[ALLOCATION]="y" ; WHERE=<<<; USING=<<<;
*DIM ACTIVE_INGREDIEN WHAT=[AI_ALLOCATION]="X"; WHERE=[AI_ALLOCATION]="X"; USING=AI_NONE;
*DIM ACCOUNT WHAT=411113; WHERE=612313; USING=411113;
*DIM AUDITID WHAT=AD3000; WHERE=AD5130; USING=AD4130; 
*ENDALLOCATION       
*COMMIT      

  Vadim,
  Again as before this helped us greatly!
  Another question if I may:
  2) The next step of the calculation is after we search for a price
based on the entity/country match, if one is not found we go to a second
pricing table and select based entity and property of the country (e.g. a
region) that has a new price.
This means that we could have a conflict between the 2 tables. e.g.
in the first table we find a match between Entity and country = France or
country = Holland.
Now when there's an entry = Greece there's no match in table 1 and
we go to table 2 to select the Europe price.
Europe price will now override the first 2 rows from table 1.  How can we build this?
One thought is to first perform the select on table 2 (region) and
then override with (table 1) only where it's found? 
Thoughts?
Thanks
  Eyal

Similar Messages

  • Define Flat Rate for Travel Cost based on location (Maximum points awarded)

    Hello,
    SPRO>Financial Accounting>Travel Management>Travel Expenses>Trip Reimbursement Amount>Reimbursement Amount Travel Costs>Define Flat rates for Travel Costs, in this path we can enter the reimbursement amount for trip country/ trip region. I created different reimbursement amounts for different locations(additional locations/regions can be created in table T702o for country US) for USA but in expense report its taking only default amount (0.36) that is already there for Country:US not the amount i gave (0.27) for different location even when I gave the location name in the expense report. Could anyone tell me what i am missing. Do i have create corresponding WT for these expense types based on location.
    Thanks,
    Latha

    got solved

  • Dont want COPA doc for credit memo billing in costing based copa

    Hi,
    We are in costing based COPA
    Created one mis sale account with CE 1 as we dont want to drive to COPA
    when i did billing the credit memeo am getting Profitability segment for primary cost element not advisable.
    we have not mapped the Condition type to COPA field also.
    Can you help us how to resolve this.
    We need billing accounting document with out COPA document.
    thanks,
    Sudha

    Hi Sudha,
    The best way will be to reset the fields in transaction KE4W if you do not want a COPA document for a particular billing type.
    Regards,
    Abhisek

  • 1 Operating Concern for Account Based and Cost Based COPA

    Hi,
    We are using Operating Concern 3000 for Account Based and Cost based Profitability Analysis. However when i try to extract data from the account based Operating concern it gives me an error in extraction : error 09.
    Could it be that we cannot use one operating concern for both types or COPA?
    Thanks

    Hi
    Have you deactivated any of the characteristics used in Account based COPA
    Check KEQ3 and you may have activated only for Costing based COPA
    S Jayaram
    Edited by: S Jayram on Dec 18, 2007 3:24 PM

  • BW - COPA extraction requirements for account based and costing based

    Our client has a requirements of having both account based and costing based BW extraction from ECC.
    Is it recommended? if yes, how does it effect BW data model?

    Hi Ali Khan,
    Kindly have a look at below link,
    http://sap.seo-gym.com/copa.pdf
    yes it's possible and it will not affect BW.
    Hope this helps.
    Regards,
    Mani

  • Rule based & Cost based optimizer

    Hi,
    What is the difference Rule based & Cost based optimizer ?
    Thanks

    Without an optimizer, all SQL statements would simply do block-by-block, row-by-row table scans and table updates.
    The optimizer attempts to find a faster way of accessing rows by looking at alternatives, such as indexes.
    Joins add a level of complexity - the simplest join is "take an appropriate row in the first table, scan the second table for a match". However, deciding which is the first (or driving) table is also an optimization decision.
    As technology improves a lot of different techiques for accessing the rows or joining that tables have been devised, each with it's own optimium data-size:performance:cost curve.
    Rule-Based Optimizer:
    The optimization process follows specific defined rules, and will always follow those rules. The rules are easily documented and cover things like 'when are indexes used', 'which table is the first to be used in a join' and so on. A number of the rules are based on the form of the SQL statement, such as order of table names in the FROM clause.
    In the hands of an expert Oracle SQL tuner, the RBO is a wonderful tool - except that it does not support such advanced as query rewrite and bitmap indexes. In the hands of the typical developer, the RBO is a surefire recipie for slow SQL.
    Cost-Based Optimizer:
    The optimization process internally sets up multiple execution proposals and extrapolates the cost of each proposal using statistics and knowledge of the disk, CPU and memory usage of each of the propsals. It is not unusual for the optimizer to analyze hundred, or even thousands, of proposals - remember, something as simple as a different order of table names is a proposal. The proposal with the least cost is generally selected to be executed.
    The CBO requires accurate statistics to make reasonable decisions.
    Even with good statistics, the complexity of the SQL statement may cause the CBO to make a wrong decision, or ignore a specific proposal. To compensate for this, the developer may provide 'hints' or recommendations to the optimizer. (See the 10g SQL Reference manual for a list of hints.)
    The CBO has been constantly improving with every release since it's inception in Oracle 7.0.12, but early missteps have given it a bad reputation. Even in Oracle8i and 9i Release 1, there were countless 'opportunities for improvement' <tm> As of Oracle 10g, the CBO is quite decent - sufficiently so that the RBO has been officially deprecated.

  • Allocation of cost from service cost center  to production cost center

    Dear sir ,
    Will I use to distribute the cost from service department to production department  and that cost centers also using for activity planing will get currect result in product costing ?

    Hello,
    Can you clarify what you want to do ?
    Allocation of cost from service cost centers to production cost centers can be done with the help of Assessment / Distribution cycles and you can do a activity planning using the same costs as well. The steps for activity planning would be as under:
    1. Create primary cost planning in the service and production cost centers (KP06)
    2. Create activity planning in the production cost centers (KP26) without any rate
    3. Run assessment / distribution cycles to transfer cost from the service cost centers to production cost centers (KSUB / KSVB), in case you are not transferring based on activity quantity then also do SKF planning in KP46
    4. Run plan cost splitting in case you have more then one activity type (do config for splitting structure beforehand) (KSS4)
    5.  Calculate Plan price for the production cost center activity types (KSPI)
    BR // SG

  • Differance between the Cost based costing and Account based costing

    Hi,
    What is the Differance between the Cost Based Costing and Account Based Costing ?

    You can check sap note 69384
    COSTING-BASED PROFITABILITY ACCOUNT-BASED PROFITABILITY
    ANALYSIS ANALYSIS
    OBJECTIVE
    o profitability and sales accounting
    o evaluation of market segments (for example,
    customers, product groups, sales areas) and corporate
    units (for example, division, sales organization) with
    regard to their profit or contribution margins
    o calculation of profits procedures
    - cost-of-sales accounting
    - interim and reconciled sales report
    - periodic and transaction-based allocation
    - Profitability Analysis on the basis of full and
    direct costs
    o posted and costing-based values o account-based values
    o can be reconciled with FI for o always reconciled with
    account groups (revenues, sales FI on account level
    deductions, costs of goods
    Note 69384 - Information: Account-based Profitability Analysis
    manufactured, and so on)
    DATA STRUCTURES
    o definition of operating concerns o definition of operating
    with fixed characteristics and concerns with fixed and useruser-
    defined characteristics defined characteristics
    and value fields
    o cumulative storage by posting o cumulative storage by
    periods and weeks posting periods
    o storage in operating concern o controlling area currency,
    currency (as of Release 4.0 also company code currency
    optional in company code currency and transaction currency
    if req.)
    o user-definable summarization levels
    FUNCTIONS
    o transfer of profit relevant o transfer of profit-relevant
    business transactions from SD, FI activities from SD, FI, CO, MM
    CO, MM (revenues, sales deductions (revenues, sales deductions and
    and costs organized by value fields) costs organized by accounts)
    o Derivation of characteristics from master
    data or using derivation rules
    o Realignments also for data that is already
    posted
    o Valuation
    (Costs of goods manufactured, imputed
    costs and sales deductions)
    o sales and profit planning o profit planning
    - flexible layout - flexible layout
    - periodic distribution - periodic distribution
    - valuation, revaluation - forecast procedure
    - forecast procedure - top-down distribution
    - top-down distribution - simulation
    - simulation
    o profit analysis by means of 'interactive drill-down
    reporting'
    - Report Painter
    - object list/ranking lists, database schema
    - drill-down
    - key figure systems
    - flexible hierarchies
    - navigation between reports
    - exception reporting
    - ABC analyses
    - Exporting (Excel, Winword, Mail)

  • Costing based on info records

    Hi experts,
    We are facing problems setting up costing based on info records. In our valuation variant we use Strategy Sequence "Price from Purchasing Info Record" and Sub-Strategy Sequence "Quotation Price via Condition Table", as well as stating the relevant Condition type in Delivery Costs.
    The price of the material and condition type is set in transaction MEK3.
    The costing works as it should, but only if no purchasing requisitions exists on the material. But if requisitions exists on the material, the costing instead use this price. How to avoid that; i.e. how to make the costing always picking the price set in transaction MEK3?
    BR,
    Niclas

    Hi
    I cant say for sure.. you can download these notes from T CODE SNOTE...
    After getting downloaded, an icon shows on left side based on which you will come to know if it can be applied or not...
    Else, you can raise a OSS msg to SAP saying that this note seems to be relevant to my issue, but does not match with my release of SAP... They will get back to you, if they have any
    Regards
    Ajay M

  • Costing based CO-PA extraction to DSO

    Hello Expert,
    I need to load the line item data to level 1 DSO. On the source system, the system has used the combination of the following key fields not allow duplicate records.
    PALEDGER
    VRGAR
    VERSI
    PERIO
    PAOBJNR
    PASUBNR
    BELNR
    POSNR
    But, the datasource only includes the following fields from the source system.
    PALEDGER
    VRGAR
    VERSI
    PERIO
    BELNR
    POSNR
    How the system is going to handle duplicate records in absence of these two fields (PAOBJNR
    PASUBNR) in the datastore object (DSO) which are part of the key fields in the source system?
    Please let me know about it.
    Thanks.
    Bhai.

    Hi,
    For  Costing based CO-PA Extraction : Pls follow this steps.
    1.Create a CO_PA Data Source in KEB0 (Costing Based) and test this extractor in RSA3.
    2. On BW side ,  Create CO_PA cube using the info source (to which generated CO_PA data source assigned in BW) as a template,and move the chars, KF and time chars and assign the dimensions as required.
    I suggest make the copy of any below existing COPA cube and then you add/ delete  missing fields.
    CO-PA: Published Key Figures
    CO-PA: Quickstart (S_GO)
    CO-PA: Route Profitability (S_AL)
    Pls Check this link for Costing based CO-PA
    http://help.sap.com/saphelp_nw04/helpdata/en/b0/06644ca87011d1b5750000e82de856/content.htm
    Hope this helps,
    Regards
    CSM Reddy

  • ITunes match for a large number of devices, 4 people, and as a backup solution.

    I am interested in using iTunes match for two central reasons:
    1.  Backing up my music library.  Is iTunes Match an solution for this?  Or not really?  I get the fact that my purchases are protected, but what about the music I uploaded from purchased CD's. 
    Question:  Can I consider iTunes Match at $24.99/year the cost of backing up 60GB of music to the cloud?
    2.  Sharing my music library across a number of devices.  We are a family of 4 with farily extensive MAC, iPhone, iPad usage, including ...
    1 iMac (Music server), 3 Power books (Indivudal work machines), 2 iPads, Apple TV,  and 4 iPhones.  We have 4 Mobile me accounts, moving to ICloud.
    The problem I have is that I can never effectively coordinate the music library across the devices.  80GB of iTunes library is too much to load across all the devices and I never seem to have the song I'm looking for at the time I desire it on a particular device, other then the family iMAC server which has the whole library on it.
    Question:  Seems like iTunes Match is an ideal solution, but can it handle the diverse spectrum and number of devices I have?  Ideally I want to thnk of iTunes Matchas, 1 central library avaialble on all devices, all the time.
    Thank you in advance for any opinions.
    MikeK

    mek wrote:
    Question:  Seems like iTunes Match is an ideal solution, but can it handle the diverse spectrum and number of devices I have?  Ideally I want to thnk of iTunes Matchas, 1 central library avaialble on all devices, all the time.
    Think of iTunes Match as a central library from which "satellite" libraries can pull any time they have an Internet connection.
    Functionally, if all those devices are in your house, iTunes Match doesn't give you much that Home Sharing doesn't already offer.  With Home Sharing all your Macs can easily "fill in the gaps" from the "master" library.  Of course, that requires that the machine with the "master" library is always online and iTunes is always running on it, which might not be the case.  AppleTVs and iPads sync to that "master" library and so what is on them is configured from the master library computer, not the device itself.
    What iTunes Match offers you is:
    1.  Your "canonical" library lives "in the cloud" and so you don't have to have a home server up and running iTunes at all times.
    2.  Your "canonical" library lives "in the cloud" and so you can update from it any time you have an internet connection, not just when you are at home.
    3.  The workflow for updating from the canonical library is much better than the clunky "Home Sharing" interface.
    4.  Any "matched" songs (I found that in my library only about 65% were successfully matched; I'm not sure why) will be available at 256kbps AAC, which might be higher quality than what you have in your library currently (especially if you have imperfections like CD skipping, etc, in the tracks).  Of course, anything iTunes can't match to its own library will remain just as imperfect as ever.
    The downside (versus Home Sharing) is:
    1.  Everything needs to get copied onto a device from the Internet, which is likely to take much longer than just Home Sharing over your home wireless network.
    Seems like a pretty good system.  I've signed up for it and am happy with what I've seen so far.

  • Cost of goods sold for trading goods

    In my company Cost based copa is configured.
    We do manufacture and sale the goods, also we do trading to goods. for manufacturing goods the standard cost estimation is released but for trading we are not doing std cost estimation. In SD pricing procedure VPRS condition is incorporated to get cost of good manufactured. Now i want  the cost of goods sold for Trading material to flow to co-pa.
    How do i do it?
    Do i need to create and release the std cost estimate for trading material? or there is any way i can manage the cogs to flow to co-pa actual cost.
    Regards
    Sanjay Petkar

    One way is certainly to create standard cost estimates for the purchased products. Depending on your costing view qty structure and MRP view procurement settings you can use either CK40N or costing without qty stucture.
    If you want moving average, then you need to exclude the purrchased material type from looking for a cost estimate in COPA, and then you need to link VPRS to your cost of sales key figure in PA.

  • Activating Account based Copa in the existing Cost-based COPA

    Hi Sap CO gurus!
    Please advise me for the following issue.
    Presently, My client using Cost-based COPA for segment wise reporting.( Already activated).
    Now they wanted the reports in Account Based. Is it possible to activate the Account based now? Will the system allow us to activate or not?
    If yes, What will be the implications? I want to know the pros and cons for that.
    If not, How Can I edit the COPA settings( Operating concern)? Or shall I delete the Operating concern and create one new one?
    Can you please explain the impact of each situation?
    Thanks a lot in advance
    Rama

    Hi Joe
    You can deactivate Account Based COPA, but you will have to do a thorough testing so that you are aware of the issues that can crop up
    The IMG Menu is SPRO > Controlling > Prof Analysis
    You will have to do a testing of how the open sales orders would behave... The open sales orders mean Sales Orders where PGI has been done, but billing is pending AS WELL AS Sales orders which are just created, but no Logistics movement (PGI) has taken place... You will have to do testing on both types of sales orders
      - When you do PGI after deactivating the account based COPA, you may face error. Because, COGS GL account is a cost element in Account based COPA, where as in Costing based COPA, it is usually not a Cost Element
      - Also do a billing from an open sales order and see if you get any error there...
    Similar issue can arise during variance settlement also, because the variance account is not a cost ele in Costing Based COPA.
    Test out the above scenarios and do share your experiences
    Regards
    Ajay M

  • Creation of cost element or not for GBB-VAX,GBB-INV and UMB

    Dear Experts,
    I have few doubt regarding creation of cost element. Whether i will create Cost element or not.
    1) GBB-VAX - used in PGI(Vl02n)We have costing based COPA .whether we will create cost element or not.If i will create cost element then need to be bydefault in okb9 with PSG tick.
    2) GBB-INV- Used for Material taging(MI01,MI04,MI07)whether we will create cost element or not.If i will create cost element then what will be my cost object and how i will charge from my product costing.
    3) UMB- is used whenever standard price is changed. Shall i create cost element for the same
    If yes hen what will be my cost object and how i will charge from my product costing.
    Request you to help me on the same.
    regards
    RR

    1) GBB-VAX -  No, Goods Issue for sales order with no assignment object and hence without Cost Element
    2) GBB-INV- Yes to post expenditure/income from inventory differences
    3) UMB- Yes
    Regards
    KS

  • Cost of Spotify Premium for different countries in relation to USD.

    Cost of Spotify Premium for different countries converted to USD.
    Australian dollar $11.99  = $12.5
    Euro 9.99€  = $12.5
    Swiss franc 12.95 = $13.5
    Swedish kronor 99 =  $15
    British pound 9.99 = $15.8
    Danish krone 99 = $16.64
    Norwegian krone 99 = $17
    Price for Spotify premium in the US: $9.99
    I could come up with several different reasons why this is how it is, however I would like someone who actually works at spotify to state the reasons why the price for spotify premium differs so much between countries. And why it would be cheapest in the USA.
    Thank you.
    Tvspotify1

    Yes, but when you're buying a jacket.. or a DVD (a lot of jurisdictions, it's not illegal to have a region free player, only to circumvent copy protection - copy protection and region locking being distinct concepts that often vendors will attempt to intertwine but are distinct as aims).. or a CD, you can import it from that cheaper market - in some cases still cheaper with shipping than if you bought it locally even factoring in local consumption taxes. Sure, it might have some different promotional tracks, or different "extra features", or different language options in the subtitles... but the core content's generally going to be the same.
    Case in point. I have an Android phone. I needed an MHL adaptor. I checked local retailer ... $40AUD
    I checked a retailer online.. $30AUD - shipped..
    It took a week to arrive, but arrive it did.
    With digitally distributed, geo-IP locked content - you lose that ability to shop across markets. To me, it sends the wrong signals to charge one group of people one price, and another group of people another price for the mostly the same content when it's available on the same global network. In essence, you're punishing people who you're trying to ween off the "internet is free" mentality into the world of subscriptions and micropayments.
    Don't get me wrong, I don't hate spotify in and of itself - I've been using it a lot at work of late and a lot of friends, both in Australia and internationally have given it a go. It's totally awesome to be able to hear something on the radio or in a movie or on TV.. tag it with Shazam or Google Music Search.. and then to key it into Spotify and hear it play on demand. It's also totally awesome that there's a linux client available - which although in alpha - works.. stably.. (one reason you'll never find me buying an Apple product is the whole 'thalt shall use iTunes' mantra)... and ok, maybe I'm not your average consumer (running Linux on the desktop, stock Android on my phone with root access, bearded and a system administrator - living stereotype much?).. but I'm interested in doing the right thing, and I know content has to move to pay with advertising revenues falling and content, well, more generally intellectual property, increasingly becoming a new and renewable commodity in a world where consumption of physical resources needs to be curtailed.
    I know the local record companies probably play into the mix.. and that by taking a segmented market approach as opposed to a global market approach, there's probably a certain "flagfall" cost in smaller markets that means a higher cost as the smaller markets won't be able to match the economies of scale that would enable larger markets to charge a lower price per user but still make more by having more room to play with the margins. I guess it just grinds my gears that the price for the same 1s and 0s is higher.
    I guess we'll see what happens if/when spotify considers mobile provider partnerships (especially in countries like Australia where unlimited data often has many asterisks/T&Cs, doesn't exist or costs a lot), and if the AUD should fall against the USD (we're holding above parity for awhile now)... if the price will rise then or hold?
    I'll probably succumb when my advertising supported listening is cut back to 2.5 hours a week if I'm still working in a business that allows employees to stream :) .. I guess it's just being so familiar with what the currency's doing and initially being very interested in mobile streaming - and having heard things on US sites talking about the price - to find out, "no, you actually pay more".. well.. it kinda dulled the shine a bit.
    I hope you find my post (although perhaps a bit long winded) polite. I believe such conversations are always best dealt with in an even tone.. and again FWIW, I do thoroughly enjoy and congratulate you on providing a working linux client... and in an apt repository at that!

Maybe you are looking for