To display drill down values in the same table
Dear Friends,
Suppose if you apply drill down on one object, it wont appear upper level values of that perticular object. If you want to display all levels of values in the same report during drill down.
From your view I belive that currently you have a structure in Rows containing Shipping and Sales for Current and Last year. Moreover, you have Year in the column and that is the reason you are getting the numbers in two different columns.
My suggestion is like this, remove the KFs from the selection of the structure and keep the name of each of the elements as it is. Remove Year from the Column and include them into selections of the structure elements.
Add the KFs, shipping and Sales into COlumns. Now as you already have restrictions into your selection, your numbers will be restricted in the output, but again here you will have Shipping coming in one column and Sales will be another column.
But you have above mentioned structure, you can include the cell refercing into the query. Overwrite the value of cells at the intersection (Shipping / Current Year) or (Shipping / Last Year) with the adjustant cells which will be (Sales / Current Year) and (Sales / Last Year).
______________________Shipping_____Sales
Shipping (Current Year)______1000
Sales (Current Year)__________________1000
Shipping (Last Yera)_________2000
Sales (Last Year)_____________________5000
After you apply cell referencing, 1000 and 5000 sales will be filled in the empty cells next of shipping next to sales.
- Danny
Similar Messages
-
Looking For Method Of Displaying Drill-Down Subreport Data On Same Page
Not sure what the technical term for this is, but I need to find a way to display dynamic drill-down sub-report data within a report. Here is an example of what I am trying to accomplish:
+ DATA SUMMARY 1
+ DATA SUMMARY 1
- DATA SUMMARY 1
data detail 11
data detail 12
- DATA SUMMARY 2
data detail 2
data detail 2
The idea is you click on the + (plus sign) and the subreport detail unfolds below the summary row. To close the sub-report data, you click on the - (minus sign). Right now, the report pops up the sub-report data in a separate tab, which is not what the client wants.
Fuskie
Who doesn't know if this is a function of report design or of viewer manipulation of report data...I think this is called In Place Drill Down.
Fuskie
Who appreciates y'alls help.... -
Render a column based on other column value in the same table
JDev 11.1.1.6.0
This may be a silly question but I am stuck
I need to conditionally render a column say A. Condition is like if the value in the other column B of same table is equal to F. I should render column A only when this condition is satisfied. I have tried the following code:
<af:column sortProperty="PhoneNumber1"
sortable="false"
headerText="#{bindings.A.hints.PhoneNumber1.label}"
id="c146"
rendered="#{row.PhoneNumber1ResponseFlag eq 'F'}">
<af:outputText value="#{row.PhoneNumber1}"
id="ot130"/>
</af:column>
<af:column sortProperty="PhoneNumber1ResponseFlag"
sortable="false"
headerText="#{bindings.B.hints.PhoneNumber1ResponseFlag.label}"
id="c80" rendered="true">
<af:outputText value="#{row.PhoneNumber1ResponseFlag}"
id="ot129"/>
</af:column>
The data shown in the table for column PhoneNumber1ResponseFlag is F. Still my condition is not working.Timo was saying that it is not possible to render the column in some situations and not in anothers, you will always have to render the column.
The best way to do this is instead of showing a column with the text ' ', show something meaningfull to the user. This is a DataWarehouse advice to you and may be usefull since you're using ADF in a area that uses DataWarehouse..
So the code could be something like this (based on Timo's code):
<af:column sortProperty="PhoneNumber1"
sortable="false"
headerText="#{bindings.A.hints.PhoneNumber1.label}"
id="c146">
<af:outputText value="#{row.PhoneNumber1ResponseFlag eq 'False.' ? row.PhoneNumber1 : 'No value applied.'"
id="ot130"/>
</af:column>
<af:column sortProperty="PhoneNumber1ResponseFlag"
sortable="false"
headerText="#{bindings.B.hints.PhoneNumber1ResponseFlag.label}"
id="c80">
<af:outputText value="#{row.PhoneNumber1ResponseFlag}"
id="ot129"/>
</af:column>
Hope that helps,
Frederico. -
Create a query to compare values from the same table
Suppose you have the below table, same ID's occur for same month as well as different month
ID Month Value
226220 201203 100
1660 201204 200
26739 201204 1010
7750 201205 31.1
I need a query to determine the below laid result
ID Month Prior_month_value Prior_Month Value
1234 201203 10 201201 100
3456 201206 56.1 201204 78
Please help
Edited by: Jaguar on Jul 10, 2012 3:00 AMAs mentioned, you can use the analytical function lag...
SQL> ed
Wrote file afiedt.buf
1 with t as (select 226220 as id, 201203 as mnth, 100 val from dual union all
2 select 1660, 201204, 200 from dual union all
3 select 226220, 201204, 1010 from dual union all
4 select 1660, 201206, 31.1 from dual union all
5 select 7750, 201205, 60 from dual)
6 --
7 -- end of test data
8 --
9 select id
10 ,mnth
11 ,val
12 ,lag(mnth) over (partition by id order by mnth) as prev_month
13 ,lag(val) over (partition by id order by mnth) as prev_val
14 from t
15* order by id, mnth
SQL> /
ID MNTH VAL PREV_MONTH PREV_VAL
1660 201204 200
1660 201206 31.1 201204 200
7750 201205 60
226220 201203 100
226220 201204 1010 201203 100Edit to Add...
and to filter out just the ones where there is a previous month...
SQL> ed
Wrote file afiedt.buf
1 with t as (select 226220 as id, 201203 as mnth, 100 val from dual union all
2 select 1660, 201204, 200 from dual union all
3 select 226220, 201204, 1010 from dual union all
4 select 1660, 201206, 31.1 from dual union all
5 select 7750, 201205, 60 from dual)
6 --
7 -- end of test data
8 --
9 select id, mnth, val, prev_month, prev_val
10 from (
11 select id
12 ,mnth
13 ,val
14 ,lag(mnth) over (partition by id order by mnth) as prev_month
15 ,lag(val) over (partition by id order by mnth) as prev_val
16 from t
17 )
18 where prev_month is not null
19* order by id, mnth
SQL> /
ID MNTH VAL PREV_MONTH PREV_VAL
1660 201206 31.1 201204 200
226220 201204 1010 201203 100Edited by: BluShadow on 10-Jul-2012 11:32 -
Calculating a count of rows where value matches another column value in the same table
Hi,
I'm struggling to do something in DAX that seems to me should be super easy (coming from a SQL world)!
That is to count all rows in column 1 where the value matches the current value for column 1?
E.g something like this:
[Col2]=Count of rows in [Col1] where value = this.[Col1]
Where the results are as in the table below:
Col1, Col2
A, 2
A, 2
B, 1
Anyone?
Martin Laukkanen
Nearbaseline blog - nearbaseline.com/blog
Bulk Edit and other Apps - nearbaseline.com/appsThanks, that's perfect!
I knew it had to be something so simple, but after spending over an hour banging my head against those exact functions I couldn't get anything working!
Martin Laukkanen
Nearbaseline blog - nearbaseline.com/blog
Bulk Edit and other Apps - nearbaseline.com/apps -
Passing drill down value to prompt
Hello ,
I have an requirement like i have 2 reports one is parent report and child report, i need to pass the drill down value from the parent report to the prompt in the child report. i.e let us say i have customer name in parent report and when i drilled from customer name to the child report, in the child report the prompt sholud display the related customer id's based on the customer name on which we drilled from parent report.
Thanks for any help in advance.Hi Venkatesh,
If I understood correctly this is what you want,
When you click the customer name in report A it will take you to report B with the corresponding customer Id in the prompt value.
You can use GO Url for this,
In the customername column write the Go Url, change the column properties to html.
sample go url,
'<a href=saw.dll?Dashboard&PortalPath=/users/administrator/_portal&Page=page2&Action=Navigate&col1=
"Customers"."Customer%20Id"&val1='||"Customers"."Customer Id"||'>'|| "Customers"."Customer Name"||
'</a>'
So when user clicks on the customer name , the corresponding customer Id will passed to the report B and prompt value on report b will change accordingly.
Make sure in Report B customer Id column is prompted.
Thanks,
Vino
Edited by: Vinodh NK on Jun 9, 2010 5:38 AM
Edited by: Vinodh NK on Jun 9, 2010 5:39 AM
Edited by: Vinodh NK on Jun 9, 2010 5:39 AM -
Rebate agreement-Difference coming for credit note value and drill down value .
Hello Friends,
In 2013 we had created one rebate for which the validity period was 1st April 2013 to 31st March 2014 . At the end of each month, rebate amount was settled by raising credit note to the customer . Now at the end of March'14 during final settlement, a credit note was raised to the customer . The issue here is there is difference of 1.13 (Pounds) between credit note value and the drill down value for March'14 . Lets say our credit note value is-100 (Pounds)and Drill down value for the month March'14 is 101.13 Pounds. We are not able to find out why this difference is coming . Please let me know your inputs on this .
Regards,
Sandeep G.Sandeep -
During final settlement of a rebate agreement, it calculates rebate amout for the the entire time period less payments already made to a customer and then issues a credit memo request based on that.Please check all the the invoices created during entire period and check accrual calculation.It should match.
You can check VBOX table to get billing documents for the entire period.
Let us know if you still have an issue.
Thanks & Regards
Amit Gupta -
Updating values with in the same table for other records matching conditions
Hi Experts,
Sorry for not providing the table structure(this is simple structure)
I have a requirement where i need to update the columns of a table based on values of the same table with some empid and date match. If the date and empid match then i have take these values from other record and update the one which is not having office details. I need the update query
Before update my table values are as below
Sort_num Emp_id office start_date
1 101 AUS 01/01/2013
2 101 01/01/2013
3 101 15/01/2013
4 103 USA 05/01/2013
5 103 01/01/2013
6 103 05/01/2013
7 104 FRA 10/01/2013
8 104 10/01/2013
9 104 01/01/2013
After update my table should be like below
Sort_num Emp_id office start_date
1 101 AUS 01/01/2013
2 101 AUS 01/01/2013
3 101 15/01/2013
4 103 USA 05/01/2013
5 103 01/01/2013
6 103 USA 05/01/2013
7 104 FRA 10/01/2013
8 104 FRA 10/01/2013
9 104 01/01/2013
Thanks in advanceI do not have time to create the table with data but basically you should be able to code the following
update table a
set office = ( select office from table b where b.emp_id = a.emp_id
and b.start_date = a.start_date
and b.office is not null
where exists ( [same query as in set] )
and a.office is null
I believe that will do the trick.
HTH -- Mark D Powell -- -
Drill down value not matching with Displayed Report Painter Issue-GR55
Hi,
Need your help for an issue in drill down value of report painter from actual cost coloumn.
I have created a new report group based on OSS Note-157720 in GR55 Traction. This new report group will provide data of Planed / Actual cost, Planned / Actual Quantity of the project in range of fiscal year/periods. The issue in this report is displayed data of actual cost is not matching with drill down data. The actual cost coloumn is formula coloumn which framed by subtracting All periods cost coloumn, Before Periods Cost Coloumn and After periods cost coloumn.
Could you suggest on this issue.
Thank you for your cooperation.
Regards,
RakeshThe report you are running first might have been created with some hidden columns that contain more than one variables relating to period and fiscal year. These may not be matching those that are required to run the drilldown. Look into the definition of the drilldown report. If you would want to match the first report, It may be better to identify which report runs on drilldown and the run that report with the required parameters.
-
I have created a PDF form with multiple drop downs, all with the same drop down values. When I select a value from 1 of the drop down fields, it replicates in all of the others - which I do not want. Can I fix this?
I'm fairly new to this, but I think it has to do with the way you have the drop downs named. Did you copy one then keep pasting it in each field? If so, that is the problem. You should rename each one with a different number: Dropdown1, Dropdown2, etc. I think that might solve the issue.
-
Urgent! Display lookup value and return value at the same time.
We are using pop up lov.
How can we display lookup value and return value at the same time. let me claer..
Our lov query is like fallowing
select dname, deptno from dept
we want to return deptno column into a database bind text item and dname column into a display item (look up)
can we do it (we need to do)
thanks for your help.We did it .
But pop up key lov (display description return value ) property doesn't appear for tabular forms item.
(Report Attributes pages Tabular Form Element section display As property list)
can we set or not.
Thank you. -
Display discounts and surcharges for the same vbeln in the same row
hi experts
i have to display one discount and surcharges for one vbeln, posnr and one material,
i have used konv-kschl for condition type and konv-kwert for condition value.
in my output the conditions what i have given for discounts and surcharges its matching and displaying in different lines for the same vbeln and posnr. usually i should get one line of outputfor one vbeln, but iam getting 3 times repeated
(one without discounts, surcharges,
second : same vblen, posnr with discounts,
third : same vblen, posnr for surcharges )
please modify the internal table and conditions below what i have given in my object.
DATA : BEGIN OF it_konv OCCURS 0,
knumv LIKE konv-knumv, "Number of the document condition
kschl LIKE konv-kschl, "Condition type
kwert LIKE konv-kwert, "Condition value
kbetr LIKE konv-kbetr,
kposn LIKE konv-kposn,
discounts LIKE konv-kwert,
surcharges LIKE konv-kwert,
hkunnr LIKE knvh-hkunnr,
kunnr LIKE knvh-kunnr,
END OF it_konv.
LOOP AT it_konv INTO wa_konv.
CASE wa_konv-kschl.
WHEN 'ZD01' OR 'ZD02' OR 'ZD03'.
wa_konv-discounts = wa_konv-kwert.
WHEN 'ZEXP' OR 'ZEXW' OR 'ZCAF' OR 'ZCAP' OR 'ZCAQ'
OR 'ZS01' OR 'ZS02' OR 'ZS03'.
wa_konv-surcharges = wa_konv-kwert.
WHEN OTHERS.
DELETE it_konv WHERE kschl = wa_konv-kschl.
ENDCASE.
MODIFY it_konv FROM wa_konv TRANSPORTING discounts surcharges.
CLEAR wa_konv.
REFRESH wa_konv.
ENDLOOP.
As per one of the abap expert who responded to my query is the following.
DATA : BEGIN OF it_konv OCCURS 0,
knumv LIKE konv-knumv, "Number of the document condition
kschl LIKE konv-kschl, "Condition type
kwert LIKE konv-kwert, "Condition value
kbetr LIKE konv-kbetr,
kposn LIKE konv-kposn,
discounts LIKE konv-kwert,
surcharges LIKE konv-kwert,
hkunnr LIKE knvh-hkunnr,
kunnr LIKE knvh-kunnr,
END OF it_konv.
DATA : BEGIN OF wa_konv OCCURS 0,
kposn LIKE konv-kposn,
discounts LIKE konv-kwert,
surcharges LIKE konv-kwert,
hkunnr LIKE knvh-hkunnr,
kunnr LIKE knvh-kunnr,
END OF wa_konv.
move '1' to it_konv-knumv.
move 'ZD01' to it_konv-kschl.
move '1200' to it_konv-kwert.
move '0010' to it_konv-kposn.
append it_konv.
move '2' to it_konv-knumv.
move 'ZEXP' to it_konv-kschl.
move '1300' to it_konv-kwert.
move '0010' to it_konv-kposn.
append it_konv.
move '3' to it_konv-knumv.
move 'ZEXP' to it_konv-kschl.
move '1400' to it_konv-kwert.
move '0010' to it_konv-kposn.
append it_konv.
LOOP AT it_konv.
MOVE-CORRESPONDING it_konv to wa_konv.
CASE IT_konv-kschl.
WHEN 'ZD01' OR 'ZD02' OR 'ZD03'.
wa_konv-discounts = IT_konv-kwert.
WHEN 'ZEXP' OR 'ZEXW' OR 'ZCAF' OR 'ZCAP' OR 'ZCAQ'
OR 'ZS01' OR 'ZS02' OR 'ZS03'.
wa_konv-surcharges = IT_konv-kwert.
ENDCASE.
COLLECT WA_KONV.
CLEAR wa_konv.
ENDLOOP.
But to try according to the above, i dont have the values for kwert, i know only the condition type (KSCHL). based on this how can i solve my problem
please clarify
thanks in advanceRefer to the suggestion given by Naimesh here Can we modify a sub-total in ALV making use of function GET_GLOBALS_FROM_SLVC_FULLSCR and the method GET_SUBTOTALS. You can see the parameter ep_collect01 refered in case of subtotals. Can you please check ep_collect00 for grand total in your case.
As said about EP_COLLECT00,here goes a classic example Modify grand total in ALV GRID
BR
Keshav
Edited by: Keshav.T on Sep 21, 2011 9:39 AM -
Passing different values to the same servlet
Hi,
Is there a way to pass different values to the same servlet?
Background:
I have a database that I query to acquire a list of customers, then I show each customer as a link, that when clicked will show details of that customer. (The customer table is dynamic so I can't create a new page for each customer)
When using JSP what I do is
//Do query database
while (rst.next())
String cust = rst.getString ("cust");
out.write("<a href = \"cust2.jsp?cust=" + cust + " \" >" + cust + "</a> ");
}Then on the cust2.jsp. I will use
String str = request.getParameter ("cust");to acquire the customer to get details of.
Is there a way to do the same using servlets?
I could swap to JSP when creating this particular part of the project but it won't look good and it would help me learn a few things when there is another way.I want to know if there is a way to pass a variable from a webpage link like in my JSP example using servlets.
Here is what I wanted to do:
I have a webpage that contains customer names and each name has a link to the same servlet (let's say the link is famia/servb). I want servb to show detailed information about the customer my visitor clicked in the webpage.
The logic I was thinking is to pass a variable to this servlet, then I can use that variable to know which customer should I query in my database. So that I can show the details to my users.
Here lies my problem, I don't know how I can pass this variable, or even know which customer my visitor clicked. I can't use a new servlet for each client since the customer is in a database and if my customer base grows then I would need to create a lot more web page that does the same thing.
The JSP example I gave is how I will be coding it if I am using JSP, but now I am using servlets. So I was wodnering if there is a way to do this using servlet. Or should I stay with using JSP for this particular logic and just call servb after the JSP page acquired the variable.
I'm trying not to use "<original URL> + ? + <variable> = <value>" (eg: http://www.famia.net/customer?cust=famia) as the means for passing the variable. (or in the example as a means of passing variable cust with value famia) -
I can't for the life of me figure out how iCal orders the display of multiple items at the same time. Does anyone have a clue? It's not alphabetical. It's not according the the order of the calendars in the left pane. Is it just random? Any help would be greatly appreciated.
In the focus lost eventhandling start a thread which does
the actual handling.
the new thread waits for a little time (0.1 seconds)
the click event of the button checks for a thread like the one above and tells it not to execute
This way you execute the for the lost focus event only if
the ok button isn't clicked in the same process ... not
realy good, because it kind of relies on the ordering of threads ... but maybe it still works for you? -
Can we assign two values to the same parameter? If yes how? For details ple
Can we assign two values to the same parameter? If yes how? For details please go through the following SAP related program.
Here I need to print 2 queries using the same parameter "QUERY" the value assigned to this parameter(query) is REPORT_TEST1. I want to assign one more value to this Parameter. Is is possible? This question may sound stupid if it is not possible please kindly reply.
I want to do this to print two documents(values) with a single command (parameter)
Anybody please help quickly,
Now, I have 2 tables from different queries. I have a print (HTML written) option in my WEB Template
JAVA PROGRAM:
<param name="QUERY" value="REPORT_TEST1"/>
function PrintReport(typePaper) {
document.title ='Report';
if (typePaper == "0")
{var CurrentReportName = '&?mp=U&ptot=1&rtot=0&psize=' + escape(typePaper) + '&fsize=' + escape('39') + '&qtitle=' + escape(document.title);};
if (typePaper == "1")
{var CurrentReportName = '&?mp=U&ptot=1&rtot=0&psize=' + escape(typePaper) + '&fsize=' + escape('52') + '&qtitle=' + escape(document.title);};
CurrentReportName += '&ASOFDATE=' + escape(AsOfLabel.innerText);
var openCMD='<SAP_BW_URL>';
openCMD += '&DATA_PROVIDER=REPORT_TEST1&TEMPLATE_ID=DPW_PRINT_PAGE&CMD=RELEASE_DATA_PROVIDER';
openCMD += CurrentReportName;
openWindow(openCMD,'MainTitleNow',800,600);
The data provider here is REPORT_TEST1. Now it only prints the corresponding data for the data proviedr 1 i.e., REPORT_TEST1. I have a second table whose data comes from the data provider 2 when i use this HTML to print I want the second table contents from the data provider 2 (REPORT_TEST2)also to be printed simlutaneously.
Please help.
THANX A LOT,
SRINIHi,
Try assigning two values seperated by a delimiter ( say '|') to the same parameter.
In the function get the parameter value and seperate the values using the same delimiter.
<param name="QUERY" value="REPORT_TEST1|REPORT_TEST2"/>
Regards,
Uma
Maybe you are looking for
-
Source system BID-010 does not exist
Hi, I have installed BI statistics in BI 7.0 in Dev.While transporting to QA system, I am getting the following error message: "Source system BID-010 does not exist" Can anyone please help!! Thanks, Dipti
-
I ran this update and now the ipod never shows as connected and itunes takes forever to load (if it does (50/50 chance). The update window, looked ok, i clicked on update (realizing that all my playlist would be wiped out) and waited, and waited, etc
-
How can I fix this?
-
Change Value based on Dynamical Object
Goal: The goal is to make the variable with value '2014-06-14 09:00:00.000' Problem: The syntax code is created as a dynamical object how do you make it from '2014-06-14 16:20:10.000' into value '2014-06-14 09:00:00.000'? DECLARE @a datetime = '2014-
-
UnsupportedOperationException after moving to Tomcat 6.0
I recently started testing my application on JEE 5/JSF 1.2/Tomcat 6.0. It was previously running without error on J2EE 1.4/JSF 1.1/Tomcat 5.5. Upon calling a method via an ActionListener, this exception occurs. It oddly appears to be with a pojo stri