Distribute Planning Function(Using Variables)

Hi All,
I'm trying to distribute KeyFigure value between months.
For example:Between Jan2005 and April2005 i want to distribute values.
4000 gets distributed as below:
Jan2005 - 1000
Feb2005 - 1000
Mar2005 - 1000
Apr2005 - 1000
I want user to select from CalYear/month and To CalYear/month from WebInterface dynamically.
But,Distribute from Sender to Receiver planning function is not allowing me to use two variables From and To.
It is allowing me to use only one Variable.
Could u please suggest me how to use two variables in distribute planning function.
Thanks in advance,
Pat.

Hello Saritha,
A variable in the BPS can contain a single value or/and a range of values. In the definition of the planning function you can specify an interval by entering the from value and the to value or by choosing one variable containing this interval. This is why the system behaves the way you described it.
What can you do? Use a variable of type Exit in the definition of the planning function. Use two additional variables in the web interface so the users can enter a from and a to value. Now in the exit (for the exit variable)you read the two values and return the interval. You can find the necessary coding and a more detailed description of such a scenario in the BPS how to guide "How to... Variables of type Exit".
Best regards,
Gerd Schoeffl
SAPNet Weaver RIG BI

Similar Messages

  • Repost Function using Variable is not working

    Hello experts!  I am on BW-BPS 3.5.  I have set up a repost function using variables to change a characteristic value for Business Unit.
    1. I created 2 variables as Bus.Unit From and Bus.Unit To in the Planning Area. I am not using the variables in my planning level.
    2. I entered the variables in the parameter group New Values area for the From and To Values.
    3. My goal is when the user executes the Repost Function for a Variable Prompt should appear and have the user select the From Business Unit and To Business Unit.
    The Variables are set up as USERVALUE User-Defined Values, Restriction of Values required by user and I have tried with/without option of Input Allowed by User. 
    Can you tell me what I am doing wrong, I expected a variable prompt when executing the Repost Function but it does not work.
    Thank you,
    Teri

    Ravi, Thank you for your reply however I contiue to have errors or the execution does not repost (change any value) as noted below.
    1. I have 2 Variables in Planning area var1 (from) var2 (to) for the same charateristic which is Business Unit
    2. Business Unit is in the level,  on the selection tab to add the variable I can only add 1 variable, So I added var1 (from) to the level. 
    3. Parameter group for old and new values - I have Var1 (from), var2 (to)
    4. Report Function - are you referring to Reporting variables in BPS? I have set this up as suggested in the "How to Use Reporting Variable in BW-BPS" document.
    5. Enter plan data: I receive prompt for VAR1, mandatory. At this point there is no value in Var2.
    6. Execute Repost function - I receive an error to "Restrict Var2"
    7. If I set variable values and add a value for Var2 I receive an error "The generated data is not contained in the selection condition".
    Next I removed VAR1 from my planning level and turned on the option 'Selection in package' for Business Unit. This seems to work well.
    What do you recommend?
    Thank you,
    Teri

  • Explain how to implement prompt functionality using @variable

    Hi all,
    Anyone please explain how to implement prompt functionality using @variable.
    We got some sql reports.Those reports have to be converted into BO free hand sql report.
    Please provide any best practices for converting sql reports into BO free hand SQL.
    Thanks & Regards,
    James Charle

    Hi
    Please refer "@Variable" section  in page number 601, in http://help.sap.com/businessobject/product_guides/boexir31SP3/en/xi31_sp3_designer_en.pdf
    Regards
    Ashwini

  • How to implement this planning function using Fox formula

    Hello,
    I am new to Fox.
    I want to implement this complex logic in a planning function
    i have A (Kf X from infoprovider Z_A), B (Kf Y from infoprovider Z_B) & moreover there is one more condition,
    If current FISCPER > variable value of FISCPER
    KF Z = KF Z1 (from Cube C1)
    Else KF Z = KF Z2 (from Cube C2).
    for a particular calender week,
    X =   ( Y * Z ) / (summation of (Y * Z)  for each week of the whole year)
    I know it is complex.
    but i have to implement this in a planning function.
    The aggreagtion level is built on a multiprovider having A, B , C1 & C2.
    Can someone help me out with the FOX formula for this? or is there any better way to do this.
    Thanks john

    Hi Gerardo,
    Thanks for that.
    I have tried something similiar to it
    DATA CHA_CALWEEK TYPE 0CALWEEK.
    DATA CHA_COMP_CODE TYPE 0COMP_CODE.
    DATA CHA_FISCPER TYPE 0FISCPER.
    DATA VAR_PERIOD  TYPE 0FISCPER.
    DATA SUM_YEAR TYPE F.
    DATA TEMP_D TYPE F.
    DATA SUM_WEEK TYPE F.
    CURRENCY IS LOCAL CURRENCY. FOR DATA SELECTION TO BE RIGHT, NECESSARY TO DERIVE FROM CC.
    DATA UN_LOC_CURRCY TYPE 0LOC_CURRCY.
    UN_LOC_CURRCY = VARV(Z_U_I100).
    CHA_COMP_CODE = VARV(Z_U_I100).
    To Calculate the D
    VAR_PERIOD = VARV(Z_U_I010).
    SUM_YEAR = 0.
    TEMP_D =0.
    IF CHA_FISCPER > VAR_PERIOD.
    TEMP_D = {ZSA_BUD2X,CHA_COMP_CODE,CHA_FISCPER,YBUDG_01X,CHA_CALWEEK}.
    FOREACH CHA_CALWEEK.
    SUM_YEAR = SUM_YEAR + TEMP_D * {ZCREENTSV,CHA_COMP_CODE,CHA_FISCPER,ZIP_RREF1} .
    ENDFOR.
    ELSE.
    TEMP_D = ({ZSAEXCUSV,CHA_COMP_CODE,CHA_FISCPER,YRT_C02X} - {ZCREENTSV,CHA_COMP_CODE,CHA_FISCPER,YRT_C02X}).
    FOREACH CHA_CALWEEK.
    SUM_YEAR = SUM_YEAR + TEMP_D * {ZIP_INDEX,CHA_COMP_CODE,CHA_FISCPER,ZIP_RREF1}) .
    ENDFOR.
    ENDIF.
    But i am getting a syntax error
    Formula error: } expected
      Syntax error in row 21, column 20
    i have marke line21 in bold. above.
    I feel it is correct, still wonder why i am getting this error.
    can you pls help ?

  • Personalisation - 'Launch a Function' using variables as parameters

    I am trying to call a function from another form using Built In 'Lanch a function'.
    In Add parameters, If I provide hardcoded values, its working fine. When I try to pass variables such as :GLOBAL.XX_ITEM_ID or ${item.folder.item_id.value} ,
    it errors out
    When I use GLOBAL variable, the error is 'Type does not match definition in form XXX ' I tried using to_char , to_number but no use.
    When I use item.folder.item_id.value it errors out with 'FROM keyword not found'
    I tried putting them in single quotes, pipes etc.
    Can anybody tell me how to pass variabes while launching a function?
    Thanks a lot.

    I just solved it. Used the following syntax
    'G_QUERY_FIND=PO_LINE_LOCATION_ID
    PO_LINE_LOCATION_ID='||${global.xx_po_line_location_id.value}

  • Invoke a planning function in BI-IP using a button to copy filtered data

    Hi All,
    I am using a planning function type copy to create a new version of data in the infocube.
    In Web Application Designer, I created a button that invoke my planning function using a command type EXEC_PLANNING_FUNCTION. So, I would like to copy the records displayed in my analysis item (that are filtered by some drop down items), but what is happening is that all records in infocube are copied instead of copying the data that is filtered by the drop down items.
    Can you help me with any suggestion?
    Thank you.
    Bruno Rodrigues

    Hi Bruno,
    "How I can use the planning filter to restrict for the values presented in the drop down boxes?"
    You can create the filter which contain the characteristic which you use when created dropdown boxes.
    You can add chararcteristics values in the filter, these values you will see in the dropdown box.
    You can use the dropdown boxes to restrict the filter.
    You can place the dropdown box (boxes) on your BEx workbook, and connect (with macro I think) to the SAP.
    If you choose a value in the dropdown box and run the sequence, the sequence's filter will be restricted that value which you choosed.
    Best regards,
    Gergely Gombos

  • Planning function getting called in ABAP

    dear all,
    I have a requirement to call the reposting planning function from some other ABAP program and then suqsequently take the same data and update one more real time cube.
    I have the repost function well working in IP. Need to embed it into my custom abap code.
    In BPS, there used to be a function module for executing planning function.
    How ab the IP in this case?
    thanks,

    hi bindu,
    Thanks.
    How about the variables? My planning function has variables for manual input. Now these values will be supplied from ABAP code. Is variable variants to be used here?
    Also, how about copying the data into another cube?  Should RSDRI_CUBE_WRITE_PACKAGE be used?
    Regards.

  • Complex Custom Planning function

    Hello,
    I need to implement a complex custom planning function, in which certain calcualtions are to be done. Data is available in the actual cubes and calculation logic is in a table and also it requires several validations to generate plan data. For example, planning fuction is to validate whether the planning cube is already having the requested data or not for the current period, if it has the data then that slice of the data is to be deleted before the calculated data is to be written to planning cube, that means custom planning function should be able to call Delete function as part of the validation. The calculated data is written back to planning cube which is part of Plan/Actual Multiprovider on which planning modelling is defined.
    Could anybody provide step by step approach to implement this kind of custom planning function would be appreciated.
    Looking forward to have nice discussions on this thread.
    Regards,
    Ravi.

    Hi Amie,
    You can create a custom planning function using transaction RSPLF1. A step in creating a custom planning function is to create an ABAP class that implements the interface IF_RSPLFA_SRVTYPE_IMP_EXEC (if your function doesn't need reference data) or IF_RSPLFA_SRVTYPE_IMP_EXEC_REF if your function needs reference data.  You code selections for your reference data in method GET_REF_DATA_SEL and the actual logic of your function in the EXECUTE method.
    Inside the EXECUTE method, the parameter C_T_DATA contains the data currently in your real-time cube that satisfies the Filter selections that you placed in the planning sequence (or web-analysis item data bindings). You can check C_T_DATA for the existence of previously saved data. You can delete/modify/ad entries in C_T_DATA. Any rows in C_T_DATA that you deleted in the EXECUTE method will be zeroed out/deleted from the cube. Any rows in C_T_DATA that you added/changed will be saved as well.
    If you look at transaction RSPLF1, you can see the definitions of the SAP standard planning functions. You can use those definitions as your reference.
    Hope this helps you get started.
    Cheers.

  • Executing Planning Function usind WAD

    Hi Experts,
        I tried to Execute a planning function using WAD.
        Can you please tell me how to see the plan data before actually saving it. As We do in Modeller (RSPLAN).
    Thanks,
    Arshad

    Hi Mayank,
        Thanks for your generous reply.
        I am quite new to BI, so please can you explain in detail how can I display  the trace of the function ( Changed data ) before actually saving it using a query.
    Thanks,
    Arshad

  • IP: Use of input-ready variable in planning function

    Dear all,
    I'm using an input-ready variable for fiscal year (0P_FYEAR) in my input ready query. It's used for restricting my columns.
    I'd like to use the value of this variable in my planning function and I use VARV for that in the FOX.
    However, when implementing the pl.function as a button in the BEx Analyzer I need to fill in the static parameters the VAR_VALUE_1 with a value.
    If I delete this line from the static parameters my plfunction end swith an error.
    I like this value of course to be filled with value of fiscal year entered by the user when starting the query.
    Does anybody know how to solve this?
    Kind regards, Harjan

    Hi Johannes,
    Thanks for all the useful information!
    Another thing on using PF.
    I've got two workbooks with different queries but using <u>same</u> filter.
    Queries differ in keyfigures, but are on same cubes in MultiProvider.
    I can run the workbooks simultaneously: no locks occur.
    I've got two planning functions that make calculations on the keyfigures entered in the workbook.
    However when I inplement the PF's in both workbooks and assign the dataprovider as filter, i do get locks!
    So, the PF also uses the same filter, but doesn't take into account the different keyfigures.
    In the fox-formula i don't have the option to make conditions on keyfigure values (field keyfigname), neither to enter them in the filter.
    Do you have any thoughts on this?
    <u>Second</u> point:
    When i filter on a navigational attribute and execute the pf, i get errors on my pf.
    It states it can't find the value of the characteristic to which the navigational attr belongs. F.i. when i filter on nav attr 'customer group'  (attr of char 'customer') and execute pf, the system gives an error on the value of char 'customer'.
    It states: value of characteristic customer is notincluded in the selection.
    Any thoughts on this one?
    Thanks in advance!
    Kind regards, Harjan

  • Use Formula variable in planning function

    Hello,
    I would like to use a formula variable in a planning function.
    The problem is that when I execute this function all keyfigures values are set to 0 so the FOX is not executed.
    The idea is to have something like
    = VARV(FORMULAVARIABLE).
    How could this be achieved using FOX ?
    Or how using an exit function could I call this FORMULAVARIABLE which is not used in the query ?
    Thanks,
    Matthieu

    Hello Matthieu,
    Please search the forum before posting:
    http://forums.sdn.sap.com/click.jspa?searchID=70350665&messageID=9814615
    Regards,
    Marc
    SAP Techology RIG
    PS: You closed the thread so I have to add some details here. The FOX runtime is hardcoded to 0RSPLS_FORMULA. Therefore, 0RSPLS_FORMULA cannot be copied to a custom planning function type as you suggest.
    Edited by: Marc Bernard on Feb 23, 2011 3:36 PM

  • DS 1.3 changing the value of a variable in a planning function

    Hello,
    i created a planning application with Design Studio 1.3 and one of my planning functions is a revaluation function which uses a variable for the revaluation factor. In Analysis for Office you can set a value for this factor by selecting the planning function and then give a fixed value or set a reference to a cell in your workbook. However in Desing Studio i don't see my variable under my planning function and i also couldn't find a script command to use for this problem because the variable is not known to Design Studio. Right now i can only set a default value for the variable in SAP BW (RSPLAN) but i would like to let the user enter a value at runtime of my application.
    Anyone already had a similar problem and can confirm that it is not possible to access variables used in planning functions or has found a way and can tell me how to achieve this?
    Greetings,
    André

    Hi Andre,
    we are using the revaluation function type, too.
    For setting the variable for the factor you should use the following script:
    <ds_planningsequenceOrFunctionAlias>.setVariableValueExt("<techNameOfTheVariable>", <value>);
    It could be possible, that you cannot see the variable in the value help (strg + space) after inserting the planning sequence or planning function to your Design Studio application.
    Please, enter the technical name of the variable manually, it should work.
    We have no problems. In our application the variable is filled by an input field value.
    Kind regards
    Patrick

  • Use of forecast planning function in Integrated planning

    Hai ,
    Can I Know What is the use forecast planning function in Integrated planning.
    Give me One Example.
    Please tell What i hv to select in aggregation level, Filter, and Planning function for doing forecast.
    Regards
    Kishore.

    Hi,
    Filter is indeed used in IP similar to how planning package was used in BPS. There really is no difference 'conceptually'.
    What you have seen is the different options IP offers compared to BPS regarding planning function execution. You can execute planning function directly or using a planning sequence in an application (although in planning modeler, its only a planning sequence that can be executed, for eg., for testing purpose).
    If you just execute a planning function without specifying any restriction, it will operate on the entire set of planning data. Whether its a planning sequence or planning function, the data it operates on can be restricted by binding the various characteristics (or variables) using various DPs in the application. What kind of dynamic selection are you looking at?
    You can see following links if you have not read them already -
    http://help.sap.com/saphelp_nw70/helpdata/en/43/f0f8dc73b56bede10000000a11466f/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/44/33a31fd463060ce10000000a155369/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/43/f0f92373b56bede10000000a11466f/content.htm
    These are for WAD; you can find similar links for the BI Analyser.

  • SEM BPS - Planning function to distribute total value over months

    Hello,
    We use SEM BPS. In fact we use the integration of SEM BPS in the CRM opportunity component as opportunity planning.
    Now we want to distribute the total value of certain key figures over the months. Either equal distribution or increasing distribution like 1% increase every month. What would be the best way to do that with a planning function?
    We need to take into account that the number of months depends on the start and end date of the transaction (opportunity).
    Best regards,
    Thomas

    Hi Thomas,
    I would probably create a fox formula, do a foreach in selection loop over the months and distribute the values within that formula.
    If you want to use a standard distribution function, you need to create the reference data somewhere before, which could be a bit difficult if the timeframe changes according to user selections.
    regards
    Cornelia

  • 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

Maybe you are looking for

  • Skype Account Credit stolen by Skype...

    Hi, seems like my first posting disappeared... I thought Skype was a respectable and trustworthy company... but Skype seems to disrespect personal ownership of other individuals by just taking their "property" (credits) without giving any kind of not

  • SmartForm Text not printing from SAP printer but prints on LOCL

    I have a smartform that looks great on the screen and if i print locally ( default printer). When i print it on an SAP printer the text is not readable. It looks like barcodes or that the text is stretched about 1 inch high. The data that doesnt prin

  • Scroll bar color of Visual Composer : how to change it ?

    Hello Comunity, I am developing application using Visual Composer within EP7.01 SP6, and I can not manage to find how to change the original blue of Visual Composer application for scroll bar. Does anyone knows where to change this color ? I believe

  • HT4009 How do I get a refund for a recently purchased app that does not meet expectation?

    I purchased an application this weekend and it doesn't do what I was expecting it to do.  How do I return and be reimbursed for that application?

  • Right-Click/Contextual Menu Hang

    Hi, for maybe a week now, Logic Pro 8 has been hanging every time I've right-clicked for about 30 seconds (every single time). I constantly check Console for any error messages, but nothing comes up, and I have no clue as to what the problem might be