Using filter values in planning functions

Hi experts!
Is it possible to somehow pass the values users set in query filters (during query execution) into the planning function and use them there as variables?
Thanks!

Hello,
I think it is possible.
Please follow the steps
1) Create query with only one characteristic ( WHich you want to use in Planing funnction)
2) Create variable with replacement path using above query name.
3) Use above variable in filter.
4) read variable value using varv(Variable name)
Thanks
With regards,
Anand Kumar

Similar Messages

  • How to pass filter values to planning function in Integrated planning

    Dear Experts,
    I have a input ready query where the variables are filled with authorization objects by user. All variables are defined as multiple single values.
    I created a workbook with 3 filter dropdown box - calmonth, company code and version (displayed as text). In the filter drop down box the user selects the company code, version and calmonth for planning. I would like to pass the selected filter values to a planning funciton. How can we pass these selected single filter values to a planning funciton?
    Note: I am able to reference cells for variables that are not in filter (for eg: revaluation function with this document https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0881371-78a1-2910-f0b8-af3e184929be).
    Thanks,
    Gnana

    Hi,
    Your requirement sounds similar to example given by SAP
    [http://help.sap.com/saphelp_nw70/helpdata/en/45/e641e4c61256dee10000000a114a6b/content.htm]
    If you do not want the from value be selected, and its already decided, then gofor restriction of values in filter than to the variable.
    regards,
    ravi.

  • 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

  • How to pass multiple filter values in SAPBEXsetFilterValue function

    I am using SAPBEXsetFilterValue for filtering the query. I want to have multiple filters for same key value for ex. for plant I want the query to be filtered for two plants at the same time using this function please any one could help me out

    Hi,
    Afraid, that is not possible:
    Re: Setting Multiple Filter Values or Filter Range Using SAPBEX API?
    Re: Passing a range to SAPBEX.XLA!SAPBEXSetFilterValue
    Re: SAPBEXsetFilterValue
    Best regards,
    Eugene

  • Variable not  transfer the value to planning function

    Hi,
    I am facing a problem while executing the planning sequence.
    In my workbook I have a button, behind that button one planning sequence is attached ( it copy the quantity from one scenario to other scenario) along with two varaible. Value for variable is pass behind the button.
    Both variable are multiple single value type.
    CMD                                                1         EXECUTE_PLANNING_SEQUENCE (copy)
    PLANNING_SEQUENCE_NAME        1        YNDPP59_A_SQ046
    VAR_NAME_1                                1        YQUXN_YN_SCENAR_007(from scenario)
    VAR_VALUE_EXT_1                        1         F25
    VAR_NAME_2                                1        YQUXO_YN_SCENAR_001(to scenario)
    VAR_VALUE_EXT_2                        1         F50
    Now, I have other buttons in my workbook. They used to  copy from one scenario to other but variable for scenario use is same for all.
    Example Scenario :-
    Button 1:- copy demand to photo demand
    Button 2:- copy confirmed demand to demand
    Before Image
    Basin   Subfamily  Quarter    KF1(Demand)   KF2(Photo Demand)  KF3(Confirmend Demand)
    100           70        20083         100 To                 0 To                       200 To
    First time:
    When I used button 1(copy demand to photo demand) it's works fine.
    Basin   Subfamily  Quarter    KF1(Demand)   KF2(Photo Demand)  KF3(Confirmend Demand)
    100           70        20083         100 To                 100 To                       200 To
    I do the manual changes in Key figure(demand)
    Basin   Subfamily  Quarter    KF1(Demand)   KF2(Photo Demand)  KF3(Confirmend Demand)
    100           70        20083         150 To                 100 To                       200 To
    then use button2 (copy confirmed demand to demand) it works fine
    Basin   Subfamily  Quarter    KF1(Demand)   KF2(Photo Demand)  KF3(Confirmend Demand)
    100           70        20083         200 To                 100 To                       200 To
    Second time:
    When I used button 1(copy demand to photo demand) it's works fine.
    Basin   Subfamily  Quarter    KF1(Demand)   KF2(Photo Demand)  KF3(Confirmend Demand)
    100           70        20083         200 To                 200 To                       200 To
    I do the manual changes in Key figure(demand)
    Basin   Subfamily  Quarter    KF1(Demand)   KF2(Photo Demand)  KF3(Confirmend Demand)
    100           70        20083         150 To                 200 To                       200 To
    then use button2 (copy confirmed demand to demand )it didn't work fine
    Basin   Subfamily  Quarter    KF1(Demand)   KF2(Photo Demand)  KF3(Confirmend Demand)
    100           70        20083         150 To                 150 To                       200 To
    it executed the planning sequence running behind button 1
    So, problem is my variable keep the last values. Please, help me to solve this problem.
    Thanks and regards,
    Deepak Singh

    Hi,
    Your post is little bit confusing ;
    What i understood is that your planning function is not running with proper value of variables ;
    Two things can be the reasons :
    1. the data set that you are running for second time may be improper which can be when the data is not saved in cube
    2. The variable value is wrong ; please check in debug what value of variable it is taking; if for the first time the value of variable is proper than there shouldn't be any error for second time;
    Post your questions in little simpler way that will be easy to understand;
    Thanks
    Pratyush

  • Assignment of filter to planning function in integrated planning

    Dear experts
    I am a bit new in Integrated planning and have a following conceptual question regarding filter object in IP
    In IP it seems that filter is a substitute object for planning package in BSP.
    I however do not see any possibility to assign filter to a planning function except in a planning sequence. I would however imagine to have a functionality to dynamically select the filter when i want to execute a planning function via application (excel based or Web).
    It seems that filter is not even required if a planning function is executed seperately (not as part of planning sequence).
    I have tried to execute a simple copy function without having any filter at all and it works.
    Could someone pls. explain me as to the conceptual difference between object filter and object planning package.

    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.

  • Formula planning function in IP

    Hi,
    I would like to have formula planning function IP.
    The user is able to input percentage of growth, inflation and savings.
    Then the system has to calculate the percentages on previous budget and calculate the current budget.
    How the variant can be bring into picture to give more flexibility.
    Any inputs are highly appreciated.
    Regards,
    Ravi

    Hi Ravi,
    You can model your requirement in the following way.
    1. You can set the filter for the planning function to get the budget from the cube in which the previous budget is stored.
    2. Now based on the Percentage(input) entered by the user, you can calculate the new value of the budget and store it into the planning cube.
    You would have to use the FoX forumula as you might be aware of. The previous budget would be your reference data from the cube where it is stored, and it would come from the filter. The percentages based on which the current budget is calculated can be populated from the input ready query.
    Regards
    Snehith.

  • IP - Fox Code - Planning Function -How to do a mass upload for filters ?

    Hello Guys,
    I have a question regarding executing a planning function.
    I have a planning function with filters
    Profit center
    Sales Order no
    Line Item No
    Fiscal Period/Year
    From Indicator
    To Indicator
    This planning function is ideally used to change few records where the user enter a sales order no and line item no, profit center and all above parameters. It works fine.
    But one user has a requirement where he has to do a mass update. I have to do it in batch or mass update for example about 100 line items
    Sales Order   Line Item
    100                 10
    100                 20
    200                10
    300                30
    300                40
    plus the profit center , from indicator and to indicator.It will be very tedious for the user to enter the values and it can't work . because it will take more time time to execute the planning function for each sales order and line item.
    How to create the filter for above values. I will be getting a excel spreadsheet. I can ask the user to give in the above format like
    sales order, line item, profit center, from indicator, to indicator,Fiscalyear/period.
    Then I have to upload the excel spreadsheet to create the filter values and then execute the planning function.
    We are using the Integrated Planning tool and planning function is in fox code.
    Can you guys throw some pointers how to achieve the above solution.Thanks
    Senthil

    Hello Senthil,
    There is a standard functionality of file upload ,which can be used in your scenario.
    You can give the hyperlink directly to user either in WAD or excel where in that link user can select the varaible values for profit center ,sales order no etc for upload and at the back of this functionality you will be using the file upload planning function to load the data.
    Can check the link below for more details:-
    /people/marc.bernard/blog/2007/11/25/how-to-load-a-file-into-sap-netweaver-bi-integrated-planning-part-2
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/90cef248-29e0-2910-11bb-df8dece7e22c

  • Multiple Planning functions on WAD

    Dear all,
    I have a copy planning function, what i need is to run that copy function and automatically save results after that.
    I can create planning function, but there is no function as 'Save' therefore i can not create a planning sequence for that.
    What else i can do for to copy versions first and then save?
    I am using biip, and wad.
    Thanks

    Hi,
    please note that the following is related to BI-IP:
    A planning sequence needs a filter and a planning function. Both are defined on an aggregation level. It is no problem to create a planning sequence which works on different aggregation levels, meaning the filter 1 and planning function 1 is build on the aggregation level 1 and filter 2 and planning function 2 is build on aggregation level 2.
    The system reads the current keyfigure values according to the underlying aggregation level and used filter values and executes the planning function for the current settings.
    In BI-IP you do not need to save data during planning as long as you stay in the same WebTemplate. The system stores the changed data into the delta buffer, which is part of the planning buffer. When you save the data the content of the delta buffer is saved.
    Please check note 1056259 Collective note: Performance of BI planning
    for further explanation of this.
    Regards Matthias Nutt
    SAP Consulting Switzerland

  • Changing Filter Values from Macro in BW 7.0

    Hello,
    in my Workbook I need to change Filter Values of some queries in runtime.
    The first thing I found was BEx API reference for BW 3.5, but I wasn't able to make these functions work. After all I found this code:
        Dim BEx As Object
        Set BEx = Application.Run("BExAnalyzer.xla!GetBEx")
        Dim dp As Object
        Set dp = BEx.DataProviders.Item(sDP)
        Dim dimension As Object
        Set dimension = dp.Request.Dimensions.Item("0CALDAY")
        Dim filters As Object
        Set filters = dimension.filters
        If Not BEx.ServerStateExists Then
        MsgBox " Please refresh before using this Makro"
        Exit Function
        End If
        Call filters.SetFilterValue(sFilter) 'this sets the filter value
    But using this code I wasn't able to set more than 1 filter value, because the function SetFilterValue removes all previous filters, but now I need to set more than 1 filters.
    I also tried to separate different filter values with comma, but this did not help.
    Also I will be glad if someone could give me a link on documentation about BEx objects in Excel.
    Thanks in advance,
    Pavel Baronov

    Hi.........
    Check this........
    http://www.netsaptech.com/SDN/demo/BIM301.pdf
    Regards,
    Debjani.......

  • Regarding Planning function

    Hello,
    I have a scenario to fill the plan values of some quantity key figure back to the  planning cube after manually changing it in the plan query.
    My plan query displays the data aggregated for 0calmonth.
    Now when i changes the value of this quantity field it should be saved in the cube distributed accoring to the different characteristic values.
    For this i thought of using distribution by key planning function.
    But i could not use this as there are about 5 characteristic in my cube and for every characteristic combination this value of distributed quantity need to be filled.
    How can this be done?
    Regards,
    Pratighya

    Hello,
    could you please elaborate the solution.
    Best Regards,
    Pratighya

  • How to get planning function in customized data slice?

    Hi all,
    we are using a customized data slice which implements IF_RSPLS_DATASLICE. Now we have the requirement that the data slice only protects the data when it calls via query. The data slice will not protect data if a planning function is executed. How can we implement this requirement? Is it possible in the method IF_RSPLS_DS_METHODS ~ IS_PROTECTED to read this information from an instance of the planning function (CL_RSPLS_CR_CONTROLLER?) or the buffer or something else? Or can we find some information about the query?
    At the moment we only check if a planning sequence is called by a process chain. This works fine
    IF sy-batch IS NOT INITIAL.
        e_noinput = rs_c_false.
        EXIT.
      ENDIF.
    Thanks for your help!

    Hi,
    I think this topic was already discussed in this forum.
    By design, it should not matter whether a query or a planning function is not allowed to change records. This is what data slices were designed for.
    OK, you need a different behaviour.
    1. Maybe you can detect from the planning function filter or query filter whether you run function or a query. If this is the case use the method IS_OVERLAPPING of the data slice. There you get the filter as a I_TSX_SELDR or as a range table when you call SELDR_TO_RANGE. When you return r_is_overlapping = rs_c_false. the data slice will not be called.
    2. Another option is to call the factory of the data slice and to use a flag in the data slice that indicates that the data slice is used in the context of a planning function. The factory method is GET_INSTANCE. Set a break point there to find out how the system calls this method. But when to call the factory? Check note 1101726. This note provides infrastructure to change the filter of a planning function at run time. But you can use this exit to call the factory method mentioned above. The nice thing is that you can raise the excpetion EMPTY in the exit, thus the function will not be called. So use a planning sequence with dummy1, your function, dummy2. For dummy1 switch on flag on, raise EMPTY, dummy1 will not be executed (almost no run time is needed), then 'your function' will be called (do nothing in the exit', then function dummy2 will be called, here switch the flag off again.
    Check also the following link where the above technique is used to for the conditional execution of planning functions:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a0785271-1446-2d10-6987-d1e44f08e97c
    Regards,
    Gregor

  • Planning function "Allocation" - enter or upload distribution keys via web

    Hey all
    We want to use the planning function "allocation" and want to find out, if there is a possibility to enter the distribution keys for that planning function either over a web interface or by flat file upload.
    The idea is, that all companies over the world (sender) can maintain their distribution keys (can change every month) themselfs.
    We are actually using "BW-BPS 3.5"!
    Thanks for your help.
    Roger

    Hi Roger,
              It should be possible to do it. I have come across a similar situation although the planning function in question was "Distribution using the posting keys".
    The layout can be web based where the user enters the different posting key percentages for allowable entries to the different allocation units.
    Then once he saves this, and the entries are validated on the front end, you can use an automatic planning function to activate the posting key settings.You will use an user-exit to achieve this.
    The user-exit basically initializes the original set of parameter group for that function using "UPF_PARAM_INIT",
    for the planning function in question which itself can be found by using "UPF_PARAM_INFO_GET"....
    Once you have done this..then you can set your PGroup settings again from the new values.Here you are taking entries from the web/layout..which are stored as some values in another keyfigure(z_dist_factor) etc...and then use the FM "UPF_PARAM_INFO_SET" followed by a "UPF_PARAM_SAVE" to finish and exit out.
    I think if you read thru some of the code in the above mentioned FM ,...you can easily construct what you want to achieve.Good Luck.
    Sudz.

  • Forecast planning functions/sequences

    Hi,
    I want  to ask you for some advice in two issues. We want to create forecast that is based on actual data from Actual data cube and this forecast save to Forecast data cube (both cubes are in multiprovider)
    1) I created sequence , for that I use filter and planning function type forecast. Is it some relationship between historic data filter in forecast planning function setting and "classic" filter (part of planning sequence), It looks that u201Eclassic filter  is stronger than historic data filter, so no data from base cube are readu2026 When i use filter with small restriction some data are read...
    2) When I created forecast planning function, I use historic data filter for specification of base data for forecast (I used Actual data cube and another restrictions) but I can´t find anywhere some target field for restriction, so I dont know to which cube will be data saved and with which restriction...
    Thanks for some advice.
    Regards
    Petr

    Hi David,
    thanks for reply.
    If I understand good forecast planning function create data with same restriction as is used in Historic data filter only with another time horizont, Am I wright?
    So the data will be saved to the same cube where is "based" data - in my case Actual data cube and there no possibility to choose Forecast cube for it. So we will have to than use some copy function to copy data to Forecast cube...
    I found in help.sap.com some example of forecast scenario, it looks that in this scenario also version are changed from Actuals to PLAN_LIN, but maybe it s only my opinion...
    Function Type     Forecast
    Comments     Writes the data for forecast period to version PLAN_LIN. Reference data is read from version ACTUALS.
    Filter     Version = PLAN_LIN, Month = Jan 2007u2013Dec 2007
    Characteristics of Function to be Changed     Month
    Parameters of Function     Past: Jan 2005 u2013 Dec 2006,
         Past filter: Version = ACTUALS,
         Forecast period: Jan 2007 u2013 Dec 2007,
          Forecast parameter: Linear Regression
    Thanks for your comment.
    BR
    Petr

  • Execution of a planning function with the used dimension values in a crosstab

    Hello,
    would like to execute planning functions within Design Studio but I don't really know how I combine this execution with the used dimension values in a crosstab for the .
    Here the requirement:
    3 Planning functions which should use the same filter (all values of all dimensions in the crosstab) and which should run one after another:
    // open data slice
    PF_1.execute();
    // generate combinitions
    PF_2.execute();
    // close data slice
    PF_3.execute();
    Many thanks in advance.
    Kind regards,
    Tobias

    Hi Arun,
    in general it is not possible to nest planning functions. The inner function would update the data in the plan buffer without the outer function knowing about it. Also the inner function might be on a different aggregation level which would make things very tricky.
    Alternatively you can include ABAP logic into a FOX formula:
    http://help.sap.com/saphelp_nw70/helpdata/en/47/94eb78b6394befe10000000a42189d/frameset.htm
    Or just create the complete logic in one ABAP planning function type.
    Regards,
    Marc
    SAP NetWeaver RIG

Maybe you are looking for

  • What is best UI technology to use for custom business package

    Hi, I have a requirement to develop a custom Business Package for Treasury in Finance. With my past experience I am leaning towards Web Dynpro for Java. Client does not have any programming language consideration. Is there any body who has done somet

  • Notebook showing a folder and question mark.

    Suddenly my notebook appears to not work. When I switch it on I just get a picture of a folder with a question mark in it. Any ideas what my problem is and how do I resolve it? Any info greatly appreciated.

  • Branch "On Submit: After Processing" timeout problem.

    I have a page that allows users to upload a csv file. After selecting the file and clicking the 'Load' button, a Procedure is kicked off. When the file is small, there is no problem- the Procedure completes, and my Branch takes the user to the next p

  • Annoying scroll in content window of Bridge CS4

    Hello! I have found a thread pertaining to my problem here: http://forums.adobe.com/thread/464121 But it does not answer my question. I am using Bridge to very rapidly put ratings on a high number of images (500+) each day, and use the content window

  • RSCRM_BAPI - using logical path

    Hi everybody, I use rscrm_bapi in order to export data from bw. Is it possible to use logical path name in this interface? I try to write in the path field a logical path name which was define earlier (tran file), but the system concatenate the logic