Distribute data by reference data

Hi,
requirment as follow:
1actual sale data cube (reference data)
0plant 0article year/week acturalsalesdata
D001     00010     2007/01     100.00
D002     00010     2007/01     200.00
D001     00010     2007/02     150.00
D002     00010     2007/02     250.00
2planned sales data cube  (data to be changed)
0article year/week acturalsalesdata
00010  2007/03     400.00
I want to distribute the planned sales data in 2007/03 to each plant.
In the distribution function I choose the field 'year/week' as 'fields for reference'
then in the parameter group I can specify which week to be the reference week.
But in the parameter group  I can only choose single value (2007/01  or 2007/02),
How could I use both of these week as reference data?
for example :
0plant   0article year/week                    acturalsalesdata
D001   00010   2007/01 and 2007/02    100.00 + 150.00
D002   00010   2007/01 and 2007/02     200.00 + 250.00

Hello
Yes, distribution reference data needs to be restricted to a single value.
Two ways I have done this before:
1. Use a planning sequence where the first step is to copy your 2 weeks of reference data into a spare version and combine into a single period. Then use this as reference data for the dustribution function. A third step can be added if needed to delete the copied data in the spare version.
2. You can generally get to the same thing using  FOX formula but can get complex. Whether the planning sequence or formula approach ends up being more efficient in execution time depends on the data, complexity of function etc...
Chris

Similar Messages

  • Controlled Lookup Data (aka Reference Data)

    Controlled Lookup Data is when data is tightly coupled to the application. If the data is not there, you have problems. So how do we check to see if data is still there?
    The simplest way is to add a procValidate (Stored Procedure) to check
    that all the lookup data is still there.
    Have a nice day! :)

    Hi Deepankar,
    I'm sorry to correct you, but MDMGX does not send IDocs to MDM. MDMGX provides the customizing data in XML format. You can configure MDMGX either to send the XMLs directly to MDM's port folders via FTP or to download those files locally on your PC. MDMGX is only capable to extract customizing data for master data objects but not the object itsself.
    The output of MDM_CLNT_EXTR depends on the system it is running in. R/3 (ERP) systems use IDocs for message distribution via the systems ALE layer. These can be DEMDM, CREMDM, MATMAS, and so on if you use the standard SAP content, or any other customer defined IDoc type. These IDocs have usually an XML format, but they are not really XML documents. The transformation from IDoc to XML usually happens on XI.
    It' a bit different if you extract data from CRM or SRM systems. Those systems use an integrated Proxy implementation for message distribution. The messages sent to XI (or MDM) are already real XMLs.
    Additionally pleas enote that MDM_CLNT_EXTR is intended to be used for the extraction of Master Data Objects and not the related customizing data!
    BR Michael

  • Technical completion of Maintenance Order Dates or Reference Dates Settting

    Hi,
    My client has two requirements
    1- In standard, system allows us to take technical completion on previous date, how should I restrict / stop this completion in past? Could I set technical completion possible after atleast 1 month?
    2- Can I stop technical completion before goods movement or set error message while technical completion before goods movements?
    Regards,
    Edited by: PROCESSES EXPERT on Aug 31, 2010 11:01 AM

    For both of the above requirement you can use the user exit IWO10004 Maintenance order: Customer check for order completion
    You have develop a logic on what basis you have to reject the TECO of the order, please consult your ABAPer and discuss with him for more clarification on this.
    Praveen

  • 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

  • Definition of Reference Data in complex Fox Formulas

    Hello IP Experts / Gurus / Developers,
    As far as I know there is no real concept behind the determination of Reference Data in Integrated Planning, when you do run functions from a sequence and not directly on a Dataprovider (where you have the possiblity to define editable and not editable structure elements).
    The reference data is generated at runtime of the FOX Code. Using Complex FOX Code with a nested loop, the reference data in the planning buffer (seen in Planning Modeller) isnt really the data that it should be. Some read statements (in loops, but also outside the loops) are not recognized and obviously do not lead to the definition of Reference Data. This is not a specific problem of my function or architecture. It doesnt occur, when I reduce the complexity of the FOX Code to a few rows.
    The question that I have is: Is there any possibility to define reference data in a fox statement or before running it?
    Function modules, hidden statements etc. ?
    Maybe a trick with running a loop like the one below (doesnt work, it also leads to immense performance issues)
    FOREACH YEAR, CCODE IN SELECTION.
       VALUE = {0amount, YEAR, CCODE).
       EXIT.
    ENDFOR.
    Thanks in advance for sharing your experience.
    Michael

A: Definition of Reference Data in complex Fox Formulas

Hi Michael,
   I don't think I understand from your post what is the issue that you are trying to solve; but it would not be correct to say that there is 'no real concept' behind determination of reference data.
Reference data is the data a planning function needs to read, which is outside the selection of the filter under which the function is currently running. So for the same function, reference data can change when running under different filters. Reference data can only be read, not modified - I am sure that is already clear. And also, the selection corresponding to reference data is not locked by planning.
Whenever you put any selection (inside the curly braces - {}) on the right hand side of the equal sign (talking about Fox), and if this selection is not contained in the filter, this data will be read as reference data. Also, statement like FOREACH in REFDATA will read reference data. Regarding the amount of data that is read (and hence the performance impact), it depends on factors like master data (for eg, in the Foreach statement in your code, it must be slow becuase of the huge master data that CCODE might be having), and number of records in cube, that are being read. You cannot really "define" reference data using code - it will be determined at run-time.
Hope this helps.

