NW7.5sp07: Memberset(BAS) not working in Script Logic
Hi,
I wrote one simple script :
*XDIM_MEMBERSET G_FLOW=F_CLO
*XDIM_MEMBERSET G_DATASRC =BAS(CMTTOT)
*XDIM_MEMBERSET DC_ACCT=DA_CE0120000
*XDIM_MEMBERSET DC_FDETAIL=ALL
*DESTINATION_APP=FINANCE
*ADD_DIM CONSOLVIEW=NONGROUP
*RENAME_DIM DC_ACCT=G_ACCT
*SKIP_DIM=DC_FDETAIL
*WHEN DC_FDETAIL
*IS FD_CE0120006
*REC(DC_ACCT=DVAL131A3, G_DATASRC=VALIDATIONS)
*IS BAS(FD_CE0112000)
*REC(DC_ACCT=DVAL131A4, G_DATASRC=VALIDATIONS)
*ENDWHEN
*COMMIT
But i am not able to get the data for account DVAL131A4, though DVAL131A3 is working fine.
In DVAL131A44, i am getting 0 records and i check the package status script also
Hi, as far as I know the BAS option does not work for XDIM_MEMBERSET in the version you are working. I would use teh *SELECT option as an alternative to tackle this issue via some properties.
Hope this helps.
Similar Messages
-
SET-Variable not working in script logic
Hello experts,
I have a default logic running a stored procedure with parameters:
*RUN_STORED_PROCEDURE=SP_IST_VERTEILUNG_PARAMETER('%KD_KUNDE_NR_SET%','%VE_VERSION_SET%','%PB_PKS_BEREICH_SET%','%RA_RABATT_ART_SET%')
Whereas the dimensions have the following dimension types:
KD_KUNDE_NR - Entity
VE_VERSION - User Defined
PB_PKS_BEREICH - Account
RA_RABATT_ART - Category
When I send data (through excel input sheet, i.e. EVDRE) all parameters but the third one are correctly passed to the stored procedure. It seems the third one %PB_PKS_BEREICH_SET% is empty.
However, when running the default formulas data manager package, I can see in the debug log that exactly this variable is populated correctly:
INFO(%PB_PKS_BEREICH_SET%, TESTCONTENT)
Am I doing something wrong here?
Thank you very much.
Kind regards
Georg RenzHi Georg,
I think we are experiencing the same issue as you.
We have a default logic running a stored procedure with different parameters (all the dimensions existing in the cube)
*RUN_STORED_PROCEDURE=Z_SP_Test_Default('%ACCOUNTP_SET%','%BRANDS_SET%', ','%CATEGORY_SET%','%DATASRC_SET%','%ENTITY_SET%','%GROUPS_SET%','%INTCO_SET%','%MARKETP_SET%','%TIME_SET%')
However, when we send data and the stored procedure is launched, the account dimension is not properly passed to the stored but the rest of the parameters are correctly passed.
Looking into your post, we have tried putting:
*SCOPE_BY = ACCOUNTP, BRANDS, CATEGORY, DATASRC, ENTITY, GROUPS, INTCO, MARKETP, TIME
*RUN_STORED_PROCEDURE=Z_SP_Test_Default('%ACCOUNTP_SET%','%BRANDS_SET%', ','%CATEGORY_SET%','%DATASRC_SET%','%ENTITY_SET%','%GROUPS_SET%','%INTCO_SET%','%MARKETP_SET%','%TIME_SET%')
but then, it is quite strange, because when the default logic is executed the ACCOUNT is passed correctly but the rest of parameters are passed as 0.
How did you solve it? Is there something wrong with our scope by?
Thanks a lot for your help!
Albert -
Picexport is not working with SCRIPT
Hi ALL,
I have upgraded my diadem from 2010 to 11 and now this is not working anymore:
Call PicExport("X:\transfer\081022\"&SaveFile&"_scaled_tsr","WMF",1,768,1024,"",75,"",0)
when I try this script i get a first the failure message ==> acsess violation; and when i retry this function I get the message that this function is not activated
please help me
THX in advanceHy,
I have tried now almost all formats with the same result:
- when I use the picexport "by hand" it works fine!
- when I use the record function for scripting it is working...
- I stop the recording and want to run the script, it works the first time and then I get first the access violation msg and then the "not activated" msg
I dont wanna use the PDF eport because I have arround 200-300 pictures per "run" which I want to quickcheck ("scrolling" thru all pics witch a picture viewer) and this not very useful by PDF...
So there must be a solution?!!!! The same script was working with the last diadem version...
THX
Andreas
Attachments:
accessviolation.PNG 46 KB
not_active.PNG 33 KB -
Activate not working in scripts written 6 years ago not working now
Hi All,
I have a script that has been working consistently for 6 to 7 years. Now I copied it to my new Macbook Pro running yosemite and now the activate is not working when placed before display dialog. The script uses Illustrator and Excel and for some parts of the script these applications are brought to the front using activate. These activates seem to work. However, the activate does not work with display dialog. I tried to remedy this by putting a tell me block around the code.
I don't know if this make a difference but the script is executed through the run script command.
Any help would be great.
Thanks,
Carolyn
OS 10.10.1
15 inch retina
2.5 intel core i7Do you have the proper conference media resources set up with MRG and MRGLs?
-
CC 2014 alias not working in Scripts folder
Hi-
I bought a new laptop (Macbook Pro Retina 15") and did a clean install of CC 2014 using my existing account. On my old machine I had an alias in the Scripts folder to a central repository I keep of scripts for After Effects. When I made the alias on this new machine, After Effects would not load the scripts inside that folder. I did some additional testing using a folder of Adobe-supplied scripts, and again, they would not load when the path to them involved an alias.
Anyone have any thoughts?
Thanks!
Dan ScullyHave you triple-checked all your permissions?
-
Keyboard keys are not working correctly in Logic Pro X 10.0.6
I was trying to use my MIDI keyboard but for some reason the "A flat" key above "Middle C" no longer works properly in Logic.
At first I thought it was my keyboard but I tried the same key in Reasons and Pro Tools and it works fine in both of these programs.
I tired to see if it would work in Logic Pro 9 but it does not work in Logic Pro 9 either. Prior to my Logic Pro X 10.0.6 update it did work fine.
I don't know what the issue is because it is working fine with the other programs. A little help would be greatly appreciated.In the Finder, choose Go to Folder from the Go menu.
Type ~/Library/Preferences in the "Go to the folder" field.
Press the Go button.
Remove the com.apple.logic10.plist file from the Preferences folder. Note that if you have programmed any custom key commands, this will reset them to the defaults. You may wish to export your custom key command as a preset before performing this step. See the Logic Pro X User Manual for details on how to do this. If you are having trouble with a control surface in Logic Pro X, then you may also wish to delete the com.apple.logic.pro.cs file from the preferences folder.
Be sure and delete both files.
(Note: I would first try and delete the control surface preference only, no sense deleting preferences if you don't need to. Also, be sure and use the tilde ~ in the file path above.) -
Time series functions are not working for fragmented logical table sources?
If i remove that fragmented logical table sources, then its working fine.
if any body know the reason, please let me know.
thanks and regards,
krishnaHi,
is because the time series function are not supported for the framentation content, see the content of the oracle support:
The error occurs due to the fact the fragmented data sources are used on some Time series measures. Time series measures (i.e. AGO) are not supported on fragmented data sources.
Confirmation is documented in the following guide - Creating and Administering the Business Model and Mapping Layer in an Oracle BI Repository > Process of Creating and Administering Dimensions
Ago or ToDate functionality is not supported on fragmented logical table sources. For more information, refer to “About Time Series Conversion Functions” on page 197.
Regards,
Gianluca -
Kawai K4 not working correctly in Logic 9
Hi i am using an old Kawai K4 as my midi controller in logic. It works fine except for when 2 keys are pressed at the same time the note will continue playing infinitely. Im pretty sure that it may actually not be the program but the keyboard itself becase it does the same thing in garagaeband. Any help with this would be greatly appreciated thanks
Found it!
http://www.amazon.com/review/R3QP3G3LIN9X9C/ref=cm_cr_pr_viewpnt#R3QP3G3LIN9X9C
223 of 251 people found the following review helpful
May not work with your equipment, September 14, 2008
By
lyngvi
Amazon Verified Purchase(What's this?)
This review is from: USB MIDI Cable Converter PC to Music Keyboard Window Win Vista XP, Mac OS (Electronics)
I hate leaving reviews claiming something's "broken", but in this case there were some serious problems. So my problems:
1. The device does not handle run-on MIDI commands properly. I doubt that many modern MIDI devices use run-on commands, as they were a somewhat confusing bit-saving mechanism from the 20th century. The keyboard I used was a Kurzweil SP-88. I suspect this is a design-defect in the product. More on this below.
2. The device would not enumerate on my main PC. That box is a custom-built machine using a P5B Deluxe motherboard which has never had any problems with any other USB devices. I even tried clocking the box down to normal speeds; Vista gives me a vague error about the device malfunctioning, and Ubuntu gives me a read error during enumeration in dmesg (which, to be fair, wasn't any more useful in this context.)
3. For all the reviewers who said the cable was labeled backwards: MIDI cables are always connected so that the "OUT" of one device goes to the "IN" of another device. MIDI supports a ring-shaped daisy-chain of devices that way. This cable was not labeled backwards.
Elaborating on point 1:
On the wrong equipment, when you do this:
1. Press-and-hold key1.
2. Press-and-hold key2.
3. Release key1.
4. Release key2.
You get this:
1. Press-and-hold key1.
2. Press-and-hold key2.
3. Release key1.
4. Press-and-hold key2 again.
For those technically inclined, here's the data stream from my SP-88 using the old serial cable I was replacing (I had to resurrect a dead machine to get this; I'm forging note velocities for easier comparison):
90 40 45 3c 48 80 40 62 3c 61
Here's what this product read:
90 40 45 90 3c 48 80 40 62 90 3c 61
Here's the nearest valid sequence it could have provided:
90 40 45 90 3c 48 80 40 62 80 3c 61
Note the 80 instead of 90 in the third-to-last byte - "80" means "note off", "90" means "note on". This was a deal-killer for me; your mileage may vary.
I replaced the cable with an M-Audio cable from a local shop for 3x the price; that cable also reprocesses run-on commands, but does it appropriately (the third sequence above is what I would get.)
The seller was courteous and provided a full refund, including shipping, so all I lost to them was time. I'd buy from these guys again, just not this product. -
PreSonus AudioBox 44VSL not working on iMac Logic Pro X
MyPreSonus AudioBox 44VSL is not working in Logic Pro X 10.1.1 on my 2014 27" iMac. I installed latest drivers from persons but did not help. It is working in Garage Band, but in Logic it just does not recognize the input source. I have read it "has problems" with usb 3.0. Does anyone know if this thing works and if so, how you got it working?
Have you just recently gotten this computer or have you had luck with it before with this interface? I have used some of the presonus stuff on a 2012 mac book, I believe these are usb3 ports.
-
Focusrite Sapphire and Core Audio not working together in Logic 8
Hello all.
We're having some trouble with our Logic 8 at work.
Today we connected a Bose home speaker system to our Mac Pro via USB.
Once removed and back to our usual output of the Focusrite Sapphire, core audio is malfunctioning within Logic, and the software crashes at the initialising stage.
To offer details;
· We normally run our audio through the Focusrite Sapphire
· Today (the first and last time) we ran the audio through a Bose home system
· We can run system sound though the Sapphire no problem
· Core audio works fine in Logic when the Sapphire is disconnected from the Mac
· The system is an 8 core Mac Pro running Leopard. The software is Logic Studio 8
· Additional software running is Spectrasonics' Omnisphere and East West's Play
We tried to view the crash report in Console, alas that is crashing upon start up too.
Any help would be most appreciated, we're scratching heads and beards.
I've searched the forum for the past year to see if there has been an identical issue.
Lou.Ahh OK, ( I'm presuming you're using the normal Saffire, not the LE or the pro? )
go here:
http://www.focusrite.com/support/software/saffire/
Download the latest software and install, also within that file there will a firmware updater, run that too.
Let me know the results. -
Change chart object with crosstab base not work
Hi
I use this simple script to change some settings on the chart. Is a chart base on a crosstab, an error occurs: " The chart data fields are not valid.". All other chart not base on a crosstab work fine. Why?
Example:
Public Sub test(ByVal strTempFile As String)
Dim rpt As New CrystalDecisions.CrystalReports.Engine.ReportDocument
Dim crROC As CrystalDecisions.ReportAppServer.Controllers.ReportObjectController
Dim crAppChart As CrystalDecisions.ReportAppServer.ReportDefModel.ChartObject
Dim crAppChartNew As CrystalDecisions.ReportAppServer.ReportDefModel.ChartObject
rpt.Load(strTempFile, OpenReportMethod.OpenReportByTempCopy)
crROC = rpt.ReportClientDocument.ReportDefController.ReportObjectController
For Each crAppChart In crROC.GetReportObjectsByKind(CrystalDecisions.ReportAppServer.ReportDefModel.CrReportObjectKindEnum.crReportObjectKindChart)
crAppChartNew = crAppChart.Clone()
crAppChartNew.ChartStyle.TextOptions.DataLabelFont.Font.Name = "Arial"
crROC.Modify(crAppChart, crAppChartNew) 'Error: The chart data fields are not valid.
Next
End SubWell, let's stick with one issue. If you want to discuss other issues, create a new thread per each one ([Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]). Re. charts based on xtabs. Try to create the chart in the designer first. Then try to create it in code. Even in the designer, the chart must be quite basic. E.g.; no multiple summaries. Also, can you create a chart in your code on a report that has no xtab?
Ludek -
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; -
PS/Bridge CS5 Batch Processor Not Working / Missing Scripts
I'm having a bit of a problem within Photoshop/Bridge CS5 and haven't found anything that works to resolve it.
In Bridge, I want to launch the Photoshop Batch Processor via Tools>Photoshop>Batch.
When I select this, Photoshop launches, but the dialog to process the images never shows. On occasion, if I return to Bridge and attempt the same operation again, I'll get a notification that there's already something in progress and asks if I want to queue this operation. The other times (majority) I can return to Bridge and attempt the operation again but get no dialogues in Photoshop. I can try the other options in this menu as well (eg Image Processor, etc) and get the same results.
Here's what I've done so far:
1. Checked Bridge Edit>Preferences>Startup Scripts and ensured those were all checked. I even disabled all, closed Bridge and Photoshop, then re-enabled.
2. Cleared all Preferences from Bridge and Photoshop (using Ctrl+Shift+Alt at launch).
3. Reinstalled Photoshop (multiple times)
4. Uninstalled Photoshop, ran the Adobe CS Cleaner application, then reinstalled Photoshop.
It should be noted that in Bridge>Edit>Preferences and Startup Scripts, if I click the button to 'Reveal my scripts' the folder it takes me to is blank. Not sure if this folder is solely used for personal/user created scripts or for others as well, but it's completely empty.
I have also gone to Help>Updates and updated both applications with any necessary updates from Adobe.
If I go into Photoshop and select File>Automate>Batch or even File>Scripts>Image Processor, both dialogues open fine.
Running Windows 8.1 Pro.
Anyone else seen this and actually resolve the issue? Does anyone know where the scripts are supposed to be located and/or if I can get them from somewhere else? Any help is much appreciatedMake sure Photoshop is not started and then try to use Bridge menu Tools>Photoshop>Batch does Photoshop start up?
Bridge CS5 menu Tools>Photoshop>Batch works on my Windows 7 Pro system
Photoshop Automate>Batch is not a script and Photoshop does not any external java program it had its own version of java plugin.
c:\Program Files (x86)\Adobe\Adobe Photoshop CS5\Plug-ins\Extensions\ScriptingSupport.8li
c:\Program Files\Adobe\Adobe Photoshop CS5 (64 Bit)\Plug-ins\Extensions\ScriptingSupport.8li
However there are two startup scripts for the bridge involved Bridge and Photoshop You must have them for you have a Bridge menu Tools>Photoshop>items
two scripts on my system are:
c:\Program Files (x86)\Common Files\Adobe\Startup Scripts CS5\Adobe Bridge\bridge-4.jsx
c:\Program Files (x86)\Common Files\Adobe\Startup Scripts CS5\Adobe Photoshop\photoshop.jsx
The photoshop.jsx seems to be the one the the inserts the menu Tools>Photoshop>Batch into Bridge and also invokes Photosgop Automate>batch photoshop.jsx also inserts the other Bridge menu Tools>Photoshop>Menu Itens that you state work.
Here is what I see in my photoshop.jsx for batch. I do not know or understand Bridge scripting and do not know javsscript but what I see there seems to be some checking done about Photoshop being available and if it is not the script just returns which is what you seem to be experiencing the test looks like this
if (!photoshop.correctPSIsAvailable (availabilityCheckOptions))
return;
The whole batch support section follows:
//=================================================================
// Batch
// Sets up Photoshop's Batch automation command to be
// accessed from the Bridge.
//=================================================================
// This routine takes an array of files. If called by Photoshop,
// it will invoke Batch with the files. If called by
// any other app, it will send a BridgeTalk message to Photoshop
// to invoke this routine with the same arguments.
photoshop.batch = function (/* Array */ files, availabilityCheckOptions)
try
if (availabilityCheckOptions == null)
availabilityCheckOptions = new AvailabilityCheckOptions ();
// Make sure this can be run.
if (!photoshop.correctPSIsAvailable (availabilityCheckOptions))
return;
if (BridgeTalk.appName != "photoshop")
// Bring Photoshop to the foreground.
BridgeTalk.bringToFront (photoshop.versionInfo.btTargetName);
// Create a new BridgeTalk message for Photoshop to invoke
// Batch with the selected files
var btMessage = new BridgeTalk;
btMessage.target = photoshop.versionInfo.btTargetName;
btMessage.body = "photoshop.batch (" + files.toSource () + ");";
btMessage.send ();
else
app.bringToFront();
photoshop.runActionCommand ('batch', files,
localize ("$$$/PSBI/Automate/BatchSettingsFile=Batch via Bridge Settings"));
catch (error)
if (error.number != 8007) // Don't report user cancelled errors.
alert (error);
// This routine is called when the Bridge's Batch menu item is
// chosen.
photoshop.batchFromBridge = function ()
try
var availabilityCheckOptions = new AvailabilityCheckOptions ();
// Make sure this can be run.
if (!photoshop.correctPSIsAvailable (availabilityCheckOptions))
return;
var files = photoshop.getBridgeFileListForAutomateCommand (true, false);
if (files.length != 0)
photoshop.batch (files, availabilityCheckOptions);
catch (error)
if (error.number != 8007) // Don't report user cancelled errors.
alert (error);
// The code below inserts the Batch menu item into the Bridge menus.
if ((BridgeTalk.appName == "bridge") && (BridgeTalk.appVersion.indexOf (photoshop.versionInfo.bridgeTargetVersion) == 0))
// Use temp function to keep vars out of global namespace.
photoshop.tempFunction = function ()
// Set up the info necessary for inserting this item into the Bridge's menus later.
var menuItemInfo = new Object;
menuItemInfo.text = localize ("$$$/PSBI/Menu/Automate/Batch=Batch...");
menuItemInfo.name = 'Batch';
menuItemInfo.onSelect = photoshop.batchFromBridge;
photoshop.menuItemInfoArray.push (menuItemInfo);
photoshop.tempFunction ();
delete photoshop.tempFunction; -
Workflow does not work from Script Menu or as Application
Hi,
I create a really simple script to adjust podcast volume...
1. Get Specified iTunes Items (Recently added podcast – my smart folders of recently downloaded items)
2. Filter Songs in iTunes (Volume Adjustment is 0: so the workflow will not touch podcasts already adjusted.)
3. Set Options of iTunes Songs (Volume Adjustment: 80)
The workflow works find when running from Automator. But when I save it as script plug-in or application and try to run it, nothing happens. Please help. Thanks.
P.S. I tried to create folder action script that adjust the volume automatically when a podcast is downloaded (get selected items -> set options in iTunes songs). At first it works. Now it doesn't.It starts by pausing iTunes, executes a applescript where there are say commands, pauses for 3 seconds, gets info from ical, filters out todays events, speaks these events out loud, fetches a weather report via web(xml), speaks out loud, pauses a couple of seconds, gets current itunes song, resumes playing of this song and the workflow is finished.
It quits right before it is about to announce todays events. Doesnt matter if there are events for today or not. If I start the application manually however, everything seems fine.
The Applescript used to launch the program:
tell application "TodaysiCal"
run
end tell
Any suggestions now ? -
Stop() does not work, action script from 2.0 to 3.0
Hi everybody, some years ago I have created a website in Flash with Actionscript 2.0
Now the customer want to change something in the text and I stumble upon the action script 2.0 has become 3.0
This means that my stop() (I have kind of menu on the left that should display afterwards from frame 5-10 for instance)
Now my swf works when I execute it locally but when online it just goes on and on ....
anyone an idea ? I am getting crazy ...
Thanks in advance !
the site can be looked at www.kitwerken.be/index.php
and the concerned part is "Over ons"I don't think the actionscript could have changed itself. If you are using Flash CC then the problem is that Flash CC does not support AS2, so it took your file and changed it to AS3. You will need to get your hands on an older version of Flash (CS6 or earlier) to edit the file and keep it as an AS2 file.
Maybe you are looking for
-
How to set a view in display mode??
Hi, I have created a new view in overview page of BT111H_OPPT. This view is of table type and associated with value node . I am able to display contents of table on UI but they are in editable mode. I need them in display mode . How to achieve this f
-
Remote Desktop Connection - internal error
My laptop is running Windows 8.1 and since yesterday has starting giving problems when connecting to remote PCs using Remote Desktop Connection. It asks for the password and then shows 'Configuring remote session' for about 30 seconds and then displa
-
EAS Console 11.1.1.3 (local install) on Windows 7 64 bit?
hi all! just wanted to quickly double check if there is a chance to get EAS Console 11.1.1.3 installed on a Windows 7 64 bit client? Oracle Support says it does not - is a known issue (although platform matrix for 11.1.1.3 shows Windows 7 as fully su
-
I am trying to capture using firewire 800 to 400 adaptor through a Sony HDV VTR. The VTR is not recognizing can some body help me solve this problem. I am using FCP7 and IMAC with 10.6.8 version os I dont have a 6 pin or 400 firewire port in the syst
-
Archiving TV/ films in itunes 10
Hi guys. I would really like to archive all the TV shows and movies that I have watched onto a hard drive as I am running out of space on my internal hard disk in my imac. Can I simply copy/export them onto my backup drive? Many thanks for the help.