How to use one Bex Variable for two purposes in one query?
Hi,
I want to prompt for a UOM in a query. Then I want to use that one UOM variable to do 2 tasks in the query:
1. Perform a UOM conversion on one restricted key figure (no filtering)
2. Filter in a second restricted key figure (no conversion)
How would I use a variable (or two?) to do this? I do not want to have 2 UOM prompts.
Thanks!
Gregg
Oh, it all seems so easy now! Hindsight 20-20...
Solution was to create a new input ready variable for Unit.
1. Restrict the key figures which need restricting using new variable
2. For conversions, in BI backend us T-code RSUOM and create new conversion type associated with new variable. Then for each key figure needing conversion, set the conversion parameter to use the new conversion type.
Between both 1 & 2 above, the same variable is used & thus prompted only once.
Solution works perfectly.... as it should. Hope this helps someone else!
Similar Messages
-
How to use same RESULT SET for two different events
hello friends,
I need to use same result set for two different events. How to do it.
here My code,
private void jComboBox1ItemStateChanged(java.awt.event.ItemEvent evt) {
// TODO add your handling code here:
try
String selstate,selitem;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:tourismdatasource","sa","");
selstate="select * from tab_places where state=?";
PreparedStatement ps=con.prepareStatement(selstate);
ps.setString(1, jComboBox1.getSelectedItem().toString().trim());
ResultSet rs=ps.executeQuery();
if(rs.next())
jTextField1.setText(rs.getString("place_ID"));
jTextField2.setText(rs.getString("place_name"));
jTextField3.setText(rs.getString("category"));
byte[] ba;
ba=rs.getBytes("image");
ImageIcon ic = new ImageIcon(ba);
jLabel6.setIcon(ic);
in=true;
catch(ClassNotFoundException cfe){JOptionPane.showMessageDialog(null, cfe.getMessage());}
catch(SQLException sqe){JOptionPane.showMessageDialog(null,sqe.getMessage());}
Now i need the same Result Set(rs), in another event(jButton6ActionPerformed),
private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
} how do i get dat resultset,
help me outOne post wasn't enough?
{color:0000ff}http://forum.java.sun.com/thread.jspa?threadID=5246634{color}
db -
How to use one query results in another query
hi,
in help.sap I have founded that using variable type replacement path I can use one query results in another query. It is wrote there that I have to choose query name results I want to get in variable definition but I do not know where.
How I can do this?
Result I want to get is:
In one query I have material prices in another material quantities. I want to calculate inventory value (price * quantity). Moreover prices are on plant level, quantities on storage type level. Plant is atribute of storage type.
Can I do this?
Regards,
AndrzejHi Andrzej,
please check out this thread: Set parameters values depending on other parameters
I had a discussion about query results as input for another query in there.
For creating a workbook, just click on the save button after you ran your query in the bex.
Siggi
Message was edited by: Siegfried Szameitat -
How to use ONE query to find out tree structure?
ID------------upperID----------Name------------------------isFolder
1------------ 0---------- Folder
1------------------------------------1
2------------ 1------------ Folder 1- Sub
Folder--------------------1
3------------ 2------------
Folder1-Item1-A--------------------------0
4------------ 1------------ Folder 1- Sub
Item-----------------------0
Hi all, if I have a table like above to demonstrate the
folders and item relationship. This structure allows the user to
create unlimited folders and items.
Now I would like to use one query to find out the tree
structure of this table, how could I do the query.
Any help on this will be highly appreciated!
Thanks,
ezAlso, see this thread:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=1&catid=7&threadid=12 55788&enterthread=y -
How to use same jco destinations for two DCS
Hi,
I have a scenario where two dcs are using the same function module so i have a doubt that can we make jco destinations different for two dcs or not,plz help me
Thanks,
Santhosh.Vanama
JCO Destination names are associated with models and not DCs. You can use same or different JCO destination names across different models.
Typically if you are using a common set of function modules(RFCs) you might decide to create one or more model (each model consisting of logically related RFCs)in one DC and use it accross different DCs(By declaring the usage of the DC in other DC and declaring model usage in a particular component). This not only will save build time during design process, but will also bring in modularity and reusability. But its purely a design decision you need to make based on your requirement.
kk -
How to use a global variable for reading a query resultset in JDBC lookup?
Hi Friends,
Using JDBC lookup, I am trying to read from a table Emp1 using a user defined function. In PI 7.0, this function returns values of a single column only even if you fire a " Select * " query. I am planning to use a global variable(array) that stores individual column values of the records returned by a "select *" query. Need pointers on as to how a global variable can be declared and used to acheive the above scenario. Kindly explain with an example. Any help would be appreciated.
Thanks,
Amit.Hi Amit,
Sounds like a good idea but then you would need an external db and update the table in a thread safe way !.
Regarding your question as to how to work with global variable please refer https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/1352. [original link is broken] [original link is broken] [original link is broken]
Rgds
joel -
How to use Stock Category Group for two different configuration.
Hi all,
I want to use the stock category group to do this scenario:
I have two process using the same location, the process A wants to consider Stock cat. Grp. 'ZSW' (SAPAPO/LOC3) so it will consider Stock using CC, CF and CE. The process B wants to consider Stock Cat. Grp. 'ZST' to consider only CC.
My doubt:
How can I do that setup to make different things according the process? I tried to do something in Planning Area (SAPAPO/MSDP_ADMIN) but doesnu2019t work.
Can anyone help me?
Thanks,
-Ralph VeigaHi Ralph Veiga,
Indeed the stock category group is define at location level...
I think your answer involves macros more than PA settings.
First I will suggest to split the stock key figure into 2: one for CC, one for the other.
For the CC, use the standard (cetegory group with CC only on the location master)
Now you need to populate the second key figure with CF and CE.
You should be able to built a macro using function PHYSICAL_STOCK() to get what you want.
For sure yuo first need a way to check if you want or not the CF and CE. Here implement your own logic for exemple base on your product characteristics with either MAT(), MAT_C(), MAT_EXTRA(), MATLOC_C()...
Else you can use a Z function in the macro to collect this data, but it involves ABAP coding.
PS: you don't actually need to split the key figure into to, but I think it helps with visibility...
Regards
Julien -
How to use testdb?(answered for two options,thanks)
No info found for this tool.
Last edited by lilsirecho (2008-01-23 04:24:45)The use of noobie forum provides answers for noobies whether used by an oldster like me or a noobie. That is what forums are for...to answer queries for everyone!
Guess I have to accept your answer although it doesn't provide a tie-in with pacman which employs the -b option to designate an alternate DB. EDIT: That is my situation...as well as /var/lib/pacman as an alternate.
Tried it as posted and am in the dark as to whether it worked since there was no indication of activity and a return to root prompt with no comment. It would seem a statement of "test passed" would be appropo.
Last edited by lilsirecho (2008-01-23 04:23:26) -
How to Use Same Navigation Panal for two different query
Hello,
My requirement is I have to display three different report in same web template in three different tab.
I have created a custom web template with tab.
in each tab i have assigned three different analyser table and assigned three different report in each data provider. once I run the report that works fine, each tab is displying each report seperately.
The problem I am having here with navigation panal. Navigation panal is working ok for 1st report, but when I go to the 2nd tab for 2nd report nev attribute itself is not displying. is there any special setting that i am missing?
If any one know about the same pls help me
Thanks
SamitHi
When u select the Generic navigational block to ur template. select that and right click go to properties, in the lift side of u web item will come in that last but one option is Affected data providers is there double click on the list u will get the option
Shashi -
How to use one query against multiple table and recieve one report?
I have duplicate tables, (except for their names of course) with commodities prices. They have the same column headings, but the data is different of course. I have a query that gives me a certain piece of information I am looking for but now I need to run this query against every table. I will do this every day as well, to see if the buying criteria is met. There are alot of tables though (256). Is there a way to say run query in all tables and return the results in one place? Thanks for your help.
hey
a. the all 256 tables whuld be one big partitoned table
b. you can use all_tables in order to write a select that will write the report for you:
SQL> set head off
SQL> select 'select * from (' from dual
2 union all
3 select 'select count(*) from ' || table_name || ' union all ' from a
4 where table_name like 'DB%' AND ROWNUM <= 3
5 union all
6 select ')' from dual;
select * from (
select count(*) from DBMS_LOCK_ALLOCATED union all
select count(*) from DBMS_ALERT_INFO union all
select count(*) from DBMS_UPG_LOG$ union all
remove the last 'union all', and tun the generated quary -
SQL> set head on
SQL> select * from (
2 select count(*) from DBMS_LOCK_ALLOCATED union all
3 select count(*) from DBMS_ALERT_INFO union all
4 select count(*) from DBMS_UPG_LOG$
5 );
COUNT(*)
0
0
0
Amiel -
Use BEx variable for user input data, not to filter.
Hi,
I have a situation where I am displaying notification task data. Each header notif has a number of tasks. These tasks are marked either newest, oldest or no mark (in the middle) for each different task code.
Using VKF's and by passing the user entered variables for newest and oldest I am able to make KF calculations.
So if I have a notif that is like this:
Notif XYZ
Task 1 Code: SCM Date: 1/1/2000
Task 2 Code: SCM Date: 1/4/2000
Task 3 Code: SCK Date: 1/10/2000
If the user selects Newest = SCM and Oldest = SCK
The key figure would use those 2 different notif tasks to calculate.
This works fine.
My problem now is that since the data is displayed at the line level. When the user enteres his choices for task code, BEx will filter to find one single task item that has both the Newest and Oldest values that the user entered. It will return no data.
Example:
NOTIF TASK NEWEST OLDEST
XYZ.........1.......SCM
XYZ.........3..................SCK
If user enteres Newest = SCM and OLDEST = SCK
It will look for one line with both value, returning nothing.
So, I want to simply use the BEx selection screen to pass values to my virtual code (which I already have working)- but I do not want the report to filter on a notification that only has both values as OLDEST and NEWEST tasks.
Is this possible? To deactivate the BEx filtering for two infoobjects thus only passing the user entered values to my CMOD code?
Any help/suggestions would be appreciated.
Thanks in advance,
BrandonHi Prakash,
Can you explain what you mean? I know using a text variable would allow me to take the user entry and apply it to the header of a column... but how would it disable filtering on what was entered?
Thx -
How to use multiple VCI strings for lap 1300 and 1200 (option 60) in one pool?
Hi All,
Hope to you a very happy new year,
I have two differnt LAP 1300 and 1200 in my network and I need to add theme to the WLC,
I successed to add one of theme by the option 60 in the DHCP pool at the Core SW,
So my quetion is below:
How to use multiple VCI strings for lap 1300 and 1200 (option 60) in one pool?
Thanks in Advanced,
Ahmed,To add to Scott's post. Option 60 would be useful if you needed to put certain types of AP on specific controllers. Otherwise, no real need to use it for the most part.
Though, I do recall an issue a few years ago that some windows machines had issues getting DHCP if option 43 is being returned.
Now, on an IOS switch, you can only configure one option 60 per DHCP scope
HTH,
Steve
Please remember to rate useful posts, and mark questions as answered -
How to use one commandButton to execute two task in JSF
I have a form in JSF page which contains different faces components. These faces bind to ADF BC to insert one row in the database when the user press commandButton. Also I need to bind the value of one inputText in that form to managed bean to execute another task in the application when the user press the same commandButton.
The code of the inputText:
<h:inputText value="#{bindings.ProjectNumber.inputValue}"
id="pn"
size="10"
required="#{bindings.ProjectNumber.mandatory}">
The code of commandButton:
<h:commandButton actionListener="#{bindings.Commit.execute}"
value="Save"
disabled="#{bindings.Commit.actionEnabled}"/>
The managed bean is “findInspector”. I tried to insert inputHidden inside commandButton tag and assign the value of the inputText to the inputHidden as follows:
<h:commandButton actionListener="#{bindings.Commit.execute}"
value="Save"
disabled="#{bindings.Commit.actionEnabled}">
<h:inputHidden value="#{bindings.ProjectNumber.inputValue}" binding="#{findInspector.project}"/>
</h:commandButton>
But it was not work
Please how can I write the code to use the value of the inputText more than one time in the JSF(one to insert one row by using ADF BC and another to use the same value to bind to a managed bean) and how to use one commandButton to execute two task in JSF.
Thank you
WaheedYes I did
<managed-bean>
<description>The bean for get project No</description>
<managed-bean-name>projectBean</managed-bean-name>
<managed-bean-class>
mcscm.model.ProjectBean
</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>bindings</property-name>
<value>#{bindings}</value>
</managed-property>
</managed-bean>
Also I changed the method in the managed bean as follows:
public String commandButton_action() {
FacesContext fctx = FacesContext.getCurrentInstance();
ValueBinding vb = fctx.getApplication().createValueBinding("#{bindings}");
DCBindingContainer dcb = (DCBindingContainer) vb.getValue(fctx);
OperationBinding operation = (OperationBinding) dcb.get("projectNumber");
operation.execute();
return null;
where projectNumber is my method in the java class of the application module "TaskInformationImpl". I made this method to be accessed from outside of ADF BC.
I just create a sample code for projectNumber method for testing only as:
public void projectNumber (String data){
System.out.print(data);
In the page Pagedef file I added this :
<methodAction id="projectNumber"
InstanceName="TaskInformationDataControl.dataProvider"
DataControl="TaskInformationDataControl"
MethodName="projectNumber" RequiresUpdateModel="true"
Action="999" IsViewObjectMethod="false">
<NamedData NDName="data" NDValue = "#{bindings.ProjectNumber.inputValue}" NDType="java.lang.String"/>
After I did all of this I get a new error like:
javax.faces.FacesException: #{projectBean.commandButton_action}: javax.faces.el.EvaluationException: java.lang.ClassCastException: oracle.adfinternal.view.faces.model.binding.FacesCtrlAttrsBinding cannot be cast to oracle.adf.model.OperationBinding
Is it very difficult to do this in JDeveloper?. yes ADF BC provide me a lot of facilities, but when I want to do a specific task I face a lot of troubles -
How to use one email adress for multiple recipients
Hello,
I'd like to know how to use one email adress for multiple recipients.
this would be very useful or projects. for example;
if i send one mail to [email protected], all people in this project get an email.
I will add the people in this project myself.
I know it is possible, but I don't know how to do it ;-)
please help me!Hope this help.
_http://technet.microsoft.com/en-us/library/cc164331(v=exchg.65) .aspx -
How to use one commandButton to execute two tasks in JSF
I have a form in JSF page which contains different faces components. These faces bind to ADF BC to insert one row in the database when the user press commandButton. Also I need to bind the value of one inputText in that form to managed bean to execute another task in the application when the user press the same commandButton.
The code of the inputText:
<h:inputText value="#{bindings.ProjectNumber.inputValue}"
id="pn"
size="10"
required="#{bindings.ProjectNumber.mandatory}">
The code of commandButton:
<h:commandButton actionListener="#{bindings.Commit.execute}"
value="Save"
disabled="#{bindings.Commit.actionEnabled}"/>
The managed bean is �findInspector�. I tried to insert inputHidden inside commandButton tag and assign the value of the inputText to the inputHidden as follows:
<h:commandButton actionListener="#{bindings.Commit.execute}"
value="Save"
disabled="#{bindings.Commit.actionEnabled}">
<h:inputHidden value="#{bindings.ProjectNumber.inputValue}" binding="#{findInspector.project}"/>
</h:commandButton>
But it was not work
Please how can I write the code to use the value of the inputText more than one time in the JSF(one to insert one row by using ADF BC and another to use the same value to bind to a managed bean) and how to use one commandButton to execute two tasks in JSF.
Thank you
WaheedJust dopublic void execute() {
anotherAction(inputValue);
I guess those articles might be interesting about passing params and the usage of inputHidden and also about using datatables:
http://balusc.xs4all.nl/srv/dev-jep-com.html
http://balusc.xs4all.nl/srv/dev-jep-dat.html
Maybe you are looking for
-
Hello I have created user accounts for my students here in our computer lab on our macs. What I am noticing is that Pages is losing its font capabilities in the user accounts. Some of my students can't change fonts, or point sizes, and everything com
-
I try to purchase a free app on the app store and it asks for my password. I put my password in and it asks me to change my billing info. I put in all the correct info but it asks for a issue number but my card does not have one so i can't purchase a
-
Report Builder is not exist in fusion middleware forms&reports installation
Dear All, i have installed oracle fusion middleware forms & report services ofm_frmrpts_win_11.1.2.1.0_64_disk1_1of1. form builder is there, but the report builder is not there? why? where is report builder? Regards.
-
Where do I find purchased downloads for a new pc?
I have a new laptop and purchases. Where do I go to download software I have purchased?
-
HT3529 How do I set up an office programme, create document or spreadsheet?
I want to be able to create documents and spreadsheets on my iPad2. Also how do I set up folders in mail?