Doing an Allocation

Hello experts!
I need to do an allocation and I don't know how.
I have one dimension (CUSTOMER) with one parent and four childs that these childs has values when I choose one KPI of another dimension. I need sum of these values and then each value divided for total of four.
Exemple:
I choose DIM.KPI=Quantity and I can see next values in DIM_CUSTOMER:
DIM_CUSTOMER.Child1: 55
DIM_CUSTOMER.Child2: 15
DIM_CUSTOMER.Child3: 20
DIM_CUSTOMER.Child4: 5
TOTAL----
> 95
I need to do sum of this childs and divided for total and put in KPI=result_alloc
So with this allocation I should to see when I choose KPI=result_alloc:
DIM_CUSTOMER.Child1: 57
DIM_CUSTOMER.Child2: 15
DIM_CUSTOMER.Child3: 21
DIM_CUSTOMER.Child4: 5
TOTAL----
> 100
*RUNALLOCATION
     *FACTOR=USING
     *DIM CUSTOMER                WHAT=S_CLIENT;                    WHERE=[Child]="Y";         USING=<<<
                      *DIM KPI                      WHAT=quantity;              WHERE=result_alloc;     USING=quantity
*ENDALLOCATION
*COMMIT
This allocation doesn't work. Anybody has an idea???
Thanks!!!

I try this run allocation but all quantity doesn't sum 100 else 92... I don't know how.
*RUNALLOCATION
            *FACTOR=USING
            *DIM CUSTOMER            WHAT=parent;                      WHERE=BAS(parent);        USING=<<<; TOTAL=<<<
            *DIM INDICATORS         WHAT=quantity;              WHERE=result_alloc;     USING=quantity; TOTAL=<<<
*ENDALLOCATION
Original values are:
Child1: 54
Child2 :12
Child3: 20
Child4: 10
It shows with this run allocation:
Child1: 51,84
Child2 :11,52
Child3: 19,20
Child4: 9,6
And the correct result should be:
Child1: 56
Child2 :13
Child3: 21
Child4: 10
Any idea???
Thanks!!!

