SEM-BPS Distribution with Reference Data

All,
Our planning design is such that our plan values are in one cube and our actuals are in another.  We use a mult-planning area to tie the two together.
One of our requirements is distribute planning values from one cost center to other cost centers, but to use the actual data on the receiving cost centers as the base.  I have been able to accomplish this with the allocation function, but we need to retain the sender values.  I have been trying to use the Distribute by Reference Data from Sender to Recipient planning function, but it's not reading the reference data correctly.
Does anybody have some insight into this function?
Thanks
Kory

Hi Mary,
Thanks for the reply.  I had ran it in trace mode and the message was that there was not any reference data; and maybe this is where I'm misunderstanding this planning function.
Here's the scenario:  I have a cost center and a cost element and want to allocate it to another cost center.  The reference characteristic from the actuals cube that I'm using is cost element.  For example, cost center 4720001 and cost element 990039 have $100 in the planning cube.  I want to distribute this amount to cost centers 4720002 and 4720003, but using cost element 990014 as the reference data from the actuals cube.  Cost centers 4720002 and 4720003 have $200 and $500 posted to cost element 990014, respectively.  So I'm expecting 4720002 to receive $28.57 and 4720003 to receive $71.43.  When I run the function, I get a message for the receiving records stating that no reference data exists.  I have created this using the allocation planning function with success, but we also need to retain the sender values and the allocation function does not do this.
Any further insight you have is much apreciated.
Thanks
Kory

