step to create object VO 2 of 9

Hi experts jdev,.

uses 11.1.1.5.0 - adfbc jdev

I try to create new vo.

and by giving his name amd select readonly access via the sql query.


and I put this query.
 SELECT   level1, level2, level3, level4, acct, acct_desc,
                DECODE (SIGN (SUM (acct_bal)), 1, SUM (acct_bal), 0)
                      db_amt,
                DECODE (SIGN (SUM (acct_bal)), 1, 0, -1 * SUM (acct_bal)) cr_amt
           FROM (
             
             
             
             
             SELECT gayb_lvl1 level1,
                    gayb_lvl2 level2, 
                      gayb_lvl3 level3,
                      gayb_lvl4 level4,
                      gayb_acct acct, 
          
                        (SELECT glal_desc1
        FROM gl_lvl_accounts,gl_acct_yearly_bal
         WHERE glal_bu=:p_bu
          and glal_bu= GAYB_BU
          AND glal_lvl1=gayb_lvl1
         AND glal_lvl2=gayb_lvl2 AND glal_lvl3 = gayb_lvl3
         AND glal_lvl4 = gayb_lvl4 AND glal_acct=gayb_acct
         AND glal_plant = GAYB_PLANT
          AND glal_plant = :p_plant ) acct_desc,
            
                     gayb_opbal acct_bal
                   FROM gl_acct_yearly_bal
                  WHERE gayb_bu = :p_bu
                    AND gayb_year = :p_year
                    AND gayb_opbal <> 0
                    AND GAYB_PLANT = :p_plnt
                  
                      
                      
                      
                        AND 
                         
                         (
                         
                         SELECT DISTINCT glal_opt_type
                                    FROM gl_lvl_accounts
                                   WHERE glal_bu = :p_bu
                                     AND glal_plant = :p_plnt
                                     AND glal_lvl1 = gayb_lvl1
                                     AND glal_lvl2 = gayb_lvl2
                                     AND glal_lvl3 = gayb_lvl3
                                     AND glal_lvl4 = gayb_lvl4
                                     AND glal_acct = gayb_acct) = :p_opt_type
                    AND    gayb_lvl1
                        || gayb_lvl2
                        || gayb_lvl3
                        || gayb_lvl4
                        || gayb_acct 
                              
                              NOT IN 
                              
                              (
                           SELECT   GLAL_LVL1|| GLAL_LVL2|| GLAL_LVL3
                     || GLAL_LVL4
                     || GLAL_ACCT
                     FROM gl_lvl_accounts
                     WHERE GLAL_BU = :p_bu
                     AND GLAL_PLANT = :P_PLNT
                     and GLAL_STATUS='A'
                              AND :p_opt_type IN('M','I')
                              AND glal_opt_type IN ('M','I')
                                     
                                     
                                     )
                 
                     
                     UNION
                     
                     
                 SELECT   gapb_lvl1 level1, gapb_lvl2 level2, gapb_lvl3 level3,
                          gapb_lvl4
                                level4, gapb_acct acct,
                          (SELECT glal_desc1
        FROM gl_lvl_accounts,gl_acct_yearly_bal
         WHERE glal_bu=:p_bu
          and glal_bu= GAYB_BU
          AND glal_lvl1=gayb_lvl1
         AND glal_lvl2=gayb_lvl2 AND glal_lvl3 = gayb_lvl3
         AND glal_lvl4 = gayb_lvl4 AND glal_acct=gayb_acct
         AND glal_plant = GAYB_PLANT ) acct_desc,
                          SUM (gapb_debit_amt - gapb_credit_amt) acct_bal
                     FROM gl_acct_periodic_bal
                    WHERE gapb_bu = :p_bu
                      AND gapb_year = :p_year
                      AND gapb_period <= :p_to
                      AND GAPB_PLANT = :p_plnt
                      AND (SELECT DISTINCT glal_opt_type
                                      FROM gl_lvl_accounts
                                     WHERE glal_bu = gapb_bu
                                       AND glal_plant = :p_plnt
                                       AND glal_lvl1 = gapb_lvl1
                                       AND glal_lvl2 = gapb_lvl2
                                       AND glal_lvl3 = gapb_lvl3
                                       AND glal_lvl4 = gapb_lvl4
                                       AND glal_acct = gapb_acct) = :p_opt_type
                      AND    gapb_lvl1
                          || gapb_lvl2
                          || gapb_lvl3
                          || gapb_lvl4
                          || gapb_acct NOT IN (
                                
                           SELECT   GLAL_LVL1|| GLAL_LVL2|| GLAL_LVL3
                     || GLAL_LVL4
                     || GLAL_ACCT
                     FROM gl_lvl_accounts
                     WHERE GLAL_BU = :p_bu
                     AND GLAL_PLANT = :P_PLNT
                     and GLAL_STATUS='A'
                              AND :p_opt_type IN('M','I')
                              AND glal_opt_type IN ('M','I'))
                 GROUP BY gapb_lvl1,
                          gapb_lvl2,
                          gapb_lvl3,
                          gapb_lvl4,
                          gapb_acct
                         
                   HAVING SUM (gapb_debit_amt - gapb_credit_amt) <> 0
        UNION
         SELECT   gapb_lvl1 level1, gapb_lvl2 level2, gapb_lvl3 level3,
                          gapb_lvl4
                                level4, gapb_acct acct,
                          (SELECT glal_desc1
        FROM gl_lvl_accounts,gl_acct_yearly_bal
         WHERE glal_bu=:p_bu
          and glal_bu= GAYB_BU
          AND glal_lvl1=gayb_lvl1
         AND glal_lvl2=gayb_lvl2 AND glal_lvl3 = gayb_lvl3
         AND glal_lvl4 = gayb_lvl4 AND glal_acct=gayb_acct
         AND glal_plant = GAYB_PLANT ) acct_desc,
                          SUM (gapb_debit_amt - gapb_credit_amt) acct_bal
                     FROM gl_acct_periodic_bal
                    WHERE gapb_bu = :p_bu
                      AND gapb_year = :p_year
                      AND gapb_period <= :p_to
                      AND GAPB_PLANT = :p_plnt
                      AND (SELECT DISTINCT glal_opt_type
                                      FROM gl_lvl_accounts
                                     WHERE glal_bu = gapb_bu
                                       AND glal_plant = :p_plnt
                                       AND glal_lvl1 = gapb_lvl1
                                       AND glal_lvl2 = gapb_lvl2
                                       AND glal_lvl3 = gapb_lvl3
                                       AND glal_lvl4 = gapb_lvl4
                                       AND glal_acct = gapb_acct) = :p_opt_type
                      AND    gapb_lvl1
                          || gapb_lvl2
                          || gapb_lvl3
                          || gapb_lvl4
                          || gapb_acct NOT IN (
                           SELECT   GLAL_LVL1|| GLAL_LVL2|| GLAL_LVL3
                     || GLAL_LVL4
                     || GLAL_ACCT
                     FROM gl_lvl_accounts
                     WHERE GLAL_BU = :p_bu
                     AND GLAL_PLANT = :P_PLNT
                     and GLAL_STATUS='A'
                              AND :p_opt_type IN('S')
                              AND glal_opt_type IN ('S'))
                 GROUP BY gapb_lvl1,
                          gapb_lvl2,
                          gapb_lvl3,
                          gapb_lvl4,
                          gapb_acct
                         
                   HAVING SUM (gapb_debit_amt - gapb_credit_amt) <> 0)
       GROUP BY level1, level2, level3, level4, acct, acct_desc
