POP UP inside a report: conditional query based on other col el. values
HI to all,
i've a really simple question: is there a way inside a pop up in a report, to refer to other columns value (of the same row)?
I'm giving my example:
i've a table called CNT_VAL_SEG_DEMO
id
des
value
value have to be a pop up LOV, query based:
the pseudo sql code is this:
SELECT DISTINCT VALUE V1 , VALUE V2 FROM CNT_VAL_SEG_DEMO WHERE
des=<pseudo code>#DES#<pseudo code>.
What should i use instead of #DES#
Hope that is clear enough
thanx a lot
Hi,
i think i've found the solution on htmldb studio.
Doesn't matter.
However for pointing who's reading
to the right direction:
http://htmldb.oracle.com/pls/otn/f?p=18326:54:3063779097888583::::P54_ID:1282
Tips and tricks: Simulating a correlated sub report in Lov
Thanx a lot
Message was edited by:
Marcello Nocito
Similar Messages
-
PM Notification - Hide fields based on other field's value
Hello experts,
I am looking for an user exit which allows me to hide some fields based on other field's value.
For example, I have field 1 and field 2. When I open my notification, if the value of field 2 is 'aaa', field 1 has to be hidden.
There should be an user exit but I can't find it...
Thanks for your help!Hi everyone,
Any thoughts? any help is appreciated...
Thanks -
Pricing reports,ABAP query based repors
hai
pls tel me the how to prepare the pricing reports as well as abap query based reports
thanks in advanceDear sri vijay ,
Please read the rules of engagement before posting in forum
Please search the forum before posting
I am sure you will get lot of past threads related to ABAP Query and Pricing Reports.
Thanks & Regards,
Hegal K Charles -
Interactive Report - One column based on a list of values
I have an Interactive Report that's part of a Form with Report. The form works fine, but I have a problem with the interactive report. One of the fields is based on a list of values. That is, the data in the table in the State field has numeric state codes, 1 to 51. The form part has no problem with this, as it's a select list based on a list of values LOV query, so the user selects the actual name of the state.
The interactive report, however, displays the numeric codes, which is what is actually in the table. I am looking in the column definition for some way to tell it to convert the value to the state name, but I do not see it. There is a List of Values place, but that seems to be for filtering purposes instead of for return vs. display value.
3.2.Tharpa,
I'm not sure if what I am about to suggest will work in 3.2. However, in 4.1, I am using LOVs with IRRs without any issue.
For example, if I have an address field of state code, I have a named LOV (LOV_STATE). I go into the report attributes for this column. There, I find a section named "List of Values" In here, I pick the "column filter type" of "Use Named List of Values to Filter Exact Match". (Presumably, this will work with Static List too). When the column is displayed, I see the State name displayed.
-Joe
Edited by: Joe Upshaw on Mar 14, 2012 1:58 PM -
Running query based on other query result
Hi Again Friends.
first of all i am very much thankful for members who sent me prompt response and been helping for last 2 days.I am again with query,maybe a lame one.
I want to run a query based on record return from previous query.FOr instance i have query
Select sum(marks) from studentMarks,student_id where course_Id=4 and student_Id
IN
(Select StudentId from Student where dept_id=3)
the courseID and studentID are being repeated in the above table
now I want to show Student Names with the marks Obtained and who belong to dept_id=3,i want to run other query to get Name based on StudentId resutned from previous one.
Is there anyway to do this in oracle to save result in some resultSe and use it later?
ThankyouDo you mean something like:
Select sum(marks), S.StudentId, S.StudentName
from StudentMarks M
, Student S
where S.course_Id=4
and M.Student_id = S.StudentId
and S.student_Id
IN
(Select StudentId from Student where dept_id=3)
group by StudentId, StudentName -
Financilal reports - Members display based on other Dimension members
Hi All,
Can we display the members in a dim based on selection of members in other dim.........these 2 dim's are not in row/Col.......
we hav scenario = actual,budget
If user selects Actual we need to display all members in time dim;
and if user selects budget we need to display limited members only;
How can we achieve it.
Thanks in advance
Anuradhahi anuradha,
Conditional suppression works for restricting the members to be displayed in grid-row/grid-column/grid-page
One user POV selection can never be restricted based on selection on other userPOV.
In user POV, you will always see all the members from Scenario and time dimension, you have access to...
May be if you put your Scenario dimension to user POV and Time dimension to page then by using the conditional suppression you will be able to achieve the same.
Hope this helps.
Regards,
Rahul -
Populating item using a sql query based on other item of diff table
Hi,
It would be great if someone could help.
I have two items on my form page .
My first item P1_sub_prog is of select list with submit, it fetches values from table prog "mv_cap_prog_subprog" of the same schema whihc I am using for teh current application.
I want my second item P1_PROGRAM to be populated with value corresponding to my first item value, after being fetched from the same table on the basis of the first item value (P1_SUB_PROG)
Both the item values have a relation.
I tried by creating sql as well as LOV for the second item but its not working.
It displays nulll in the second item field.
While using sql I tried the following query
in the source request of second item i.e P1_PROGRAM
SELECT DISTINCT a.program_id d,a.program_id r FROM
mv_cap_prog_subprog
WHERE SUB_PROGRAM_ID = :P1_sub_progHi,
Search this forum for "cascading select list".
You will find lots of help.
Cheers,
Patrick -
How to default the KFF segment values based on other field's value
Hi,
I would need to reset the 5th segment value of "Liability Account" field on R12 Supplier Page under "Accounting" link.
Condition: And it has to be based on some other value like "GLOBAL CONTEXT VALUE and TaxPayer ID Type" under "Organization" link.
Right now; as per the seeded page it defaults the Liability Account to "BL-130-0000-2110-0000-0000" under accounting link; I need to change this default value to "BL-130-0000-2110-2641-0000" based on above condition.
I have tried using the below code:
OAKeyFlexBean oakeyflexbean = (OAKeyFlexBean)oawebbean.findIndexedChildRecursive("LiabilityFlex");
oakeyflexbean.setText()
But this one does not work.
Can anyone suggest me some option to acheive this requirement.
Thanks
Edited by: 880860 on May 21, 2012 2:23 PMHi everyone,
Any thoughts? any help is appreciated...
Thanks -
Need to filter unique columns based on other column's values
I'm rookie and I'm running this query:
SELECT TO_NUMBER (hs_key) bug, "HS_TABLE_NAME", "HS_COLUMN_NAME",
"HS_CHANGE_DATE", "HS_CHANGE_TIME", "HS_CHANGER", "HS_NEW_VALUE"
FROM cb_tdqatodo1_history
WHERE (hs_column_name) = 'BG_STATUS'
AND (hs_new_value) LIKE '%Not a Bug'
AND (hs_change_date, hs_key) IN (
SELECT MAX (hs_change_date) hs_change_date,
hs_key
FROM cb_tdqatodo1_history
GROUP BY hs_key);
The result is
BUG HS_TABLE_NAME HS_COLUMN_NAME HS_CHANGE_DATE HS_CHANGE_TIME HS_CHANGER HS_NEW_VALUE
101 BUG BG_STATUS 12/16/2005 17:49:54 helpdesk Closed Not a Bug
101 BUG BG_STATUS 12/16/2005 12:20:22 hgarcia Not a Bug
1012 BUG BG_STATUS 1/21/2005 08:04:56 helpdesk Not a Bug
1014 BUG BG_STATUS 2/1/2005 14:33:56 lossa Not a Bug
1020 BUG BG_STATUS 1/28/2005 17:04:45 fgonzalez Not a Bug
I need to resolve the cases when the field BUG has the same value in HS_CHANGE_DATE but different value in HS_CHANGE_TIME without impact the rest of the records?
In this case I need the result just show me one Bug per line.
ThanksBasically you want to create two filters on different columns and have OR clause between them instead of an AND. To acheive this, add both of your filters, once added you will the them in the filters section. Click on AND, and it will change to OR. This should solve your problem.
Look at the below image where you can see two filters with an AND clause. Clicking on AND will change it into OR.
http://gerardnico.com/wiki/_media/dat/obiee/presentation_service/obiee_filters.jpg
Close thread and award points please.
Thanks,
-Amith. -
Pricing Condition type triggering based on other condition type
Hello sir,
There are some pricing condition types in our system.
Based on condition records you can trigger one condition type based on other condition type.
For eg: PR00 condition type is there and amount is suppose 1000rs and other condition type is JBED and we made a condition record and put it some percentage so as soon as we some value in PR00 ,JBED condition type is automatically manipulating the value on the base condition record.
Now i want other than condition record can we trigger one condition type based on other condition type through defining user routine under requirement.
Suppose we have condition type ABC and some amount i have given and other condition type DEF , i want that amount of DEF condition type should automatically come from the Condition type and it should manipulate according to my routine .
eg Condition type Amount
ABC 1000
DEF 40
The value 40 should come as 4% of 1000.
I am not maintaing any condition record and i want that this should trigger through some requirement created by me.
i created my routine no 905 and i putted the code inside it.
if komtl-kschl = 'DEF'.
komv-kbetr = ( komv-kbetr * 4) / 100.
endif.
Now problem is that this code is getting trigger when i m giving value in DEF condition type then it is showing 4 % of it.
But i want as soon as i give value for the condition type ABC and some value 1000
then after pressing enter , one condition type DEF should automatically come with value 40 that too in display mode ,not in change mode.
Please suggestions and solutions regarding this matter , I will be grateful to you.
Manishhi
In V/06 in the calculation type you can see the entries for "D-gross weight" & "E-net weight"
For the required condition type select the calculation type as gross weight or net weight. Save it.
In MM01 - create material master, here in BASIC DATA 1 SCREEN you have fields for gross weight & net weight.
Maintain the condition record in VK11 for the required condition type.
You can also maintain the scales as required like u said
1 to 10 kgs - 100 rupees,
11 to 25 kgs - 1000 rupees.
Another way could be
The BEST practice to do it is, use of VOFM routine for price calculation (VOFM-->Formulae).
Take help from ABAPer and write a routine such that
if weight = 1 - 10
price = 100.
else if weight > 8.
price = 1000.
else
price = 100.
end if
but the maintainnance of routine is big problem as u might be having many records
Hope this will help you
Vishal -
Hi all,
i have created a condition Query to have only negative turnover values. Is it posible to have a total sum of only these negative turnover values? the general total i am having in my Query is of both the negative and positive turnover sum up together. Can someone sort me out with this.
Thanks alot.Hi,
create 2 querys,
1) one is for general (negative & positive values)
2) query for only negative values with condition,
insert both the querys in a Report designer report,
in report designer after u inserted the second query, just keep the result row and delete the other rows and execute. it will show you the sum of negative values without displaying the individual rows
Regards
ReddY A -
We face the above error in HTMLDB (APEX) application Ver 3.1.0. This occurs when we try to display more number of rows/records in drop-down list (LOV in tabular forms). We are able to display 200 records in LOV. When the list of records exceeds 230, we face the below error
report error:ORA-06502: PL/SQL: numeric or value error: character string buffer too small
the values listed in LOV are from tables (one of the columns in table)
Could anyone give us a solution?Hi
As you are using a tabular form, you could actually do the following:
1 - In the tabular form column's attributes, set the following:
Display as: Select List (query based on LOV)
Display extra values: Yes
List of values definition: SELECT null d, null r FROM DUAL
2 - Add a new page item and set it to generate your select list
3 - Create an HTML region with no template and use the following for its source:
<script type="text/javascript">
function loadList(c, l)
var s = document.getElementsByName(c);
var lItem = document.getElementById(l);
var lLength = lItem.options.length;
var k;
var j;
var x = lItem.innerHTML;
var v;
var o;
var z;
for (k = 0; k < s.length; k++)
z = s[k];
v = z.value;
z.options.length = 0;
for (j = 0; j < lLength; j++)
o = new Option()
o.value = lItem[j].value;
o.text = lItem[j].text;
z.options[j] = o;
z.value = v;
if (z.selectedIndex == -1)
z.selectedIndex = 0;
loadList("f05", "P1_MGR");
</script>
(Change "f05" and "P1_MGR" as appropriate to your column and your new page item respectively)
Now, when you load the page, the select list contains a null entry plus the entry already on the database. The javascript kicks in automatically, loops through every entry in the "f05" column, copies the existing value, replaces the select list with the new page item version and sets its value to the copied value.
Your new page item could be in a DIV tag that has a style of "display:none" to hide it from view.
Andy -
Bex report to report interface dynamically based on Value in the query
Hi,
Is it possible to change the destination of the report to report interface dynamically based on the data of the bex query?
For example my query has the below data
Plant | KPI | Quantity
P1 | A | 20.00
P2 | B | 25.00
When the user selects KPI A I want to navigate to Query 1, and when KPI B is selected to Query 2. Query 1 and Query 2 have completely different layouts, Instead of create to two destinations is it possible to pick one based on the KPI selected.
Is this possible in Bex report to report interface or any other way.
Please suggest
Thanks in advance.Hi
we have RRI in sap bw. ( TCODE RSBBS.)
Below article will enlighten you about this topic .
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/607e63d5-b56f-2c10-718f-8e33a08baa89?quicklink=index&overridelayout=true
hope this helps -
I am facing a problem in a crystal report which is based on Infoset query
Hi All,
I am facing a problem in a crystal report which is based on Infoset query.in the Cost Analysis - Planned vs. Actual Order Costs
There are two querys like Query: CO_OM_CA_20_Q1 and InfoSet: ZBPBI131_INFO_ODVR. I build infoset query based on sap best practice user guide but problem is not able to find CO_OM_CA_20_Q1
Best Regards,
SrinivasHi,
I would first of all suggest you don't open the same question twice. this looks like a duplicate to this entry:
Best Practices v3.31 - SAP InfoSet Query connection
Did you assign the queries and the infosets to an InfoSet user group and you assign the SAP account to it as well ?
Ingo -
I am facing a problem in a crystal report which is based on Infoset query.i
Hi All,
I am facing a problem in a crystal report which is based on Infoset query.in the Cost Analysis - Planned vs. Actual Order Costs
There are two querys like Query: CO_OM_CA_20_Q1 and InfoSet: ZBPBI131_INFO_ODVR. I build infoset query based on sap best practice user guide but problem is not able to find CO_OM_CA_20_Q1Please re-post if this is still an issue to the Business Objects Integration Kits - SAP Forum or purchase a case and have a dedicated support engineer work with you directly
Maybe you are looking for
-
Org.clamav.freshclam and permissions error on freshclam.log
This is an adjunct to a branched discussion in this thread regarding org.clamav.freshclam continually generating error reports in the system log. After enabling, but not starting, Mail service on my server (XServe Dual-G5, 10.5.8 Server) my system lo
-
Canvas Remains Still While Output Monitor is Fine
Recently the Mac Pro station I work on was upgraded from FCP 6.x to 7.03. Noting that everything worked fine prior to the upgrade and everything works fine after the upgrade except this new problem: When scrubbing the timeline audio and video playbac
-
Does executeBatch cause ResultSet to be closed?
The JDBC API Tutorial and Reference, Second Edition, states that the following method calls cause the calling statement object's current ResultSet to be close if open - execute - executeUpdate - executeQuery However, it does not include executeBatch.
-
Disabling Adobe Reader Addons in IE8 through javascript
Hi, I have a scenario. I want to disable/enable Adobe reader addons in IE 8 based on certain condition in my website through javascript. Is it possible to enable/disable addons in IE8 through javascript, or through any means without doing it manually
-
Will an Airport Express help?
I just set up a wifi network in my new apartment. Time Warner gave us a modem with wifi (Arias) but it was weak so I installed my Airport Extreme and set up a new network. It is much faster. But I am still noticing some slowness in the MacMini in the