Similar Messages

  • BPS - Distribute with Reference data sender 2 reciever functionality

    Hi All,
           I'm looking for some documentation on this planning function(Distribute with reference data / from sender to reciever).When I run this function I have problems finding the Reference data,although I have defined the refernce data correctly and am using the # for the characteristics.
    Is it possible to override a characteristic while executing this function.? for example you are distributing values form region level to line of business level,can you  change the allocation flag(another characterstc) while executing this.?
    Any documents with some Examples and guidelines of setting up Reference data will be very useful.
    Thanking everybody in advance.,
    Sudz.

    Hello Sudz,
    I know this can be tricky. First, you should check if reference data is read at all (use BPS_STAT0 transaction).
    If no, check the configuration of planning package and parameter group. The selection criteria for the reference data are based on the planning package merged with the criteria for reference data defined in the parameter group (if there are criteria for the same characteristic in both places, the parameter group wins).
    If yes, you need to go into more detail. The source data (to be distributed) is matched with the reference data based on all characteristics that are NOT in the fields to be changed. So maybe you have not defined the right fields to be changed (use execute with trace to see the internal packaging/matching).
    You can change several characteristics with the function. However, this will increase the number of target combinations. If you want to turn off a flag, just use a repost function and link them via a sequence.
    Regards,
    Marc
    SAP NetWeaver RIG

  • How SEM BPS works with SAP BW

    Hi,
    How SEM BPS works with SAP BW.
    how to save planned in SAP BW.
    how to work with the data in Basic cubes and Transaction cubes.
    what is the relation between these two cubes.
    Thanks,
    cheta.

    hi,
    chk the link for BPS
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7c85d590-0201-0010-20b5-f9d0aa10c53f
    Can any body send the material for BPS?
    Authorization for BPS
    Ramesh

  • Distribute with Reference Data

    Hi Folks,
    I have trouble getting the distribution function to work. I want to distribute the plan data to a more granular level (from Product Family to Product Platform) using the previous year's actual sales data.
    I have setup a plng. function of type distribute with reference data. I have a multi planning area with plan and actual areas. When I run the function, it says "No reference data exists". When I run it with the trace, it shows me a line with the fiscal year (say 2008, for the next plng  year).. When I click on details button, it brings a screen with no ref. data. I suspect since the Fiscal Year is already selected on the first screen, it could not populate any reference data since the fiscal year can not have two values at the same time.
    In the parameter group, I have the right selection for actual data (previous fiscal year etc.) I'm fairly confident that the selections I made in parameter group for the ref. data should bring some actual values. 
    Any ideas where I might be doing missing? How do the selections in the package may affect the situation? Any help would be appreciated,
    Thanks,

    Do you have the target fiscal year and other characteristics in the level / package. This is a must.
    Ravi Thothadri

  • Can we restrict Key Figures in "Distribute with reference data"?

    Hi,
    I'm using "distribute with reference data" function & I wanted to distribute only 1 Keyfigure & the 2nd keyfigure shouldn't be distributed but remain same for each record.
    So, I restricted function with only 1st keyfigure & when I look at the distributed data, function distributed correctly but 2nd keyfigure was blank.
    Let's say I've following data.
    MATERIAL SGRP QTY PRC
    =====================
    MATERIL1 0000 100 23
    where SGRP is "Sales Group" & QTY is "Quantity" & PRC is "price"
    I am interested in distributing only Quantity but not the price.
    After distribution, this is what I can see...
    MATERIAL SGRP QTY PRC
    =====================
    MATERIL1 SGP1 050 000
    MATERIL1 SGP2 050 000
    MATERIL1 0000 000 23
    But, I'm expecting the following...
    MATERIAL SGRP QTY PRC
    =====================
    MATERIL1 SGP1 050 23
    MATERIL1 SGP2 050 23
    Appreciate any ideas.

    Hi Mary,
    Thank you very much for your reply.
    after the distribution funciton, let's say, i've following data.
    MATERIAL SGRP QTY PRC
    =====================
    MATERIL1 SGP1 050 000
    MATERIL1 SGP2 050 000
    MATERIL1 0000 000 23
    I created 1 more distribution by keys funciton & included this in a planning sequence along with 1st distribution function.
    But, it's not helping my needs. I tried with all 3 functions, "Distribute by Key", "Distribute according to keys" & "Distribute by keys from sender to reciever".
    As Sales Group is different after the 1st distribution funciton, qunatity records are not falling in the same set of data as price records for the 2nd "distribution by keys" funciton.
    if i don't include Sales Group in "fields to be changed" of the above 3 "distribution by key" functions,
    function is taking 2 sets of data with set1 contains 1st 2 records(records with quantity & "with SGRP1 & SGRP2") & set2 contains 3rd record (record with price & with SGRP 0000).
    As they are not falling within same set of data, above 3 functions are not working for me.
    If i include Sales Group in the "fields to be changed", I'll have to specify a value which incase is dynamic & varies for each material.
    hope am clear & appreciate if you have any other ideas.

  • KE28 with" Copy Characteristic Value with Reference Data" doesn't work

    Hi experts:
    We need to make a top-down setting the processing option 'Copy Characteristic Value with Reference Data'. We have the following source data:
    Customer Business Unit  Value field.
    6        #              100
    On the other hand, we have plan data as reference data:
    Customer Business Unit  Value field.
           A              40
           C              40
           D              20
    We need to run a top-down to distribute from client to Business Unit but copying client of reference data. Then, we set 'Copy Characteristic Value with Reference Data' and, in the selection criteria we set '*' for customer.
    After running, the result is that the system can find 1 sender and 3 receivers. It is exactly what we are expecting. However, program doesn't make individual items and anything is distributed.
    We have found notes 1086282 and 1273924 but the result is the same after implementing these notes.
    Thanks in advance for your help.
    Best regards
    Jose

    There are some restrictions on the XML Schema format that you can report off of in Crystal Reports.
    If you're using the ODBC XML driver, you may find this of relevance:
    [http://resources.businessobjects.com/support/communitycs/TechnicalPapers/cr_xml_data_sources.pdf|http://resources.businessobjects.com/support/communitycs/TechnicalPapers/cr_xml_data_sources.pdf]
    and if you're using the native XML driver, the following gives a guide for the accepted formats:
    [http://resources.businessobjects.com/support/communitycs/TechnicalPapers/cr_xi_native_xml_driver.pdf|http://resources.businessobjects.com/support/communitycs/TechnicalPapers/cr_xi_native_xml_driver.pdf]
    Sincerely,
    Ted Ueda

  • Distribute with Reference Data Functu00BAon Parameters

    Dear Consultatns,
    I'm trying to use distribute with Reference Data function.
    But I couldn't use it.
    I have problems about patameters.
    I need a detailed documentation about this function.
    Best Regards

    Hi Mehmet,
    Have you taken a look at the link below
    http://help.sap.com/saphelp_sem40bw/helpdata/EN/09/078a69016311d393850000e8a597a0/frameset.htm
    Hope it helps.

  • Help to fill BPS Cube with same data in a Cube with these conditions

    Hi,
    I need some help in implementing BPS in a small project. (Integrated Planning is not available).
    An existing cube, Cube1 has: Year/month, Year, char1, char2, keyfig1, keyfig2
    Keyfig1 is filled directly from R3 with actuals; keyfig2 (planned values) is  filled manually filled with a monthly flat file load.
    Now, there is a change in direction to fill keyfig2 through BPS features and bring in additional key figures all based on keyfig1.
    Cube2 has been created only for the purpose of this BPS project. Cube2 was a copy of Cube1(with no data). For Cube1, I have created a Planningarea1 and PlanningLevel1; and for Cube2, Planningarea2 and PlanningLevel2 in BPS0.
    How do I fill the BPS Cube2 with the same data as in BPS Cube1 with the following conditions:
    keyfig1 : same as source value from R3 (not modifiable)
    keyfig2 : modifiable by users only on the first and second of the month.
    keyfig3 : keyfig1 * 1.1
    keyfig4 : keyfig1 of previous Year/month 
    keyfig5 : same as source value from R3 (But modifiable)
    keyfig6 : same as keyfig5 as of last day of 20th of the current month (not modifiable)
    The goal is to create a multi planning area to join the two cubes. Hints all that will also be appreciated.
    Thanks

    Your thought of having a multi area is right.
    Create a multi area and being the basic areas to which you have assigned cube 1 and cube 2 underneath the multi area.
    UNder your planing package, create a function of type Formula and create a parameter set like this:
    = * 1.1.
    Just this one line will is enough.
    TO get keyfig 4 as previous month's key fig; you need another fox. To do this, you need to have a BPS variable to et previous month and use this variable in the parameter set.
    Your fox will be like this.
    DATA CURRMONTN TYPE 0CALMONTH.
    DATA PREMONTH TYPE 0CALMONTH.
    {KEYFIG4, CURRMONTH} = {KEYFIG1, PREMONTH}.
    To make users modify only on days 1 and 2, you need to define a dara slice.
    Ravi Thothadri

  • Error while executing planning function with reference data

    Hi,
    I have a two planning functions one is used to upload the file (with out reference data checkbox in planning function RSPLF1) and other planning function ('Referece data'check box is selected in custom planning function RSPLF1) to execute the logic of creating new record along with the flat file data.
    Following data is uplooaded
    Company code | Profit_ctr | calmonth | Amount
    1000                 | 50000      | 01.2011  | 150
    Cube data
    Field1    |  Company code | Profit_ctr | calmonth | Amount
             |  1000                 | 50000      | 01.2011  | 150
    Z1         |  1000                 | 50000      | 01.2011  | 150
    Now I want to change the value from 150 to 200 and when I try to execute with the following data, it is giving dump 'a row with the same key already exists'.
    Company code | Profit_ctr | calmonth | Amount
    1000             | 50000          | 01.2011  | 200
    Ideally in the second execution it should append the new row with Amount value 50 to cube which is the delta value.
    I debugged the issue and found that I_TH_REF_DATA has following data and C_TH_DATA also contains the same records.
    Field1     Company code | Profit_ctr | calmonth | Amount
    #     1000                 | 50000      | 01.2011  | 150
    Z1     1000                 | 50000      | 01.2011  | -150
    Z1     1000                 | 50000      | 01.2011  | 150
    Due to this, record which already exists in C_TH_DATA and trying to append new record with the same combination is failing.
    C_TH_DATA should only contain the source data of Amount 200, but not sure why reference data is coming in C_TH_DATA.
    Could anyone please guide me on how the reference data is getting populated in C_TH_DATA ?
    Thanks in advance
    Edited by: peppy on Aug 3, 2011 5:00 PM
    Edited by: peppy on Aug 3, 2011 8:37 PM

    Hi Peppy,
    C_TH_DATA is hashed table!  According to your post you are trying to append to C_TH_DATA and this results in a dump. Please take a look at the standard planning function to see how SAP is programming the planning functions. E.g. in CL_RSPLFC_REPOST method IF_RSPLFA_SRVTYPE_IMP_EXEC~EXECUTE you can find the following code:
      CREATE DATA l_r_data_wa LIKE LINE OF c_th_data.
      ASSIGN l_r_data_wa->* TO <s_data_wa>.
      CREATE DATA l_r_new_wa LIKE LINE OF c_th_data.
      ASSIGN l_r_new_wa->* TO <s_new_wa>.
    LOOP AT c_th_data INTO <s_data_wa>.
    <s_new_wa> = <s_data_wa>.
    now the SAP code changes the  values, you can do it your way here
    and than write the changes back
            MODIFY TABLE c_th_data FROM <s_data_wa>.
    ENDLOOP:
    Another option is to use the READ statement to check if the record is already in the table. If not, you can use MODIFY otherwise you use INSERT. So you get something like this:
    READ C_TH_DATA from <s_data_wa> transporting no fields.
    if not sy-subrc EQ 0.
      INSERT <s_data_wa> into table C_TH_DATA.
    else.
      MODIFY TABLE c_th_data FROM <s_data_wa>.
    endif.
    Depending on your requirements you can also use the collect  statement.
    If c_th_data shows the reference data as well, you may need to adjust the filter to restrict it to the correct values.
    Hope this helps.
    Best regards
    Matthias Nutt
    SAP Consulting Switzerland

  • Update SEM/BPS buffer   --- update Master data

    Hi all,
    in a planning layout I had the need to modify the master data (attributes of a IO). Therefore I use a planning function type exit and call sm30 to modify the p and x table.
    After returning to the planning layout still the old attributes of the InfoObjekt are shown.
    Is there a function to modify the data in the buffer or to force the BPS to reload the data from BW?
    If you are in a Layout and change/load the master data in BW you have the same problem. You have to exit the transaction (upspm) before the changes of the Master data take effect in BPS.
    Thanks for your help!

    Hello Pierre,
    If you are using the web the you could call the function module API_SEMBPS_REFRESH to refresh the buffer. Before that I would save the data (using API_SEMBPS_POST) to make sure the data is not lost.
    You cannot use this refresh when in the GUI as the refresh destroys the BPS buffer etc on the server and the GUI does not automatically restart the necessary buffer instance etc.
    Best regards,
    Gerd Schoeffl
    SAPNetWeaver RIG BI EMEA

  • SEM-BPS Variable with exit function

    Hi,
    this is my problem. I use a variable for period and I increment the variable dinamically in a sequence of execution. When I try to read the variable with a exit function, the function is only called the first time and return ok the value, but the next time the function not called and the value is returned from the buffer (I think this, because always is the same value).
    How can I change this? I need to my function return the variable value, because is changed.
    Thanks.

    Hi,
    thanks for replys.
    I think the problem occurs after update the patch level to level 15. This is the code of class_constructor in class cl_sem_variable:
    method CLASS_CONSTRUCTOR.
    data ls_dark type upc_dark2.
    select single * from upc_dark2 into ls_dark
       where param = c_param_dark_buffer.
    if sy-subrc = 0 and ls_dark-value = 'X'.
        m_buffer = 'X'.
    endif.
    endmethod.
    The flag m_buffer is always X and for that reason my the value of the variable is read from the buffer and the exit function for read variable isn't called.
    What do yo think about this?
    Thanks.

  • Distribute new entries against existing reference data, Integrated Planning

    Dear Experts,
    Within IP, I struggle with how to distribute new entries against existing reference data.
    Example:
    Reference data:
    Product   /   Customer   /   amount
    P1               C1                  100
    P1               C2                  150
    P2               C2                  120
    P2               C3                  100
    New data:(data entered on product level, therefore not assigd to customer yet)
    P3          #                    150
    How can I distribute product P3 to Customers with reference to the data on product P1 ?
    Many thanks,
    Erik Pos
    Edited by: Erik Pos on Jan 5, 2010 3:52 PM
    Edited by: Erik Pos on Jan 5, 2010 3:54 PM

    Hi Hyma,
    This documentation indeed indicates that you can use other characteristic values in the parameter group to be used for reference, good news !, but this is based on SAP-BPS ?
    The SAP-BW IP documentationn does not include this information can you confirm this solution works for Integrated Planning using the conditions within the function distribute with reference data ?
    Many thanks,
    Erik Pos

  • Re:budgeting and actuals in sem/bps

    Hai,
    Good morning.
                              Can anyone please tell me the difference between budgeting and actual information in sem/bps.
    prasad

    Hi,
    The key data that you enter in the planning area is only for time dependent characteristics and attributes. For the hierarchies in the characteristic relationships the current data is used.
    If you still want to use a time dependent hierarchy for modeling the characteristic relationships you could use a characteristic relationship type exit. In the exit you can read the hierarchy with the proper date.
    Best regards,
    Gerd Schoeffl
    SAPNetWeaver RIG BI EMEA

  • SEM-BPS code

    Dear Friends,
    Req: Varaible gets current or entered month value and the value of variable will be summed up till 012th month. It should not go > 12.  Eg: Assum the entered value = 007 and the calculation goes 008, 009, 010, 011 & 012.
    In order to fullfill the customer req. Iwe need to apply the below logic.  We have done this code in SEM-BPS planning function.
    DATA PER TYPE 0FISCPER3.
    DATA FPER TYPE 0FISCPER3.
    PER = VARV (YFROMPER).
    DO.
    FPER = PER + 001.
    if PER > 001 AND PER <= 12.
    YDPT_PRKG, PER} = {YDPT_PRKG, FPER}.
    Else.
    Exit.
    Endif.
    ENDDO.
    But, this above code is not work as expected and it's executing infinite...Please look into the code and correct me if any syntex or logic issue.
    Thanks in Advance for kind support.
    Best Regards,
    KS

    Hey KS,
    I'm assuming you've solved this already but if not . . .
    Looking at the code below, you see to only hit the ELSE condition and hence exit if PER is not between 1 - 12.  Yet you only increment FPER so PER never changes and this loop will run forever.
    Might also want to increment the total:
    {YDPT_PRKG, PER} = {YDPT_PRKG, PER} + {YDPT_PRKG, FPER}.
    Hope this helps.
    Regards,
    Dan

  • Extracting current balance at previous reference date

    Hello everyone,
    I have an analyses for extracting current balance (in local currency) for some products at current day (i.e today 19 July 2013). In this interogation, I added a new dimension custom in edit formula like: TIMESTAMPADD(SQL_TSI_DAY, -1, "Dim Time"."Reference Date"). Very well, returns me the date from yesterday-18 July 2013. For a dimension measures (current balance lcy) I edited it like: FILTER("Balances"."Total Balance Lcy" USING ((TIMESTAMPADD(SQL_TSI_DAY, -1, "Dim Time"."Reference Date")))) and it didn't work.
    Overall, into the report with reference date today, I want as result the current balance for yesterday.
    Could you help me with my issue.
    Thanks!

    Advantage ? No !!! Just to get correct result..
    { =ToDate(RelativeDate(CurrentDate();-DayNumberOfMonth(CurrentDate()));"MM/dd/yy") }
    returns wrong date because, we need to deduct total days of that month from last day of that month to get a last date of previous month. So we should use
    {=ToDate(RelativeDate(LastDayOfMonth(CurrentDate());-DayNumberOfMonth(LastDayOfMonth(CurrentDate())));"MM/dd/yy") }
    Year!!!
    whats the logic behind this
    =If DayName(Year-1)<" Then FormatDate(RelativeDate(Year-1;-7);"yyyyww") Else FormatDate(Year-1;"yyyyww")
    If you follow following formulas, it gives correct result
    Year1
    =RelativeDate(CurrentDate();-DayNumberOfYear(CurrentDate()))
    Last Saturday (Year1)
    =If DayName(Year1) = "Friday" Then RelativeDate(Year1;-6) ElseIf DayName(Year1) = "Thursday" Then RelativeDate(Year1;-5) ElseIf DayName(Year1) = "Wednesday" Then RelativeDate(Year1;-4) ElseIf DayName(Year1) = "Tuesday" Then RelativeDate(Year1;-3) ElseIf DayName(Year1) = "Monday" Then RelativeDate(Year1;-2) ElseIf DayName(Year1) = "Sunday" Then RelativeDate(Year1;-2) Else RelativeDate(Year1;0)
    Repeat above for last 9 year.
    Quarter !!! I am thinkin on this
    --Kuldeep
    Edited by: Kuldeep Chitrakar on Sep 7, 2009 3:41 PM

Maybe you are looking for

  • Program for string comparision in ABAP

    Hi, I require a program in abap for string comparision

  • Why for did my attempt to restore 3.0 actually upgrade to 3.1.2?

    Ok.. so.. with all the earlier discussions of issues with various versions, I did the 3.1 upgrade a while ago, and man.. what a difference in battery life. Everything else worked great, no hiccups in any operation.. well.. wait.. I did notice that my

  • Class path for MAC

    Hi All, I am trying to set the classpath in a MAC OS and not able to get through. Can anyone tell me how to do it or at least any links to proper documentation? Also I have few class files and it is working fine in Windows OS. Do I have to recompile

  • Help me with my download. it said to me that download time out

    i want to install the new flash player 11 but when i tried to download it it said to me that the download timeout. i removed the old flash player from controll panel but it still said to me the same thing. what can i do to download it?

  • Quicktime Player 10 dropped AVI support

    Does Apple plan to restore the lost AVI support? Fortunately I kept Quicktime Player 7.6.6 which continues to handle Windows-generated AVI files fine.