Problem in creating Entity for view which has "INSTEAD OF " trigger

Hi ,
I have an entity based on a Non updatable Database view (DB_VIEW).this database view has an INSTEAD OF trigger which validates
and save data into a table.
And I have a BC4J view based on this entity.
Problem :
When I try to insert a record using bc4j view object,I get following error
ORA-22816: unsupported feature with RETURNING clause
Query sent by view Object is :
BEGIN INSERT INTO DB_VIEW(COLUMN1,COLUMN2,COLUMN3) VALUES (:1,:2,:3) RETURNING ROWID INTO
:4; END;
I am not able to insert any record in that view.
I tried removing rowID from my BC4J entity and View but problem is that in Databae view there is no
column which can be set as a primary key other then ROWID.

I had the same problem.
Oracle 9.2 sadly does not support the RETURNING clause for database views with INSTEAD OF triggers.
Here is Steves Solution:
1. Create a custom entity def impl class for your entity on the Java panel
2. override the isUseReturningClause() and return false
That should work in 9.0.3.4, 9.0.4 build 1419, and 9.0.5.1 production.
from How to disable generation of RETURNING clause?
Hth, Markus

Similar Messages

  • ERROR - 16016 - FOR FORM CREATED ON A VIEW AND USING INSTEAD OF TRIGGER

    I have created a form based on a view. The view has instead of Trigger on it.
    When I try to update the form I get the following error:
    Error: An unexpected error occurred: ORA-22816: unsupported feature with RETURNING clause (WWV-16016)
    Can anyone tell what the problem is?
    Thanks
    null

    THANKS A LOT IT WORKED.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Rene' Castle ([email protected]):
    This is a bug with views. If you can edit the PL/SQL code that is generated, you can remove the RETURNING clause and it will work.
    NOTE: This will have to be done every time you edit the form.
    <HR></BLOCKQUOTE>
    null

  • Create subnumber for asset which already has book value RM1.

    Hi everybody,
    Can i create subnumber for asset which has been depreciated until RM1 book value ? This asset has a few quantity and need to be breakdown to different cost center ? If yes, how ? AS11 or AS94 ?

    Hi,
    Thanks Andreas. However, the asset is an old asset (already reached RM1 book value). I have tried to use AS94, but hits an error " Legacy data transfer year is not last closed fiscal year 2007". FYI the take over date in the system is 31/3/1998 while closed fiscal year is 2006. Now we are in fiscal year 2007 (Apr to Mac). If i were to change the take over date to become 31/3/2007, is there any impact to the depreciation run for other assets in the system. I'm worried if i change the take over date, the depreciation will get haywired.

  • Read only view which has an ORDER BY clause

    Aim to create a read only view which has an ORDER BY clause
    Sample script
    CREATE TABLE tab1 (
    col1 VARCHAR2(3),
    col2 NUMBER
    INSERT INTO tab1(col1, col2) VALUES ('ccc', 30);
    INSERT INTO tab1(col1, col2) VALUES ('bbb', 20);
    INSERT INTO tab1(col1, col2) VALUES ('ddd', 40);
    INSERT INTO tab1(col1, col2) VALUES ('aaa', 10);
    COMMIT;
    -- To creat View
    CREATE OR REPLACE VIEW v_tab1
    AS
    SELECT
    col1,
    col2
    FROM
    tab1
    ORDER BY
    col1
    WITH READ ONLY;
    I get the following error
    WITH READ ONLY
    ERROR at line 10:
    ORA-00933: SQL command not properly ended
    When I comment out the ORDER BY clause, the view is created
    Pls let me know how I can create a read only view with ORDER BY clause

    Hi,
    take a look at the documentation for CREATE VIEW, there is a restriction:
    "You cannot specify the ORDER BY clause in the subquery if you also specify the subquery_restriction_clause."
    Wolfgang

  • How to set the view, which has to be shown at runtime?

    Hi,
    in my application i have more than one view, but at runtime only one of these views has to be shown. I want to decide this via a parameter that I get from the url.
    How can i set the right view to be showing at runtime?
    I tried it with a StartView which fires the right Outbound Plug in his wdDoInit-Method. This is working fine, but the problem is, that the method OnPlugDefault() of ComponentInterfaceViewController isn't called already at this time. So in the Init-Method of the StartView I don't have the given URL Parameter, so I can't decide which Plug I want to fire. The method OnPlugDefault() is called only after the init-method of the StartView.
    Is there any other possibilty to set the view, which has to be shown, at runtime?
    Thanks and Best Regards
    Katharina

    Hi,
    One way is you can pass the parameter in the URL , read the parameter and then fire the outbound plug depending upon that.
    You can read the parameters as follows
    HttpServletRequest request =Task.getCurrentTask()
         .getWebContextAdapter()
         .getHttpServletRequest();
    String[] param1 = request.getParameterValues("<<PARAMETRNAME");
    if(param1.equals("VALUE"))
      fire outbound plug1;
    Regards, Anilkumar

  • Photos ap on mac will not email. shows "more" for extensions which has Outlook checked but does me no good

    Why will new Photos ap on mac not email? No "email" pulldown  -shows "more" for extensions which has Outlook checked but does me no good.

    I am struggling with the same problem. I have two HP 4100dtn printers on ethernet. Each has a manually assigned IP address. I can set up the printer(s) just fine in the Print & Fax Preference and Snow Leopard finds the printer just fine when I enter the IP address and chooses the correct HP Driver.
    When I try to print, my print job appears in the queue as expected, than an error appears that something about a "bad command". Sorry, I'm home right now and don't have direct access to the printer so I can't give you the precise language of the message, but the gist of the message is that the system tried to connect to the printer to send the print data but the printer does not know how to respond to the command that was sent.
    It's as if the firmware in the 4100 just doesn't have something in it's lexicon that Snow Leopard needs. The HP web site is no help. One page I found says the printer is supported (http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&obje ctID=c01664444&jumpid=regR1002USEN ) and another page I found says that it is not supported (http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&obje ctID=c01879014&jumpid=regR1002USEN). The HP on line chat won't let me log in and hold a chat with HP unless I know the Serial Number of the printer, which I don't have here at home.
    More to follow tomorrow.
    Anyone have any ideas?

  • Problem in creating entity service record

    Hello!!!
    I am creating new record in service
        AEs_Employee emp;
        emp = es_EmployeeServiceProxy.create();
        emp.setPernr("12345123");
        emp.getAspect().sendChanges();
    Some mistakes occur during application launch:
    The initial exception that caused the request to fail, was:
       java.lang.NoClassDefFoundError: com/sap/tc/col/client/generic/api/IAspectRow
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to create delegate for view com.sap.ogk2.caf.training.V_GeneralRequestTraining. (Hint: Is the corresponding DC deployed correctly? Does the DC contain the component?)
         at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:110)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.<init>(DelegatingView.java:41)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.createUninitializedView(ViewManager.java:657)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:694)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:579)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:155)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.doOpen(WebDynproWindow.java:295)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.show(ApplicationWindow.java:183)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.open(ApplicationWindow.java:178)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:364)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:756)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:291)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
         at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:74)
         ... 33 more
    Caused by: java.lang.NoClassDefFoundError: com/sap/tc/col/client/generic/api/IAspectRow
         at com.sap.ogk2.caf.training.wdp.InternalV_GeneralRequestTraining.<init>(InternalV_GeneralRequestTraining.java:267)
         ... 38 more
    Edited by: Vadim Sotnikov on Jul 31, 2008 7:30 AM

    Hi,
    Generally, "No class Definition found" Exception comes in these cases.
    1. If we dont add the corrosponding jar file in the "lib" folder.
    2. If the class is not accessible(private or protected).
    3. Place where you are accessing the class and where the class is defined are in two different packages...
    Check for the above,
    Regards,
    Srinivas.

  • Problem in creating DLL for a LabVIEW VI

    Hi
    I am facing problems in creating DLL for a LabVIEW VI. Previously i had no problems in creating DLL for the VI that transmits a message from serial port to NI - PXI 7831-R Reconfigurable I/O card (configured by FPGA MOdule). When i try the same VI with a customized port developed using IVI drivers i am not able to create the DLL. It gives me error as follows:
    Fatal Internal error: "datamgr.cpp", Line No: 1882
    Please somebody help me out to fix this error.
    Regards,
    Subramania Bharathi

    Hi,
    Thanks for your curiosity in replying my questions. I am really sorry for replying so late. Actually the problem was with the NI SWITCH 2503 functions. Actually i was multiplexing the channels of my customized serial port using NI Switch module. This switching is done before i start my communication. My VI follows a sequence as follows.
    1. Connect two channelss using Switch functions
    2. configuration of both FPGA and the customized port
    3. Transmit data from the port
    4. Receive it in FPGA.
    5. Reset the channels using Switch functions
    I never expected that the error was because of NI Switch. When i removed them from my VI i was able to create the DLL and able to create sequence successfully to run in the Testsand. And
    further i am using Switch Executive for swithcing the channels in TestStand.
    But now i am very curious why it posted me that error when i used my NI Switch function?? I tried to create DLL for a VI that switches two channels and i was successful. But the error occurs only when i combine i with my FPGA functions!! If you could trace out the reason, please let me know
    Once again thanks a lot for your support
    Regards,
    Subramania Bharathi

  • Creating Alias for command which contains two piped cmdlet

    hi friends
    i use powershell 4.0. is it possible to create Alias for cmdlet which is piped to another cmdlet?
    i need to use this command frequently:
    Get-windowsFeature | select-object name     ( to see only "name" column)
    i checked & non of the following commands works:
    new-alias myalias Get-windowsFeature | select-object name
    or
    new-alias myalias "Get-windowsFeature | select-object name"
    any solution please?
    thanks in advanced

    You can't do that with an alias, it only works to substitute the name of a cmdlet or function, and takes a string value as it's argument.  You can accomplish the same effect with a function, which takes a script block argument:  
    function myalias {Get-windowsFeature | select-object name}
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
    hi mjolinor
    Great guide. really thanks for that. it was exactly what i needed.
    best regards

  • How to create a multilingual site which has Custom UI elements

    Hi
    I have to create a multilingual site which has custom UI elements.
    Like- custom top navigation where navigation items comes from a custom list. How to translate these custom elements?
    Also how to make manual translation of content an easy process(when we create variation site)?
    regards, Ritesh Anand

    When you create a varation of source site, It will just create a normal replica of site with custom master applied to it.
    If the Changes are done on Master page it will automatically apply to destination site. Once normal site is create. you need to publish the Document library so it replicated to destination.  Also use Relative URL in Javascript and CSS where ever required.

  • Problem while creating PO for Calibration order PR

    Hi,
    I am facing following problem while create PO for calibration order PR:
    "Comparison of the field selection strings from the G/L account 8000010800 and the account assignment category F reveals that there is an incompatible combination of field selections for the field selection group 'Network'.
    The G/L account field selection is stored in table T004F; that for the account assignment is stored in table T162K."
    Can anybody help me urgently.
    Regards,
    Mew

    Hi,
    Check the field selection for account assignment category & Field status group of G/L 8000010800.
    Compare both & set the field selection equally in both.
    Regards,
    Piyush

  • Insert order by records into a view with a instead of trigger

    Hi all,
    I have this DML query:
    INSERT INTO table_view t (a,
                              b,
                              c,
                              d,
                              e)
          SELECT   a,
                   b,
                   c,
                   d,
                   e
            FROM   table_name
        ORDER BY   dtable_view is a view with an INSTEAD OF trigger and table_name is a table with my records to be inserted.
    I need the ORDER BY clause because in my trigger i call a procedure who treat each record and insert into a table, used in the view. I need to garantee these order.
    If i put an other SELECT statement outside, like this:
    INSERT INTO table_view t (a,
                              b,
                              c,
                              d,
                              e)
          SELECT   a,
                   b,
                   c,
                   d,
                   e
            FROM   table_name
        ORDER BY   dIt works. But I can put these new SELECT because these query is created automatic by Oracle Data Integrator.
    What I'm asking you is if there any solution to this problem without changing anything in the Oracle Data Integrator. Or, in other words, if there is any simple solution other than to add a new SELECT statement.
    Thanks in advance,
    Regards.

    Sorry... copy+paste error :)
    INSERT INTO table_view t (a,
                              b,
                              c,
                              d,
                              e)
        SELECT   *
          FROM   (  SELECT   a,
                             b,
                             c,
                             d,
                             e
                      FROM   table_name
                  ORDER BY   d)I need to insert him by a D column order, because my trigger needs to validate each record and insert him. I have some restrictions. For example, my records are:
    2     1     2006     M
    1     2     2007 M
    1     3     2007     S 2007
    1     2     2007     S 2007
    2     1     2009     S
    2     1     2009     S
    I want to insert the 'M' records first and then the 'S' records because the 'S' records only makes sense in target table is exists 'M' records
    Regards,
    Filipe Almeida

  • I have created an Apple ID which has been verified but when I go to download a free app it reverts to an ols (alternate apple ID and not the one that has been verified.  I do not know the password for the old Apple ID

    I have created an apple ID whiuch has been verified however when I go to download an app mit reverts to an old apple ID and asks for a different password which I do not have.  How can I edit or delete the old (alternate) password and ensure that it only refers to the current Apple ID when requesting confirmation.  Note the old Apple iD is a gmail account and I read somewhere that you can not edit or delete gmail or me.com apple IDs?  Is this the case?

    Did you create a brand new account or change an existing Apple ID?

  • How to create entity for the table which is not having the primary key

    Hi,
    Is it possible to create an entity for the table which is not having the primary key.
    I have to write a method in my session bean and that method must use this entity.
    any websites for this.

    If you are talking about processes launched from a JVM (running outside), Process is available.
    If you are talking about processes already running outside of a JVM, you could roll-your-own class to provide similar functionality as Process. This approach would be platform dependent, backed by the platform's I/O scripting and therefore limited to what the platform supports for process manipulation, e.g. Linux/Unix capabilities far exceed Windows.

  • Problem after creating a costumer view

    hi guys,
    i just created a new view from a costumer table.
    the problem is that when i access the view from sm30, i click on add new entries, and some fields have label and some has only the +, symbol, i dont now why!
    something like this:
    begda___________
    endda___________
    user ____________
    +_______________
    +_______________
    +_______________
    any ideas?
    tks in advance.

    Usually you see + symbol if you use a builtin datatype
    in the table instead of a data element.
    You can resolve the issue in two ways.
    1.You can go to SE54 enter the vie name and select generated objects and click on Change.
    After going inside select Environment--> Modification --> Maintainence screens.
    Select the screen and go to the layout and maintain the descriptions.
    2. Change the table and add data element to the fields for which you have maintained built  in data types.
    Delete the maintainance view and regerate from the transaction SE54. You will see the descriptions.
    Regards
    Sudhir Atluru

Maybe you are looking for