Variables in planning

Hi All,
Q1) The variables that are created in query designer or the filter variables created in planning modeler can be accessed in fox functions? If yes, how ?  I have a requirement where I have to read the cost center variable values and make the changes accordingly in the fox functions i.e pass the cost center variable values to the fox planning function. My fox planning function will update the 0amount key figure for the cost center variable value. for eg: if I use variable "VARCOCNTR" , can I use this variable in fox function like below
               DATA COSTCNTR TYPE 0COSTCENTER.
               COSTCNTR = VARC("VARCOCNTR").
  Let me know which variables can be accessed in fox and exit planning functions.
Q2) Need to know the scenarios when and how we use variables for planning functions and planning sequences
Q3) Can somebody send me the How-to guide for creating custom function modules(exits) in IP for any scenario with full code so that I can practice it.

Hi Jacky,
For your Q1) , the answer is yes. all the single type variable can be retrieved in IP Formula, single,multi-single, user exit, authorization, realize that the value of variable is not a range.
  Hope this help.
B.R
Gerald

Similar Messages

  • Customer exit variable in Planning filter - IP

    Hi,
    I am new to business planning. I am trying to use a customer exit variable in filter, while performing check system generates message "RFC failue error". the logic is written to get the current year. But I am not able to use this variable?  Can you please answer me this question... Can I use Customer exit variables in planning modeler filters or planning functions ?

    Hi there,
    Yes you can, and it is used very often in both.
    Probably your variable is wrongly defined.
    What you can do is create a query over that aggregation level, and insert the planning filter in there. Put some key figure on the query and put a breakpoint on your variable customer exit code. Execute the query and debug the variable code to check the error.
    Hope this helps,
    Regards,
    Diogo.

  • Variable 4MKTHI01 (Planning area 4CRM0001) is not available

    Hi All,
    I have activated planning profiles and level from 000 client.
    Now, when I try to open the planning level it says "Variable 4MKTHI01 (Planning area 4CRM0001) is not available"
    Please reply, how to activate this variable 4MKTHI01 under the planning level 4MP70000 of planning area 4CRM001
    Thanks
    Santosh

    Hi,
    take a look into note 886388 and 1083129.
    kind regards Michael

  • How to set timing of migration of Substitution Variables to Planning

    Hi,
    After we update Substitution Variable, we noticed it takes a 5 mins before it flows to Planning
    I read somewhere that there is a way to set timing (5 mins) of migration of Substitution Variables to Planning. Anyone knows where that is?

    Hi,
    You need to set a property, details are all here :- http://download.oracle.com/docs/cd/E12825_01/epm.111/hp_admin/ch06s03s12.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • 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

  • Regading Variable in Planning function in integrated Planning

    Hello All,
    I have a requirement where i have to run a planning function to copy the data of one key figures to other.
    But i need a input screen before execution of this planning function where i could insert the characteristics values for which i do not need this Planning Function to be Executed.
    Please let me know how to do this.
    I think this can be done using input ready variables.But i m not sure.
    Regards,
    Pratighya

    Hi All,
    With regards to the above issue, I have similar question and appreciate any inouts.
    Used a Planning function - type FORMULA
    Function needs an Input parameter to execute.
    So I want to create a Planning IP variable and assign it to the function call in my formula.
    From the Front end WAD/BEX - want to exceute the planning function by passing inpur value.
    Regards
    Rao

  • Variable in planning area

    Hi,
      How to give a variable for eg: target currency in the multiple planning area. This variable should be filled by fixed value USD. Based on this calculations are done and the output should be amount in usd.
    As variables types are characteristic values, hiererchy, numetic values and attributes. how to get this. I don't have any characteristic to be assigned to the variable in the infocube. The variable should be like static with fixed value USD.
    How to achieve this?

    Hi Ravi,
      There are no values for 0currency in my cube. So i can't use this infoobject. My requirement is to convert the amount into currency USD.
    If there is no variable for this not a problem. But i have to use fox or exit function to read data for the user enter variables version, cycle and get the amount converted into USD.
    Any help will be appreciated.

  • Variable in Planning KM

    Hi
    I am trying to pass a variable in the Planning KM for Log files and Error files.
    This is what I have done..
    Created a variable in the Project FILEPATH which has alphanumeric value C:\ODI_META
    In Planning KM at the place of log file path I gave #FILEPATH\Accounthier.log (even trying
    I am getting error message saying can not fing the file path #FILEPATH\Accounthier.log
    Can't we pass parameters there?
    I tried different syntax like '#FILEPATH'\Accounthier.log , #PROJECT01.FILEPATH\Accounthier.log
    -app

    Hi,
    You will need to declare/set the variable in a package and then call the interface, create a package drag the variable, then drag the interface, link them up and you should be good to go.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • 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

  • Copy Input Ready Query Variables into Planning Sequence

    Hi all,
           We have the following scenario. We developed a model using Web Template. The model has an input ready query and a Panning sequence associated with it. Both of them using the same Planning Filter that has a input variable for Profit Center (say ZPCTR). If I run this model in Portal the planning sequence automatically takes the variable given for the input ready query and the sequence runs without any problem.
           We were asked to implement the same model in BEx as the users felt more comfortable using Excel when working on this model. When we assinged the planning sequence to a button and after we run the input ready query and then click on the button to run the planning sequence, we get an error message saying "You have to enter values before you execute". The Planning sequence is not taking the values we enter for the input ready query automatically.
          I read through the forums on the same issue and saw that most of them reported about the same but could not find a conclusive answer. I tried the following options.
    1) Enter the expected values in the excel in one location and gave the address in the "Command Range" of the planning sequence. Still it does not work.
    2) Tried SAP suggested method as given in http://help.sap.com/saphelp_nw70/helpdata/en/45/e301089d574a88e10000000a155369/frameset.htm It also does not work
    3) Couple of them suggested to use a different variable for Profit Center in the filter of Planning sequence (say ZPCTR_EXIT) and populate this variable. I wrote an exit for this variable and populated a fixed value say '100' into it. The sequence runs as expected. But I do not want use a constant, I want to store the value entered in ZPCTR into ZPCTR_EXIT.
       when I use the regular logic "LOOP AT i_t_var_range INTO var_inpiut WHERE vnam = 'ZPCTR' ", it does not work. the exit variable works if I store some constant values, not variable values.
        Can you please suggest how can I work with this. Is there any table from which I can read the profit center value the users enters into the Exit variable.
    Thanks for your time,
    Ram.

    This error generally comes when we use some user input variable in the sequence which is not restricted in the query. Even though you are using the same filter for both planning sequence and query, check the planning functions inside the sequence which might read an user input variable which is not available in the query so that it is not appearing in the query selection screen. Like in FOX reading a variable using VARV or a variable restricted in the field for condition of planning function etc. Make sure that all the variables used in the sequence (planning functions) are kept in query restrictions if they are of type ready for user input so that they will appear in the selection screen.

  • Select more value of variable in planning folder

    hi gurus,
    I'm using planning folder.
    In planning folder there is a variable that contain many value, for example 0COSTCENTER that contain 10 singles values. (from 1 to 10)
    User wants to select some values contained in variable.
    For example 2 and 5, even if it is authorized on all the cost center contained in variable.
    In this moment it selects one to the time.
    how I can make to resolve this problem?
    Thanks
    Davide

    Davide,
    sorry to say that, that'z the way BPS works.
    it's one of the BPSlimitation & many people are asking for an answer from SAP.
    as a workaround, you can do following things.
    1. user can select variable range, for example 2 to 5.
    2. create a variable with properties "user specific values" & fill in required cost centers for each user & don't check the flag "input allowed by user".
    in the 2nd option, you can assingn multiple single values to USER1.
    if u assign, cost center 2 & 5 to USER1, USER1 gets ability to plan on both 2 & 5 without even selectiing cost centers.
    3. you can even look into authorization variables & user-exit variables if they meet your requirements.
    hope it helps.

  • Transfer line selection from crosstab to variable in planning sequence

    Dear all,
    We do have a small planning application with one table and one planning sequence.
    To run the sequence, we want one line in the table to be selected and hand over the values of the selected month and year to the variables used in the sequence.
    we tried the command:
    PS_1.setVariableValue("MyVar", CROSSTAB_1, getSelectedmember("PCRMBERJR"));
    but we get the error message
    Cannot convert from "Member" to "VariableValue"
    The info object PCRMBERJR is referencing to 0CALYEAR and is not compounded.
    The Design Studio release is 1.4 SP1
    The BW release is 7.3 SP8
    Do you have any ideas about this error and how to hand over the row selection to a variable?
    thanks
    Cornelia

    hi Cornelia,
    in your script you reference
    CROSSTAB_1, getSelectedmember("PCRMBERJR"))
    for the value you want to pass.
    however this is a object with several properties.
    you still have to state the kind of value, internal key or external key, text, compounded etc.
    I think if you choose internalkey, you should be ok.
    best regards,
    Jeroen

  • Shared use of BPS variables across planning areas?

    Hello,
    Is it possible to use 1 var for 2 planning areas? I understand it is area-specific but would like to find out if this is possible so that I can minimize the number of variables to use.
    Thanking you in advance.
    Regards,
    Adette Rosenthal

    Hi Adette,
    With regard to the document that Rael is referring, I think the section that refers to the requirement below may be helpful to you.
    <i>Global variables: From a logical point of view you have the same variables in several planning areas e.g. the actual year. Now you would like to define one ‘leading’ area containing the variable that should automatically set/adjust the corresponding variables in the other planning areas.</i>
    Check the link below.
    https://websmp205.sap-ag.de/~sapdownload/011000358700000413772003E/How_to_variables_exit.pdf
    Hope it helps.
    Cheers
    Anurag

  • Refresh variable in planning folder

    Hello all,
    I've created two variables: the first (value selection variable) is selected by user and the second (user exit variable) is dependent by the first one. When the selection is done the planning layout depending theese variables must refresh automatically.
    In the bps0 transaction refresh works correctly, but in the planning folder it is necessary to close and re-open the layout. Is there a way to refresh automatically variables in the planning folder too as in BPS0?
    Regards
    Riccardo

    Hi ..
    What filip said its correct, only its the oposite thing.
    l_buffer_call has to be set to ' ', so it refreshes all the variables when one is changed.
    I think the solution to your problemas must be to use the variable Z_GET_VARIABLE_DETAIL as explained in said "How to.. variable of type exit" paper.
    Cheers.
    null

  • Kp06 variable cost planning

    i want to maintained cost element wise variable cost not activity price.
    in kp06 we can plan only fixed cost, variable cost field is display status.
    pl advise

    Hi,
    When you want to maintain variable costs in KP06 it means you would like to maintain activity dependent costs.
    You always need the respective activity type with respect to which activity you would be incurring the expenses.
    Kind Regards
    Umapathi G

Maybe you are looking for

  • I cannot show the transport dock at the base of the garageband window

    The transporter dock that containes the record, stop and forward/reverse buttons is hidden in the main garageband window. I have tried downloading a later version of the software but it is exactly the same. This has to be an easy fix but I can't find

  • Networked user accounts, mail passwords not saving or notes?

    Hi there, I have a mac mini set up as a server with latest software. On it i have 20 networked users which use between them for different mac mini's. Problem which i have come across and i haven't found a solution yet. When i created them emails on t

  • How do i know if i'm eligible to change my iphone 3

    I want to kow if I'm eligible to change my iphone 3 to an iphone 4. im not really sure if i eligible because i got the phone 3 months ago and it was a gift from my aunt. can someone please help me out .

  • Migration FR and WA from One Server to Another Server

    Hello, I have two servers (one development, one production). Now I have all the FRs and WA reports created and tested with user security and preferences setup property on the test server, I would like to migrate all the reports together with the user

  • 3G crashed trying to install iOS4 - now will not restore

    I finally succumbed to the pop-ups telling me to install iOS4. It crashed during the "restoring iphone software" stage. I now do not have any operating system on my phone. I have tried restoring but it will not proceed further than 13% of the progres