Hi Michael,
   I don't think I understand from your post what is the issue that you are trying to solve; but it would not be correct to say that there is 'no real concept' behind determination of reference data.
Reference data is the data a planning function needs to read, which is outside the selection of the filter under which the function is currently running. So for the same function, reference data can change when running under different filters. Reference data can only be read, not modified - I am sure that is already clear. And also, the selection corresponding to reference data is not locked by planning.
Whenever you put any selection (inside the curly braces - {}) on the right hand side of the equal sign (talking about Fox), and if this selection is not contained in the filter, this data will be read as reference data. Also, statement like FOREACH in REFDATA will read reference data. Regarding the amount of data that is read (and hence the performance impact), it depends on factors like master data (for eg, in the Foreach statement in your code, it must be slow becuase of the huge master data that CCODE might be having), and number of records in cube, that are being read. You cannot really "define" reference data using code - it will be determined at run-time.
Hope this helps.

  • Distribute by Reference Data from Sender to Recipient planning function?

    Hi all;
    I’m trying to use the planning function “Distribute by Reference Data from Sender to Recipient” to distribute the reference data by material to plan data.
    This is:
    Reference Data:
    Version: 001
    0vtype: 010
    Material: M1; M2; M3
    Sub-brand: SB1;
    Price Group: PG1;
    Customer: C1;
    Area Manager: AM1;
    Exercise/Period: 001.2008; 002.2008; 003.2008
    Quantity: 100; 200; 300 -> 600
    Plan Data 1:
    Version: 002
    0vtype: 02
    Material: #
    Sub-brand: SB1;
    Price Group: #
    Customer: C1;
    Area Manager: AM1
    Exercise/Period: #
    Quantity: 1000
    I want to distribute the 1000 according with the material reference data. The plan doesn’t consider the Price Group and Exercise/Period.
    Goal:
    Plan Data 2:
    Version: 002
    0vtype: 02
    Material: M1; M2; M3
    Sub-brand: SB1;
    Price Group: #
    Customer: C1;
    Area Manager: AM1
    Exercise/Period: #
    Quantity: 167; 333; 500
    M1 = 100 / 600 * 1000
    In the planning function I had use:
    Fields for change:
    Material: 0 - ZZ
    Fields for conditions:
    0vtype: 020
    Exercise: 2008
    Key figure: quantity
    Version: 002
    Old material: #
    Reference characteristics:
    0vtype: 010
    Exercise: 2008
    Material: (I didn’t fill because it doesn’t allow all the material items)
    Key figure: quantity
    Version: 001
    When I execute the function a message appears:
    “No reference data”
    Can anyone help me?
    Regards;
    Ricardo

    Hi,
    price group is missing in your reference data
    D

  • 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

  • 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

  • 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

  • Distribute by reference data

    Hello all
    I try to execute the "Distribute by reference data" function, in integrated planning. When i run the function, i get the errors "Variables contain invalid values" & "Moved value is not within the allowed value range". I use variables to filter the data that i want to distribute. I enter correct variables values while executing the function.
    What can be the problem?
    Best
    Yuval

    Hi Yuval ,
    What fieldname did you filter by variable ??
    Have you checked in planning area whether the variable contains some value/not ?
    Regards,
    Niel.

  • 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.

  • 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.

  • 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

  • No reference Data exist

    Hi,
    When i execute the planning function of type distribute with reference data I get a message that No referenec Data exist.
    Could some one help me out.
    Thanks,
    Subha

    Hi,
    In bps0, execute the planning function with trace and see the details of one record for which no reference data exists is coming. This will show the values of all characteristics for which it is trying to search a record in the cube. If there is no such record exists, then this message will come.
    Bindu

  • 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

  • Maybe you are looking for

    • Building variables with variables

      Hi All Here's a quick run down of what I'm trying to do to better understand the issue I have. I'm building the body of a response email for after a successful transaction. I've created two functions like so: <cffunction name="createFormVar" access="

    • How can I TRANSFER material from the FREE version over to the PLUS version...?

      Ladies and Gentlemen, I started a project on your Adobe Story Free version, and recently acquired Story PLUS. How can I TRANSFER what I started on the FREE version over to the PLUS version...? Thank-you, David

    • Why is Photo Booth delayed?

      why when i record my videos using photo booth i watch it and its delayed the people in the video and the sound is not sync together

    • Bridge CS6 & network locations in Favourites

      Hi everyone, I use Bridge CS6 at home on my desktop 'production' computer, but I keep most of my files on an external hard-drive connected to my laptop (because of portability reasons etc.). I just found out that when I add the network path to that e

    • Runnable Class doubles memory need of application

      Hi I use a class called DisplayTimer to throw an event every second. This class is Runnable and runs as an own thread. Then I have OrientedText2D Object in a java3d environment that listen to these events and update their caption (countdown time) eve