Similar Messages

  • How does memory allocation work?

    Hello,
    Looking at the following code:
    do {
    long myResponse = SomeObject.SomeMethod();
    } while (myResponse == 0)
    Since myResponse is declared inside the loop, it may be declared multiple times. What does this mean for memory? Is there a leak here, or is java smart enough to know what's going on? Does its being a primitive mean anything? In other words, would this behave any differently?:
    do {
    String myResponse = SomeObject.SomeMethod();
    } while (myResponse.equals(""))
    Thanks.

    Hello,
    Looking at the following code:
    do {
    long myResponse = SomeObject.SomeMethod();
    } while (myResponse == 0)
    Since myResponse is declared inside the loop, it may
    be declared multiple times. What does this mean for
    memory? Is there a leak here, or is java smart enough
    to know what's going on? Does its being a primitive
    mean anything? Being a primitive definitely means something. There is no chance that memory can be leaked here because there is no memory.
    The gc only collects objects. It never collects primitives. Primitives don't use memory - not in terms of needing collection.
    In the particular example you have the long is actually allocated on the stack of the method. And that gets reused when the method exits. Or even further down in the same method depending on the actual code.
    In other words, would this behave any
    differently?:
    do {
    String myResponse = SomeObject.SomeMethod();
    } while (myResponse.equals(""))
    Not necessarily. Once again you don't have an object here. You do have a reference.
    So look at this code
       class SomeObject
            static String SomeObject.SomeMethod()
                 return "test";
    .For the above code nothing will ever be collected (excuding the use of class loaders.) Literal strings are not collected.
    Now look at this code
      String myResponse;
      do {
         myResponse = new String("test");
      } while (myResponse.equals(""))
    .In the above there are one new object created. Each time through the loop a new object is created. This means that the previous object is now available for collection.

  • AFS ARUN goods receipt future allocation

    I'm not able to test a future allocation all the way through for our current setup.
    I allocated an order to future PO and Create an inbound delivery for PO.  At this point /afs/md04 is allocated (R) to stock type 'L'.  When I do the Goods receipt against the Inbound delivery, /afs/md04 remains the same.  I was expecting that the order would be allocated to Batch stock. 
    When I do a good receipt using MIGO against a PO, then it does work correctly - it changes the allocation from PO to batch stock.  When I do a goods receipt using MIGO against an Inbound Delivery or execute Goods receipt using VL32N, it does not - We use VL32N to Goods Receipt.
    Even after doing subsequent allocation against the order requirement using the stanard allocation, I get the message 'no open schedule lines found'.

    Hello Carol,
    might be too late, but is it possible that your stock is (was) stuck in quality inspection?
    KR,
    Peter

  • AFS ARun: sales order not been selected for the allocation run.

    Hi,
    I am setting up the Purchase-to-Order (similar to Indiv PO item sales order) Process for SAP AFS.
    When doing the Allocation Run (trx J3AT) after Goods receipt of Sales order stock, I get an error that ARun terminated because no requirements were selected. The delivery check report (/AFS/LIEF_CHECK) indicates that the sales order has not been selected for the allocation run.
    For this process, I have set-up an Allocation type with
    1.     Requirement selection that does not exclude MTO/PTO orders
    2.     Set-up stock selection which includes physical stock type for MTO/PTO orders to the customer special stock MSKA with the segment KALAB.
    Can someone suggest what I may have missed?
    Regards,
    PD

    Hi Pankaj, I have same exact issue. How did you fix this ?
    Thanks,
    Mahesh

  • Variable Costs using SKF in Indirect Activity Allocation

    Hello
    I am trying to use indirect activity allocations and KSPI to transfer costs from an activity in an indirect cost center to multiple direct cost centers. The Receiver tracing factor is planned SKF (i.e. number of employees). The issue I have is that when doing this allocation, the variable cost at the indirect cost center gets transferred as a fixed cost to the direct cost centers. We need to have this as a variable cost on the direct cost centers. Can anyone suggest anything or let me know if I'm doing something wrong?
    Here are my sender/receivers:
    Sender:
    Quantities Calculated Inversely
    Plan Values
    Receiver tracing factor:
    variable Portions
    Planned SKF
    No Scaling
    Thank you

    Hi Mark
    I was able to achieve this in the past...as below
    1. On the indirect Cost center - Use an activity type Catg 2 (indirect entry indirect allocation)
    2. On the receiver cost centers - Use an act type Catg 4 (Instead of SKF)
    3. Enter the Plan Act Qty for this Act Type on the receiver direct cost centers in KP26 and Actual Qty in KB51N
    4. In cycle definition - Var Portion Type would be based on Plan Act Qty instead of SKF
    5. Execute KSCB - Folllowed by KSPI.....
    You can also try the above using SKF on receiver cost centers - But Act Type Catg 2 on the Sender Indirect cost center.... I guess, this is what you have done... In my opinion, this should also work...
    I believe, to transfer the costs as variable - You need to plan them in KP06 as variable (i.e. Activity Dependant Planning)....
    So, Plan your expenses on the indirect cost center in KP06 with reference to the Act Type Category 2
    br, Ajay M

  • Cost Allocation

    I need to allocate the enablers cost across the operation as the allocated cost.
    the cost is not getting allocated across the operations. Please help me in this regard.
    i have written the script as follows :
    FIX("GL")
    FIX("Local")
    FIX("FY09")
    FIX("Final")
    FIX("NO_SERV")
    FIX("Plan")
    FIX("NO EMP")
    FIX((@LEVMBRS("OPS_Mgt", 0)) AND (@ATTRIBUTE("Cost Centers")) AND ( @MATCH(Entities,"C_?_ALLOC") OR @MATCH(Entities,"C_??_ALLOC") OR @MATCH(Entities,"C_???_ALLOC") OR @MATCH(Entities,"C_????_ALLOC") ) )
    "ST_ODC" (
    IF ((@ISLEV("Time Periods", 0)) AND (@ISMBR("HSP_InputValue")))
    "ST_ODC"=@ALLOCATE ( "TOTOPEXP"->"ServiceLines"->"TOT_EMPLOYEES"->"Enablers_Mgt",( @LEVMBRS("OPS_Mgt", 0) AND @ATTRIBUTE("Cost Centers") ) , "Plan", , share);
    ENDIF
    ENDFIX
    ENDFIX
    ENDFIX
    ENDFIX
    ENDFIX
    ENDFIX
    ENDFIX
    ENDFIX
    Thanks,
    Mugundhan
    [email protected]

    Hi Mugundhan
    I would guess that this is a create block issue. This is common in Essbase when completing allocation type logic.
    This can be solved through any/some of the following techniques:
    1. Use createnonmissingblock calculation functions - see techref guide
    2. Switch on create blocks on equations in db settings
    3. Put sparse dim member on left hand side of the equation
    4. Use a datacopy to create blocks prior to doing the allocation.
    Have a look at this and see if it solves yoru issue. One way to check quickly is to lock and send a value to a known intersection and then see if allocated value overwrites correctly. This woudl indicate create blocks issue.
    Hope this helps
    Andy King
    www.analitica.co.uk

  • Cost centers to be blocked during allocation run

    Dear All,
    Can some one clarify me whether i have to block Cost centers (for users) while doing the Allocation run.
    Thanks and Regards,
    Gokul

    hello
    actually your question is not very much clear and necessity for the lock or block the cost centers.
    Actually when you are creating cost center master, you can lock the secondary cost postings from the other costcenters while doing the distibution or assessement, if not done at the time of creation cost center master, you can lock the secondary cost postings at any time.
    regards
    madhav

  • Allocation cycle error

    Dear all,
    I am getting the following error while doing the allocation cycle run.
    "Record KOUOFIDFINOC-RCS4RKIUOO imported as a sender is used as a sender in several segments"
    I understand that this error is coming up because of the cost center being used in more than one segment and the sender being credited by more than 100%.
    but what is the record in the above error?"KOUOFIDFINOC-RCS4RKIUOO"  .
    Thanks
    srikanth

    Hi Enrico
    You are not using the functionality in the way it is intended
    Distribution cycle is meant to distribute costs from one cost center to another cost center... What you are trying to do is distribute costs between 2 act types of same cost center... Thats not the purpose of Distr Cycle
    In your case, you should plan as per your end result.. Calculate these values in excel and upload
    Cost Center 100001
    Cost Element 101  - Activity SET UP - Fix Cost XXX and Var Cost YYYY (Usually Var cost does not apply to Set up time)
    Cost Element 102 - Activity MACH HRS - Fix Cost XXX and Var Cost YYY
    Regards
    Ajay M

  • Property Based Allocation

    Hi all,
    I have a question about allocation. For example there is a property FLAG in product dimension and I have the members in this dimension. Some of them have a "X" and rest have a "Y" in property FLAG. In input schedule i want to enter data in property based(How can i do this?).  And i want do the allocation to all of  the members of these properties.
    For example,
    ID------FLAG(property)
    A----
    X
    B----
    X
    C----
    Y
    D----
    Y
    So, when i enter 50 to X, A and B will be 25.
    and When i enter 60 to y, C and D will be 30.
    Any Idea?
    Thanks in advance.

    Hi,
    You cannot enter value 50 into X, because there is no X member in your dimension. You can maintain X and Y as members and set the flag to TA (representing to be allocated). Then enter the values in X and Y.
    After this, you need to run a script logic for doing the allocation.
    1. First you need to fetch all the members with flag as TA. These are the members, which needs to be allocated. Store them in some variable.
    2. For each member in the above variable, fetch the members whose flag is same as the above variable. This gives you the destination, where the value should be allocated.
    3. Use the allocation function.
    Hope this helps.

  • Component allocation of material components in routing

    Dear Sap Gurus,
    I am having a finished product in which it contains rawmaterials for making but it in my routing i am having operations of 10, 20,30,40,50,60 ( 10-shearing, 20-bending, 30-welding, 40-grinding, 50-bending, 60-grinding )
    but in my routing doing compoent allocation i am using materials from bom which contains components of 10,20,30 for routing operation of 10 and the output of 10 is the input of 20 routing operation so how can i give component allocation  in routing whether i should give for routing operation of 10 the bom components so that it can take for routing operation of 20,30,40,50.
    whether my procedure is correct or any body can help me how to proceed the above problem.
    regards,
    muralidhar.t

    Murlidhar,
    First of all tell me one thing, are you going to identify the inprocess material with a separate material or not?
    If you are going to do it, then your query can be answered.
    If component ABC is allocated to operation no. 0010, it gets changed to PQR, then you need to first create the code for PQR. Then do GR as a byproduct with movement type 531 & again do the GI with movement type 261 against that order itself.
    It's a quite tedious process & normally no one goes for this.
    It's better you deal to the initial component & the final product only. If you opt out for in process material codification then in future where there are several stages of the process, you find it difficult & next to impossible.
    Go for that if it is having major impact on the process (normally it never be).
    Hope this helps you.
    SmanS
    Edited by: SAP PP Consultant on Mar 30, 2009 12:59 PM

  • ATP check partial Quantity allocation to Sales Orders

    Hi,
    Our client has three different sales order types for processing sales differently for the same materials.
    While doing ATP check they have a order of priority i.e ZOR1 -> ZOR2 -> ZOR3 with ZOR1 highest priority.
    For sales order type ZOR2 currently they donot have partial quantity allocation to sales orders.i.e if two orders, Order 1 created with 100 Qty and other Order 2 with 50 Qty and if ATP is 50 Qty.
    System is allocating material to Order 2 which has order quantity 50 ( Which equals ATP Qty )
    Now the client requirement is to configure system such that it does partial allocation to Order 1 ( order qty 100, where as ATP Qty is 50 ) i.e system should allocate even partial quantity to sales orders, that too in FIFO ( system should allocate ATP qty to order created first then next and so on )
    Please let me know what changes i need to do to achieve the above functionality in SAP system.
    Thanks
    Venkata Rama Reddy.K

    Dear Venkat,
    Please check the customer master for the customer which you have maintained in the 1st order. If the customer allows partial delivery, them the system will allocate the stock to the order which is created at first.
    At the time of ATP check(In Availability Screen), you do need to choose, One-time or System proposal, which will allocate the stocks partially to the 1st order as you don't have enough stock.
    Check out the settings in the customer master (for the customer in the 1st sale order) under Shipping Tab.
    Partial delivery per item  D/A/B
    Max. partial deliveries    >0
    (And more thing, you mentioned that sales document type is having priority. As of I know - there won't be any setting which will set particular sales document type with high priority. If you are really doing that kind of setting - update the same in this forum - it may help others..)
    Hope it may help you.
    (Venkat: Has your issue solved? Kindly update in the forum - if your question is answered)
    Thanks,
    Venkatesh.S.P.

  • Benefit of pre allocating String buffer size

    Hi,
    I have come across the following code when redesigning someones application (simplified!):
    public class myClass{
        private int approxLength = 1000;
        private void myMethod(){
            // Allocate the buffers with the right length, so they
            // are not reallocated all the time
            StringBuffer s = new StringBuffer(approxLength);
            while(do lots of times){
                s.append(someStuff);
            approxLength = s.length();
    }Now my point is, does pre-allocating the StringBuffer size really give much benefit? What is the default size when a SB is allocated using the no-arg constructor? Will it slow the app much if I create the Buffer without a default size?
    I think the code is messy and less readable with this "approxLength" idea, and would like to get rid of it if it wont cause any performance issues

    JN + DrClap,
    After reading what I wrote I can see where my babble may have been difficult to decipher. I was thinking faster than I could type. And you were right, a StringBuffer does conserve on memory reads and writes... For each String concatenation there is n + 2 memory segments allocated (unless resultant segment is rewritten... Don't know!). This reason alone is probably why the StringBuffer was created, with the exception of ease of use. But as the StringBuffer's size increases the probability of maximum utilization lessens for a randomized number of bytes being appended (Within the confines of the java language's capabilities and constraints). Its like a numbers game... Guessing a truly randomized number 1 through 10 has a much higher probability than guessing a number 1 through 1000000. So as the size of the StringBuffer increases efficiency decreases for a random byte length append. Which ultimately leads to wasted memory utilization.
    JP

  • Buffer allocation on a 3750

    Hi guys,
    A question that pertains to the 3750 : regarding unused interfaces or even shutdown interfaces is there any buffer allocated / reserved for such interfaces ?
    If I recall correctly, independently from the queue-set settings, each queue of an interface will be reserved at least 16 buffers. However if the interface is not used (not even configured) or if the interface is actually shut down, does such allocation still hold ? Or will the said buffers be returned to the common buffer pool ?
    Thanks for any input.

    I've wondered the same, but I haven't found any documentation to says one way or the other.

  • -Alloc [[]Init] vs.  New

    I'm not sure I'm getting this correctly, but is there a difference between a initializing a receiver with alloc/Init vs. using +(id)new 
    Where does the class name argument fit into the +(id)new method?
    In either case, once a new instance is returned, does that mean that during runtime the instance of the object will be where the command pointer goes next? And then that instance continues to be available during run until deallocated?
    What if you want to have more than one instance of the class available during runtime? Is it better just to initialize one, use it, destroy it, and initialize another, etc, in rapid succession, or better to initialize a quantity of instances, if needed during runtime (if possible)?

    There shouldn't be any difference. "[MyClass new]" and "[[MyClass alloc] new]" should be interchangeable. The last time I really tried, I got complaints from either the static analysis and/or leak checker tools when I used "new". I haven't done this test for a long time. I have noticed that in Apple's recent sample code, they are starting to use "new". I hadn't noticed that before. I need to check on this because I think "new" is cleaner and I would prefer to use it if the tools don't complain.
    For the record, only autoreleased values get cleaned up. When you do either "alloc, init" or "new", you must release. One alternative is to use a default autorelased initializer. Instead of doing "[[NSMutableArray alloc] init]" and then releasing, you can just do "[NSMutableArray array]". There are similar autoreleased initializers for other classes.

  • R12 Allocation of Locators

    We have a business case where within a Resevable Subinventory in a Inventory Organization (Non WMS enabled), there are certain locators from which we don't want to allocate material for Sales Orders.
    Eg SUB1-1000-A to SUB1-1000-D we can allocate material from
    SUB1-1000-E to SUB1-1000-H we don't want to allocate material from
    Is there a way we can control so that no material gets allocated from SUB1-1000-E to SUB1-1000-H
    Thanks
    Amit

    Options:
    1.Locator is a Key Flexfield. Enforce security rules on that responsibility to exclude access to that locator (if you are doing manual allocation).
    2. Enforce locator control at item level: Enforce locator control at item level but exlude these E and H locators from the list of accessible locators.
    3. Use Material Status: Setup--Transactions -->Material status. Set up a status that does not allow reservations and assign that status to these locators. Since they are not reservable, they will be excluded.
    Thanks
    Nagamohan

Maybe you are looking for

  • Bluetooth connection issue with car stereo

    Hi, I have a N8-00, with the current belle software on it. With my car Bluetooth it will connect and function properly when I first add the device (N8) to the car Bluetooth, but if I turn the ignition off and then back on again it won't pair, if I tr

  • Loop won't increment to next line

    My assignment is to do a simple encryption (A-->F,G-->L, etc.) My program will do the encryption, but will only read one line of the text document. How do I get it to read all the lines? Assigned text doc.: A long time ago there was a young boy who w

  • Adobe Reader 9.0 takes over most Exe. programs

    Help!  I am using Vista (can't change this). When I upgrade to Adobe 9.0, the links for most all Exe. programs are replaced by link to Adobe.  I note that others have referenced this problem for months. I can't believe I or anyone else is supposed to

  • Interaction Between Blackboard Academic Suite & .DOC Files

    Hey all. My college uses the BlackBoard Academic Suite to post messages, homeworks, and other miscellaneous items. Usually, files posted are in the Windows Microsoft Office format of ".doc". However, when Safari downloads those files, it seemingly ad

  • Same class in different package

    I am facing a design decision, I have a set of classes which defined the values of all variables. However, I realized that I need to prepare separate set of these classes for different countries (as they may vary), i.e my.package.us      PriceList.ja