Odd Behaviour using User Variables to select members in Planning form
I have a form to enter budget adjustments and another form to review the effects of those adjustments at a parent Entity level.
For each area of the business there are obviously different adjustment and parent levels required in the form.
In summary I can drive a form from a User Variable using the functions (Children, IChildren, ILvl0Descendants, Descendants and IDescendants) but trying to use other options results in unexpected behaviour.
For example with the following structure:
Entity
-Total Cost Centre
--Group A
---SubGroupA1
---SubGroupA2
---SubGroupA3
---GroupA-Adj
----GroupA-AdjX
-----AdjEntityA1
-----AdjEntityA2
--Group B
---SubGroupB1
---SubGroupB2
---SubGroupB3
---GroupB-Adj
----GroupB-AdjX
-----AdjEntityB1
-----AdjEntityB2
For the adjustment entry form the users would want to see AdjEntityA1 and AdjEntityA2 if they are in business group A.
For the review form they would like to see Group A and its children.
I am trying to avoid writing multiple forms for each business user (largely because the number of groups can vary dramatically). I can't really use generations to drive the selections as whilst the business has effectively levelled the hierarchy business units can be working at different levels of this hierarchy.
I want to offer a couple of options to the business. One will be to define a form that pulls all of the relevant entities into the form and relies on security to restrict the values displayed to the user. The second option would be to utilise User Variables to drive selections. It is the second option I am struggling with.
If we consider a user working in Group A, I think I can see a formulaic way to select the various combinations of Entities if I set the user variable to be GroupA-Adj.
I can define a data form that sets Entity to the L0Descendants of say GroupA-Adj and this is fine.
When I try to define a review form that selects the Isiblings and Parent of GroupA-Adj I hit a problem.
It seems that Children, IChildren, ILvl0Descendants, Descendants and IDescendants works as I would expect.
Using IAncestors and IParents return just the User Variable setting (i.e. just the 'I' part, not the parents or Ancestors).
Siblings, Isiblings, Parents, Ancestors all result in an error message because not all dimensions are represented in the form.
This prevents me using a User Variable to build the review form in which I would like to display the siblings and parent of the entity GroupA-Adj.
Anyone got any ideas?
I would love to see the ability to select EDA's from Planning Forms, it would definately make life a little easier.
As CL says, attributes are great at filtering forms and BR's, their only drawback is that you can only use them on sparse dimensional members.
To get round this problem i've relied on security to filter out the accounts i do not need to see in the forms for the specific users, and kept the form selection on @IDESCENDANTS(Account_Parent).
If you wish to filter on the Period dimension and this is a dense dimension, can you not get round the problem with rollups and, for example, @DESCENDANTS(Q1) to only return 3 months in the form, it really depends on your outline structure.
Similar Messages
-
How to use user variable in Member Formula
Hi All
I have to write a member formula for %linearity quarter for a weekly application.This member will be used in reports and we do not want to do this calculation in reports, hence need to write member formula. The formula is
Week1 of Q1 forecast / Q1 Total Forecast , Week2 of Q1 Forecast/ Q1 Forecast.............,Week15 of Q2 forecast/ Q2Total Forecast.......and so on.
According to me it should work in the below mentioned manner , but need help in improvising the formula.
If(@ismbr("Weeks1") or @ismbr("Weeks2") or @ismbr("Weeks3") or @ismbr("Weeks4") or @ismbr("Weeks5") or @ismbr("Weeks6") or @ismbr("Weeks7") or @ismbr("Weeks8") or @ismbr("Weeks9") or @ismbr("Weeks10") or @ismbr("Weeks11") or @ismbr("Weeks12") or @ismbr("Weeks13") or @ismbr("Weeks14") )
"Current_Forecast"/"Q1"->"Current_Forecast";......
If anybody can help in suggesting how can i use user variable in this formula to achieve the required result.
ThanksHi
Thanks for the suggestion and it would be a better idea to use ISIDESC as compared to ISMBR.
I also wanted to ask if in the below mentioned formula if the result of first line is true than will the second line pick the current_forecast value of the respective member of Q1 and divide it by the current_forecast value of Q1.
IF(@ISIDESC("Q1"))
"Current_Forecast"/"Q1"->"Current_Forecast";
Also i need to know how can i write a member formula for week YOY% using user variables.The general formula is
Week 1 of FY13 - Week 1 of FY12/Weeks 1 of FY12
Week 2 of FY13 - Week 2 of FY12/Weeks 2 of FY13 and so on till week 53.
Thanks -
Using a Variable to select a function
Hi there.
I am looking to use a variable that is set when a user clicks
a button to then use as the variable name to call a function. The
actual functions work, but when using a variable as the function
name it doesn't call the function. Here's my code so far, could
anyone help with what I may be doing wrong (please see code snippet
attached).
Thanks a lot
Tony MeadThanks for the reply Dave. I wanted to use a variable because
when any of the 4 buttons are clicked they have to
1. Run the function determined by the closeActive variable
(closing the open panel - could be 1 of 4)
2. open and run a particular panel
Probably best explaind by looking at what I have done so far
(home & about us only at the moment):
http://www.soapbox-creative.com/development/08/index.html
Basically I needed the flash movie to 'know' what panel is
currently opn and when another button is clicked it can just run
the close function and close the panel that is open.
Thanks again
Tony -
Quiz not advancing after incorrect answer (quiz uses user variables to show wrong answers)
Hello All,
Long time lurker, first time poster. Hopefully someone can help me.
After viewing this excellent video on the adobe captivate blog "so what were the right answers anyway" I created a quiz with user variables and a conditional advance action. It displays red crosses next to the each question that was incorrectly answered at the end of the quiz.
I set up user variable for each question with a value of 0. On an incorrect answer the variable would be set to 1.
At the end of the quiz is a slide which lists the question and shows a red cross next to each question with a variable set to 1. uses conditional action which is triggered "On Enter"
This works, but my problem is when I preview the quiz (in browser or as SWF), on an incorrect answer the failure caption appears but will not actually advance to the next question when I click anywhere or press y. It works OK on correct answers.
I can sovle this by adding a next button, but I want to understand what I'm doing wrong.
Using captivate 6.0.1.240 (boxed copy)
windows 7
images on quiz properties and conditional action below
Any help appreciated.
Regards
Jacob CI tested this work flow on 6.1.319 and it works fine. So it is a bit guessing in the wild... no 6.0.1.240 around for the moment. Seems strange, because a simple action like your Assign action should normally release the playhead. But of course it is a question slide and they do not always behave as expected. Could you try to replace the Assign action by a standard advanced action with 2 statements, like this:
Assign var_question_1 with 1
Continue
And please, let me know if it works? This could be a difference between the two versions, but not sure at all.
Lilybiri -
Select Members in Data Forms via UDA or Substitutionvariable
Hello,
I want to select members in row or colum dimension of a Planning data form via an UDA. But it is only possible to select members via hierarchy (member, sibling, parent,...).
Is there a possibility to select members via UDA?
What I tried is:
1.) in the definition of the dimension members for the dimension "Period" in the data form I filled in: "@UDA(Period,FC01)".
I get the error "The member @UDA(Period does not exist or you do not have access to it."
2.) Instead of the UDA I tried to use a Substitutionvariable "&PER_LIST"
This works if the Substitutionvariable contains only one member. It doesn't work if it contains more than one member (comma-separated list).
I get the error: "A substitution variable required for this calculation is undefined. Variable: PER_LIST" (even though the variable exists and I selected it in the member selection dialog)
Can anyone help? I'm using Hyp. System 9.3.1.
Thanks in advance,
NicoleI would love to see the ability to select EDA's from Planning Forms, it would definately make life a little easier.
As CL says, attributes are great at filtering forms and BR's, their only drawback is that you can only use them on sparse dimensional members.
To get round this problem i've relied on security to filter out the accounts i do not need to see in the forms for the specific users, and kept the form selection on @IDESCENDANTS(Account_Parent).
If you wish to filter on the Period dimension and this is a dense dimension, can you not get round the problem with rollups and, for example, @DESCENDANTS(Q1) to only return 3 months in the form, it really depends on your outline structure. -
Add new variable in Selection ID for planning book
Hello,
Need your suggestion-
We have requirement to add new variable -like SNP Planner in SNP Selection ID of Planning book. Please suggest steps to configure this
Regards
PanditPandit
There are more than one ways of doing this.
The best option is to create a freely definable attribute (Spro --- APO >> Master data >> Freely definable attributes) at material location level and now you will automatically be able to see the attribute when your create a selection id. But you have to make sure you add logic in your material cIF user exit or create a custom program in APO to populate the desired values for the freely definable attribute for all materials in the selection
Thanks
Saradha -
How to set FIX based on selection made in planning form (HP 9.2)
Hello,
In order to calculate new values in my business rule I have to use CREATENONMISSINGBLK ON option. But it takes too long time to complete the calculation. So, I need to set FIXes in my business rule in order to keep database selection as small as possible.
Is there any possibility to pass page selections prom planning data form to my custom business rule?
For example form:
Columns: Period
Rows: Account
Page: Year, Entity, Version, CustomDimension
In my rule a need to set following fixes:
Account: Custom fixed List
Period: Custom fixed List
Year: Custom fixed List
Entity: Get one values selected in data form
Version: Get one values selected in data form
CustomDimension Get one values selected in data form
OR
is it possible to set default values for Run-time prompts to be equal to selected members in page dimensions?
Thanks.
Message was edited by:
MaxDyugHi,
You can set up variables in your business rules so for example,
Create Variable rtVersion, set it as Type member and dimension Version and Usage-Type as "Run-Time Prompt".
Then in your business rule code you refer to the variable using [rtVersion]
Now in planning the design of the form when you choose the properites for the business rule make sure "Use Members on Data Form" is ticked, and run on save.
Now when the form is saved a pop up window will appear passes the selected version member into the run time prompt text box, this will then be passed into your business when submitted.
You can also hide prompts if you want it be sent directly into the business rule without any user intervention.
Hope this helps.
Cheers
John -
Using Bind Variable in Select List
Hi
I am using Jdev 11.1.1.5 . I am trying to create a view object with select column being populated using the bind parameter.
Below is the code that i am using for creating View-Object as i want the parameter that user is passing while executing the view object should be displayed to user as a column
SELECT TestPEO.<Column Name>,
TestPEO.<Column Name>,
:pStartDate PARAM_START_DATE,
:pEndDate PARAM_END_DATE
FROM <Table Name> TestPEOFor setting the above bind parameter i tried over-riding prepareRowSetForQuery method with default values being passed but it didnt helped out....Getting error " java.sql.SQLException: Missing IN or OUT parameter at index:: 1"
public void prepareRowSetForQuery(ViewRowSetImpl vrs) {
vrs.ensureVariableManager().setVariableValue("pStartDate", new Date((new java.util.Date()).getTime()));
vrs.ensureVariableManager().setVariableValue("pEndDate", new Date((new java.util.Date()).getTime()));
super.prepareRowSetForQuery(vrs);
System.out.println("query "+getQuery());
}Any idea regarding it will be helpful.. Please share your views in case there is any other approach to it.
Thanks
AJGot it working.... :)
Thanks -
Odd behaviour with parameter id on selection screen
Try this code
PARAMETERS: p_fpath1 TYPE string LOWER CASE MEMORY ID rofile,
p_fpath2 TYPE string LOWER CASE.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fpath1.
PERFORM get_filepath CHANGING p_fpath1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fpath2.
PERFORM get_filepath CHANGING p_fpath2.
*---------Forms
FORM get_filepath CHANGING x_filepath TYPE string.
DATA: l_filepath TYPE string.
cl_gui_frontend_services=>directory_browse( CHANGING selected_folder = l_filepath ).
* If no filepath selected, leave the filepath unchanged
IF l_filepath IS NOT INITIAL.
x_filepath = l_filepath.
ENDIF.
ENDFORM.
Run the program, and use F4 to choose a file path for p_fpath1 and another for p_fpath2.
Hit execute
Leave the program.
Run the program again.
Use F4 to choose the filepaths for the two parameters.
For me, it's fine for p_fpath2, but for p_fpath1, I get no directory selector. In fact, to get it working again, I have to log off and log back on.
I'd like to know if anyone else gets the same problem, and also if anyone knows how to fix it!
thanks
mattThe issue was with the STRING VARIABLE in parameters decelaration.I just changed it to RLGRAP-FILENAME it worked.
Try these codes.
PARAMETERS: p_fpath1 TYPE rlgrap-filename LOWER CASE MEMORY ID rofile,
p_fpath2 TYPE rlgrap-filename LOWER CASE.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fpath1.
PERFORM get_filepath CHANGING p_fpath1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fpath2.
PERFORM get_filepath CHANGING p_fpath2.
START-OF-SELECTION.
WRITE : p_fpath1,p_fpath2.
*---------Forms
FORM get_filepath CHANGING x_filepath TYPE rlgrap-filename.
*CALL METHOD cl_gui_cfw=>flush.
DATA: l_filepath TYPE string.
CLEAR :l_filepath,x_filepath.
cl_gui_frontend_services=>directory_browse( CHANGING selected_folder = l_filepath ).
* If no filepath selected, leave the filepath unchanged
IF l_filepath IS NOT INITIAL.
x_filepath = l_filepath.
ENDIF.
ENDFORM. "get_filepath
LAST ENTERED VALUE WILL ALSO DISPLAY
These codes work.
Regards,
Gurpreet -
Using a variable to select array value
Hey,
Im fairly new to Java, and im doing a course in it at the moment. I have been set some homework to do, but ive got a little stuck ...what i have to do is create a program that randomly generates numbers between 1 and 10, and then i have made an array which has 10 values, and say number 1 comes up in the random number generation, i want array [1] to have the number of times 1 appears in it. Ive came up with the following, but i keep getting errors ...i think there is a problem with defineing the variable i as a long, then the array as an integer...
int[] ar = {0,0,0,0,0,0,0,0,0,0};
int a = 0;
while (a<10)
a++;
long i = Math.round(Math.random()*10);
ar[i] = i;
System.out.println(ar);
with that code i get these errors:
found : long
required: int
ar[i] = i;
^
C:\Website Projects\Java Work\test 1\Document.java:14: possible loss of precision
found : long
required: int
ar[i] = i;
if anyone could help me get this working i would be most greatful
Thanks for your time,
-Rossah k thanks for the response :) ...ive managed to narrow it down to one error:
public class random {
public static void main(String[] args){
int[] ar = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
int i = 0;
while (i < 10){
int t = Math.round(Math.random()*10);
int ar[t]++;}
i++;
System.out.println(ar);
gives the error:
C:\Website Projects\Java Work\test 1\random.java:8: ']' expected
int ar[t]++;}
^
1 error
Tool completed with exit code 1
Im pretty sure it just doesnt like the value of the Math.xxxx being int, i was told it requires long/double...i need to convert it somehow after its done the calculation, i think :-S
Thanks,
Ross -
Selecting user input from Select option into smart form
Hi,
when i use parameter then i wil show company code in smart-form output
but when i use select option then its throwing error parameter specified here is different
what should i do in this case i want to design a big select option screen for taking user input
REPORT ZMM.
TABLES BSEG.
DATA : V_FORMNAME TYPE TDSFNAME VALUE 'ZPUR_REG',
V_FMNAME TYPE RS38L_FNAM.
*PARAMETERS SO_BUKRS TYPE BUKRS.
SELECT-OPTIONS : SO_BUKRS FOR BSEG-BUKRS.
DATA : Z_CONTROL TYPE SSFCTRLOP, "Smart Forms: Control structure
Z_OPTIONS TYPE SSFCOMPOP. "SAP Smart Forms: Smart Composer (transfer) options.
MOVE 'X' TO : Z_control-no_dialog, "SAP Smart Forms: General Indicator
Z_options-tdnewid, "New Spool Request (Print Parameters)
z_control-PREVIEW. "Print preview
MOVE 'LP01' TO Z_options-tddest. "Spool: Output device
MOVE space TO Z_options-tdimmed. "Print Immediately (Print Parameters).
MOVE 'PRINTER' TO Z_control-device. "Output device
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = V_FORMNAME
IMPORTING
FM_NAME = V_FMNAME.
CALL FUNCTION V_FMNAME
EXPORTING
CONTROL_PARAMETERS = Z_CONTROL
OUTPUT_OPTIONS = Z_OPTIONS
USER_SETTINGS = ''
BUKRS = SO_BUKRS.
pls help me in this regards.
ketan..hi
thnx for your reply
can u pls elaborate in my code
now i changed code BUKRS = SO_BUKRS-low.
either i can give low or high but how to select from range
REPORT ZMM.
TABLES BSEG.
DATA : V_FORMNAME TYPE TDSFNAME VALUE 'ZPUR_REG',
V_FMNAME TYPE RS38L_FNAM.
*PARAMETERS SO_BUKRS TYPE BUKRS.
SELECT-OPTIONS : SO_BUKRS FOR BSEG-BUKRS.
DATA : Z_CONTROL TYPE SSFCTRLOP, "Smart Forms: Control structure
Z_OPTIONS TYPE SSFCOMPOP. "SAP Smart Forms: Smart Composer (transfer) options.
MOVE 'X' TO : Z_control-no_dialog, "SAP Smart Forms: General Indicator
Z_options-tdnewid, "New Spool Request (Print Parameters)
z_control-PREVIEW. "Print preview
MOVE 'LP01' TO Z_options-tddest. "Spool: Output device
MOVE space TO Z_options-tdimmed. "Print Immediately (Print Parameters).
MOVE 'PRINTER' TO Z_control-device. "Output device
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = V_FORMNAME
IMPORTING
FM_NAME = V_FMNAME.
CALL FUNCTION V_FMNAME
EXPORTING
CONTROL_PARAMETERS = Z_CONTROL
OUTPUT_OPTIONS = Z_OPTIONS
USER_SETTINGS = ''
BUKRS = SO_BUKRS-low.
ketan.. -
Select members from Row/ column context using variables.
Does EPMA Calculation Manager provide the facility of using any kind of variable which will enable to select members dynamically from row/ column in a Planning webform as we use member variable to select members from Page/ POV?
Please suggest. Thanks in advanceHi,
Check out Environment/Replacement Variables in Calc Manager, where replacement variable can be used as RTP.
Cheers...!! -
Hi,
We want to use Smart View POV function (ex:HypGetActiveMember) to get the active member of user variables from HFM forms selected into Excel, but we don't know the user variable name in the following paragraph of Smart View developer guide:
"To uniquely identify the user variable, provide the user variable name rather than the dimension name."
For example, what's the user variable name of Year dimension? How to get the user variable name?
Any information would be appreciated. Thank you!Hi,
I guess user variable name is set by users/developers. I am not very clear on your question. If you have defined some variables to select any members from a dimension then it will be in HFM only. In planning we have two kinds of variables User Variables (we set it from Planning Preferences) and Substitution variable (we set it from Essbase Consol in the backend). Without looking into your application it is difficult to say the user variable name. Like for Year the user variables can be "PreviousYear", "CurrentYear", or "NextYear" etc.
Soumya -
Multiple members for single user variable???
Hi,
Can I select multiple members or a hierarchy for a single user variable?
My requirement is to use a dimension which consist of more than 100 members but the user will not enter data for 100 members
at the same time so I want to give user an option to select the members for which he wants to enter data.
I was thinking of using user variable but it is allowing me to select only one member for user variable created for that dimension,
that means if he has to enter data for 10 members he has to change that variable 10 times or I have to use 10 different user variable for that dimension.
what if any user wants 20 members, at that time I have only 10 user variables.
Please help..
Thanks in advance..Hi,
Can I select multiple members or a hierarchy for a single user variable?Are the required members descendants of any particular member(hierarchy )?
If so, you can use IDescendants<user variable> in the form's page. And you can also use dynamic user variable option.
Regards
-Samrat Mane
Edited by: 918547 on Aug 22, 2012 4:54 PM -
Use user name as a variable in forms
Hello
I want to use a variable in select command instead of actual username. e.g.
select field_name into 'x' from demo.tablename
here demo is a user and i want to change it through programatically i.e. using variable and assign different values to variable.
GautamFor dynamic SQL statements look at using the EXEC_SQL package. However, it may be that you can solve your requirement simply by using private synonyms on each user so your statements actually just use
Select feild into x from tablename
and let the database sort out the actual owner based on the synonym.
Maybe you are looking for
-
SRM-- Backend MM, FI/CO Validations
Hi all, I'm new to the board so please be patient :-). Using mySAP SRM 5.0 I'd like to find out how validations are done during - Shopping Cart creation - in Case Purchase Order creation - Invoice Posting - Tax calculation and more validations done
-
I have following questions.. Q1> In BPC 7.0 do we have to update the master data twice one in dimention and also in infoobject. Or the infoobject master data is automatically updated the dimension. Q2> What are the new features in BPC 7.0 NW version
-
NLS:4: Cannot open message catalog CMDTUX_CAT
I install tuxdeo 6.5 on SCO OpenServer 5.0.5 when I tmloadcf ubbsimple ,errorsis : mloadcf.1902: NLS:4: Cannot open message catalog CMDTUX_CAT, set1, num 872; check TUXDIR=/u/tux, LANG=C_C I don't how to do to resole that problem please reply mail to
-
"low disk space hp_tools" after installing HP external drive
I have this message displayed "low disk space hp_tools" after installing HP external drive with simple save. A new drive was created on my internal hard drive and apparently the allotted space is not enough. How do I get rid of the partition and th
-
While create DO then send out SO IDOC
Hi all, I have a situation now that for consignment fill up, while create the DO, then I need to send out a complete SO IDOC to 3rd-party (also a SAP). Any idea on how to do this? Please help. Running out of ideas now. Million thanks. Best Regards, J