REG : the Variable in the query........
Hi,
I changed one attribute to 15 chraracters , variable was created on this attribute in the query when I run the query with the new value(more than 10 char now) in the selection condition I am getting the following message
"value G57004040190 for variable b number is invalid.."
Do I need to do any change in the query or variable...like saving the query again
Please let me know for solving this error....
Regards,
Jeetu
Sorry frinds for late reply...
Actually I didnt have authorization to perform what you told because I was in production.
But one strange thing happened it got automatcally correct after some time. Might be after some time it automatically refreshes the information.
Thanks
Jeetu
Similar Messages
-
Order of the variables in the initial selection screen.
Hi all,
How can I change the order of the variables in the initial selection screen.
Thanks in advance.
Regards,
Kumar.In the query designer goto query properties screen.. In the first screen you will see the order and you can move up and down the variables there as per your need ..
Regards. -
How to insert the data which is present in the variable into the table
Hi,
Let's consider that I have one table and I have stored the table column names in one variable and their values in another variable.
I want to insert the data that is present in the variables into the table.
I tried the following way :
Declare
V_columns Varchar2(50) := 'Empno';
V_values Number(10) := 101;
Begin
Insert Into Emp (V_columns) Values (V_values);
End;
The above procedure gives an error : PL?SQL : ORA-00904 : "V_COLUMNS": invalid identifier
Using the Execute Immediate, we can insert the data which is present in the variables into the table.
Is there any other way to insert the data which is present in the variable into the table..?
Can anyone please give me the solution..?
Thanks..plz use this...
DECLARE
v_columns VARCHAR2 (50) := 'Empno';
v_values NUMBER (10) := 101;
BEGIN
EXECUTE IMMEDIATE 'Insert Into Emp ('
|| v_columns
|| ') Values ('
|| v_values
|| ')';
COMMIT;
END; -
How can I get the variable with the value from Thread Run method?
We want to access a variable from the run method of a Thread externally in a class or in a method. Even though I make the variable as public /public static, I could get the value till the end of the run method only. After that scope of the variable gets lost resulting to null value in the called method/class..
How can I get the variable with the value?
This is sample code:
public class SampleSynchronisation
public static void main(String df[])
sampleThread sathr= new sampleThread();
sathr.start();
System.out.println("This is the value from the run method "+sathr.x);
// I should get Inside the run method::: But I get only Inside
class sampleThread extends Thread
public String x="Inside";
public void run()
x+="the run method";
NB: if i write the variable in to a file I am able to read it from external method. This I dont want to doWe want to access a variable from the run method of a
Thread externally in a class or in a method. I presume you mean a member variable of the thread class and not a local variable inside the run() method.
Even
though I make the variable as public /public static, I
could get the value till the end of the run method
only. After that scope of the variable gets lost
resulting to null value in the called method/class..
I find it easier to implement the Runnable interface rather than extending a thread. This allows your class to extend another class (ie if you extend thread you can't extend something else, but if you implement Runnable you have the ability to inherit from something). Here's how I would write it:
public class SampleSynchronisation
public static void main(String[] args)
SampleSynchronisation app = new SampleSynchronisation();
public SampleSynchronisation()
MyRunnable runner = new MyRunnable();
new Thread(runner).start();
// yield this thread so other thread gets a chance to start
Thread.yield();
System.out.println("runner's X = " + runner.getX());
class MyRunnable implements Runnable
String X = null;
// this method called from the controlling thread
public synchronized String getX()
return X;
public void run()
System.out.println("Inside MyRunnable");
X = "MyRunnable's data";
} // end class MyRunnable
} // end class SampleSynchronisation>
public class SampleSynchronisation
public static void main(String df[])
sampleThread sathr= new sampleThread();
sathr.start();
System.out.println("This is the value from the run
method "+sathr.x);
// I should get Inside the run method::: But I get
only Inside
class sampleThread extends Thread
public String x="Inside";
public void run()
x+="the run method";
NB: if i write the variable in to a file I am able to
read it from external method. This I dont want to do -
How can I get the variable with the value from Thread's run method
We want to access a variable from the run method of a Thread externally in a class or in a method. Even though I make the variable as public /public static, I could get the value till the end of the run method only. After that scope of the variable gets lost resulting to null value in the called method/class..
How can I get the variable with the value?
This is sample code:
public class SampleSynchronisation
public static void main(String df[])
sampleThread sathr= new sampleThread();
sathr.start();
System.out.println("This is the value from the run method "+sathr.x);
/* I should get:
Inside the run method
But I get only:
Inside*/
class sampleThread extends Thread
public String x="Inside";
public void run()
x+="the run method";
NB: if i write the variable in to a file I am able to read it from external method. This I dont want to doYour main thread continues to run after the sathr thread is completed, consequently the output is done before the sathr thread has modified the string. You need to make the main thread pause, this will allow sathr time to run to the point where it will modify the string and then you can print it out. Another way would be to lock the object using a synchronized block to stop the main thread accessing the string until the sathr has finished with it.
-
When i am trying to edit the Variable in the Business Rule?
Hai Guys,
When i am trying to edit the Variable in the Business Rule , I am getting String Error Message? Guys any one have any idea about the String Error MessageOh, so you're talking about an Essbase substitution variable.
Try to surround the variable value with double quotes if it contains spaces.
It's weird because its supposed to accept any value. -
TYPE and SIZE, 2 more columns to the variable in the Command behavior?
DW 8.02 added 2 more columns to the variable in the Command
behavior, TYPE and SIZE. What do you put in here?
What is the difference for Access text, Date/Time, number and
Memo columns.
The Dreamweaver DOCS don't cover this update and you can't OK
the COMMAND without these two columnsThis will be of some help:
http://www.w3schools.com/ado/ado_datatypes.asp
You should be able to gather the column size from the
database's table
definition. Typically, columns that hold text are one byte
per character
(two for Unicode), whereas integers are 4 bytes. Other
numeric types and
date types vary among database systems.
"lovewebdev" <[email protected]> wrote in
message
news:ec0it5$h20$[email protected]..
> DW 8.02 added 2 more columns to the variable in the
Command behavior, TYPE
> and
> SIZE. What do you put in here?
> What is the difference for Access text, Date/Time,
number and Memo
> columns.
>
> The Dreamweaver DOCS don't cover this update and you
can't OK the COMMAND
> without these two columns
> -
How can i view the variables of the session memory
Hi experts
How can i view the variables of the session memory.Such as I want display the variables of memory which id is 'BULRN' in ABAP debug.
In program i can use import from memory id visit the momery of session,but i don't know the name of variables which store in momery of my session.Its not possible to view in the debug mode..
SAP memory is a memory area to which all main sessions within a SAPgui have access. You can use SAP memory either to pass data from one program to another within a session, or to pass data from one session to another. Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters). These parameters can be set either for a particular user or for a particular program using the SET PARAMETER statement. Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement. The most frequent use of SPA/GPA parameters is to fill input fields on screens
SAP global memory retains field value through out session.
set parameter id 'MAT' field v_matnr.
get parameter id 'MAT' field v_matnr.
They are stored in table TPARA.
ABAP memory is a memory area that all ABAP programs within the same internal session can access using the EXPORT and IMPORT statements. Data within this area remains intact during a whole sequence of program calls. To pass data
to a program which you are calling, the data needs to be placed in ABAP memory before the call is made. The internal session of the called program then replaces that of the calling program. The program called can then read from the ABAP memory. If control is then returned to the program which made the initial call, the same process operates in reverse.
ABAP memory is temporary and values are retained in same LUW.
export itab to memory id 'TEST'.
import itab from memory Id 'TEST'.
Here itab should be declared of same type and length. -
Possible to change the variables in the program permanently?
Is it possible to change the content of the variable in the MIDlet application??
Hello,
As there is no beans mechanism in J2ME, here is what you can do. You can save values into RMS and then fetch them from there when you load the MIDlet.
Regards,
Petteri
Nokia Corp. -
ESB - Global Variables? access of the variables outside the transformation
I am working on one of the ESB services for my project(not looking for BPEL).
1. Database adapter polls the data table (Say X and Column C1, C2, C3....Cn,CountofRecordsof Other table Y)
2. Routing Service calls other database adapter for pulling the data from other table(Say Y) in another schema based on the C1,C2,C3 from X.
3. After getting the count(i only need the count of records based on the C1, C2 and C3 conditions from Y table), I have to update the table X which corresponds to the row C1.
The trouble what I have is
1. How do I update the records which is for the C1 as the return of the value (which is the count) from the second adapter gives only the record count but it doesn't store the identifier from the first table.
2.Is there anything called global variable concept in the ESB?
3.How to access the varilable which are outside the schema in the current transformation. i.e, consider I have two schemas, Schema A and Schema B,where I am mapping the variables in the transformation, and considering I need a variable which is the schema which was populated with values during runtime in Schema C.
Let me know if needs more clarification!
thanks,
PrashanthHi,
>>
1. Database adapter polls the data table (Say X and Column C1, C2, C3....Cn,CountofRecordsof Other table Y)
2. Routing Service calls other database adapter for pulling the data from other table(Say Y) in another schema based on the C1,C2,C3 from X.
3. After getting the count(i only need the count of records based on the C1, C2 and C3 conditions from Y table), I have to update the table X which corresponds to the row C1.
>>
I suppose your RS at step 2 gives C1, C2, C3 as input and you invoke DB adapter to get count and forward response to other service.
>>
The trouble what I have is
1. How do I update the records which is for the C1 as the return of the value (which is the count) from the second adapter gives only the record count but it doesn't store the identifier from the first table.
>>
If I understand your task correctly, try to use ESBREQUEST to accomplish your task.
>>
2.Is there anything called global variable concept in the ESB?
>>
No, there are no global variables in ESB, such in BPEL.
I think, this should be known when you first starting a design your ESB processes.
You can accomplish your task in next way:
add global variable to your XML payload.
For example, your XML payload looks like:
<payload><some content/></payload>
You can extend your XML schema to include global variable, so you payload may looks like:
<payload><some content/><global_var>value</global_var></payload> (I think this's the best way, if you really need something that can be accessed in many parts of your ESB process)
>>
3.How to access the varilable which are outside the schema in the current transformation. i.e, consider I have two schemas, Schema A and Schema B,where I am mapping the variables in the transformation, and considering I need a variable which is the schema which was populated with values during runtime in Schema C.
>>
Sorry, I didn't understand. What schema do you mean? XML schema or DB schema? -
How to initialize the variables in the subvi when the main vi running?
Hi, friends!
Now I am working on a project with labview. I make a main vi including many subvis.
When the main vi running, I want to reinnitialize the variables in the subvi to zero.
I know that I can realize that using the local variable when I enter the subvi,
but I want to keep the the values when I left the subvi and saw them when I
click in this subvi again. So, I do not reinitialize the subvi when it runs. But, I
don not know how to reinitialize the indicators in the subvi when I run the main
VI in the first instance. I try to use the global variables, but it seems do not work
well. Would you like to give me some advice? Thanks a lot!Hi dec,
If I understand your question, try using the "First Call?" node in your Sub-VI - to initialize values the first time the VI executes every time the top-level VI is Run.
If this doesn't work for you, just post again!
Cheers.
"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare) -
Not able to set the variable to the variant in dynamic selections
HI,
I got a ticket related to variant. The variant is created to the report and logical database is added in the attributes of the report so that we can have the option to choose the dynamic slections. Variables are created in TVARVC table. I am able to set the variable by pressing F4 in dynamic selections to the variant. When i save and comeback, i am not able to see the variables in the dynamic selections. I can save the variables in static selections and it is working fine. Pleas help me i need this urgently.Hi,
maybe sth wrong with the passing of parameters in the value help of the affected field.... Pls check.
BTW: do u pay us for solving your customer tickets? (-;
Cheers,
André -
How to find the variable in the Query?
Hi Expert,
I test the BEx query by the tfcode RSRT1, after exectued, Go to "Info" tab and we can see the "Variable Values" colum, however, the variable values dont show all variable defined in Query, do you know which type of varible will show in this colum? Thanks very much.
Best Regards,
AndrewHi,
The reason you are not able to see all the variables in query designer while they are there in RSRT1 is that:
1. Their might be some condition used in your report which need user input
2. Their might be a restricted Key Figure with restriction based on user input
In order to see all the variables in query designer available in RSRT1 report. Go to properties tab on the rightmost side in BI7 and select the Query. Now click on variable screen tab here you will see list of all the variables used in the report.
Regards
Shubh
Edited by: Shubh Karan Rathore on Nov 16, 2010 10:57 AM -
I always get the count as 0 for the variable. I am not sure what I am doing wrong. Please let me know if any of you know the fix.
ThanksHere is the query I used now. Still same result
SELECT (select count(*) from usr_all_mbrs where PREMIER_YN = 'Y') AS count1
SELECT
(select
count(*)
from usr_all_mbrs
where PREMIER_YN
=
'Y')
AS count1 -
Problem using the value of the variable in the KM options - Essbase Extract
Hi,
I am able to extract the data from Hyperion Essbase using the report script present in D:\ODIHome\oracledi\demo\hyperion.
Instead of hardcoding the absolute file path in LKM options, I have requirement to use the value of variable, PIPHome and form the file path.
So in LKM Options I gave Extraction Query File path as #GLOBAL.PIPHome \oracledi\demo\hyperion\extract.rep
Its not able extract the data and throwing following exception.............Please help me in using the variable value in KM options. Thanks.
org.apache.bsf.BSFException: exception from Jython:
Traceback (innermost last):
File "<string>", line 1, in ?
com.hyperion.odi.essbase.ODIEssbaseException: Cannot execute report. Analytic Server Error(1030009): Name too long (#GLOBAL.PIP_HOME\oracledi\demo\hyperion\extract.rep) in ESSAPI function EssReportFile
at com.hyperion.odi.essbase.ODIEssbaseDataReader.getAppData(Unknown Source)
at com.hyperion.odi.essbase.AbstractEssbaseReader.extract(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)
at org.python.core.PyMethod.__call__(PyMethod.java)
at org.python.core.PyObject.__call__(PyObject.java)
at org.python.core.PyInstance.invoke(PyInstance.java)
at org.python.pycode._pyx3.f$0(<string>:1)
at org.python.pycode._pyx3.call_function(<string>)
at org.python.core.PyTableCode.call(PyTableCode.java)
at org.python.core.PyCode.call(PyCode.java)
at org.python.core.Py.runCode(Py.java)
at org.python.core.Py.exec(Py.java)
at org.python.util.PythonInterpreter.exec(PythonInterpreter.java)
at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:144)
at com.sunopsis.dwg.codeinterpretor.k.a(Unknown Source)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(Unknown Source)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(Unknown Source)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(Unknown Source)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(Unknown Source)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(Unknown Source)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(Unknown Source)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(Unknown Source)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(Unknown Source)
at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(Unknown Source)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(Unknown Source)
at com.sunopsis.dwg.cmd.e.i(Unknown Source)
at com.sunopsis.dwg.cmd.h.y(Unknown Source)
at com.sunopsis.dwg.cmd.e.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: com.hyperion.odi.essbase.ODIEssbaseException: Cannot execute report. Analytic Server Error(1030009): Name too long (#GLOBAL.PIP_HOME\oracledi\demo\hyperion\extract.rep) in ESSAPI function EssReportFile
at com.hyperion.odi.essbase.wrapper.EssbaseReportDataIterator.init(Unknown Source)
... 33 more
Caused by: com.essbase.api.base.EssException: Cannot execute report. Analytic Server Error(1030009): Name too long (#GLOBAL.PIP_HOME\oracledi\demo\hyperion\extract.rep) in ESSAPI function EssReportFile
at com.essbase.server.framework.EssOrbPluginDirect.ex_olap(Unknown Source)
at com.essbase.server.framework.EssOrbPluginDirect.essMainReport(Unknown Source)
at com.essbase.api.session.EssOrbPlugin._invokeMainMethod(Unknown Source)
at com.essbase.api.session.EssOrbPlugin._invokeMethod2(Unknown Source)
at com.essbase.api.session.EssOrbPlugin._invokeMethod(Unknown Source)
at com.essbase.server.framework.EssOrbPluginDirect._invokeProtected(Unknown Source)
at com.essbase.api.session.EssOrbPluginEmbedded.invokeMethod(Unknown Source)
at com.essbase.api.session.EssOrbPluginEmbedded.invokeMethod(Unknown Source)
at com.essbase.api.session.EssOrbPlugin.essMainReport(Unknown Source)
at com.essbase.api.datasource.EssCube.report(Unknown Source)
... 34 more
com.hyperion.odi.essbase.ODIEssbaseException: com.hyperion.odi.essbase.ODIEssbaseException: Cannot execute report. Analytic Server Error(1030009): Name too long (#GLOBAL.PIP_HOME\oracledi\demo\hyperion\extract.rep) in ESSAPI function EssReportFile
at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
at com.sunopsis.dwg.codeinterpretor.k.a(Unknown Source)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(Unknown Source)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(Unknown Source)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(Unknown Source)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(Unknown Source)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(Unknown Source)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(Unknown Source)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(Unknown Source)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(Unknown Source)
at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(Unknown Source)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(Unknown Source)
at com.sunopsis.dwg.cmd.e.i(Unknown Source)
at com.sunopsis.dwg.cmd.h.y(Unknown Source)
at com.sunopsis.dwg.cmd.e.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)Hi,
If you are going to use variable as one of the options then what you can do is create a package.
Drag your variable on to the package and set or declare it.
Then drag your interface on to the package.
Now when you execute the package it should make use of the variable.
Cheers
John
http://john-goodwin.blogspot.com/ -
Issue with F4 help for the variables for the 0CALWEEK and 0CALMONTH
We have custom IOs which refers to 0CALWEEK and 0CALMONTH.In the report we have variables on the custom IOs.For these variables F4 help does not giving any values .I tested with 0CALWEEK also. For the 0CALWEEK also F4 help does not working..Please help me on this issue.The variable I haveused d to test with 0CALWEEK is 0S_CWEEK.
Edited by: Sudhakar Are on Jul 6, 2010 4:17 PMHi Pramod,
I don't know how it is done in infoset. But if you have a context node and attribute for the field which is displayed in the view, create a custom dictionary search help for the field you want. Design the search help as per your requirements (what fields to be displayed etc..).
In the context attribute of that field property, select 'Dictionary search help' in the Input help mode. Enter the name of your custom search help here.
Thanks & Regards,
Satheesh.
Maybe you are looking for
-
Can you set up a smart group to send to all email addresses for each card?
So several of my contacts have more than one email address. I'd like to set up smart groups that send to all of the email addresses for each contact. Is there any way to do this? I've seen some topics that mention applescripts, but that required a bu
-
How do I get camera photos off my iphone?
How can I get the photos that I have taken with the iPhone off onto my computer?
-
Is there an easier way to draw a shape in 3d to match X,Y, Z of photo?
I usually start a project in 2d and import photos, draw shapes and text in this 2d environment. I find it easier this way because they all start out on the same plane, and when manipulating in 3d later, this initial plane acts as a reference plane th
-
Mail - New Message command stalls application
In the last week, attempts to create a "New Message" in Mail result in the POD (Pinwheel Of Death). This state will usually go on for 1 or 2 minutes. It also occurs if "Reply" or "Forward" is selected. Sometimes I can avoid it by clicking on the comm
-
How to prevent an automatic fill in of the current date into a Date/Time Field
hi, maybe i checked out a strange behaviour of the adobe designer. when i put a "normal" data/time field (with no data pattern, display pattern, etc.) on a form and then change (on the pdf preview tab) to the newly designed date field,i have to stay