One SQL/PLSQL query out of several does not work
I have a report with search filters and most of the search fields are text fields. I have no problem searching by these fields until i add in a select list to search by. Once i apply the select list filter(:P21_COUNTY), it displays the correct information but then all the text fields stop displaying the correct info. Does it work differently if using a select list vs. other field types? Thanks, Deanna
There is a sample app on apex.oracle.com
Workspace:DEANNA2
Username:[email protected]
Password:Dclipse03
Page 21
Login:[email protected]
Password:Dclipse03
Looks like a Application express Question
Post it [Here | http://forums.oracle.com/forums/forum.jspa?forumID=137]
SS
Similar Messages
-
Expert Mode ViewObject: default 'query by example' mechanism does not work
In JDeveloper 11G 1.1.1
I have created an Expert Mode view object(VO) which I'm trying to filter in an ADF Swing Panel
The Panel contains a Swing Table created by dropping a VO data control on the panel as an ADF bound Swing Table.
TEST
Run the panel.
Set the Query Mode on (from the Database menu)
Enter a relevant view criterion
Execute the Query
TEST FAILS
Table is refreshed but it still displays the entire VO collection (non-filtered).
Repeating the same experiment with a default, entity object generated VO works as expected.
Question
Can the default 'query-by-example' mechanism as provided by the JUTestFrame and the JUNavigationBar be used with Expert Mode view Objects?
If yes are there any tricks to making this work?Hello Frank;
Additional TEST RESULTS
In JDev11G
The default 'query by example mechanism' does not work if you create a new View Object using the <Select data source...> option <Read-only access through SQL query>.
However, IT DOES WORK if you create a new ViewObject selecting <Updatable access through entity objects> and in the Query step you select <Expert Mode>
Could you please check and confirm.
Thanks!
Ioannis
Edited by: imouts on Dec 5, 2008 1:38 PM -
I need help with a PDF file that is an image, the "Read Out Loud' option does not work, please help!
You mean an image such as a scanned document?
If that is the case, the file doesn't contain any text for Reader Out Loud to read. In order to fix that, you would need an application such as Adobe Acrobat that does Optical Character Recognition to convert the images to actual text.
You can also try to export the file as a Word document or something else using ExportPDF which I believe offers OCR and is cheaper than Acrobat. -
After upgrading my Macbook to Yosemite, the volume icon at the top right is greyed out and sound does not work.
Interesting bug. I'm cautiously optimistic this will get rid of the weekly annoyance. The difference is that I bought my laptop back in Feb 2015, so it came with Yosemite. I think the issue may have appeared soon after an OS update not long after I got the thing, though. I was using a sudo command in the Terminal, but that is obviously not a fix.
I wonder if there is a broken .plist file that may be fixed ...? -
One speaker of my i phone 4s does not working any more and my phone still new ?
One speaker of my i phone 4s does not working any more ? and it s still new !
There is only one speaker, other side is microphone. You
may wish to download and become familiar with the user guide.
It is a link in Safari on your iPhone, you can download the user
manual after you download iBooks app, or you can find it here:
http://support.apple.com/manuals/#iphone -
Outer join (with (+)) does not work
I started with a working SQL statement:
SELECT DISTINCT username, r.granted_role
FROM dba_users u, dba_sys_privs s, dba_tab_privs t, dba_role_privs r
WHERE u.username = s.grantee
AND u.username = t.grantee
AND u.username = r.grantee
ORDER BY username, r.granted_role;
Fine, now I want to add two columns which indicate which of the users have SYSDBA and SYSOPER privileges.
As in another post told this can be achieved by:
SELECT * FROM V$PWFILE_USERS;
When I want to merge these two SQL statements I need an outer join but the following does not work:
SELECT DISTINCT u.username, r.granted_role, v.SYSDB, v.SYSOP
FROM dba_users u, dba_sys_privs s, dba_tab_privs t, dba_role_privs r, V$PWFILE_USERS v
WHERE u.username = s.grantee
AND u.username = t.grantee
AND u.username = r.grantee
AND u.username = v.username(+)
ORDER BY u.username, r.granted_role;
I got an error message:
SELECT DISTINCT u.username, r.granted_role, v.SYSDB, v.SYSOP
ERROR at line 1:
ORA-06553: PLS-306: wrong number or types of arguments in call to 'V'
Why?Run this
SELECT DISTINCT u.username, r.granted_role, v.SYSDBA, v.SYSOPER
FROM dba_users u,
dba_sys_privs s,
dba_tab_privs t,
dba_role_privs r,
v$pwfile_users v
WHERE u.username = s.grantee
AND u.username = t.grantee
AND u.username = r.grantee
AND u.username = v.username(+)
ORDER BY u.username, r.granted_role;- - - - - - - - - - - - - - - - - - - - -
Kamran Agayev A. (10g OCP)
http://kamranagayev.wordpress.com -
I have 2 sets of playlists in the sidebar of itunes. I have recently upgraded to 10.6.1.7 but this condition remains the same
The top list refers to greyed out listings and does not function
The list below works fine
How do I get rid of the "false" list?I think the greyed out playlists must be listed from your device which is set up to mirror your library. Because the device is synced you can't edit content directly on the device. From the top of the left-hand column do you have?
Library > Music, Movies...
Store > iTunes Store, iTunes Match...
Devices > <Your Device> > Music, Movies, and all the other "dummy" lists...
Genius > Genius, Genius Mixes...
Playlists > iTunes DJ, and then all your playlist folders and playlists...
If so then that is perfectly normal when your device is connected, either directly or over wi-fi and you have the lists expanded. Simply click the small triangle to the left of the device name to hide all the playlists.
tt2 -
SQL-Tokenizer based on regular-expressions does not work
I'm on 10gR2
Following SQL-Tokenizer converts string :str to rows using :delim as the delimiter-char (:str and :delim are parameters):
select level, regexp_replace(regexp_substr( :in_str || :in_delimiter, '(.*?)' || :in_delimiter, 1, level ), :in_delimiter, '') as token
from dual
connect by regexp_instr( :in_str || :in_delimiter, '(.*?)' || :in_delimiter, 1, level ) > 0
order by level asc ;
When using the pipe-symbol "|" as the delimiter, it doesn't work; the rows are processed, but the tokens are null. Using an other char as delimiter (e.g. ";") works fine.
:str = "123;456;A1;67X;0;-8" & :delim = ";" => works fine
:str = "123|456|A1|67X|0|-8" & :delim = "|" => does not work
I think the bug is in the regexp-parameter for the pattern, isn't it?
Why doesn't work the pipe-symbol as delimiter?
Can anybody give me a hint for using the correct regexp-pattern?
thx
Nuerniselect level, rtrim(regexp_substr( :in_str || :in_delimiter, '(.*?)' || :in_delimiter, 1, level ),:in_delimiter ) as token
from dual
connect by regexp_instr( :in_str || :in_delimiter, '(.*?)' || :in_delimiter, 1, level ) > 0
order by level asc ;use a rtrim instead of regexp_replace then it works...
Ravi Kumar -
HT3669 hp deskjet all in one 4488 printer software downloaded from apple does not work
The printer software for HP Deskjet all in one F4488 downloaded from Apple support for OS 10.8.2 does not work. The problem is that the software is not available at the HP support site only.
Your apparently older Model needs to use Apple's "Print & Scan" which is found in Applications>System Prefernces>Print & Scan. There you will follow the following instructions from the HP Support site to Scan, for instance:
Place the item that you want to scan on the scanner glass, or load it into the automatic document feeder (ADF) if your printer has one.
Click the Apple menu ( ), and then click System Preferences .
Click Print & Scan ( ).
Click your printer in the left pane.
Click Scan , and then click Open Scanner .
Click Show Details . The details of the scan display, including options to change scan settings.Figure 4: Example of the Show Details scanning screen
Change any scan settings as necessary, and then click Scan .NOTE: Make sure to select either the Flatbed mode or the Document Feeder mode, depending on your printer and how you plan to scan.
Hope this helps -
Good Day to ALL!
I have a script of SQLPlus that creates a report. I have 8/9 numeric columns which are 'SUM'ed up thru 'COMPUTE' command. It works for all BUT 2 columns. If I put these two columns, compute does not take affect. If I remove these two columns ( just cut) 'COMPUTE' works fine!!! These two coulumns use DB Function. But I have other column that also use DB Function. These two columns has some extra additions. Any thing wrong with the script/column defn.
Thanks - Pradip (Pradip Biswas @Singapore) Could you pl. reply to [email protected]
Here is bit of script. Sorry about the length of the cut and paste.
COLUMN OPEN_QTY_BAL FORMAT 9,99,990 HEADING 'Opening|Qty' Justify LEFT
COLUMN OPEN_QTY_VALUE FORMAT 99,999,990 HEADING 'Opening|S$' Justify LEFT
COLUMN PO_RECEIPTS_QTY FORMAT 99,990 HEADING 'PO Rec|QTY ' Justify LEFT
COLUMN PO_RECEIPTS_QTY_VALUE FORMAT 9,999,990 Heading 'PO Rec|S$' Justify LEFT
COLUMN MISC_RECEIPTS_QTY Format 99,990 Heading 'Misc |Qty' Justify LEFT
Column MISC_RECEIPTS_QTY_VALUE Format 9,999,990 Heading 'Misc|S$' Justify LEFT
COLUMN WORKORDER_QTY FORMAT 99,990 HEADING 'WorkOrd|Qty' Justify LEFT
COLUMN WorkOrder_QTY_VALUE Format 9,999,990 HEADING 'WorkOrd|S$' Justify LEFT
COLUMN SALES_SHIPMENT_QTY FOrmat 99,990 Heading 'SalesShip|Qty' Justify LEFT
COLUMN SALES_SHIPMENT_QTY_VALUE FOrmat 9,999,990 Heading 'SalesShip|S$' Justify LEFT
COLUMN MISC_ISSUE_QTY Format 99,999 HEADing 'Misc|Qty' Justify LEFT
COLUMN MISC_ISSUE_QTY_VALUE Format 9,999,990 heading 'Misc|S$' Justify LEFT
COLUMN TRANSFER_QTY format 99,990 heading 'Transfer|Qty' Justify LEFT
COLUMN TRANSFER_QTY_VALUE format 99,999,990 heading 'Transfer|S$' Justify LEFT
COLUMN REVAL_VALUE Format 99,990 Heading 'Reval|S$' Justify LEFT
COLUMN ON_HAND_QTY FORMAT 9,99,990 HEADING 'Closing|Qty' Justify LEFT
COLUMN ON_HAND_QTY_VALUE FORMAT 99,999,999,990 HEADING 'Closing|S$' Justify LEFT
REPHEADER on
REPHEADER left ' GL Period From: &&P_GL_PERIOD_NAME_FROM ' skip left ' GL Period To : &&P_GL_PERIOD_NAME_TO ' skip left ' Inv Org Code : &&P_INV_ORG_CODE ' skip left 'SubInventory Code : &&P_SUBINVENTORY_CODE ' skip 2
TTITLE left 'H - Inv Inventory Movement Report as at:' TTITLE_DATE RIGHT 'PAGE:' FORMAT 999 SQL.PNO SKIP 2
BTITLE skip 1 CENTER 'COMPANY CONFIDENTIAL - Printed on ' TTITLE_DATE
BREAK on REPORT skip 1;
--rem(1) compute SUM label 'Total' of OPEN_QTY_VALUE PO_RECEIPTS_QTY_VALUE MISC_RECEIPTS_QTY_VALUE WorkOrder_QTY_VALUE SALES_SHIPMENT_QTY_VALUE MISC_ISSUE_QTY_VALUE TRANSFER_QTY_VALUE REVAL_VALUE on report;
--REM(2) compute SUM label 'Total $S: ' of OPEN_QTY_VALUE REVAL_VALUE on report;
--REM(3) compute SUM label 'Total $S: ' of OPEN_QTY_VALUE REVAL_VALUE ON_HAND_QTY_VALUE on report;
compute SUM label 'Total $S:' of OPEN_QTY_VALUE PO_RECEIPTS_QTY_VALUE MISC_RECEIPTS_QTY_VALUE WorkOrder_QTY_VALUE SALES_SHIPMENT_QTY_VALUE MISC_ISSUE_QTY_VALUE TRANSFER_QTY_VALUE REVAL_VALUE on report;
WHENEVER SQLERROR EXIT FAILURE
select
-- MSI.ORGANIZATION_ID ORGANIZATION_ID,
-- MSI.INVENTORY_ITEM_ID INVENTORY_ITEM_ID,
MSI.SEGMENT1||'//'||MSI.DESCRIPTION ITEM,
-- MSI.DESCRIPTION DESCRIPTION,
All_Item_subinv.SUBINVENTORY_CODE SUBINVENTORY,
MSIV.PRIMARY_UOM_CODE UOM,
--NVL(MOQ_OPen_BAL.OPEN_QTY_BAL ,0) OPEN_QTY_BAL ,
-- NVL(MOQ_OPen_BAL.OPEN_QTY_BAL,0) * NVL(AVG_ITEM_COST1.ITEM_COST,0) OPEN_QTY_VALUE,
(MOQ_OPen_BAL( All_Item_subinv.SUBINVENTORY_CODE,
MSI.ORGANIZATION_ID,
MSI.INVENTORY_ITEM_ID,
'&P_GL_PERIOD_NAME_FROM') ) OPEN_QTY_BAL ,
(MOQ_OPen_BAL_VAL( All_Item_subinv.SUBINVENTORY_CODE,
mSI.ORGANIZATION_ID,
MSI.INVENTORY_ITEM_ID,
'&P_GL_PERIOD_NAME_FROM')
) OPEN_QTY_VALUE,
NVL(AGGREGATED_MTT.PO_RECEIPTS_QTY,0) PO_RECEIPTS_QTY,
NVL(AGGREGATED_MTT.PO_RECEIPTS_QTY_VALUE,0) PO_RECEIPTS_QTY_VALUE,
NVL(AGGREGATED_MTT.MISC_RECEIPTS_QTY,0) MISC_RECEIPTS_QTY,
NVL(AGGREGATED_MTT.MISC_RECEIPTS_QTY_VALUE,0) MISC_RECEIPTS_QTY_VALUE,
NVL(AGGREGATED_MTT.WORKORDER_QTY,0) WORKORDER_QTY,
NVL(AGGREGATED_MTT.WorkOrder_QTY_VALUE,0) WorkOrder_QTY_VALUE,
NVL(AGGREGATED_MTT.SALES_SHIPMENT_QTY,0) SALES_SHIPMENT_QTY,
NVL(AGGREGATED_MTT.SALES_SHIPMENT_QTY_VALUE,0) SALES_SHIPMENT_QTY_VALUE,
NVL(AGGREGATED_MTT.MISC_ISSUE_QTY,0) MISC_ISSUE_QTY,
NVL(AGGREGATED_MTT.MISC_ISSUE_QTY_VALUE,0) MISC_ISSUE_QTY_VALUE,
NVL(AGGREGATED_MTT.TRANSFER_QTY,0) TRANSFER_QTY,
NVL(AGGREGATED_MTT.TRANSFER_QTY_VALUE,0) TRANSFER_QTY_VALUE,
NVL(AGGREGATED_MTT.REVAL_VALUE,0) REVAL_VALUE,
(MOQ_OPen_BAL(All_Item_subinv.SUBINVENTORY_CODE,
MSI.ORGANIZATION_ID,
MSI.INVENTORY_ITEM_ID,
'&P_GL_PERIOD_NAME_FROM')
+
nvl(AGGREGATED_MTT.PO_RECEIPTS_QTY,0) +
nvl(AGGREGATED_MTT.MISC_RECEIPTS_QTY,0) +
nvl(AGGREGATED_MTT.WORKORDER_QTY,0) +
nvl(AGGREGATED_MTT.SALES_SHIPMENT_QTY,0) +
nvl(AGGREGATED_MTT.MISC_ISSUE_QTY,0) +
nvl(AGGREGATED_MTT.TRANSFER_QTY,0) ) ON_HAND_QTY,
((MOQ_OPen_BAL_VAL( All_Item_subinv.SUBINVENTORY_CODE,MSI.ORGANIZATION_ID,MSI.INVENTORY_ITEM_ID,'&P_GL_PERIOD_NAME_FROM'))
+(nvl( AGGREGATED_MTT.PO_RECEIPTS_QTY_VALUE,0) )
+(nvl( AGGREGATED_MTT.MISC_RECEIPTS_QTY_VALUE,0) )
+(nvl( AGGREGATED_MTT.WorkOrder_QTY_VALUE,0) )
+(nvl( AGGREGATED_MTT.sALES_SHIPMENT_QTY_VALUE,0) )
+(nvl( AGGREGATED_MTT.MISC_ISSUE_QTY_VALUE,0) )
+(nvl( AGGREGATED_MTT.TRANSFER_QTY_VALUE,0) )
+nvl( AGGREGATED_MTT.REVAL_VALUE,0)) ON_HAND_QTY_VALUE -- column alias
FROM
-- In line View for MSI
(select distinct MMT.ORGANIZATION_ID, MMT.INVENTORY_ITEM_ID, MMT.SUBINVENTORY_CODE
From MTL_MATERIAL_TRANSACTIONS MMT,
ORG_ORGANIZATION_DEFINITIONS OOD,
MTL_ONHAND_QUANTITIES moq
where
OOD.organization_code = '&P_INV_ORG_CODE' --'HS' --'&P_INV_ORG_CODE'
AND OOD.inventory_enabled_flag = 'Y'
AND OOD.operating_unit = fnd_profile.value('ORG_ID') --83 --fnd_profile.value('ORG_ID')
AND OOD.SET_OF_BOOKS_ID = fnd_profile.value('GL_SET_OF_BKS_ID') --1 --fnd_profile.value('GL_SET_OF_BKS_ID')
AND MMT.ORGANIZATION_ID = OOD.organization_id
AND MMT.SUBINVENTORY_CODE = NVL('&P_SUBINVENTORY_CODE', MMT.SUBINVENTORY_CODE)
and MMT.ORGANIZATION_ID = MOQ.ORGANIZATION_ID -- to eliminate consigend items:2007Jan04:PKB
and MMT.INVENTORY_ITEM_ID = MOQ.INVENTORY_ITEM_ID --,,
and MMT.SUBINVENTORY_CODE = MOQ.SUBINVENTORY_CODE --,,
UNION
Select distinct MOQ.ORGANIZATION_ID, MOQ.INVENTORY_ITEM_ID, MOQ.SUBINVENTORY_CODE
from MTL_ONHAND_QUANTITIES MOQ,
ORG_ORGANIZATION_DEFINITIONS OOD2
WHERE
OOD2.organization_code = '&P_INV_ORG_CODE' --'HS' --'&P_INV_ORG_CODE'
AND OOD2.inventory_enabled_flag = 'Y'
AND OOD2.operating_unit = fnd_profile.value('ORG_ID') --83 --fnd_profile.value('ORG_ID')
AND OOD2.SET_OF_BOOKS_ID = fnd_profile.value('GL_SET_OF_BKS_ID') --1 --fnd_profile.value('GL_SET_OF_BKS_ID')
AND moq.ORGANIZATION_ID = OOD2.organization_id
AND moq.SUBINVENTORY_CODE = NVL('&P_SUBINVENTORY_CODE', moq.SUBINVENTORY_CODE)
) ALL_Item_SUBInv,
MTL_SYSTEM_ITEMS_B MSI,
Mtl_System_Items_Vl MSIV,
(SELECT
MMT.ORGANIZATION_ID ORGANIZATION_ID,
MMT.INVENTORY_ITEM_ID INVENTORY_ITEM_ID,
MMT.SUBINVENTORY_CODE SUBINVENTORY_CODE,
-- PO RECEIPTS.
SUM(CASE
WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
('Purchase order')
THEN
CASE
WHEN MTT.TRANSACTION_TYPE_NAME in
('PO Receipt','PO Rcpt Adjust','Return to Vendor')
THEN
--MMT.TRANSACTION_QUANTITY
mmt.primary_quantity
ELSE 0
END
ELSE 0
END ) PO_RECEIPTS_QTY,
SUM(CASE
WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
('Purchase order')
THEN
CASE
WHEN MTT.TRANSACTION_TYPE_NAME in
('PO Receipt','PO Rcpt Adjust','Return to Vendor')
THEN
NVL(MMT.ACTUAL_COST,0)* nvl(mmt.primary_quantity,0)
MMT.TRANSACTION_COST * NVL(AVG_ITEM_COST.ITEM_COST,0)
ELSE 0
END
ELSE 0
END ) PO_RECEIPTS_QTY_VALUE,
-- MISC RECEIPTS.
SUM( CASE
WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
('Account','Inventory')
THEN
CASE
WHEN MTT.TRANSACTION_TYPE_NAME in
('Account receipt','Miscellaneous receipt')
THEN
--MMT.TRANSACTION_QUANTITY
mmt.primary_quantity
ELSE 0
END
ELSE 0
END ) MISC_RECEIPTS_QTY,
SUM(CASE
WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
('Account', 'Inventory')
THEN
CASE
WHEN MTT.TRANSACTION_TYPE_NAME in
('Account receipt','Miscellaneous receipt')
THEN
NVL(MMT.ACTUAL_COST,0) * nvl(mmt.primary_quantity,0)
MMT.TRANSACTION_COST NVL(AVG_ITEM_COST.ITEM_COST,0)
ELSE 0
END
ELSE 0
END ) MISC_RECEIPTS_QTY_VALUE,
-- WorkOrder Qty and S$
SUM( CASE
WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
('Job or Schedule')
THEN
CASE
WHEN MTT.TRANSACTION_TYPE_NAME in
('WIP Assembly Return','WIP Assy Completion','WIP component issue','WIP Component Return')
THEN
--MMT.TRANSACTION_QUANTITY
mmt.primary_quantity
ELSE 0
END
ELSE 0
END ) WORKORDER_QTY,
SUM(CASE
WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
('Job or Schedule')
THEN
CASE
WHEN MTT.TRANSACTION_TYPE_NAME in
('WIP Assembly Return','WIP Assy Completion','WIP component issue','WIP Component Return')
THEN
NVL(MMT.ACTUAL_COST,0) * nvl(mmt.primary_quantity,0)
MMT.TRANSACTION_COST NVL(AVG_ITEM_COST.ITEM_COST,0)
ELSE 0
END
ELSE 0
END ) WorkOrder_QTY_VALUE,
-- Sales Shipment
SUM(CASE
WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
( 'Sales order','RMA')
THEN
CASE
WHEN MTT.TRANSACTION_TYPE_NAME in
('Sales order issue','Sales Order Pick','RMA Return','RMA Receipt')
THEN
--MMT.TRANSACTION_QUANTITY
mmt.primary_quantity
ELSE 0
END
ELSE 0
END ) SALES_SHIPMENT_QTY,
SUM(CASE
WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
( 'Sales order','RMA')
THEN
CASE
WHEN MTT.TRANSACTION_TYPE_NAME in
('Sales order issue','Sales Order Pick','RMA Return','RMA Receipt')
THEN
NVL(MMT.ACTUAL_COST,0) * nvl(mmt.primary_quantity,0)
MMT.TRANSACTION_COST NVL(AVG_ITEM_COST.ITEM_COST,0)
ELSE 0
END
ELSE 0
END ) SALES_SHIPMENT_QTY_VALUE,
-- MISC ISSUE
SUM(CASE
WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
('Inventory','Account' )
THEN
CASE
WHEN MTT.TRANSACTION_TYPE_NAME in
('Miscellaneous issue','Account issue')
THEN
--MMT.TRANSACTION_QUANTITY
mmt.primary_quantity
ELSE 0
END
ELSE 0
END ) MISC_ISSUE_QTY,
SUM(CASE
WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
('Inventory','Account' )
THEN
CASE
WHEN MTT.TRANSACTION_TYPE_NAME in
('Miscellaneous issue','Account issue')
THEN
NVL(MMT.ACTUAL_COST,0) * nvl(mmt.primary_quantity,0)
MMT.TRANSACTION_COST NVL(AVG_ITEM_COST.ITEM_COST,0)
ELSE 0
END
ELSE 0
END ) MISC_ISSUE_QTY_VALUE,
-- Transfers
SUM( CASE
WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
( 'Inventory' )
THEN
CASE
WHEN MTT.TRANSACTION_TYPE_NAME in
('Subinventory Transfer')
THEN
--MMT.TRANSACTION_QUANTITY
mmt.primary_quantity
ELSE 0
END
ELSE 0
END ) TRANSFER_QTY,
SUM( CASE
WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
( 'Inventory')
THEN
CASE
WHEN MTT.TRANSACTION_TYPE_NAME in
('Subinventory Transfer')
THEN NVL(MMT.ACTUAL_COST,0) * nvl(mmt.primary_quantity,0)
MMT.TRANSACTION_COST NVL(AVG_ITEM_COST.ITEM_COST,0)
ELSE 0
END
ELSE 0
END ) TRANSFER_QTY_VALUE,
-- Adjustment to Cost (Revaluation)
SUM(CASE
WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
( 'Standard cost update','Job or Schedule')
THEN
CASE
WHEN MTT.TRANSACTION_TYPE_NAME in
('Standard cost update','WIP cost update')
THEN
--2007JAN03:PKB MMT.TRANSACTION_COST
MMT.TRANSACTION_COST* MMT.QUANTITY_ADJUSTED
ELSE 0
END
ELSE 0
END ) REVAL_VALUE
FROM
MTL_MATERIAL_TRANSACTIONS MMT,
--GL_PERIODS GP,
MTL_TRANSACTION_TYPES MTT,
MTL_TXN_SOURCE_TYPES MTST,
ORG_ORGANIZATION_DEFINITIONS OOD
WHERE
OOD.organization_code = '&P_INV_ORG_CODE' --'HS' --'&P_INV_ORG_CODE'
AND OOD.inventory_enabled_flag = 'Y'
AND OOD.operating_unit = fnd_profile.value('ORG_ID') --83 --fnd_profile.value('ORG_ID')
AND OOD.SET_OF_BOOKS_ID = fnd_profile.value('GL_SET_OF_BKS_ID') --1 --fnd_profile.value('GL_SET_OF_BKS_ID')
AND MMT.ORGANIZATION_ID = OOD.organization_id
AND MMT.SUBINVENTORY_CODE = NVL('&P_SUBINVENTORY_CODE', MMT.SUBINVENTORY_CODE)
-- AND GP.PERIOD_SET_NAME = 'HF-ACCTG-CAL' -- Hardcoded PKB
AND
( (EXISTS
( select GP.Period_name
FROM GL_PERIODS GP
where TO_DATE(TO_CHAR(MMT.TRANSACTION_DATE,'DD-MM-YYYY'),'DD-MM-YYYY')
>= TO_DATE(TO_CHAR(GP.START_DATE,'DD-MM-YYYY'),'DD-MM-YYYY') --Between GP.START_DATE and GP.END_DATE
AND GP.PERIOD_NAME = '&P_GL_PERIOD_NAME_FROM'
and GP.PERIOD_SET_NAME = 'HF-ACCTG-CAL'
AND NVL('&P_GL_PERIOD_NAME_FROM','ALL') != 'ALL'
OR (NVL('&P_GL_PERIOD_NAME_FROM' ,'ALL') = 'ALL')
AND
( (EXISTS
( select GP.Period_name
FROM GL_PERIODS GP
where TO_DATE(TO_CHAR(MMT.TRANSACTION_DATE,'DD-MM-YYYY'),'DD-MM-YYYY')
<= TO_DATE(TO_CHAR(GP.END_DATE,'DD-MM-YYYY'),'DD-MM-YYYY')
AND GP.PERIOD_NAME = '&P_GL_PERIOD_NAME_TO'
and GP.PERIOD_SET_NAME = 'HF-ACCTG-CAL'
AND NVL('&P_GL_PERIOD_NAME_TO','ALL') != 'ALL'
OR (NVL('&P_GL_PERIOD_NAME_TO','ALL') = 'ALL')
AND MMT.TRANSACTION_TYPE_ID = MTT.TRANSACTION_TYPE_ID
AND MMT.TRANSACTION_SOURCE_TYPE_ID = MTST.TRANSACTION_SOURCE_TYPE_ID
group by
MMT.ORGANIZATION_ID,
MMT.INVENTORY_ITEM_ID,
MMT.SUBINVENTORY_CODE
) AGGREGATED_MTT,
-- Inline Table for AVG_ITEM_COSTs 2nd time,
(SELECT
CIC.ORGANIZATION_ID ORGANIZATION_ID,
CIC.INVENTORY_ITEM_ID INVENTORY_ITEM_ID,
CIC.COST_TYPE_ID COST_TYPE_ID,
CCT.COST_TYPE COST_TYPE,
NVL(CIC.ITEM_COST ,0) ITEM_COST
FROM
CST_ITEM_COSTS CIC,
CST_COST_TYPES ccT,
ORG_ORGANIZATION_DEFINITIONS OOD1
WHERE
CCT.COST_TYPE_ID = CIC.COST_TYPE_ID
/*AND (
(CCT.COST_TYPE = 'Average' and '&P_INV_ORG_CODE' = 'HS')
OR
(CCT.COST_TYPE = 'Frozen' and '&P_INV_ORG_CODE' = 'HL')
AND CCT.COST_TYPE_ID =
( select m.primary_cost_method
from mtl_parameters m
where m.organization_id = OOD1.ORGANIZATION_ID
and OOD1.organization_code = '&P_INV_ORG_CODE' --'HS' --'&P_INV_ORG_CODE'
AND OOD1.inventory_enabled_flag = 'Y'
AND OOD1.operating_unit = fnd_profile.value('ORG_ID') 83 --fnd_profile.value('ORG_ID')
AND OOD1.SET_OF_BOOKS_ID = fnd_profile.value('GL_SET_OF_BKS_ID') 1 --fnd_profile.value('GL_SET_OF_BKS_ID')
AND cic.ORGANIZATION_ID = OOD1.organization_id
) AVG_ITEM_COST1
WHERE
AGGREGATED_MTT.ORGANIZATION_ID(+) = All_Item_subinv.ORGANIZATION_ID
AND AGGREGATED_MTT.INVENTORY_ITEM_ID(+) = All_Item_subinv.INVENTORY_ITEM_ID
AND AGGREGATED_MTT.subinventory_code(+) = All_Item_subinv.subinventory_code
AND All_Item_subinv.ORGANIZATION_ID = MSI.ORGANIZATION_ID
AND ALL_Item_SUBInv.INVENTORY_ITEM_ID = MSI.INVENTORY_ITEM_ID
AND AVG_ITEM_COST1.ORGANIZATION_ID(+) = MSI.ORGANIZATION_ID
AND AVG_ITEM_COST1.INVENTORY_ITEM_ID(+) = MSI.INVENTORY_ITEM_ID
and msi.ROWID = MSIV.ROW_ID
and msi.ORGANIZATION_ID = fnd_profile.value('ORG_ID') --83 --fnd_profile.value('ORG_ID')
and sysdate between NVL(msi.start_date_active,sysdate -1 )
and NVL(msi.end_date_active,sysdate+1)
Order BY
MSI.SEGMENT1,
MSI.DESCRIPTION ,
All_Item_subinv.SUBINVENTORY_CODE
/Hi Barry and All: This indeed is a bug in SQLPLUS ! Version 9.2.0.1.0 as well.
Thanks for asking the version no of SQLLPLUs. I was working thru Oracle Apps 11i.10 (concurrent program). So I did not get any message from SQLPLUS.
I tested independently in SQLPLUS and got the message! Thanks Oracle!!!
The Bug is in the name of COLUMN NAME or ALIAS Name. I renamed the columns from ON_HAND_QTY and ON_HAND_VALUE to CLOSE_QTY and CLOSE_QTY_VALUE. It worked!! The string 'ON' in the column/alias name is taken as 'ON' keyword/clause for 'compute' statement for SQLPLUS.
Here is the message from SQLPLUS
" SP2-0084: COMPUTE ON keyword specified already"
See these two line and compare
--compute SUM label 'Total $S: ' of SALARY ON_SALARY on report;
compute SUM label 'Total $S: ' of SALARY on report;
Thanks - Pradip
Here is the sample code to simulate. (not Big :))
WHENEVER SQLERROR EXIT FAILURE
CLEAR computes
CLEAR BREAKS
clear column
TTITLE OFF
BTITLE OFF
set verify off
set feedback off
set echo off
set heading off
set termout off
set linesize 203
set pagesize 30
set termout on
SET UNDERLINE =
set heading on
COLUMN SALARY FORMAT 9,999,990 Heading 'SALARY'
COLUMN ON_SALARY format 9,999,990 Heading 'ON Salary'
column ENAME format a20 heading 'NAME'
COLUMN EMPNO Format 99999 HEADING 'EMPNO'
BREAK on REPORT skip 3;
--compute SUM label 'Total $S: ' of SALARY ON_SALARY on report;
compute SUM label 'Total $S: ' of SALARY on report;
WHENEVER SQLERROR EXIT FAILURE
select empno, ename, sal SALARY, sal ON_SALARY from scott.emp; -
This one is for Nancy o contact form does not work for me. please help
http://alpenawebdesigns.com/form1.html
for css i have form1.css and for php i have vsi2.php
when i submit the form i get a 404 error and requested url/form-to-email.php not found
i like the form and for the life in me i can not see the obvious
thank you
allen macfaldaI changed the vsi2.php to form-to-email.php and it appears to work exceppt that it does not send a return email
allen macfalda -
LOV based on Query - ORDER BY :P_ITEMVALUE does not work
Hello guys! I have a special request that I'm focussing on. I have a couple of select lists in my application that contain tree species.
On the first page the user has the opportunity to assign a ranking to the respective tree species. The database column storing that information is named INT_BEDEUTUNG.
Instead of using that order by clause continously I want to be able to change the order by definition using two buttons. One is used to order alphabetically (column BA_LANG) and one is used to order by the field INT_BEDEUTUNG.
Hence I tried to bind an item (P6_SORT) via a button, assigning it to either BA_LANG or INT_BEDEUTUNG.
The tree species select lists in my reports are based on LOVs using the following query:
SELECT BA_LANG, LNG_BAUMART
FROM VT_TBL_BAUMART, vt_tbl_BAUMARTENBEDEUTUNG
where CNT_BAUMART = LNG_BAUMART and
LNG_GEBIET=:P6_lng_gebiet
order by :P6_SORTI thought that if :P6_SORT conatins the value BA_LANG or INT_BEDEUTUNG, the selct list would be ordered accordingly. Unfortunately it doesn't, although P6_SORT is not empty?
Do you have an idea what I am doing wrong or how to change the order by clause for that query for the whole application?
I'd appreciate your interesting answers and thoughts!
Best regards,
Sebastian
Edited by: skahlert on 17.09.2009 08:52@ Roel
Thanks Roel! I believe your suggestion works! Thanks a lot! Great to get such a rapid solution! :-)
Nevertheless I have one more question. I am using 2 html buttons on page 1 with URL-redirect in order to set the item on a specific page. This was for testing purposes only.
Now I just want to set the attribute or value on page one where the respective buttons are placed.
I have other navigating buttons on the same page, which when clicked, bind items on the target page. These should be used throughout the application to forward the item value for P_SORT.
Now the question is - how can I bind an item on page 1 without being redirected? Is there a javascript routine or a simple trick that does the trick???
Thanks again and best regards,
Sebastian -
Apply one Keyword to multiple pictures in Aperture does not work for me
According to the Aperture Users Guide it should be very simple to apply one (or several) keywords to one or several pictures. In my case I can apply one or several keywords to ONE picture at a time. However, when I select a bunch of pictures and try to apply a keyword either using the Keywords HUD or the Keywords Control bar, the keyword gets only applied to the picture I move the keyword on-to. I can not apply the same keyword to many selected pictures at the same time. What am I doing wrong?
I select the group of pictures in the Browser and can clearly see that they are selected as they are highlighted. Then I grab the keyword I want to apply from the Keyword HUD and drag and drop it onto one of the selected pictures either in the Browser or the filmstrip window. But regardless of how I do it, only one picture shows the keyword in its Info panel.
Thanks for any help ....
TahungaThat's exactly it !!! In fact, I have my Aperture libraries on an external drive so I can switch between my MacBook Air and my iMac. This morning I opened the pictures on my iMac and noticed that I did not experience the problem with the keywords. Now I am back on my laptop and checked for the "Primary Only", and yes, it was "on" on the laptop ... I simply turned it off and the problem is no longer ... Thanks for your help. Take a couple of Gold Stars for you.
-
MDX Query generated by CR does not work
Hi Everybody,
I'm running CR 12.3.0.601Client against SAP_BW 701on SAP EHP 1 for SAP NetWeaver 7.0.
I connect to the SAP System via <SAP BW MDX QUERY> and <Cubes> directly to a Multiprovider (as non of my Queries is populated below the Queries Node.)
The Multiprovider contains a basic balance sheet concept including a hierarchy for the balance positions I want to display in my report.
The structure of the Cube is populated correctly in the Field Explorer.
Accordingly I drag and drop the balance positons (figures for assets (100), currentassets(120), liabilities(80), etc...) and the balance position types (values for assets like 'A', currentassets 'CA', etc...) to the detailed section, what works fine so far.
However, as soon as I create a group on the NodeID I cannot see any data in the preview. By running the SQL Query, copied from Database->Show SQL Query Window in the Transaction MDXTEST I receive the error message below:
System error in program CL_RSR_HIERARCHY and form MEMBERGET_FULL_2 (see long text)
The Query created by CR is:
SELECT {[Measures].[ZBSPOS]} ON COLUMNS, NON EMPTY CROSSJOIN(EXCEPT([ZBSPOSTP].MEMBERS, {[ZBSPOSTP].[All]}), CROSSJOIN(EXCEPT([0FISCYEAR].MEMBERS, {[0FISCYEAR].[All]}), [ZBSPOSTP ZEVA_BSPSTP_H].MEMBERS)) DIMENSION PROPERTIES [0FISCYEAR].[20FISCYEAR], [ZBSPOSTP ZEVA_BSPSTP_H].[2ZBSPOSTP] ON ROWS FROM [$ZEVA_MP]
Thanks for your help!
DominikHey Ingo,
Google and Searches in SDN did not return any results for "_MEMBER_GET_FULL_2", but I'm thankful for other sites, you recommend ;).
Crystal Reports is Running on Version 12.3.0.601, ie. SP 3 without any FixPacks. Yet I'll run updates up to FP 3, just to be sure.
Moreover, I'm not really sure what you mean by
Did you also import the corresponding ABAP Transports ?
I can query the cube with a BEx Query, so everything should be in the system, right?
Just to be sure, please find the complete error message below. As a next step, I would try to find out, at what step the SAP program fails.
System error in program CL_RSR_HIERARCHY and form MEMBERGET_FULL_2 (see long text)
Message no. BRAIN299
Diagnosis
This internal error is an intended termination resulting from a program state that is not permitted.
Procedure
Analyze the situation and inform SAP.
If the termination occurred when you executed a query or Web template, or during interaction in the planning modeler, and if you can reproduce this termination, record a trace (transaction RSTT).
For more information about recording a trace, see the documentation for the trace tool environment as well as SAP Note 899572.
greetings -
Outlook 2007 Out of Office does not work
Hello,
Our local network uses Exchange Server 2008 and has clients connected with Outlook 2007 and Outlook 2010. Recently one of the users reported that Outlook 2007 cannot access the Out Of Office function. When he tries Outlook reports that the server is unavailable.
I confirmed this on 2 machines which use Outlook 2007. I also tested on 2 machines using Outlook 2010 and they do not have the problem. Per a ms support kb article, I tried using a new Outlook profile for one of the Outlook 2007 machines and it made no difference.
I am able to use the Out of Office feature when using Outlook Web Access for the machines which use Outlook 2007. Due to this I’m pretty sure the issue is Outlook 2007. The machines are current for Windows and Office updates. Any suggestions on how to resolve
this?
Thank you,I believe you mean Exchange 2007.
OWA is a completely separate mechanism to access the Out Of Office service. Not relevant.
Check your AutoDiscover for your OOF address, with that address attempt to connect to that address via client machine, you should get an XML return. If no return or error message, move forward from there.
Maybe you are looking for
-
Trying to get my NEW windows 8 laptop connected to my MFP M276 color printer... I get to http://apps.microsoft.com/windows/en-gb/app/hp-all-in-one-printer-remote/94883cdd-504d-4e94-871c-c70... this eventually asks me to create a Microsoft account. I
-
Can't get [ ] brackets to work to increase or decrease
Hi I am new to this forum. I have CS2. My C drive crashed and I had to re-format my hard drive, and re-install all of my programs. Since then, my brackets[ ] with not work to increase or decrease brush sizes. I have to use the drop-down menu to chang
-
Adapter : XML Doubt :Help Needed
Hi I am trying to modity the sample adpater to work as a custom jdbc adapter. When my adaptyer gets the message it gets it in an XML format : <?xml version="1.0" encoding="UTF-8"?> <ns0:mt_jdbcrec xmlns:ns0="urn:flatfile2jdbc"> <STATEMENT> <
-
Calling RMAN script with DBMS_JOB
Hi, Maybe someone can help me out. I'm perfecting my skills on 9i in the backup area before I have a need to use them and am taking notes. What I want to do is to store the backup script in the recovery catalog (which I already did under the name BAC
-
All the music on my computer loads to i-tunes when played...
im the only one who usses i-tunes, so i dont mind. but im not the only person who has music on my computer. the other users do not like using i-tunes and are quite annoyed. its only since i got 7.1.1 that it happens. please help!