Order of variables in a Planning sequence.

Hi,
We have a problem now where we are unable to control the sequence (the order) of which our variables are presented when executing a planning sequence in I.P.
An example (ok, it's a bit long...):
We have created a Planning function of type Distribution by Key. We are distributing Amount FROM Period '#' TO 12 months (period 1- 12).
For each of these 12 periods we have a Variable for each month where the user can enter a value to represent the % (or share) of the Amount of '#' to be distributed to that month.
In our Planning Function we have then put in the respective periods (1-12) in to "distribute to"-field, in the correct order (January, february, march, april, may...etc).
Finally, we have put this Function in a Planning sequence, and added it to a button in our Web template.
When pressing this button to execute the planning sequence, the variables come out in a different order to what we expect, and what we have said in the planning function.
First, three variables from our Filter (which is as expected, and Ok),
Then the 12 months, in an incorrect order (January, March, February...).
So for some reason, Feb and March exchange places.
So, the question: What is it that decides the order of how variables are presented when a planning function is executed?
We have tried creating new variables, changing the technical names etc, but we can not see any logic to how the variable sequence is presented.
Cheers.

Hi,
Instead of giving 12variables to enter % share, you can give input layout wherein user enter the share% for all the periods, store this in one keyfigure. Use this figure as reference for distribution function.
You can try this if this seems ok to you.
Bindu

Similar Messages

  • Using a variable for STS Planning Sequence

    Hi guys,
    I would like to execute planning sequence when users approves data for Profit Center in STS. The filter used in the planning sequence have a variable for Profit Center. This is not working.
    Whats the altenative of using a variable Instead of creating planning sequence for every profit center? Pls assist

    The planning sequence runs when the user approves on STS. The planning sequence runs for all profit center (this is a variable in the filter). I want to execute planning sequence for the profit center level selected on STS.

  • BEx Analyzer: Use Of Variable Values For Planning Sequence

    Hi experts,
    I want to start a planning sequence using a button item in a BEx Analyzer workbook. The planning sequence itself is defined with several variables, that are input ready. The same variables are used in BEx Queries that are bound to DataProviders in the workbook. Therefore the variables are filled by the user, if the workbook has been started. If the user wants to start the planning sequence, that is defined on the button item, the same variable values (which the user has already set in the beginning) should be used. But I didn't find a way to fill planning sequence variable from variables (like it is possible in the web interface using the DataBinding function). It seems, that it is only possible to set the variable with static values, that are defined in the button item. Am I erring in this point?
    Anyone here who can help me regarding this issue?

    Eitan Ohayon wrote:
    Why did you raise this question?,did you face any problem?
    Hi Eitan,
    The problem was, that the planning sequence worked fine in web but not in analyzer. The system told me in web, that several records had been read, created, changed and deleted. System messages in BEx Analyzer always indicated zero reads, creations, reads and deletions.
    Using your idea to set breakpoint in the INIT_EXECUTION method gave me the information, that all variables are not set or set with initial values (like '0000' for fiscal year). This seems to be the reason for my problem. Now I've reduced the planning sequence definition on the button only to that variables, that are really needed. Furthermore I defined the Command Range to get dynamic values for the variables from the excel sheet grid. So it seems to work.
    Thank you for your help!

  • I_STEP=2 in Planning sequence and user exit variable

    Hello!
    I need some issue, help plz.
    I have planning sequence with currency translation type fuction.
    In this function Exch. rate type calculated from user-exit variable VAR_1 (for example).
    This VAR_1 calculate from VAR_2 (ready for input) variable on I_STEP = 2.
    In pure report all fine, i fill VAR_2 in variable screen and VAR_1 fill in exit.
    But! In planning sequence (run from Excel) in I_STEP = 2 structure i_t_var_range is empty and my VAR_1 cannt be calculated.
    I try any command and parameters in Bex - no result.
    How can i calculate VAR_1? Or what i must do in order to get i_t_var_range on I_STEP 2 with VAR_1.
    Thanks.
    Anton.
    BW SP 17(DEV) AND 19(QAS)

    Hello Matthias!
    I try all kind of binding, using command VAR_NAME and VAR_VALUE, without command etc.
    But it seems like my user-exit variable start in different context and do not see other variable.
    My planning sequence start working only when i insert condition for planning function and set VAR_2 here. After that VAR_1 calculate normally ( i_t_var_range on I_STEP 2 contain VAR_2). But i think all should be working without condition...i dont need condition.
    Any idea?
    Anton.

  • Using Planning Sequence in a Process Chain With input variants

    Hi,
    I have a COPY planning function which has multiple FROM and TO options like (From:Fiscal Year To Fiscal Year, From Version TO Version). In the layout they select the options for which they want to COPY and execute the function.
    How can I replicate the same approach in a process chain with the varaints, how can i create the FROM and TO variables in the process chain.
    Thanks
    Rashmi.

    Hi.
    You can save variable variant for planning sequence in modeler and then use it in process chain.
    In process chain you choose "Execute planning sequence" and add planning sequence with variant.
    All this if you using IP instead BPS.
    Regards.

  • Currency Translation in Planning sequence with variable for target currency

    Hello ,
    i have a requirement, the cube contains multiple data in the Group Currency for multiple company codes. & I want to convert these amounts to another KF as local currency using planning sequence only (not using transformation, as the users want to do this when they require.)
    For this, i defined a Aggr level , filter & Planning function with Currency translation selecting the source field as AMOUNT_GC & target field as AMOUNT_LC using the Currency Translation type ZCTGCLC.
    The target currency is not know beforehand, as it depends on the company code of each records that comes in.
    Hence, Currency translation type uses  a Customer exit variable 'Z_R_0026' for target currency.
    This is customer exit variable which searches the Master data table of the Company code & replies back with the local currency of that particular company code (derived value from the company code variable also in teh filter).
    However, when i execute this planning sequence, it gives me an error saying, "no value found for variable 'Z_R_0026'
    1. when edit the CMOD code, to return only say "EUR" the planning sequence runs fine.However when i use this select statement to fetch the corresponding value of the currency using the company code reference from the company code master data table, it gives the above error. it seems to be a problem with the select statement.
    below is the code for that exit
    when 'Z_R_0026'.
         data: l_curr type /BI0/OICURRENCY.
         IF i_step = 2.
           LOOP AT i_t_var_range INTO loc_var_range
                              WHERE vnam = 'Z_S_0003'. " Company Code Single
             CLEAR l_s_range.
        Filling Currency Key from Company Code
             select single currency
             from /bi0/pcomp_code
             into l_curr
             where comp_code = loc_var_range-low
             and objvers = 'A'.
             if sy-subrc = 0.
               l_s_range-low = l_curr.
             else.
               l_s_range-low      = 'ABC'.
             endif.
             l_s_range-opt      = 'EQ'.
             l_s_range-sign     = 'I'.
             APPEND l_s_range TO e_t_range.
             clear l_s_range.
             EXIT.
           ENDLOOP.
         ENDIF.
    2. there is a option of using infoobject for target currency in the RSCUR itself, however, when i try to input the 0COMP_CODE for finding the attribute currency from this infoobject, it doesnt accept.
    has anyone tried this earlier ?
    Any help/suggestions , guys, pls?
    Thanks
    John

    Hi Praveen ,
    Thanks for that.
    I have a Question.
    If RSCUR were to only accept a Date InfoObject , it would be placed under a differnt heading.
    The Tab is "Currrency"  & the sub-Tab is "Target Currency"
    so i guess, it should accept other infoObjects as well.
    Moreover, the help on that InfoObject buttons says
    "Specification of an InfoObject (Characteristic) in which a currency
    attribute is stored in InfoObject maintenance. At runtime, the
    associated currency attribute is determined using the characteristic
    value and this is interpreted as source or target currency."
    & i have already defined 0currency as a attribute of 0comp_code. so this should work ideally.
    almost similiar CMOD code i have used for other too, but i dont know why only this one is getting struck.
    any help, pls.
    Thanks
    John
    Edited by: John Lewis on Apr 17, 2009 3:24 PM
    Edited by: John Lewis on Apr 17, 2009 3:25 PM

  • How to use the same variable value for data entry and the planning sequence

    Hi,
    the scenario is the following:
    Using the WAD template a user enters cost center plan data. The cost center is selected by the chosen value for the variable "V1".
    Afterwards he shall push a button which starts a planning sequence (including saving the data and further functions). This planning sequence uses a filter that also contains the variable "V1".
    What or where has it to be defined that the planning sequence uses automatically the same value for the variable "V1" as selected for the data entry?

    You have to define in the planning function. The planning sequence is only a sequence and it read the planning functions underneath it.
    Ravi Thothadri

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

  • 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

  • Save Button in a Planning Sequence

    Hi,
    Can i include SAVE button in a planning sequence? My requirement is to have one button which executes a planning function then saves the data and then executes another planning function after the SAVE. How can i achieve this?
    Thanks
    Rashmi.

    Hi,
    Seems you are using WAD for your planning application and using 'Button Group' web item to include the planning functions in your layout.
    If so, then you must be adding 3 seperate buttons for each planning function in 'List of Buttons' in 'Internal Display' of your web item button group. Rather than doing this, add just one button in your 'List of Buttons' and on that button add 3 separate commands in below order
    1. EXEC_PLANNING_FUNCTION with your planning function name and variable values if you have any
    2. SAVE_DATA
    3  EXEC_PLANNING_FUNCTION with your planning function name and variable values if you have any
    This will solve your purpose.
    Regards,
    Deepti

  • Order of variables in calculation manager 11.1.2.2 rulesets

    Hi,
    We are in the process of migrating all our 11.1.2.1 HBR Sequences to 11.1.2.2 Rulesets. While migrating the sequences to rule sets I came across an issue where the order of the variables displayed in the Ruleset designer "Variables" tab doesn't match the order of the rules in the rulesets. This is not the case with the HBR sequences in EAS where the variables are associated with rules with valid Index.
    Eg:
    EAS
    Order of rules in the Sequence: RuleA, RuleB, RuleC
    Order of variable in the Launch Variables Tab: VarA1,VarA2,VarB1,VarB2,VarC1 ( Assuming that VarA1,VarA2 and VarB1,VarB2 and VarC1 are variables associated to rules A,B and C respectively.
    Calc Manager
    Order of rules in the Sequence: RuleA, RuleB, RuleC
    Order of Variables in the Variables tab: VarC1,VarA1,VarA2,VarB1,VarB2 ( Random)
    My case is more complex because I'm running the same rule for different values for a particular runtime prompt 38 times and they have to run in a order. Now I couldn't associate the rule with the variable that I'm changing.
    I tried creating the sequence from scratch rather than importing it from 11.1.2.1 but no luck. Please help!

    Raj,
    I opened up the .xml file from the Ruleset export and the "Seq_index"( which specifies the rule to which the variable belongs) and "seq" number (which specifies the variable order) are in the correct order as the rules order in the ruleset. But still the variables are not displayed in correct order in the "Variables" tab of the ruleset.
    Eg.
    Rule order in the rule set: R1,R2,R3
    <variable_references>
    <variable_reference id="3772" name="*R1v1*">
    <property name="seq"> *2* </property>
    <property name="seq_index"> *1* </property>
    </variable_reference>
    <variable_reference id="3770" name="*R1v2*">
    <property name="seq"> *3* </property>
    <property name="seq_index"> *1* </property>
    </variable_reference>
    <variable_reference id="3771" name="*R2v1*">
    <property name="seq"> *4* </property>
    <property name="seq_index"> *2* </property>
    </variable_reference>
    <variable_reference id="3773" name="*R2v2*">
    <property name="seq"> *5* </property>
    <property name="seq_index"> *2* </property>
    </variable_reference>
    <variable_reference id="3774" name="*R3v1*">
    <property name="seq"> *6* </property>
    <property name="seq_index"> *3* </property>
    </variable_reference>
    Displayed order of variables in calcmanager: R2v1,R2v2,R1v1,R1v2,R3v1 (Note that the variables belonging to the same rule are showing up in correct order).
    It will be very difficult to me to modify the seq# and index in the xml file as I have 40 rulesets with each having 20 rules and around 5 variables for each rule.
    Thanks,
    Swaraj.

  • No Authorization error in executing a planning sequence

    Hi,
    We are using BI 7.0 Integrated Planning.
    We have implemented Mark Bernaud's file upload solution. We have used a planning sequence that uploads the file and stores it in a cube. Using it, we are able to upload files without any problem when executing with a SAP User Id which has all the authorizations (the user id has SAP_ALL specified in its list of profiles). Now, we have a requirement where we need to execute the file upload using a user id which has limited authorizations. When we are trying to execute the file upload with the userid that has limited authorizations, we are getting the following authorization error.
    'You are not authorized to execute sequence PL_SEQ_FL_UPLOAD'
    where PL_SEQ_FL_UPLOAD is the name of planning sequence we are using. We have also included the authorization variable in the filters being used as suggested in one of the blogs but this didn't help.
    Could anyone please let us know the authorization objects to be added to the user id to enable access to this file upload.
    Many Thanks,
    Narendra.

    Thank you very much Diogo,
    The objects you suggested were already there. We have successfully traced the error by switching on the trace using ST01. We found the reason for the error to be that display authorization is not provided for S_RS_PLSQ whereas execute authorization is already present for that.
    Once again thanks Diogo.
    Many Thanks,
    Narendra

  • Error in execute planning sequence variant in process chain

    Hi ,
    While creating an Execute planning sequence variant in process chain in Quality system , i am getting an error" variable variant not selected ' though i created a variable variant and selected it in execute planning seq variant.
    Transporting it from development system didnt work therefore i am trying to create it directly in Quality .
    Any idea what could be the issue.

    Hi,
    Variable variant can be saved for planning sequence in modeler and then cab be used in process chains.
    In process chain you can choose "Execute planning sequence"( separate process type) and add planning sequence with variant.
    [http://help.sap.com/saphelp_nw2004s/helpdata/en/43/1d000c41130bd5e10000000a422035/frameset.htm]
    Thanks
    Pratyush

  • Planning Sequence error - You do not have sufficient authorization

    Hello Experts,
    I am encountering the following error during execution of my planning sequence:
    You do not have sufficient authorization
    Message no. EYE007
    Diagnosis
    You do not have sufficient authorization for the requested data records.
    Procedure
    Either select other data or get the required authorizations from your administrator.
    Can anyone please suggest me what could be the possible cause of this error and how can I overcome it?
    Thanks in advance,
    Nitish.
    Edited by: Nitu_0105 on Jan 12, 2012 11:54 AM

    Check the planning level on which planning sequence is based  for values restriction.Looks like values for which it is been restricted you are not authorized or Roles assigned to you are not restricted with values in planning level.
    Also check if level is been restricted with any variable on which authorization is been restricted.Some are user specific example specific business area are assigned to only some users ...so you need to add your user ID to those variable.

  • 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

Maybe you are looking for

  • Animated Gif Image does not render correctly on screen

    I have added animated gif image to the scene it does not render correctely.it shakes on the screen. plz give me any suggestion i use following code Image logo= new Image(getClass().getResourceAsStream("images/image.gif")); logoLabel.setGraphic(new Im

  • Recomendation report preview give a bad lay out

    Hello experts, When I m running the payment wizard, once I m arrived to the recommendation report, I click on preview and the lay out given by this preview is not good at all. This issue happen only when the payment run is not executed, if it is exec

  • Coldfusion invoke web service

    I am trying to invoke a web service and I'm getting an error. Error 401 Unauthorized.  Unable to read WSDL from URL: http://servername/generation/bj/TestCalculation.wsdl.  An exception occurred while invoking an event handler method from Application.

  • Viewing the "Now Playing" or "Currently Playing" playlist?

    I'm moving over to iTunes at the moment from an older MP3 player and I can't seem to find a playlist that shows the songs that iTunes will corrently work its way through - i.e. a "Now Playing" playlist or group of songs that are ticked in tbe music l

  • PPC-6700 file installation problem

    hello, everyone. well, i just purchased a sprint PPC-6700 pocketPC (windows mobile 5). i downloaded the alpha release of missing sync and got it to connect via USB with no problem whatsoever. ical/address book syncs beautifully. my problem now is tha