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 ?

Similar Messages

  • In 5s, personal hot spot does not work from time to time. Not detected

    In 5s, personal hot spot does not work from time to time. Iphone does not get detected on Wi-fi or bluetooth. Restarting or rebooting does not help.  

    Settings, general, reset and reset network settings. Clear out your network settings and set personal hotspot again.
    also avoid special characters making a password. hashtags or open brackets for example doesn't work too good.

  • Multiple scheduled workflows does not work correctly

    Hi All,
    I hava made a simple workflow who executes a powershell script with the latest SMLETS, this workflows is triggered when a new incident is created and after the script change the status of the related computer that is affected by the incident.
    When I do this just for one computer it works very fine, but when I create by example 4 incidents for several computers the workflows does not change the status of the comptuers.
    For the moment I create a incident and I wait the workflows is finished and i continue to create the next incident it is ok. But I cannot to put this in production environment where several analyst create incient for several devices.
    Any Idea?
    Thank you
    MIKE

    Hi,
    Ben was right when asked you to share the PS code.
    It seems that it works for one instance and doesn't work for multiple ones. It's a regular case when you get objects using search request. Share the PowerShell code and receive the prompt within minutes.
    Cheers,
    Marat
    Site: www.scutils.com  Twitter:
      LinkedIn:
      Facebook:

  • Automatic approval workflow does not work anymore

    Hi,
    Our automatic approval workflows configured via standard business configuration sets (process controlled) do not work anymore. They did work previously.
    After changing the BUS objects 'automatic approval' workflow into the 1-step manager approval workflow it does work.
    - The 'automatic approval' workflow does not seem to generate a workitem, the bbp_pd 'workflow' part is empty. In addition previously approved documents via 'automatic approval' do not contain workitem details via bbp_pd either anymore.
    - We applied a new SP (SP07) not that long ago.
    - These documents go into status: 'awaiting approval', the documents 'approval' details tell us the following:
    001 Automatic Approval Valid (Can be Started) Open (No Decision Made) SYSTEM system
    However the system does not execute the task, how come? What normally ensures the system executes these 'automatic approval' tasks (report?)?
    Any input is very much appreciated.
    Kind regards,
    Tim

    Hi Balaji,
    In SRM 7.0,
    Our automatic approval workflows configured via standard business configuration sets (process controlled) do not work anymore. They did work previously.
    - The 'automatic approval' workflow does not seem to generate a workitem, the bbp_pd 'workflow' part is empty. In addition previously approved documents via 'automatic approval' do not contain workitem details via bbp_pd either anymore.
    - - These documents go into status: 'awaiting approval', the documents 'approval' details tell us the following:
    001 Automatic Approval Valid (Can be Started) Open (No Decision Made) SYSTEM system
    However the system does not execute the task, how come? What normally ensures the system executes these 'automatic approval' tasks (report?)?
    Any input is very much appreciated.
    Regards,
    Shears

  • Error: ELM does not work from UI

    Hello guru´s,
    hard to explain this briefly, but here it goes.
    We´re trying to upload an ELM from UI, and it doesn´t work. But the thing is, if you just SAVE from UI (not launch), and then you go to CRMD_MKTLIST and you flag required fields, it works. But obviously, we need to do that from UI.
    Besides this, we´ve implemented a Badi CRM_MKTLIST_BADI for a specific format but it´s never called from UI; however, if we simulate the execution from SAP GUI, this BADI works correctly.
    Thanks in advance.

    SunSudio Express (December 2006 release) introduces some
    interesting new features, but there are still problems. For the first time,
    I was able to debug Fortran 90 applications in Linux, but debugging is
    still very limited. This is good to know that you were able to debug a f90 application
    on Linux. What problems do you see? Please, report them, and we
    will file them as bugs or RFEs (requests for enhancements).
    Furthermore, the Fortran error parser does not work, even when
    compiling using Sun's f95 compiler. Yes, you are right, this feature does not work yet.
    This is a heavy disadvantage. I assume that Fortran error parsing
    is not supported on Linux, although the tutorials don't make this
    point clear: Yes, it does not work yet on all platforms.
    In the Options window, there are settings concerning C/C++ (and
    its parser), but there are no similar options for the Fortran parser,
    even in "Advanced Settings" (which are similar to the old Options
    window). There will be similar options for Fortran.
    My Linux system is Debian 3.1 (Sarge), with JDK 1.5.0.09.JDK 1.5.0.09 is ok.
    We do not target Debian system, but we assume everything
    should work there (we test on Red Hat and SUSE).
    Good to know that our assumption is correct :-)
    I don't think that I'm doing something wrong, but I want to ask, just
    to be sure: has someone had seen the Fortran error parser working
    on Linux? No. It does not work on Linux, and it does not work on other platforms.
    What about Fortran word completion? No, this feature is not implemented yet.
    Thanks you for trying Sun Studio 12 Express release and for your report.
    Nik

  • Magic mouse forward backward swiping does not work from time to time

    Hello...
    from time to time the forward/backward swiping functionality of my magic mouse does not work (The scrolling works though). Disconnecting and reconnecting does not do the trick. So I guess it might be a software problem. Restarting the iMac does not always help at once. After a couple of times it will work though again.
    Can anyone help?
    Regards
    Bjoern

    your answer should be here.
    http://discussions.apple.com/thread.jspa?threadID=2211072&start=0&tstart=0

  • Icloud log in with Apple id  does not work from my mac when i try to run on photo stream

    When I try to active photostream or sharing via icloud it does not work I get an errormessage that there is communication problems with icloud. I cant get around to administrate the stream from the Icloud site or via my imac directly. It has never worked!

    yes, the apple id works for everyting else, but not for icloud. on my phone and ipad it is set up with the correct apple id and password. however, when i try to log on to icloud under system by clicking the icon the erromessag that i get is unknown apple id or password.

  • Workflow does not work properly

    Hi experts,
    I had configure approval process for my folder. The problem is when i upload a file, there is no email sent for approval. I have a FSDB repository. What went wrong? Appreciate any suggestions.
    Thanks,
    Nanie

    Hello,
    Workflow does not start automatically by uploading documents.
    You have to Submit for Approval these documents.
    Regards
    BP

  • 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.

  • Acrobat X Std does not print from IE8 menu, rt click works...

    Weird.
    I can't print an embedded PDF in IE8 going through File, Print. Nothing happens. There is no error, the thing just disappears.
    File, Print Preview shows the frame images, but not the embedded PDF. I can, however, right click on the embedded PDF and select Print from that menu and it prints properly.
    Acrobat Standard 10.1, Win7 x64 Ent, IE8, all updates are current for all items.

    The x64 version may be the issue. Even AA X is a 32-bit application I think. That may mean it does not show up in the 64-bit environment. At least that is a thought you might pursue, not that I really know what I am talking about for 64-bit machines.

  • SQL Plus Bug/Question: 'COMPUTE' command does not work in script.(BUG?!)

    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;

  • Automatic text comparison does not work from child to Master in CUA

    Hi,
    When trying to transfer role specifications to CUA master from our child system the application log is displaying as seen in slg1.png.
    On our master system we are running 7.31 SP7 which is fine according to Note 1642106.
    Our client system is 7.31 sp5 and there for we went to note 1141736 and installed note 1580217 as the other three notes is not compatible with our system.
    we have also implemented the switch "CUA_AUTO_TXTCMP_ROLE" with YES in table USR_CUST on both systems.
    The "error" does not go away and the "synchronization" does not seem to be activated between the systems.

    Hi,
    This is a list of many Routing Modems and routers
    http://portforward.com/routers.htm
    AS you will see the Netgear section is quite long.
    Of those that are Wireless most will be G type devices.
    I am not saying DO the Port Forwarding.
    If you click on your Model and then Dismiss the Advert in the next page > Then Choose iChat in the Next List you will be told the Default Access info
    Most likely this will be 192.168.0.1 and admin and password as the Default Info.
    Once in the Set up pages you need to Check the menu on the left for UPnP and make sure it is Enabled (No Need for Port Forwarding then).
    In the WAN Page you need to Disable DOS (Or SPI) and Allow Response to Internet Pings on the WAN port.
    The 4500 was a typo, sorry about that. Should have read 500kbps
    On Adding Buddies.
    Apple Names (@Mac.com and @me.com) and AIM ones need to be added to an AIM Buddy list.
    By that I mean one that Logs into AIM.
    If you have a @mac.com name then you should have selected the @mac.com option when choosing the Account type.
    See the Drop down item in the middle of this Start Up Screen
    From http://www.ralphjohns.co.uk/versions/ichatvers4/howtoStartiChat.html
    Similarly you need to chose the account type the Buddy is as well.
    More info with pics
    So adding the Apple Test accounts requires that you type the same info as the iChat Software adds the @mac.com when you chose to add an @mac.com Buddy
    Sample of middle Drop down in Add Buddy but set to @me.com instead
    If you have a Jabber ID (And GoogleMail names work as GoogleTalk IDs and they are Jabber as well) you can add Jabber Buddies as well.
    There is a way with some Jabber Servers to Add the ability to Text chat to MSN and Yahoo Buddies.
    7:51 PM Monday; May 11, 2009
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • Problem - SCSM Change status workflow does not work, shows huge "minutes behind" in SQL, but do not appear as failed.

    There is a workflow "Change request status changed" which periodically fails to run, and it does not show up in "All instances" tab. For instance when I cancel a CR, all activities remain as-is in their respective statuses.
    SQL - "SubscriptionStatus" from
    http://blogs.technet.com/b/servicemanager/archive/2013/01/14/troubleshooting-workflow-performance-and-delays.aspx
    shows increasing number of "minutes by" each minute for this particular workflow. 
    Restarting "Management service" does not give enything. As well as "UpdateSubscriptionWatermark" SQL from the link above (except resetting the "minutes behind" counter)
    Please help!
    Egils Zonde from Technet

    Take it to an apple store and see if you can get an out of warranty replacement. It won't be free, I think the fee for an Air replacement is $299, but it sounds like the insides are broken.

  • Picture adjustments not working from Action Menu

    Hi, I have a Sony Bravia KDL-55w805C with the latest firmware and The "Picture adjustmen" entry, within the "Action Menu" List is not working. 
    At the beggining it was working just fine and after a day or so, whenever I click it, nothing happens. I can still go to that menu browsing throug the Settings in the home screen, but I can't select it from any other place. Can anyone please help me with this?

    Any help? UP

  • Editing email fonts not working from top menu

    When editing an email, if I click the A to open font options I can only use a selected an item once. For instance, I can highlight text and Bold it but cannot unbold it. I can underline but cannot reverse-underline. In order to do this I have to Control-Click and uncheck it from the menu.

    I have been waiting for a response on this issue since yesterday. I work in a consulting agency, and it is prudent that my mail app work correctly on my macbook pro! I get at most, 1  notification per day if I'm lucky. I can't keep opening the app to make sure I have mail! Someone help us! (Not to sound desperate)