while I'm clicking the Query Builder:
Error analysis of declarative query nested queries does not currently include the union, intersector less.
while I'm clicking the test button: the query is valid.
but I can't able to move forward. ? and when run the sqlplus query means query is good. no problem with that.

can someone tell me.

What is happening. ?

Why requires resources. am in need if the Union or union all.

Please someone clarify this.

The query designer will not work with the union and a few other advanced stuff, always the vo and the query will work.

Timo

Tags: Java

Similar Questions

  • Runtime error 429 - component ActiveX cannot create object

    Hello

    We have a VB6 program running on a machine in our office - running Windows XP Professional. He worked until a few days ago, but now, we get the error:

    Runtime error 429 - component ActiveX cannot create object

    We had a problem with a recently VBA program that was due to an update of Microsoft (KB960715) security and I was wondering if a similar problem could be the cause? Please let me know if you need further details.

    Thank you very much
    Chris

    Hello Chris stammer,

    Thanks for posting on the Microsoft answers Forum.

    If the problem was caused by a windows update, I'll try to see if you can do a system restore and go back before the update has been applied to your system.  Click the number of the KB article and follow the steps in KB.

    306084 KB - how to restore Windows XP to a previous state

    I hope this helps.

    Sincerely,

    Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • ActiveX error message: "run-time error '429': ActiveX component can't create object" when running FSX 2004

    Hello, I hope someone can help. I use Windows 7 64-bit. on a high spec pc. When you run FS2004 (Flight Sim program) I get the error message "" run-time error '429': ActiveX component can't create object ". " That seems to relate to the flight or the CMF management computer program. This error seems to inhibit access to the CMF. I tried to load the latest ATI driver, but that makes things worse. Has anyone encountered this problem before? Hope it

    Thanks in advance

    Ianzee

    Hello Diana

    Unfortunately, none of the above worked. However, I downloaded a file recommended by Flight1 (the creators of one of the 2 games I had problems with) surprisingly, thisinstantly solved the problem it is called http://www.flight1.com/dx7vb.exe.

    Perhaps in the future someone else have this same problem with Vista 64-bit where the game, they could also try this "correction". Of course, it worked for me!

    Thank you very much for your help & trouble in front of me, it is appreciated.

    Cordially Ianzee

  • Component ActiveX cannot create object wrong when VB script call a dll

    Hello

    I'm new to VB and .NET. We have a SQL job in our application (developed by someone else) hosted on Win Server 2003, who calls the VB script and this script inturns calls a DLL.

    When I run this job, I get the error - component ActiveX cannot create object.

    I tried to print the source of the error (by Err.Source and it gives me 'Microsoft VBScript runtime error').

    Any help would be appreciated. Let me know if I could extract more information.

    Thanks in advance.
    ME

    Hi SenLady,

    The question you have posted here is related to Visual Basic and would be better suited on MSDN forum. I suggest you post your question on the following link.

    http://social.msdn.Microsoft.com/forums/en-us/categories

  • Automation server can't create object

    Under Windows XP Home Edition, access user accounts in Control Panel.  Then I select "change the way users log on and out" and the error message "Automation server can't create object ' results."  How can I fix?

    This response helped me a solution.  I tried and it did not fix the problem, but it changed the error message (a message about a recently installed program has disabled the Welcome screen and the fast change).  I remembered having seen that elsewhere in this forum, I went and found that.  He spoke a * GINA. DLL and suggested he remove the registry (to Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\Current Version\Winlogon).  When I did (after properly backing up the registry, of course), voila! My problem has been resolved.  So thank you all!

  • Error: 429, component ActiveX cannot create object when CreateObject ("msxml. DOMDocument')

    Hello

    When I try to project to create using VBScript CreateObject("msxml.) DOMDocument'), the error display: 429, component ActiveX cannot create object.
    Thank you & respect,
    MD Ali Islam

    Hi Ali Md,.

    The Microsoft Answers community focuses on the context of use. Please reach out to the professional community of COMPUTING in the below link MSDN forum:

    http://social.msdn.Microsoft.com/forums/en-us/vbgeneral/threads

  • How can I create a gif image using photoshop. I mean photoshop shortcut keys and the steps for creating gif

    How can I create a gif for my blog [url removed by host] image using photoshop. I mean photoshop shortcut keys and the steps for creating gif

    CTRL + Alt + Shift + S Windows Mac CMD + Option + SHIFT + S change the image that you normally edit images.

  • Hi, I'm rookiee and I just started with the first steps of creating a Web site. the katies-coffee-building file is on my desk and uplouded in the library. That has worked well. Now I'm putting the button in Photo Shop (banner), I have pull down on file/pl

    Message "Hi, I'm rookiee and I just started with the first steps of creating a Web site. the katies-coffee-building file is on my desk and uplouded in the library. That has worked well. Now, I'm putting the button in Photo Shop (banner) in. I pull down on the file Photo Shop button instead and try to select the Banner.psd file. Unfortunately all of the (active) folder is not accessible to all. One is not visibel. Please - need some help here. Thank you.

    @Ach ja, meine Muttersprache ist Deutsch

    You must use the file > Place Photoshop button (Cmd / Ctrl + B).

  • Can't create objects.

    I seem to be the difficulty to create objects. Using Image path or just rasterize creates an object out of the entire image. I can't select or to isolate anything in the picture as an object.

    agentgroove,

    After the drawing of the Image, you need object > Image Trace > Expand.

    Rasterization is there for that, so you have no vector objects to work with. don't forget to create a copy before you destroy work.

  • What are the steps to create, format and install a new virtual disk in Windows

    I swear I've scoured the Internet for days trying to find the details of this process, and I'm embarrassed to have failed in my quest to understand what I must be a very simple thing.  The best I can do is this:

    Step 1: Create a new vmdk using vmware-vdiskmanager

    Step 2:?

    Step 3: Get your vmdk newly formatted using vmware-mount, or using "Map Virtual Disk" of the Workstation option

    Now, you will see that somewhere between step 1 and 3, it is an essential step of the new vmdk format so that it can be recognized and mounted.  Simply, I can't find any example online how to do this.  I just know someone will say "just attach to a virtual machine and format her", to which my answer is "how?  It won't let me get an unformatted disk.  When I try to go directly to step 3 after step 1, I get the following error, "error reading volume information.  Please select another file to disk.

    Help!

    VM--> change the settings.

    Hardware tab.

    Add the button.

    Select "hard drive".  Follow the instructions in the wizard.  At the selection of create new floppy or use existing, select "Use an existing virtual disk" and find the vmdk file, you have created.

  • Component ActiveX cannot create object. Error code 429. When exporting

    Hi all
    One of my users becomes the below error when exporting a mapping file to Excel, which he was able to do before. I guess that this should not be linked to the record of the adapter as user took before export.

    Log is below:


    * Start the journal entry for the Runtime Error FDM [2012-01-24-14: 21:33] *.

    --------------------------------------------------------------------------------
    ERROR:
    Code............................................. 429
    Description... Component ActiveX cannot create object
    Process... clsUtility.mRecordsetToExcel
    The component... upsWDataWindowDM
    Version.......................................... 1111
    Thread........................................... 15876

    IDENTIFICATION:
    User............................................. xxxxx
    Name of the computer... xxxxx
    App Name......................................... FDMAPP
    Client App....................................... WebClient

    CONNECTION:
    Provider......................................... SQLOLEDB
    ... Database server xxxxx
    Name of the database... hyp_fdm
    Trust connect... Fake
    Connect status... Open connection

    GLOBALS:
    Location......................................... HFM
    Location ID... 769
    Location Seg... 23
    Category......................................... Real
    ID of the category... 13
    Period........................................... Dec - 2010
    Period ID........................................ 31/12/2010
    POV Local........................................ Fake
    Language......................................... 1033
    User Level....................................... 1
    All Partitions... True
    Is Auditor....................................... Fake

    * Start the journal entry for the Runtime Error FDM [2012-01-24-14: 21:52] *.



    --------------------------------------------------------------------------------
    ERROR:
    Code............................................. 429
    Description... Component ActiveX cannot create object
    Process... clsUtility.mRecordsetToExcel
    The component... upsWDataWindowDM
    Version.......................................... 1111
    Thread........................................... 14044

    IDENTIFICATION:
    User............................................. xxxxxx
    Name of the computer... xxxxxx
    App Name......................................... FDMAPP
    Client App....................................... WebClient

    CONNECTION:
    Provider......................................... SQLOLEDB
    Server data... xxxxxx
    Name of the database... hyp_fdm
    Trust connect... Fake
    Connect status... Open connection

    GLOBALS:
    Location......................................... HFM
    Location ID... 769
    Location Seg... 23
    Category......................................... Real
    ID of the category... 13
    Period........................................... Dec - 2010
    Period ID........................................ 31/12/2010
    POV Local........................................ Fake
    Language......................................... 1033
    User Level....................................... 1
    All Partitions... True
    Is Auditor....................................... Fake


    Help, please.

    It's probably a DCOM object cannot create a file; You must have MS Excel / Office 2007 on the server.

    T

  • API for creating objects?

    Hi all
    is there a way taken in charge to create objects (pages, areas, articles,...) by script?
    We need to migrate the repository based systems (c++), so it would be very nice...

    Thank you for your help.
    JFLE

    jfle wrote:

    is there a way taken in charge to create objects (pages, areas, articles,...) by script?

    In a Word, no.

  • Creating objects with their corresponding schemas or as SYS

    Hi all

    Which is preferable? Creating objects with their corresponding schema/username, or simply use SYS to create all objects? Y at - it an advantage or a disadvantage? Are all best practices regarding that?

    For example, I have to create several objects in several different schemas (hr, oe, scott, Bishop). I could either connection in each schema individually and create objects, OR I could just connect as SYS as create them all at once. Is there any problem with the latter approach?

    Thank you.

    The rule was stated by Oracle years... do not connect as SYS... ever... except for purposes of maintenance or backup with RMAN.

    Advice is always to create the schema of the application, log in as the owner of the application, and create objects as long as this user. Do not follow this advice, all to often, end us with the created objects where they belong... often clues belonged to SYS.

  • How to create objects with names being together &amp; quot;. on the fly &amp; quot;?

    Hello world

    I don't know how to create objects with different suffixes in their references "built" on the fly via loop 'for '. I mean, it's, 'typical' how to create a few sprites could be:

    var sprite1:Sprite = new Sprite();
    var sprite2:Sprite = new Sprite();
    container.addChild (sprite1);
    container.addChild (sprite2);

    and what happens if we want to create 100 these objects to aid 'for' loop so that we do not need to type:

    var sprite1:Sprite = new Sprite();
    var sprite2:Sprite = new Sprite();
    var sprite3:Sprite = new Sprite();
    var sprite4:Sprite = new Sprite();
    ...
    var sprite100:Sprite = new Sprite();

    the question is to know how to "integrate" the number name of the instance of the object during the creation of objects of mass? I remember some old "eval" and the square brackets "["objectName"+ objectId]" magic spells, but they do not seem to work in AS3

    Greetings

    :

  • Steps to create the sample Application planning in EPM11.1.2

    Hello

    Can someone give me a useful source for the steps to create the example of planning application in EPM11.1.2.

    I tried in OBE and could not get the process step by step for EPM11.1.2.


    If Possible, please provide a link where I can follow the process step by step.

    Thank you
    Vinciane

    You can try this
    -go to the library of dimension
    -create an empty application (file > new > application.) Planning type, check the white ap option)
    -Create the profile. (file-import-create brightness select the application in the previous step)
    -load the ads using the profile above

    You should all said. DS would be requested b when you validate the app and are ready to deploy successfully

    Concerning

Maybe you are looking for