Query to find sum and detail lines
<br>
Hi
I have these tables po_requisition_headers poh and
po_requisition_lines_all pol
poh table
header_id req_num
2342 13222
4562 13245
7867 13678
po lines table
line_id header_id line_num line_amount
12334 2342 1 40,000
12335 2342 2 61,000
12346 4562 1 100,000
12367 7867 1 50,000
how do i get this output
i want all the total line amount for a po more than or equal 100,000 and also want to see the lines records.
like this
13222 2342 1 40,000
13222 2342 2 61,000
13245 2343 1 100,000
select equistion_num,
requisition_header_id,
distribution_id,
supplier,
CATEGORY,
req_total,
need_by_date,
requestor,
item_description,
project_num,
task_number,
segment1,
segment2,
currency_code,
req_total_conv,
email_address
-- your query (nearly) ***************************************************************************
from (select reqdet.*,
pec.email_address,
-- added next row: check sum's argument & partition by clause and modify accordingly
SUM(req_total /* req_total_conv */) over (partition by requisition_header_id) group_sum
from (SELECT r.segment1 requistion_num,
l.requisition_header_id,
d.distribution_id,
TO_CHAR (l.line_num) line_num, v.vendor_name supplier,
p.concatenated_segments CATEGORY,
TO_CHAR (ROUND ((NVL (l.quantity, 0) * NVL (l.unit_price, 0))),'99,999,999,999.99') req_total,
TO_CHAR (l.need_by_date, 'MM/DD/YYYY') need_by_date,
pe.full_name requestor,
l.item_description,
pr.segment1 project_num,
t.task_number,
c.segment1,
c.segment2,
-- l.currency_code,
nvl(l.currency_code,gl.currency_code) currency_code,
ROUND ((NVL(gdr.conversion_rate, 1) * (NVL(l.quantity, 0) * NVL(l.unit_price,0))),fc.PRECISION) req_total_conv
FROM po_requisition_headers_all r,
po_requisition_lines_all l,
(SELECT project_id,
task_id,
code_combination_id,
distribution_id,
requisition_line_id,
creation_date
FROM (SELECT project_id,
task_id,
code_combination_id,
distribution_id,
creation_date,
requisition_line_id,
ROW_NUMBER () OVER (PARTITION BY requisition_line_id ORDER BY requisition_line_id,distribution_id) rn
FROM po_req_distributions_all pod
WHERE rn = 1
) d,
gl_code_combinations c,
hr_operating_units o,
gl_sets_of_books gl,
por_category_lov_v p,
per_people_v7 pe,
pa_projects_all pr,
pa_tasks_all_v t,
ap_vendors_v v,
gl_daily_rates gdr,
fnd_currencies fc
WHERE d.creation_date >= NVL(TO_DATE ('11-APR-2008','DD-MON-YYYY HH24:MI:SS'),SYSDATE - 1)
AND l.requisition_header_id = r.requisition_header_id
AND l.requisition_line_id = d.requisition_line_id
AND d.code_combination_id = c.code_combination_id
AND r.apps_source_code = 'POR'
AND l.org_id = 141
-- and r.requisition_header_id in (352668,353113)
AND r.segment1='146309'
AND l.category_id = p.category_id
AND r.authorization_status IN ('IN PROCESS','PRE-APPROVED','APPROVED')
AND l.to_person_id = pe.person_id
AND pr.project_id(+) = d.project_id
AND t.project_id(+) = d.project_id
AND t.task_id(+) = d.task_id
AND v.vendor_id(+) = l.vendor_id
and gl.set_of_books_id = o.set_of_books_id
and o.organization_id = l.org_id
and fc.currency_code = nvl(l.currency_code,gl.currency_code)
AND l.currency_code = gdr.from_currency(+)
AND TRUNC (SYSDATE) = TRUNC (gdr.conversion_date(+))
AND gdr.to_currency(+) = 'USD'
AND gdr.conversion_type(+) = 'Corporate'
AND l.requisition_header_id
GROUP BY r.segment1 ,
l.requisition_header_id,
d.distribution_id,
TO_CHAR(l.line_num),
v.vendor_name,
p.concatenated_segments,
TO_CHAR(ROUND((NVL(l.quantity, 0) * NVL (l.unit_price, 0))),'99,999,999,999.99'),
TO_CHAR (l.need_by_date,'MM/DD/YYYY'),
pe.full_name,
l.item_description,
pr.segment1,
t.task_number,
c.segment1,
c.segment2,
l.currency_code,
nvl(l.currency_code,gl.currency_code),
ROUND((NVL(gdr.conversion_rate,1) * (NVL(l.quantity,0) * NVL(l.unit_price, 0))),fc.PRECISION)
-- leave this out - doesn't help
-- HAVING SUM(ROUND((NVL(gdr.conversion_rate, 1) * (NVL(l.quantity,0) * NVL(l.unit_price,0))),fc.PRECISION)) >= 100000
) reqdet,
per_people_v7 pec
where bio_po_ame_util.get_commodity_manager_id(reqdet.distribution_id) = pec.person_id
-- *************************************************************************** yreuq ruoy
where group_sum >= 100000
Similar Messages
-
Query to find Employee Salary Details
Hi,
Could anyone help in writing the query to find employee salary details.
Thanks in advance.This should get you started:
SELECT papf.full_name
,papf.email_address
,ppp.proposed_salary_n salary
FROM per_pay_proposals ppp
,per_all_assignments_f paaf
,per_all_people_f papf
WHERE ppp.assignment_id = paaf.assignment_id
AND paaf.assignment_type = 'E'
AND paaf.primary_flag = 'Y'
AND paaf.person_id = papf.person_id
AND nvl(papf.current_employee_flag, 'N') = 'Y'
AND trunc(sysdate) BETWEEN
ppp.change_date AND ppp.date_to
AND trunc(sysdate) BETWEEN
paaf.effective_start_date AND paaf.effective_end_date
AND trunc(sysdate) BETWEEN
papf.effective_start_date AND papf.effective_end_date; -
Query to find first and last call made by selected number for date range
Hi,
query to find first and last call made by selected number for date range
according to filter:
mobile_no : 989.....
call_date_from : 25-april-2013
call_date_to : 26-april-2013
Please helpHi,
It sounds like you want a Top-N Query , something like this:
WITH got_nums AS
SELECT table_x.* -- or list columns wanted
, ROW_NUMBER () OVER (ORDER BY call_date ) AS a_num
, ROW_NUMBER () OVER (ORDER BY call_date DESC) AS d_num
FROM table_x
WHERE mobile_no = 989
AND call_date >= DATE '2013-04-25'
AND call_date < DATE '2013-04-26' + 1
SELECT * -- or list all columns except a_num and d_num
FROM got_nums
WHERE 1 IN (a_num, d_num)
;This forum is devoted to the SQL*Plus and iSQL*Plus front ends. This question doesn't have anything to do with any front end, does it? In the future, you'll get better response if you post questions like this in the PL/SQL.
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and also post the results you want from that data.
Explain, using specific examples, how you get those results from that data.
Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
See the SQL forum FAQ {message:id=9360002} -
SQL Query to find menus and submenus attached to responsibility
Hi,
I am looking for help to find out a sql query to pull out the list of all the menu's associated with each of the responsibilities assigned to users. Please let me know any SQL query to find out menus attached for responsibilities assigned to users.835129 wrote:
I was asked by my lead to list out responsibilities and attached menus and I was asked to submit the output from production. In the metalink note provided by you it was asked to create table collecting all menu id's and I cannot create any tables in production. Apart from this there were 1000's of users with different responsibilities and different menus. I cannot collect all of the users menu ids.
I just want to list out responsibilities and attached menus. Is that something you can helpout withhttps://forums.oracle.com/forums/search.jspa?threadID=&q=fnd_responsibility_vl+AND+fnd_menu&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
https://forums.oracle.com/forums/search.jspa?threadID=&q=fnd_responsibility_tl+AND+FND_MENU_ENTRIES_TL&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
Please search the forum for these tables/views and you should get many hits:
FND_MENU_ENTRIES_TL
FND_MENU_ENTRIES_VL
FND_RESPONSIBILITY_TL
FND_RESPONSIBILITY_VL
Thanks,
Hussein -
Query to find employee salary details in HRMS
Hi,
Could anyone one provide me the query to get the salary details of an employee.
Thanks.Hi,
Hope this work for you.
SELECT pap.last_name last_name
,pap.first_name first_name
,pap.employee_number employee_id
,hlu2.meaning ethnic_origin
,hlu1.meaning eeo_category
,hlu5.meaning veteran_status
,pap.sex sex
,ROUND(pro.proposed_salary_n, 2) current_salary
,ROUND(pro.proposed_salary_n * ppb.pay_annualization_factor) current_yearly_salary
,pg.NAME grade
,pj.NAME job_name
,pjd.segment3 business_unit
,pjd.segment4 FUNCTION
,pjd.segment5 designation
,pjd.segment2 job_group
,pos.date_start hire_date
,NVL(pos.actual_termination_date, hr_general.end_of_time) termination_date
,hl.location_code LOCATION
,pap.full_name
,pj.job_information3 flsa_code
,hlu4.meaning employment_category_meaning
,pap.effective_start_date p_effective_start_date
,pap.effective_end_date p_effective_end_date
,paa.effective_start_date a_effective_start_date
,paa.effective_end_date a_effective_end_date
,pro.from_change_date s_effective_from_date
,NVL(pro.to_change_date, hr_general.end_of_time) s_effective_to_date
,pap.current_employee_flag
FROM per_all_people_f pap
,per_all_assignments_f paa
,per_periods_of_service pos
,(SELECT pro1.approved
,pro1.assignment_id
,pro1.change_date from_change_date
, pro_next.change_date - 1 to_change_date
,pro1.multiple_components
,pro1.last_change_date
,pro1.proposed_salary_n
,pro1.forced_ranking
,pro1.last_updated_by
,pro1.last_update_date
,pro1.event_id
,pro1.performance_review_id
,pro1.pay_proposal_id
FROM per_pay_proposals pro1
,per_pay_proposals pro_next
WHERE pro1.assignment_id = pro_next.assignment_id(+)
AND pro1.change_date = pro_next.last_change_date(+)) pro
,per_jobs pj
,per_job_definitions pjd
,hr_locations hl
,per_grades pg
,(SELECT *
FROM hr_lookups
WHERE lookup_type = 'US_EEO1_JOB_CATEGORIES') hlu1
,(SELECT *
FROM hr_lookups
WHERE lookup_type = 'US_ETHNIC_GROUP') hlu2
,(SELECT *
FROM hr_lookups
WHERE lookup_type = 'US_EXEMPT_NON_EXEMPT') hlu3
,(SELECT *
FROM hr_lookups
WHERE lookup_type = 'EMP_CAT') hlu4
,(SELECT meaning
,lookup_code
FROM hr_lookups
WHERE lookup_type LIKE 'US_VETERAN_STATUS') hlu5
,per_pay_bases ppb
,(SELECT *
FROM per_addresses
WHERE primary_flag = 'Y'
AND address_type = 'H'
AND ( date_to IS NULL
OR date_to > SYSDATE)) addr
WHERE pap.person_id = paa.person_id
AND paa.assignment_id = pro.assignment_id
AND paa.job_id = pj.job_id
AND paa.location_id = hl.location_id
AND paa.grade_id = pg.grade_id(+)
AND pos.person_id = pap.person_id
AND ppb.pay_basis_id = paa.pay_basis_id
AND pj.job_information1 = hlu1.lookup_code
AND pj.job_definition_id = pjd.job_definition_id
AND pap.per_information1 = hlu2.lookup_code(+)
AND pap.per_information5 = hlu5.lookup_code(+)
AND pj.job_information3 = hlu3.lookup_code(+)
AND paa.employment_category = hlu4.lookup_code
AND addr.person_id(+) = pap.person_id -
Query to find sales group details based on a merchant.
I wanted a query to find the sales group details for a given merchant. How do i do it?
Hi,
use for following function module to get file listing
DATA: L_DIRNAME LIKE EPSF-EPSDIRNAM,
L_FILEMASK LIKE EPSF-EPSFILNAM.
CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
EXPORTING
dir_name = l_dirname
file_mask = l_filemask
* IMPORTING
* DIR_NAME =
* FILE_COUNTER =
* ERROR_COUNTER =
TABLES
dir_list = pi_filelist
EXCEPTIONS
invalid_eps_subdir = 1
sapgparam_failed = 2
build_directory_failed = 3
no_authorization = 4
read_directory_failed = 5
too_many_read_errors = 6
empty_directory_list = 7
OTHERS = 8. -
SQL Query to find DN and phone Load
Hi All,
We are using Call Manager 8.6 [one PUB and 4 SUBs] and have different IP phone models .
IP phone model have different LOAD working with them like few 3905 have cmterm-3905.9-2-2-0 while some have cmterm-3905.9-2-2ES7 .
Is there any way/SQL Query to find out what all phone model with DN are running 3905.9-2-2.0 LOAD?
regds,
amanHey Aman,
Hope all is well my friend!
Just to add a note to my friend Carlo's good info here (+5!)
Try;
Device> Device Settings> Firmware Load Information>Device Not Using Default Load
This will show you any phones that deviate from the "device defaults" Fimware And if you click
on any device listed here it will show the actual Firmware that is being used on the specified device.
Cheers!
Rob -
SQL Query to find SUM elimating MAX n and MIN n values
Dear Gurus,
I am currently looking for a query which will provide the sum of a column eliminating the MAX n and MIN n values.
For Example,
If I have 7 values, and if n = 2, then the sum would be (23+26+36), if n = 1 then sum (14+23+26+36+39) and n will be always lesser than total no of values / 2.
12
14
23
26
36
39
45
Note: working in oracle 10g versiontry this
with t as
(select 12 col from dual union all
select 14 col from dual union all
select 23 col from dual union all
select 26 col from dual union all
select 36 col from dual union all
select 39 col from dual union all
select 45 col from dual
select sum(col) from
select col,rn from
(select col, rownum rn from (select col from t order by col))
where rn > (select &n from dual) and rn <= (select count(*) from t) - &n
)also
with t as
(select 12 col from dual union all
select 14 col from dual union all
select 2 col from dual union all
select 26 col from dual union all
select 36 col from dual union all
select 3 col from dual union all
select 4 col from dual
select sum(col) from
select col
, row_number() over (order by col) rn
from t
where rn > (select &n from dual) and rn <= (select count(*) from t) - &nEdited by: AlexAnd on Apr 27, 2011 12:37 AM -
Spatial query to find all partially aligned lines
Hi There.
I need to find all partially aligned polylines in the layer (interiors have 1-dimentionali intersection). Actually, polylies may a little fluctuate along each other, but that spatial disjointment shouldn't exceed some certain tolerance. It doesn't matter if polylines are touching each other or cover.
What spatial operators/functions will you suggest to use to perform that stuff?
For example next lines for me are partially aligned in tolerance 0.01 (query result is TOUCH):
select sdo_geom.relate(
mdsys.sdo_geometry(2002,null,null, mdsys.sdo_elem_info_array(1,2,1), mdsys.sdo_ordinate_array(1,1,4,4)),
'determine',
mdsys.sdo_geometry(2002,null,null, mdsys.sdo_elem_info_array(1,2,1), mdsys.sdo_ordinate_array(1.1,1,3.015,3)),
0.01) relationship
from dual;
Note: I can't use buffers because it isn't stable for me :( see: SDO_GEOM.SDO_BUFFER failed with ORA-13050
Thank you in advance, Denis.Thank you for quick response!
The lines are valid at that tolerance.
I think that TOUCH+COVERS+COVEREDBY will not be sufficient for me. Because I'm interested in next cases: OVERLAPBDYINTERSECT, INSIDE, CONTAINS, COVERS (any operator which includes overlapping for lines). I can use union of all those masks, but TOUCH will return me many redundant candidates (Often lines are touch but not overlapping, like: (1,1,2,2) VS (2,2,3,3)). The TOUCH works for me if one poliline touches the other and goes along it some time (like I showed above). Hope I was clear :). -
Query to find adjustment and add to minimum value
Hi i need a query to perform the below operation
I have a table as shown below
invoice rec_no r_cost d_cost chg tax code
1 12345 114.35 100.30 1.00 1.00 234
2 12345 114.35 2.00 1.00 1.00 201
3 12345 114.35 14.00 1.00 1.00 600
4 23412 120.90 110.40 1.00 1.05 700
5 23412 120.90 12.50 1.00 1.05 900
From this table i need to find the adjustment for each rec_no as
(r_cost + chg +tax) -sum(d_cost)for rec_no=12345
(114.35 + 1.00+1.00) -(100.30+2.00+14.00)=0.05
This 0.05 should be added to the minimum(code) for the rec_no 12345.
so the d_cost of code, 201 with rec_no=12345 should be (2.00 + 0.05=2.05).
and,
(120.90 + 1.00+1.05) -(110.40+12.50)=0.05
This 0.05 should be added to the minimum(code) for the rec_no 23412.
so the d_cost of code, 700 with rec_no=23412 should be (110.40+ 0.05=110.45).
Kindly help me in writing a oracle query to perform the above operation.Hahaha I like OLAP usage like below :D
with tab as (
select 1 invoice,12345 rec_no,114.35 r_cost,100.30 d_cost,1.00 chg,1.00 tax,234 code from dual union all
select 2 invoice,12345 rec_no,114.35 r_cost,2.00 d_cost,1.00 chg,1.00 tax,201 code from dual union all
select 3 invoice,12345 rec_no,114.35 r_cost,14.00 d_cost,1.00 chg,1.00 tax,600 code from dual union all
select 4 invoice,23412 rec_no,120.90 r_cost,110.40 d_cost,1.00 chg,1.05 tax,700 code from dual union all
select 5 invoice,23412 rec_no,120.90 r_cost,12.50 d_cost,1.00 chg,1.05 tax,900 code from dual)
SELECT tab.*,
CASE
WHEN code = min(code) OVER (partition BY rec_no)
--DENSE_RANK() OVER (partition BY rec_no ORDER BY code)=1
THEN r_cost + chg +tax
-SUM(d_cost) over(partition BY rec_no
order by code rows between 1 following
and unbounded following)
ELSE d_cost END adj
FROM tab
ORDER BY invoice;
INVOICE REC_NO R_COST D_COST CHG TAX CODE ADJ
1 12345 114.35 100.3 1 1 234 100.3
2 12345 114.35 2 1 1 201 2.05
3 12345 114.35 14 1 1 600 14
4 23412 120.9 110.4 1 1.05 700 110.45
5 23412 120.9 12.5 1 1.05 900 12.5DB2 allows order by code rows 1 following.
It means order by code rows between 1 following and unbounded following.
Does Oracle11gR2 allow above usage? -
Recursive query for finding parents and children against two tables
Hi I have two tables where the data is stored hierarchially.
I have found using connect_by, level and other oracle functions doing its job when the data is in one table.
Can I traverse against two tables by using the same oracle functions.
My Table A can go 2 levels deep in my hierarchy and level 3 and so forth has to be done against a different table.
Appreciate your insight..
Thanks in advanceThe number of levels that I can traverse in the first table is dynamic (sometimes 2 levels and sometimes 3 levels and actually no level limit) and then has to dynamically start looking at second table for finding any more levels in the other table.
I was able to implement them seperately and union them.
I was more looking for a comprehensive solution to reduce the number of lines that I have to maintain...
Thanks in advance
Edited by: user566193 on Jan 15, 2010 1:58 PM -
Query to Find Table and Column Name by using a value
Dear Legends,
I hope and surfed in our forums and google to find the Table Name and Column Name by having a value(Number/String). And my where clauses are
where owner NOT IN ('SYS','SYSTEM') and
data_type IN ('CHAR','VARCHAR2','NUMBER')
May I have your help for building the query. and my query as follows
select a.owner, c.column_name, c.data_type, c.owner, c.table_name
from dba_objects a, all_tab_cols c
where a.owner NOT IN ('SYS','SYSTEM') and
where c.owner NOT IN ('SYS','SYSTEM') and
where c.data_type IN ('CHAR','VARCHAR2')
order by a.owner
Thanks,
KarthikYou can use
select * from user_tab_columns a, user_tables b
where a.table_name = b.table_name
and a.data_type in ('NUMBER', 'VARCHAR2', 'NCHAR', 'CHAR');
Or if you want to user DBA_* tables, you can use.
select * from dba_tab_columns a, dba_tables b
where a.table_name = b.table_name
and a.owner = b.owner
and a.data_type in ('NUMBER', 'VARCHAR2', 'NCHAR', 'CHAR')
and b.owner not in ('SYS', 'SYSTEM');
And now when I look a bit more closely, you don't need DBA_TABLES there. dba_tab_columns alone is sufficient. And requirement is still not clear yet. Why you need a group by there? If I get it right, you can use this.
select * from dba_tab_columns a
where a.data_type in ('NUMBER', 'VARCHAR2', 'NCHAR', 'CHAR')
and a.owner not in ('SYS', 'SYSTEM');
Whether you use group by or not, the query will give you the same output.
Ishan -
Finding Sum of grouped lines / Tables EKKO, EKPO
Hi, am using the following tables:
TABLES: ekko,ekpo.
with Inner Join
select ekkobukrs ekkoebeln ekkoaedat ekkobsart ekkoekgrp ekkolifnr ekkowaers ekkowkurs ekkoernam ekpobrtwr
into CORRESPONDING FIELDS OF TABLE itab from ekko
inner join EKPO on ekPOEBELN = ekkoebeln.
end-OF-SELECTION.
Basically i want to group the result of this SQL statement by Purchasing Doc (ekko~ebeln) and display the
sum of Gross value (ekpo~brtwr) for the line items of each Purchasing Doc.
Note: i want the Purchasing Doc to appear one time only in the report
i have tried the following :
select ekkobukrs ekkoebeln ekkoaedat ekkobsart ekkoekgrp ekkolifnr ekkowaers ekkowkurs ekkoernam sum( ekpobrtwr )
into CORRESPONDING FIELDS OF TABLE itab from ekko
inner join EKPO on ekPOEBELN = ekkoebeln
WHERE ekkobukrs IN S_bukrs AND ekkobsart IN s_bsart
Group By ekkoebeln ekkobukrs ekkoaedat ekkobsart ekkoekgrp ekkolifnr ekkowaers ekkowkurs ekko~ernam.
then loop through the ITAB:
LOOP at itab.
write:/ itab-bukrs under 'Company Code',
itab-ebeln UNDER 'PO-Number',
itab-aedat UNDER 'Date' ,
itab-bsart UNDER 'Doc-Type' ,
itab-ekgrp UNDER 'Purchase-Grp' ,
itab-lifnr UNDER 'Vendor' ,
itab-waers UNDER 'Currency',
itab-wkurs UNDER 'Rate' ,
itab-brtwr under 'Gross Value',
itab-ernam UNDER 'Created By'.
ENDLOOP.
but it is not working with me, am not able to show the result of sum( ekpo~brtwr ) am getting 0 in all lines
thanks a lot for your help" My Full Code.
TABLES: ekko,ekpo,ekbe,rbkp.
data: BEGIN OF itab OCCURS 0, "EKKO TABLE"
inco1 like ekko-inco1,
inco2 like ekko-inco2,
bukrs like ekko-bukrs,
ebeln like ekko-ebeln,
aedat like ekko-aedat,
bsart like ekko-bsart,
ekgrp like ekko-ekgrp,
lifnr like ekko-lifnr,
waers like ekko-waers,
wkurs like ekko-wkurs,
ernam like ekko-ernam,
BRTWR LIKE ekpo-brtwr,
end of itab.
SELECT-OPTIONS : s_bukrs FOR itab-bukrs OBLIGATORY,
s_ebeln for itab-ebeln ,
s_aedat FOR itab-aedat ,
s_bsart for itab-bsart ,
s_ekgrp FOR itab-ekgrp ,
s_lifnr FOR itab-lifnr ,
s_budat FOR jtab-budat ,
s_bewtp for jtab-bewtp .
DATA ProceesITAB LIKE SORTED TABLE OF ITAB WITH UNIQUE KEY TABLE LINE.
AT SELECTION-SCREEN on s_bukrs.
START-OF-SELECTION.
select ekkobukrs ekkoebeln ekkoaedat ekkobsart ekkoekgrp ekkolifnr ekkowaers ekkowkurs ekkoernam ekpobrtwr
into CORRESPONDING FIELDS OF TABLE itab from ekko
inner join EKPO on ekPOEBELN = ekkoebeln.
end-OF-SELECTION.
LOOP at itab.
write:/ itab-bukrs under 'Company Code',
itab-ebeln UNDER 'PO-Number',
itab-aedat UNDER 'Date' ,
itab-bsart UNDER 'Doc-Type' ,
itab-ekgrp UNDER 'Purchase-Grp' ,
itab-lifnr UNDER 'Vendor' ,
itab-waers UNDER 'Currency',
itab-wkurs UNDER 'Rate' ,
itab-brtwr under 'Gross Value',
itab-ernam UNDER 'Created By'.
ENDLOOP.
TOP-OF-PAGE.
write:/70 'Company'.
uline.
skip.
write:/5 'Company Code',25 'PO-Number',40 'Date',55 'Doc-Type',70 'Purchase-Grp',85 'Vendor',100 'Currency',115 'Rate',125 'Created By',
140 'Gross Value'.
ULINE.
SKIP.
Edited by: YasinN on Mar 24, 2010 9:45 AM -
Query to get summarized and detailed data
Hi experts,
The scenario is as follows:
Generic extractor -> DSO -> Infocube
Now, the cube have item level details. My concern is, the cube might grow very big and impact the performance.
Is it possible to have a query that retrieves summarized information from the cube and for details do a jump to target to the DSO and get the details?
Pls give me a hint on this.Yes you can have summerized query on Cube & item level query on DSO.
Using RRI (tcode RSBBS) you can jump from Summerized Query to Detailed Query.
You can also pass values from summerized query to detailed query through RRI if required, provided the same infoobject is used in both cube & DSO. -
Sql query to find answered and received calls for month or day
Hi experts !
1.Any one help in finding out the received, answered and missed ,transfered in / out calls in UCCE using SQL query for a particular month or day.
2. We have some custom report templetes defined , need to know , how can we write Sql query to get those values from custum reports.
due to some issues, cannot use webview .Hi,
there's no such thing as reporting "for a particular Team". Teams in ICM are for administration purposes only (to have grouping of agents). ICM does not count the number of calls received by "teams". If there is a report in Webview "by team", it's always by agent. Try to run the report against a team once and then try to remove certain agents from that team - you'll see the difference.
What you are looking for is either reporting by Agent or by Agent/Skill group combination.
Try to explore the
- Agent_Half_Hour
- Agent_Skill_Group_Half_Hour
- Skill_Group_Half_Hour
database views.
The database schema documents are here:
http://www.cisco.com/en/US/products/sw/custcosw/ps1844/prod_technical_reference_list.html
Good luck.
G.
Maybe you are looking for
-
Oracle10g Installation problem on Linux with DHCP IP
Hi, I am new to Oracle Products, I have tried to install Oracle 10G on Linux with DHCP IP. I got the following warning while installing even though I have loopback interface configured. Checking Network Configuration requirements ... Check complete.
-
Using Firefox 26. How do I get a close button for each tab at the top of the screen?
Some time ago, I had a close tab button for each tab on the top of the screen. I want that back. I have no additional add ons and the close tab is set to 1. Changing it to 2 does nothing.
-
Hey Guys I've done some searching and haven't found an answer yet. The question is, have any of you found a solution for using JSObject to call javascript methods from the applet in Firefox? I've got code that works fine in IE. Many thanks. H Update:
-
I am trying to use SQL developer (Oracle 11g) When I select the java.exe file it gives me error 'cannt find J2SE SDK installed at path (path of java.exe'
-
Setting backgroundColor to transparent
Hi All, I'm using the tree component, and wondered if there was a way to set the backgroundColor style to "none". I saw one user used this.tree.setStyle("_alpha","0"); This had some success, but it also removed all color for my depthColors. Basically