Maybe you are looking for

  • DVD studio pro will not burn menus PLEASE HELP!!!!!!!!!!!!!!

    PLEASE HELP!!! I have created a project, a DVD with menus and subtitles in 2 languages, yet when I burn the DVD (both using build/format option and build format options separately)the resulting DVD has no main menu, actually it has no menus at all! i

  • SO deletion & Down payment reversal

    User has created sales order and received down payment againgst that sales order.By mistake user deleted the sales order and money is lying againgst deleted sales order.Since the sales order is been deleted user is uanble to move the money to newly c

  • CS6 menus and tool bars too small

    I have a new Dell XPS15 laptop with Windows 8. Installed Photoshop CS6 & all tool bars and menus are too tiny. I've contacted Dell Support and Adobe Support and everyone blames the other guy. Please help.

  • Dynamic actions in apex 5.0

    I have upgraded an application to apex 5.0 and have a few bugs related to dynamic actions. It seems that even when the "page items to submit" field has been filled in the session state/item value is not updated and consequently can not be used in the

  • Resizing a MovieClip's contents

    I'm loading an external swf into a movieclip (the external sfw plays a slideshow of JPEGs). When the slideshow plays, the JPEGs extend way beyond the bounds of the movieclip. How would one go about constraining the JPEGs to their original size and ce