Delivery Query not giving data
Folks,
I am working on a query to show Pick Release Data using a query. I am using the following one but not getting the desired results.
SELECT --decode(gv_extract_type, 'FULL', 'CONVERSION', 'INTERFACE') src,
oos.name,--type,
wnd.delivery_id,
ood.organization_id,
--shipping_charges,
wnd.ultimate_dropoff_location_id,
wnd.problem_contact_reference,
wc.freight_code,
wnd.ship_method_code,
wnd.service_level,
hp.party_number,
hp.party_name,
hl.address_line_1,
hl.address_line_2,
hl.address_line_3,
hl.town_or_city,
hl.country,
hl.postal_code,
hl.region_1,
hl.telephone_number_1,
wdd.delivery_detail_id,
msib.segment1,
msib.description,
wdd.requested_quantity
FROM wsh_new_deliveries wnd,
wsh_delivery_details wdd,
wsh_delivery_assignments wda,
hr_locations hl,
hr_locations hl1,
hr_locations hl2,
wsh_carriers wc,
org_organization_definitions ood,
hz_parties hp,
mtl_system_items_b msib,
oe_order_headers_all ooha,
oe_order_sources oos
WHERE wda.delivery_detail_id = wdd.delivery_detail_id
AND wnd.delivery_id = wda.delivery_id
AND ood.organization_id = wdd.organization_id
AND wc.carrier_id = wnd.carrier_id
AND wnd.party_id = hp.party_id
AND wnd.source_header_id = ooha.header_id
AND ooha.order_source_id = oos.order_source_id(+)
AND wdd.source_header_id = ooha.header_id
AND msib.organization_id = ood.organization_id
AND ood.organization_code = '3PL'
AND msib.inventory_item_id = wdd.inventory_item_id
AND hl.location_id = wdd.ship_from_location_id
AND hl1.location_id = wdd.ship_to_location_id
AND hl2.location_id = wdd.deliver_to_location_id;
Could xomeone help me as to where I am going wrong?
Thanks
Hi,
Check with this Query , first of all you have to test with one order number one by one then only you will get Values
SELECT oos.name,--type,
wnd.delivery_id,
ood.organization_id,
--shipping_charges,
wnd.ultimate_dropoff_location_id,
wnd.problem_contact_reference,
wc.freight_code,
wnd.ship_method_code,
wnd.service_level,
hp.party_number,
hp.party_name,
hl.address_line_1,
hl.address_line_2,
hl.address_line_3,
hl.town_or_city,
hl.country,
hl.postal_code,
hl.region_1,
hl.telephone_number_1,
wdd.delivery_detail_id,
msib.segment1,
msib.description,
wdd.requested_quantity
FROM wsh_new_deliveries wnd,
wsh_delivery_details wdd,
wsh_delivery_assignments wda,
hr_locations hl,
hr_locations hl1,
hr_locations hl2,
wsh_carriers wc,
org_organization_definitions ood,
hz_parties hp,
mtl_system_items_b msib,
oe_order_headers_all ooha,
oe_order_sources oos
WHERE wda.delivery_detail_id = wdd.delivery_detail_id
AND wnd.delivery_id = wda.delivery_id
AND ood.organization_id = wdd.organization_id
AND wc.carrier_id = wnd.carrier_id
--AND wnd.party_id = hp.party_id
AND wnd.party_id = hp.party_id
--AND wnd.source_header_id = ooha.header_id
AND ooha.order_source_id = oos.order_source_id
AND wdd.source_header_id = ooha.header_id
AND msib.organization_id = ood.organization_id
AND ood.organization_code = 'ABC'
AND msib.inventory_item_id = wdd.inventory_item_id
AND hl.location_id = wdd.ship_from_location_id
AND ood.organization_id = ooha.ship_from_org_id
AND hl1.location_id = wdd.ship_from_location_id
AND hl2.location_id = wdd.ship_from_location_id
AND ooha.ship_from_org_id = hl.inventory_organization_id
AND ooha.ship_from_org_id = hl1.inventory_organization_id
AND ooha.ship_from_org_id = hl2.inventory_organization_id
AND order_number = 1234
Similar Messages
-
XMII Browser Applet not giving data
Hi all,
I am using a browser applet in a Web Page. It is working fine in development server. It even worked in Test environment. But when we shifted code to Production environment, It is not giving data. Please let me know what might be the reason. And I compared both files in production, test and dev environments. All are same. Has anyone such type of problems earlier.
Regards,
VeereshHMV,
You first test the QueryTemplate from the WorkBech and see the QueryTemplate is giving the results, I feel some issue with the dataserver setup.
Also at the client machine, check the JavaConsole and see if there are any errors or exceptions.
Kind Regards -
Query not giving the correct result
select Project_id, contractno
from elf_transactions
where(rtrim(contractno),rtrim(project_id)) not in
(select rtrim(contractno),rtrim(projectid)
from contract_proj
where report_month='1-May-2007' )
when I m firing this query, it is not giving correct result to me, it also select the recorts which are matches in both the table
i want to fine out those contract, with projectid which are not in contract_proj table
Please help me in this regardCREATE TABLE ELF_TRANSACTIONS
VENDOR_ORDER_REF VARCHAR2(60 BYTE),
BT_SUB_CON_REF VARCHAR2(10 BYTE),
PR_NO VARCHAR2(15 BYTE),
PO_NO VARCHAR2(15 BYTE),
PR_PO_DESCR VARCHAR2(200 BYTE),
ONE_IT_PROG VARCHAR2(50 BYTE),
BT_DEL_MANAGER_NAME VARCHAR2(40 BYTE),
DELIVERY_TYPE VARCHAR2(5 BYTE),
ACTUAL_DEP_DATE DATE,
ASSOC_ASG_BR_QUE VARCHAR2(50 BYTE),
PRE_AVG_P1_P2_INC_CNT NUMBER(3),
POST_P1_P2_INC NUMBER(3),
PERC_GROWTH_POST_REL NUMBER(3),
VENDOR_DEL_MANAGER VARCHAR2(50 BYTE),
REPORT_MONTH DATE,
COMMENTS VARCHAR2(200 BYTE),
PROJECT_ID VARCHAR2(20 BYTE),
CONTRACTNO VARCHAR2(15 BYTE),
CONTRACT_TYPE NVARCHAR2(15),
IDUNO VARCHAR2(10 BYTE),
STATUS VARCHAR2(10 BYTE),
DESCRIPTIONCODEDELIVERABLE VARCHAR2(255 BYTE),
UNIQUEID VARCHAR2(255 BYTE),
LOCK_RECORD CHAR(1 BYTE),
VERIFIED CHAR(1 BYTE),
VERIFIED_BY VARCHAR2(40 BYTE),
BT_VERIFIED CHAR(1 BYTE),
BT_VERIFIED_BY VARCHAR2(40 BYTE)
CREATE TABLE CONTRACT_PROJ
CONTRACTNO VARCHAR2(10 BYTE),
PROJECTID VARCHAR2(20 BYTE),
IDUNO VARCHAR2(10 BYTE),
CH_EMPID VARCHAR2(8 BYTE),
CHNAME VARCHAR2(40 BYTE),
GH_EMPID VARCHAR2(8 BYTE),
GHNAME VARCHAR2(40 BYTE),
PM_EMPID VARCHAR2(8 BYTE),
PMNAME VARCHAR2(40 BYTE),
SPM_EMPID VARCHAR2(8 BYTE),
SPMNAME VARCHAR2(40 BYTE),
PRJ_MONTH DATE,
BT_CONTRACT CHAR(1 BYTE)
REPORT_MONTH COMMENTS PROJECT_ID CONTRACTNO CONTRACT_TYPE IDUNO STATUS DESCRIPTIONCODEDELIVERABLE UNIQUEID
06/01/2007 00:00:00 1287 TML007452 OPEN Delivery of CRs DM CD and NSI N/A
06/01/2007 00:00:00 1280 TML007452 OPEN Delivery of CRs H&W OOR and WLTO N/A
06/01/2007 00:00:00 1231 TML007452 OPEN Delivery of CRs H&W OOR WLTO
06/01/2007 00:00:00 1097 TML007679 OPEN High Level Roadmap for Global Services and Wholesale with Feasibility study into BTR access to Switc N/A
06/01/2007 00:00:00 405 TML007942 OPEN RTRCC DEVELOPMENT -Q107
06/01/2007 00:00:00 405 TML007919 OPEN WLR3 DEVELOPMENT-Q107
06/01/2007 00:00:00 1170 TML008439 OPEN R-510
CONTRACTNO PROJECTID IDUNO CH_EMPID CHNAME GH_EMPID GHNAME PM_EMPID PMNAME SPM_EMPID SPMNAME PRJ_MONTH BT_CONTRACT
MBT003060 176 BT06 8694 Soman Sameer Surendra 1054 Bhadti Shripad Shivram 1054 Bhadti Shripad Shivram 1420 Rao Darbhamulla Kameswara 05/01/2007 00:00:00 N
MBT003842 1156 BT12 19992 Kalle Ajit Ashutosh 1539 Padgaonkar Shailesh Vishwanath 13948 Khunte Milind Vasant 16426 Kulkarni Vinay 05/01/2007 00:00:00 Y
MBT004677 458 BT09 20275 Mundassery George 5044 Kamalapurkar Leena Shrinivas 12849 Dave Ajay Yogeshchandra 2017 KIRKIRE SONAL MADHUKAR 05/01/2007 00:00:00 N
MBT004695 362 BT13 20276 Ghosh Sankar 2624 Avachat Jagdish Vasantrao 13592 Pal Sudipta 2624 Avachat Jagdish Vasantrao 05/01/2007 00:00:00 N
MBT004826 VITRIA BT09 20275 Mundassery George 26099 Saha Debendra Kumar 28134 Hinge Anand Sharad 12777 Karandikar Sumedh Vidyadhar 05/01/2007 00:00:00 Y
MBT004924 1027 BT03 1451 Tillu Ashirwad 15693 Devaraj Daniel G 6867 Jadhav Satyajit Ramesh 15693 Devaraj Daniel G 05/01/2007 00:00:00 N
MBT004927 1025 BT05 4436 Kelkar Subhash Manohar 20379 Gore Sujeet Narayan 13704 Vignesh Chandrasekaran 4347 BIJNORI REHANA GULAMWARIS 05/01/2007 00:00:00 N
MBT004927 1092 BT05 4436 Kelkar Subhash Manohar 15094 Jain Jitendra 13350 Bokil Shripad Raghunath 9511 Markande Balchandra Narayan 05/01/2007 00:00:00 N
MBT004927 1213 BT09 20275 Mundassery George 19996 Vege Sridhar 16401 Sibgathulla Mohammed 19996 Vege Sridhar 05/01/2007 00:00:00 N -
PO query not giving correct values
Hi
I am running the following query in PL?SQL Developer
SELECT hou.name Operating_unit,
pha.segment1 po_number,
pha.revision_num,
ap.vendor_name,
hla1.location_code,
papf.full_name Buyer,
to_char(pha.creation_date, 'DD-MON-RRRR HH24:MI:SS') creation_date,
pdta.type_name,
assa.vendor_site_code,
hla2.location_code,
initcap(pha.authorization_status) po_status,
pha.currency_code,
pla.line_num,
pltt.line_type,
msib.segment1 item,
(mcb.segment1 || '.' || mcb.segment1) category,
msib.description,
msib.primary_unit_of_measure UOM,
pla.quantity,
pla.unit_price,
(pla.quantity * pla.unit_price) amount,
(gcc.segment1 || '-' || gcc.segment2 || '-' || gcc.segment3 || '-' ||
gcc.segment4 || '-' || gcc.segment5) charge_account,
pla.list_price_per_unit,
at.name,
pha.freight_terms_lookup_code,
pha.fob_lookup_code,
initcap(pha.pay_on_code) pay_on_code,
pha.acceptance_required_flag,
ood.organization_code,
ood.organization_name,
msib.primary_unit_of_measure UOM,
pla.quantity,
plla.country_of_origin_code,
(gcc.segment1 || '-' || gcc.segment2 || '-' || gcc.segment3 || '-' ||
gcc.segment4 || '-' || gcc.segment5) charge_account,
(pla.quantity * pla.unit_price) amount,
plla.receive_close_tolerance,
plla.invoice_close_tolerance,
plla.quantity,
plla.quantity_received,
plla.quantity_cancelled,
plla.quantity_billed,
plla.match_option,
plla.accrue_on_receipt_flag,
plla.enforce_ship_to_location_code,
plla.days_early_receipt_allowed,
plla.days_late_receipt_allowed,
plla.receipt_days_exception_code,
plla.qty_rcv_tolerance,
initcap(plla.qty_rcv_exception_code),
plla.allow_substitute_receipts_flag,
plla.receiving_routing_id,
plla.enforce_ship_to_location_code,
initcap(pda.destination_type_code),
papf.full_name requestor,
hla3.location_code,
--pda.quantity_ordered, -- commented because giving wrong value
(select quantity_ordered
from po_distributions_all
where po_header_id IN (select po_header_id
from po_headers_all
where segment1 = pha.segment1)) quantity_ordered, -- Added
(gcc.segment1 || '-' || gcc.segment2 || '-' || gcc.segment3 || '-' ||
gcc.segment4 || '-' || gcc.segment5) po_charge_account,
haou.name,
prha.segment1,
prla.line_num,
to_char(prla.rate_date, 'DD-MON-RRRR') rate_date,
(gcc.segment1 || '-' || gcc.segment2 || '-' || gcc.segment3 || '-' ||
gcc.segment4 || '-' || gcc.segment5) po_charge_account,
(SELECT acc.segment1 || '-' || acc.segment2 || '-' || acc.segment3 || '-' ||
acc.segment4 || '-' || acc.segment5
FROM gl_code_combinations acc
WHERE acc.code_combination_id = pda.accrual_account_id) accrual_account,
(SELECT acc.segment1 || '-' || acc.segment2 || '-' || acc.segment3 || '-' ||
acc.segment4 || '-' || acc.segment5
FROM gl_code_combinations acc
WHERE acc.code_combination_id = pda.variance_account_id) variance_account,
pla.line_num,
plla.shipment_num,
ood.organization_code,
ood.organization_name,
msib.segment1,
msib.description,
pla.quantity
FROM hr_operating_units hou,
po_headers_all pha,
ap_suppliers ap,
hr_locations_all hla1,
per_all_people_f papf,
po_document_types_all pdta,
po_document_types_all_b pdtab,
ap_supplier_sites_all assa,
hr_locations_all hla2,
po_lines_all pla,
po_line_types_b pltb,
po_line_types_tl pltt,
mtl_system_items_b msib,
po_line_locations_all plla,
mtl_categories_b mcb,
po_distributions_all pda,
gl_code_combinations gcc,
ap_terms at,
org_organization_definitions ood,
hr_locations_all hla3,
po_requisition_headers_all prha,
po_req_distributions_all prda,
po_requisition_lines_all prla,
hr_all_organization_units_tl haou
WHERE 1 = 1
AND pha.segment1 = '6395' --&po_number
AND hou.organization_id = 204 --&operating_unit
AND hou.organization_id = pha.org_id
AND pha.vendor_id = ap.vendor_id
AND hla1.location_id = pha.ship_to_location_id
AND papf.person_id = pha.agent_id
AND SYSDATE BETWEEN papf.effective_start_date AND papf.effective_end_date
AND ((pdtab.document_type_code IN ('PO', 'PA') AND
pdtab.document_subtype = pha.type_lookup_code))
AND pdta.document_subtype = pdtab.document_subtype
AND pdta.document_type_code = pdtab.document_type_code
AND pdta.org_id = Pdtab.org_id
AND pha.org_id = pdta.org_id
AND ap.vendor_id = assa.vendor_id
AND pha.org_id = assa.org_id
AND pha.vendor_id = assa.vendor_id
AND pha.vendor_site_id = assa.vendor_site_id
AND pha.bill_to_location_id = hla2.ship_to_location_id
AND pla.po_header_id = pha.po_header_id
AND pltb.line_type_id = pla.line_type_id
AND pla.line_type_id = pltt.line_type_id
AND pltt.language = USERENV('LANG')
AND msib.inventory_item_id = pla.item_id
AND plla.po_line_id = pla.po_line_id
AND msib.organization_id = plla.ship_to_organization_id
AND mcb.category_id = pla.category_id
AND pda.po_line_id = pla.po_line_id
AND pda.po_header_id = pha.po_header_id
AND pda.code_combination_id = gcc.code_combination_id
AND at.term_id = pha.terms_id
AND ood.organization_id = plla.ship_to_organization_id
AND pda.deliver_to_person_id = papf.person_id
AND hla3.location_id = pda.deliver_to_location_id
AND haou.organization_id = prha.org_id
AND haou.language = USERENV('LANG')
AND prha.org_id = pha.org_id
AND prha.requisition_header_id = prla.requisition_header_id
AND pda.req_distribution_id = prda.distribution_id
AND prda.requisition_line_id = prla.requisition_line_id
AND haou.organization_id = hou.organization_id
AND prla.org_id = pha.org_id
AND prda.code_combination_id = gcc.code_combination_id --added
AND hla3.inventory_organization_id = msib.organization_id --added
AND pda.line_location_id = prla.line_location_id --added
AND plla.po_header_id = pha.po_header_id --added
I tested it for 10 POs. for 2 the query is giving right value. but for others it is giving wrong value.
Mainly the PO Charge Account, accrual and variance account values are not matching. What changes I can make to get the correct data?
I am using r12 version
ThanksHi Srini,
Thanks for replying. I check and the application context is set.
I think we might be missing certain conditions. Can you help me with that. -
Group by Query not giving desired results
Hi,
I've a requirement to find minimum month based on status:
The following query is giving error :
SELECT
b.app_name,
DECODE (a.status,
'C','Closed',
'O','Open',
'F','Future',
'W','Pending',
'N','Not Opened') decode_status
MIN(a.period_name)
FROM table a,
table b
WHERE a.app_id = b.app_id
AND b.app_name = 'NAME1'
AND a.book_id = &book_id
AND a.status = 'O'
GROUP BY b.app_name,
DECODE (a.status,
'C','Closed',
'O','Open',
'F','Future',
'W','Pending',
'N','Not Opened') decode_status
for ex: in the above query if I've four records with status 'O' and period_name as 'May-12', 'Jun-12','Jul-12' ,'Aug-12' then I need to pick 'May'
Thanks,
KiranHi, Kiran,
user518071 wrote:
Hi,
I've a requirement to find minimum month based on status:
The following query is giving error :
SELECT
b.app_name,
DECODE (a.status,
'C','Closed',
'O','Open',
'F','Future',
'W','Pending',
'N','Not Opened') decode_status
MIN(a.period_name)
FROM table a,
table b
WHERE a.app_id = b.app_id
AND b.app_name = 'NAME1'
AND a.book_id = &book_id
AND a.status = 'O'
GROUP BY b.app_name,
DECODE (a.status,
'C','Closed',
'O','Open',
'F','Future',
'W','Pending',
'N','Not Opened') decode_status
for ex: in the above query if I've four records with status 'O' and period_name as 'May-12', 'Jun-12','Jul-12' ,'Aug-12' then I need to pick 'May'
Thanks,
KiranIt looks like you're almost there.
If period_name is a DATE, then
MIN (a.period_name)is finidng the earliest period name, such as 5 May 2012 17:03:49. If you just want to see 'May 2012', then change that to
TO_CHAR ( MIN (a.period_name)
, 'Mon YYYY'
)If a.period_name is a VARCHAR2, then change it to a DATE. The best way to do this is permanently. There is no reason to store date information in VARCHAR2 columns. Oracle supplies DATE columns; there's no extra cost for using them. DATE columns were designed for storing date information, use them to do that.
if you must keep your date information in VARCHAR2 a column, then use TO_DATE in the query. It will be slow, and you'll have run-time errors if any of the information is in the wrong format. That's what happens when you store date information in VARCHAR2 columns.
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, 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.
See the forum FAQ {message:id=9360002} -
Query not displaying data if i launch in web.
HI,
i have created one query.
If i open the same in Bex Analyser i am getting data.(dispalying data).
If i launch the same query through web its not dispalying data.error message as no data available.
Please tell me wat may be the reason.
thanks & regards,
KPS Moorthyif you see the result in Bex, then you should see the same result in web also unless you are giving any variables value values executing on web.
I hope you are executing query on web using query designer.
Regards
Pankaj -
Hello BW experts,
I am having an issue where in my query is not displaying data even though there is data in the cube in production.
But the same query is displaying data for the same selection in QA system.
I have executed the tests in RSRT, but am not able to find anything.
Please give your valuable inputs.
Thanks in Advance
BW learnerHi,
Check the filters of your query, Is there any selection made where you are going to get only march data which is present in your production system.
Check the info cube data by giving the same filter values as in the query definitation. If you didnt find any data, then your query is working fine.
check this and let me know...
if you find some data in the cube with the same filter selection, then give me the data flow of your query, which means, whether the query is executed on Multiprovider or cube?
Regards,
Patil. -
Sql query not qualifying date- what did I do wrong?
I am not getting the date request from this query, it produces all records in table- not my date request....What am I doing wrong.
select * from table
where (dep_apt in ('123','T123','456','T456'))
or (dest_apt in ('123','T123','456','T456'))
and fpdate >= '23-APR-07'
order by fpdate;> It is not a date format issue- I set up a trigger to set the date formats on all transactions to be a valid date string that I need.
Perhaps it isn't in this case, but surely
> and fpdate >= '23-APR-07'
is just asking for trouble? Why would you not use a date expression?
Are you sure you will never have to deal with dates < 2000 (if nls_date_format uses YY) or > 2049 (if using RR), or a language other than English? Didn't the industry spend billions not so long ago cleaning up all the crappy 2-digit year values, and didn't we chuckle at the 1970s COBOL programmers who (we were told) put them there to save a couple of cheap bytes? If hardcoding a date literal, why not DATE '2007-04-23' anyway? -
Please see this query, not showing data Why?
I created a report and write following query,it was working well since last 4 months but today automaticly not showing data I can undertstand why?
Becuase I didnt make any changes in this query.
Please help me
Urgent
SELECT ALL MERCH_ORDER.ORDERNO, MERCH_ORDER.ORDERDATE, MERCH_ORDER.SHIP_DATE, MERCH_ORDER.PONO,
MERCH_ORDER.SUBPP, MERCH_ORDER.PJNO, BUYER.B_NAME, BUYER.B_AJENT,
MERCH_ORDER.ITEM, MERCH_ORDER.FABRIC, MERCH_ORDER.QUALITY, MERCH_ORDER.COMPOSITION,
MERCH_ORDER.P_SIZE, MERCH_ORDER.QUANTITY, MERCH_ORDER.Q_UNIT,
MERCH_ORDER.NETWHT, MERCH_ORDER.WT_UNIT, MERCH_ORDER.TERM, MERCH_ORDER.COMM,
MERCH_ORDER.PRICE, MERCH_ORDER.CUR_SYMB, MERCH_ORDER.STATUS, MERCH_ORDER.REMARKS,
MERCH_ORDER.WONO, MERCH_ORDER.PRONO, MERCH_ORDER.PES_QUANTITY,
MERCH_ORDER.PES_Q_UNIT, MERCH_ORDER.PES_PRICE, MERCH_ORDER.PES_CUR_SYMB
FROM BUYER, MERCH_ORDER
WHERE MERCH_ORDER.CANCEL IS NULL
AND (MERCH_ORDER.B_CODE = BUYER.B_CODE)
and merch_order.orderno not in
(select export_order1.orderno from export_order1)
ORDER BY MERCH_ORDER.ORDERNOWhere "first table" is merch_order and "second table" is export_order1?
How many distinct orders are in each table?
Are there any NULL order numbers in either table?
I'd put money on the fact that if commenting out a clause causes a number of rows to be returned, that clause is filtering out all the rows. You'll need to go through your data to figure out why the NOT IN clause is filtering out all your rows.
Justin -
Query not displaying data IT0019
Hello Experts,
I created an ad hoc report by consulting the information I need from the IT0019 infotypes along with many others. Running the query gives no data on this infotype. I reviewed the configuration, but no encounter problems or differences. Also check the table, but there are no data in the query.
Regards.Hi Pablo,
I think problem with Infosets. While creatiing infoset, you have not added IT0019 which is part of PNPCE logical data base.
Check your infoset and add IT0019.
Regards,
Purnima -
Execute Query - Not finding data
I have a form with a Master-Detail-Detail (I will refer to them as Master, Detail_1, Detail_2) relationship between blocks.
There is a WHEN_NEW_FORM_INSTANCE trigger that populates a record group and then sets a list item in Detail_1 to the record group values. All other behavior is default forms.
When I perform an execute query using the default toolbar buttons, no data is returned even though data exists in the corresponding tables.
I am thinking that the setting of the list item may be causing the query to fail but I'm not sure. I have commented out the working code in the WNFI trigger and just have a NULL; statement as a test, but the default query still returns no data.
Do I need to clear the list item of its values? If so, at what point should I do this (enter-query)?
My Forms version is 10.1.2.
I appreciate guidance on this matter.The query may be failing because you are retrieving a record that has a value that is not listed in the list item's list of values. Use the list item's Mapping of Other Values property to tell Forms what to do when it retrieves a value not found in the list of values. Also see the CONVERT_OTHER_VALUE built-in.
-
Problem between SSMS and Report ! Filter query not showing data or showing wrong data
Hi all,
In short: I have a report with multiple values such as name of shop, postal code etc. The parameters have no default value and act as "like". If someone enters "krant" he'll get all the shop names that contain "krant" in their
name etc.
Same goes for postal code, if someone enters 2550 he'll get all data for 2550. The problem although is that if a user start with postal code as parameters and leaves the shop name empty, the shop name is not shown in my report! The other way around it works,
when I enter shop name i'll get all shops + postal code in my report.
I know this is because POS name cannot be shown in report because it's left blank, but I want my MDX query to be able to give me the POS names even if I only enter postal code.
Can someone please please look at my query below? I need to add 4 more parameters this way later on too!
SELECT
[Measures].[Sales amount]
ON COLUMNS, NON EMPTY
Filter(
[Point of sale].[POS name].AllMembers,
InStr(
[Point of sale].[POS name].CurrentMember.MEMBER_CAPTION,
@PAR_POSName
) > 0
*Filter(
[Point of sale].[POS postal code].AllMembers,
InStr(
[Point of sale].[POS postal code].CurrentMember.MEMBER_CAPTION,
@PAR_POSTAL_CODE
) > 0
*[Point of sale].[Client id].[Client id]
*[Point of sale].[POS id].[POS id]
*[Point of sale].[POS street].[POS street]
*[Point of sale].[POS town].[POS town]
*[Point of sale].[POS housenumber].[POS housenumber]
ON ROWS
FROM [mycube]You have to use
StrToMember (MDX) /
StrToSet (MDX) /
StrToTuple (MDX) to convert the Parameter; see
Parameterized Reporting Services Reports with Analysis Services as a Data Source
Olaf Helper
[ Blog] [ Xing] [ MVP] -
Hi,
I have an infoset which is on top of two ODSs.
Data for a particular cost center is present in both the ODSs.
There is no data prsent in RSISET for that CC.
Also the query is not showing any data for that CC but data is showing data
for other CC for the same date.
Please help.
*points assured*Dear Sourav,
You can Check if there is some other primary Key differences in the Infosets .Have you declared only Costcenter as the Key for both the ODS Objects ?? Check the other links that you have maintained as a part of key in Infoset.
Hope it helps..
Thanks,
Krish -
Query not giving me the output I want
Hi there,
I have the following query:
select rent_no, rent_end, count(*) as "NUMBER OF DRIVERS"
from rental where (rent_end IS NOT NULL) AND (rent_end between (select to_date(sysdate) from dual) and (select to_date(sysdate-7) from dual))
group by rent_no, rent_end
order by rent_end;
but it's not outputting my desired output. Basically, I want to view the selected columns where the RENT_END value is in the last seven days. So my output is supposed to look something like this:
RENT_NO RENT_END NUMBER OF DRIVERS
12345679 07-OCT-09 1
As you can see, the rent_end value is within the last seven days, but for some reason, it's not outputting at all. can anyone help?I have a couple of recommendations:
select to_date(sysdate) from dualSYSDATE is already a date value, there is no need to use TO_DATE() to convert it to a date. In addition, you can just replace the whole select statement with SYSDATE.
rent_end between (select to_date(sysdate) from dual) and (select to_date(sysdate-7) from dual)This is probably the main reason why your query is not returning any rows. The BETWEEN is not setup correctly. It should be this:
BETWEEN <LOWER BOUND> AND <UPPER BOUND>However, you have yours flipped backwards. It should probably be:
RENT_END BETWEEN TRUNC(SYSDATE) - 7 AND TRUNC(SYSDATE+1) - 1/86400 /* 23:59:59 on the current day */HTH! -
Hi All,
when i run the query i am getting the below mentioned error...in RSRT2
ORA-01722: invalid number
Error reading the data of InfoProvider DSO_02
Error while reading data; navigation is possible
>> Row: 71 Inc: NEXT_PACKAGE Prog: CL_SQL_RESULT_SET
Though the Multiprovider is active...its giving this error
Could someone please suggest the solution?
Thanks
JitenThis error is due to some change in database side . Consult Basis help..ORA-1722 and other ORA related errors will appear due to Oracle related errors
Maybe you are looking for
-
IMovie 08, iMovie 6, or Final Cut Express
I just got a new Sony HDR-SR12 HD camera. It records in 1080i. I tried iMovie 08, but I don't like the export options. I used the iMovie 08 import .mov file and opened it in iMovie 6. I exported the video and it doesn't look that good. I'm thinking a
-
Airport and network problems after recent update
I want to know if someone is aware of what went wrong with the latest OS updates, all my computers forget my local wireless connection and sometimes I'm connected to my co-workers unprotected red. Airport just won't do its job. This issue is really f
-
LR Off-line DVD Storage - Any Thoughts on How to do
After time passes, I like to move raw files from my hard drive to a DVD. I want to continue to keep these raw files that have been moved to the DVD as part of my LR catalog, including their thumbnail image. This way I can easily locate raw files stor
-
Have 30gb, trying to install/register new nano-no luck
I have a 30gb. Installed new updates and cd that came with new nano. It never allowed me to register the new nano. However, it updated my other ipod. How do I get it to recognize the nano?
-
Fireworks cs4 - jagged edges on png32
Please open the fireworks png and see the jagged edges of the buttons on the black background. The icons are set to png32... why am i getting jagged edges and how can I fix