Using variables in data rules
Hi,
I have set-up a data transfer mechanism between serveral Essbase cubes that uses on the source cube a report script to generate a file and on the target cube imports this text file using a data rule file.
The current problem I'm encountering is that it does not seem to be possible to limit down the transfer to a single period. In the report script, there's no issue because that is recognizing the server variable easily.
But on the import side I have not found a method to have a single column dynamically writing into current period only. Is there no other option than someone going into this rules file and change the hardcoded fieldname each month?
Thanks for any input
Erik
Belgium
You can use substitution variables in version 9 of Essbase but not in earlier versions. Before v9 we'd get around this by using aliases e.g. CurrMonth. Each new month we'd move the alias to the next month.
"But on the import side I have not found a method to have a single column dynamically writing into current period only"
I'm assuming that you've created a text column here and filled it with a month value? It would be better to not have a month column and just set the month in the Header of the Data Load Settings.
Hope this helps.
Gee
Similar Messages
-
How to use variables in data slices?
Hello,
in BI-IP I have tried to use variables in a data slice.
The user should fill these variables.
How can one use and fill these variables?
Thank you
DanielHello Horst,
data slice is a very strong system lock. It is normally not a good decission to allow users to control this part becuse it sould be in administration of a responsible person.
If you allow users in the web to open or close data slices, this is like a "open period" funtion in financials: Think about what could happen, if anyone else than the responsible person could do that....
This is my point of view.
I would do it in anoter way: Create an User exit and fill a variable like desribed above. You read each line and make a decission whether the user might see this line or not (e. g. period open? yes or no?). The period and the status for the period could be maintained in a table or in a characteristic. table might be easier.
regards
Eckhard -
Using variables in Business Rules
Hello Experts,
Do you know if it's possilble to declare (and use) text variables in Business Rules?
I want to do some strings treatment (concatenation, substring) and I need to use variables.
Regards,
RodrigoHi,
thanks for your answers.
But without variables I don't know if it's possible to do the following:
I have a member dimension (that is from text type) and I want to access to it's content and, with some string treatment, reach to a member that I will FIX.
How can I access to the content of the text dimension member?
I give you the example:
Let's supose that the name of the text dimension member is TEXTMEMBER.
For Example if I use @SUBSTRING("TEXTMEMBER", 0, 3).
If I write the member like the above I'm not reaching to the content of dimension member....
Do you know how to do this?
Regards,
Rodrigo -
Passing variables between data tag and Java
Hello all,
I have a question about using variables between data tag and java.
Let me explain.
I would like to populate variable "Test" with
the information returned by jbo data tag library.
<code>
<% String Test = "%><jbo:ShowValue datasource="ds" dataitem="Cod" /><%";%>
or
<% String Test = "<jbo:ShowValue datasource="ds" dataitem="Cod" />";%>
</code>
This code did not work.
Some suggestions
Thanks
Humberto
nullHumberto,
I'm afraid I do not know the specific answer
to your question (perhaps Juan the Data Tag
Wizard will reply ;-). I vaguely recall
struggling with teh same issue when I was
playing with the tags for a demo. Here
is a hack-around lifted from my demo
that might help:
<jbo:Row id="privRow" action="CURRENT" datasource="privileges" />
<%
String privName = (String)privRow.getAttribute("Privilegename");
%>
In other words, I ended up using the Row
tag to get a local Java variable bound to the
row instance and then used its methods
to extract the value. I presume the class
of the row instance is oracle.jbo.Row
and you can lookup its supported methods
in the reference doc.
I'd be interested to hear if their is a more
elegant way - the one suggested above is
pretty tedious.
Regards,
Bill
---- -
The sme variable in data selection of inpopackage and value in transfer rul
Hello
I would like to use the same variable in data selection of infopackage (1) and as a value in transfer rules (2).
Example :
If I pass 1 I want to see value1 in data selection of infopackage (1) and as a value in transfer rules (2).
If I pass 2 I want to see value2 in data selection of infopackage (1) and as a value in transfer rules (2).
How is possible?Hi Aleks,
In the transfer routine your code would be something similar to this:
zvar is a variable
select LOW from RSLDPSEL into zvar where LOGDPID = '<Technical name of Infopackage>' and IOBJNM = '<The Info-object whose value you want to use>'.
*Now assign the value
RESULT = zvar.
Hope this helps.
Bye
Dinesh -
Cost center assessment to CO-PA using Variable portions in receiver rule
Hi Experts,
Could you please explain how to use variable portions as receiver rule. An example will be very helpful. I have got theory in help documents but could not get
through it....request for an example.
I am using fixed amounts as sender values and using variable portions as receiver rule.
In receiver tracing factor - I am using value field / key fields as say example VV075 (actual cash discount). I also mentioned record type and plan/actual indicator
in receiver tracing factor screen. I also mentioned data in receiver weighting factor screen.
Still if I execute KEU5, system says no receivers found.
I checked and found there are values for VV075 for the record type and plan / actual indicator combination selected.
Where could be the problem.
Request to explain variable portions with example.
Thanks in advance.
DSKHi,
Thanks for the reply.
There is no error in other segments. I already checked it...and also in KE24 there is data for the combination of value field, record type, plan/actual indicator and period selected. That is not an issue.
I feel some set up in using the variable portions is missing. This is the first time using variable portions.
Thanks. -
Using variables to insert data in the table
I want to insert datas in the table. I use constants,
all the constants are stored properly in the table. But,
when I use variables I get the error message
"Too few parameters. expected 6".
(I declared all the fields of the table as text only.)
My program is "newt.jsp"
<%@ page language="java" import="java.sql.*" %>
<html>
<head>
<title>storing customer information in the database</title>
</head>
<body>
<%
String cno1 = request.getParameter("cno");
String n1 = request.getParameter("n");
String add11 = request.getParameter("add1");
String add21 = request.getParameter("add2");
String phone1 = request.getParameter("phone");
String email1 = request.getParameter("email");
Connection con = null;
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = DriverManager.getConnection("jdbc:odbc:customer"," "," ");
Statement statement1 = con.createStatement();
Statement statement2 = con.createStatement();
statement2.executeUpdate("create table cust1 (cno varchar(20),n varchar(20),add1 varchar(20),add2 varchar(20),phone varchar(20),email varchar(20))");
statement1.executeUpdate("insert into cust1 (cno,n,add1,add2,phone,email) values(cno1,n1,add11,add21,phone1,email1)");
catch(SQLException sqle) {
System.err.println(sqle.getMessage());
catch(ClassNotFoundException cnfe) {
System.err.println(cnfe.getMessage());
catch(Exception e) {
System.err.println(e.getMessage());
finally {
try {
if(con!=null) {
con.close();
catch(SQLException sqle) {
System.err.println(sqle.getMessage());
%>
<br><br>
Mr./Ms. <%=n1 %> <br>
Your datas have been stored.<br>
</body>
</html>
Those who know answer please reply.
My thanks in advance.I would expect your insert statement to be this:
statement1.executeUpdate("insert into cust1 (cno,n,add1,add2,phone,email) values('"+cno1+"','"+n1+"','"+add11+"','"+add21+"','"+phone1+"','"+email1+"')");
If you just create a string, it's not going to fill in variables into the string by magic. -
Error in mapping generation when using a data rule
I hope someone can point me in the right direction on this one. I've searched all over but can't find a similar problem anywhere.
This is OWB Client 10.2.0.1.31 and repository 10.2.0.1.0 in a 10g SE database . I have a table on which I have defined a data rule, which is deployed in the database along with its corresponding error table. The rule I have used is the built-in IS_DATE and it is applied to a VARCHAR2 field that will store a date in a specific format. I have defined the table as an operator in a mapping, and set the IS_DATE data rule action to MOVE TO ERROR. When I try to deploy the mapping I get the follwoing errors in the log:
Warning ORA-06550: line 244, column 4:
PL/SQL: ORA-00907: missing right parenthesis
Warning ORA-06550: line 221, column 3:
PL/SQL: SQL Statement ignored
Warning ORA-06550: line 3112, column 132:
PLS-00103: Encountered the symbol "DD" when expecting one of the following:
. ( ) , * @ % & | = - + < / > at in is mod remainder not
range rem => .. <an exponent (**)> <> or != or ~= >= <= <>
and or like LIKE2_ LIKE4_ LIKEC_ between || multiset member
SUBMULTISET_
The symbol "." was substituted for "DD" to continue.
When I look at the generated code, there are lines like this one:
not (wb_to_date("table"."column", Month dd, RRRR, Mon dd, RRRR, MM-DD-RRRR, MM/DD/RRRR, YYYY-MM-DD, YYYY/MM/DD) is not null
Why is OWB not putting single quotes around the data formats from the built-in data rule? Is there something fundamental I'm missing in my warehouse model?Hi
This is bug 5195315, which looks to be fixed in a 10.2 patch. If you can pick up the latest 10.2 patch there is like 3 years of fixes worth picking up.
Cheers
David -
Hi All,
I am new to TestStand. Still in the process of learning it.
What are Parameters? How are they differenet from Variables? Why can't we use variables for passing data from one sequnece to another? What is the advantage of using Parameters instead of Variables?
Thanks in advance,
LaVIEWan
Solved!
Go to Solution.Hi,
Using the Parameters is the correct method to pass data into and out of a sub sequence. You assign your data to be passed into or out of a Sequence when you are in the Edit Sequence Call dialog and in the Sequence Parameter list.
Regards
Ray Farmer -
Used variable substitution to substiture the field 'date' in file name
Hi gurus
I have used variable substitution to substiture the field 'date' (dd/MM/yyyy/hh/mm/ss) in the file name so when empty payload (a valid xml ) is generated by Message mapping then the communication channel is failing by showing the following error
File processing failed with com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during
variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload
: date
As of now the business is not getting effected as the business scenarion needs only customer master data at the reciever side But when ever there is no custmer master data in the sourse side the message mapping is generating an empty payload and the communication channel is failing ( so it is an internal issue and is there any way which could solve the both (ie the business must not get effected and as well the communication channel must not fail)
any coments on this will be higly apreciated
thanks and regards
sandeepHi Sandeep -
Yes If you use the Variable substitution from the payload , that perticular field has to be generated in the target structure.
To handle this You can do the following:
Sourcefield --->exists -> IfThenElse-->TargetField
Where SourceField>exists(node function)-> If
SourceField -
>Then
CurrentDate(Date Function)----->Else
Hope this will help !!
Regards.
Jeet. -
I have used RunState.ProcessModelClient.Data.Seq["MainSequence"].Locals.MyVariable to set Locals variables in client sequences running in a sequential model but it doesn't seem to work with the batch model. Using a breakpoint I found that RunState.ProcessModelClient.Data.Seq is a container listing all of the sequences in the client sequence with the Main Sequence being index 0.
I tried using RunState.ProcessModelClient.Data.Seq[0].Locals.MyVariable to set the variables in my client sequence and it worked fine.
My question: is this method reliable or am I doing something that might cause problems down the road?
Thanks,
SteveA few issues from doing it this way-
1- You should try an make your process model such that it can handle almost any sequence file thrown at it. MainSequence may not a) contain that local variable and b) be at array element 0. Unless you do some serious error checking then using your process model elsewhere will be a problem because it will throw errors.
2- It all depends on where you are changing that variable at. Remember with the Batch Model that you are dealing with multiple copies of your client sequence. If you change a Locals in the process model which threads does it actually affect?
3- Locals is to be used for the sole purpose of the sequence it resides in. Just like in text based programming where you have a function call:
MyFunc(int x, int y){
string foo;
foo is local and really shouldn't be changed outside of MyFunc. x and y are parameters and should be how data is shared among different sequences in TestStand. There are variables for bigger scopes as well (i.e. StationGlobals, FileGlobals).
I recommend using either a StationGlobal or passing the data as a parameter.
In the end you are the engineer and the flexibility that TestStand gives you makes it so you can do things however you want.
My 2 Cents,
jigg
CTA, CLA
teststandhelp.com
~Will work for kudos and/or BBQ~ -
Using Variable in the Data Template
Hi All,
I am on BIP 10.1.3.4.1 and DB is SQL Server. My Data Model is a Data Template wherein I have written multiple SQL Statements. I want to use a variable in my Data Template, assign it a value and use that variable to limit one of the SQL statements in the where clause like
declare @cnt int;
set @cnt = select count(asset_id) from asset
How do I use in the data template. I tried using it in a separate SQL statement but it throws me an error when i run the report like
"Need to declare the scalar variable '@cnt'
Can we have a variable section like parameter section we have in the data template to declare the parameters?
Any help would be highly appreciated.
Thanks,
RonnySorry for the shot follow up, can anybody please reply on this?
-
One thing I loved about PhotoMechanic was the ability to use variables in a lot of the metadata info, IE date taken......
Another vote for this excellent idea. I too use PhotoMechanic and will have to continue doing so because of the use of variables. If LR could give us that...
For instance, PM automatically copies the filename to the Title field so that when I send images to my stock agency, I always have a reference as they change the filename to something that can be used in their system.
Plus I copy location and date values to the caption field so that I only have to type a small description afterwards without having to type: "Paris (France); September 5, 2008."
Simple things that are huge timesavers... -
Using Global variables in business rules
In EAS after expanding the Business Rules section there is a Global Variables section. I have created some global variables in this section and I am trying to use them in the Rule editor and not having much luck. Are they retrieved differently to local variables...Currently this is how I am calling them within a FIX....
FIX([Global_Varaiable])
calculation;
EndFix
Please correct me if I am wrong, also can any one provide some good documentation and some gd links for writing business rules. I'm just starting out to create some business rule which runs on save on some input forms I am creating and finding it rather difficult.... :-(..
Many Thanks
StephenHi,
Global variables will work in the same way as local variables so you are using them correctly.
Business rules are just really glorified calc scripts, if you want to know about calc script commands have a read of the tech ref :- http://download.oracle.com/docs/cd/E12825_01/epm.111/esb_techref/frameset.htm?launch.htm
It will have all the calculation commands and functions and descriptions on how they work.
Cheers
John
http://john-goodwin.blogspot.com/ -
Using Global Variables in Data Quality Address Cleanse Transforms
I am currently developing in Data Services 12.2.
I am trying to dynamically populate the List Owner information in the option tabs of the USA Regulatory Address Cleanse by using global variables. It populates the 3553 with the variable name instead of the value assigned.
According to the Technical Manual, it is possible to use global variables in Data Quality Address Cleanse transforms:
However, you can use substitution parameters in all places where global variables are supported, for example:
Query transform WHERE clauses
Mappings
SQL transform SQL statement identifiers
Flat-file options
User-defined transforms
Address cleanse transform options
Matching thresholds
Does anyone know if it is possible to use global variables in the option tab of the Address Cleanse; if so, can you describe how it is done?
Thanks in advance,
RickHi,
U can refer to the following links in help.sap.com
GlobalContainer Object
http://help.sap.com/saphelp_nw04/helpdata/en/75/8e0f8f3b0c2e4ea5f8d8f9faa9461a/content.htm
Container Object
http://help.sap.com/saphelp_nw04/helpdata/en/78/b4ea10263c404599ec6edabf59aa6c/content.htm
Also some of the RUN TIME CONSTANTS are available in your BPM. So if you are trying to retrieve those variables in your Mapping(that is used in BPM), also read the following thread.
Re: Message id in BPM
Cheers,
Siva Maranani.
Maybe you are looking for
-
AI effects: Feather versus gaussian blur? which is raster or vector?
i`m looking at feathering versus blurring. both in illustrator effect drop down menu. from what I I understand the blur/gaussian blur under photoshop effects (in illustrator) will pixelate the edge gradation, but the illustrator effect "feather, will
-
CAN'T FIT TO THE WINDOW... ACROBAT 8 BUG???
When I resize the screen, the content doesn't fit to the window. Take a look to the pic: http://i44.photobucket.com/albums/f36/Awesoft/capture.png Where is the problem? I'm running Acrobat Professional 8.1 on Windows Vista Ultimate 64bits.
-
How to read the date of ZL table in schema
Dear all, I want to read the record of the ZL table,and I wanted to read the date of every record in ZL table, and then choose which wage type should be used. Thank you.
-
Hi, I have developed a user interface. A JScrollPane is a part of it and the JSP has a JTree in it. During the run time I am trying to remove the JSP from the container by this method: jsp.getViewport().remove(myTree); //Container content; content.re
-
Just trying to get the related files function working properly. This is on a fresh local install of WordPress 3.0 beta 2, multi site activated using subdomains. It keeps insisting my testing server has the wrong settings even though both Live View an