How to resolve the error in trigger

Hi,
I've written the trigger and the logic is correct but unable to resolve the error.. Could you please suggest me to resolve the error...
Solved
Thank you
Edited by: Smile on Feb 19, 2013 2:34 AM                                                                                                                                                                                                                                                                                                                                                                                                                                           

Yes you can very well do that
See the example below. I have three tables.
SQL> create table t1(no integer)
  2  /
Table created.
SQL> create table t2(no integer)
  2  /
Table created.
SQL> create table t(no integer)
  2  /
Table created.I have inserted sample data into t
SQL> insert into t
  2  select level
  3    from dual
  4  connect by level <= 10
  5  /
10 rows created.
SQL> commit
  2  /Now i want to insert even numbers into table t1 and odd numbers into table t2
SQL> begin
  2     insert all
  3             when (mod(no,2) = 0) then
  4                     into t1 (no) values(no)
  5             else
  6                     into t2 (no) values(no)
  7     select no
  8       from t;
  9  end;
10  /
PL/SQL procedure successfully completed.The output is below...
SQL> select * from t1
  2  /
        NO
         2
         4
         6
         8
        10
SQL> select * from t2
  2  /
        NO
         1
         3
         5
         7
         9Thanks,
Karthick.

Similar Messages

  • How to resolve the error -1073807339 when using Agilent LAN/GPIB Gateway (E5810A)?

    Dear Sir/Madam,
    Appreciate that you could advise me on the following error occur when connect power meter E4419B to computer via E5810A LAN/GPIB Gateway(remote interface) & run with Labview: 
    -1073807339
    VISA Write in E4419_read_power.vi
    I have added 5s timeout to Labview program but the result as previous.
    There no error occurs when the power meter to computer via USB/GPIB interface(82357B).
    Is it related to E5810A driver or the program I wrote?
    How to resolve it?
    Attachments:
    E4419_read_power.vi ‏16 KB

    Hi.
    I'm experiencing the same problem when connecting a laser controller (New Focus Vortex TLB-6000) via the Agilent E5810A to a PC.  
    There are no problems when connected through a regular serial port, but timeouts arise every few seconds through the E5810A.  I have another controller (SRS LDC501) which works very well with a second Agilent console.
    Have you managed to find a solution to this problem?
    Thanks,
    Orel.

  • How to resolve the error ORA-12560 TNSprotocol adapter

    I am using Oracle 9i release 2 database on my window xp machine. My database created using DBCA during installation is working fine . Now i want to create the database manually, When i set SET ORACLE_SID=newdb and try to connect to like this
    c:\sqlplus /nolog
    enter username:sys/sys as sysdba
    gives an error ORA-12560 TNSprotocol adapter
    how to resolve this error

    see this:
    ERROR:ORA-12560: TNS:protocol adapter error
    see post of user601010

  • How to resolve the error " low paging memory"

    HI all ,
    I developed a report, which is running fine in development and in quality , but when it runs on production , it shows the dump 'low paging memory'. how to resolve this , can any one sujjest please ?

    Hi,
    1) Run a trace ST05 in ur quality system and fine tune the memory consuming select queries.
    2) Discuss with the basis regarding this error, probably they can help you out by increasing some space in pRODN.
    Regards
    Subbu

  • How to resolve the error while using user defined function.

    EPN Assembly file
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:osgi="http://www.springframework.org/schema/osgi"
    xmlns:wlevs="http://www.bea.com/ns/wlevs/spring"
    xmlns:jdbc="http://www.oracle.com/ns/ocep/jdbc"
    xmlns:spatial="http://www.oracle.com/ns/ocep/spatial"
    xsi:schemaLocation="
    http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.springframework.org/schema/osgi
    http://www.springframework.org/schema/osgi/spring-osgi.xsd
    http://www.bea.com/ns/wlevs/spring
    http://www.bea.com/ns/wlevs/spring/spring-wlevs-v11_1_1_3.xsd
    http://www.oracle.com/ns/ocep/jdbc
    http://www.oracle.com/ns/ocep/jdbc/ocep-jdbc.xsd
    http://www.oracle.com/ns/ocep/spatial
    http://www.oracle.com/ns/ocep/spatial/ocep-spatial.xsd">
         <wlevs:event-type-repository>
              <wlevs:event-type type-name="TestEvent">
                   <wlevs:class>com.bea.wlevs.event.example.FunctionCEP.TestEvent</wlevs:class>
              </wlevs:event-type>
         </wlevs:event-type-repository>
         <wlevs:adapter id="InputAdapter"
              class="com.bea.wlevs.adapter.example.FunctionCEP.InputAdapter">
              <wlevs:listener ref="inputStream" />
         </wlevs:adapter>
         <wlevs:channel id="inputStream" event-type="TestEvent">
              <wlevs:listener ref="processor" />
         </wlevs:channel>
         <wlevs:processor id="processor">
              <wlevs:listener ref="outputStream" />
              <wlevs:function function-name="sum_fxn" exec-method="execute">
              <bean>com.bea.wlevs.example.FunctionCEP.TestFunction</bean>
              </wlevs:function>
         </wlevs:processor>
         <wlevs:channel id="outputStream" event-type="TestEvent">
              <wlevs:listener ref="bean" />
         </wlevs:channel>
         <bean id="bean" class="com.bea.wlevs.example.FunctionCEP.OutputBean">
         </bean>
    </beans>
    Event class
    package com.bea.wlevs.event.example.FunctionCEP;
    public class TestEvent {
         private int num_1;
         private int num_2;
         private int sum_num;
         public int getSum_num() {
              return sum_num;
         public void setSum_num(int sumNum) {
              sum_num = sumNum;
         public int getNum_1() {
              return num_1;
         public void setNum_1(int num_1) {
              this.num_1 = num_1;
         public int getNum_2() {
              return num_2;
         public void setNum_2(int num_2) {
              this.num_2 = num_2;
    Adapter class
    package com.bea.wlevs.adapter.example.FunctionCEP;
    import com.bea.wlevs.ede.api.RunnableBean;
    import com.bea.wlevs.ede.api.StreamSender;
    import com.bea.wlevs.ede.api.StreamSource;
    import com.bea.wlevs.event.example.FunctionCEP.TestEvent;
    public class InputAdapter implements RunnableBean, StreamSource {
    private StreamSender eventSender;
    public InputAdapter() {
    super();
    public void run() {
         generateMessage();
    private void generateMessage() {
         TestEvent event = new TestEvent();
         event.setNum_1(10);
         event.setNum_2(20);
         eventSender.sendInsertEvent(event);
    public void setEventSender(StreamSender sender) {
    eventSender = sender;
    public synchronized void suspend() {
    Output Bean class
    package com.bea.wlevs.example.FunctionCEP;
    import com.bea.wlevs.ede.api.StreamSink;
    import com.bea.wlevs.event.example.FunctionCEP.TestEvent;
    import com.bea.wlevs.util.Service;
    public class OutputBean implements StreamSink {
         public void onInsertEvent(Object event) {
              System.out.println("In Output Bean");
              TestEvent event1 = new TestEvent();
              System.out.println("Num_1 is :: " + event1.getNum_1());
              System.out.println("Num_2 is :: " +event1.getNum_2());
              System.out.println("Sum of the numbers is :: " +event1.getSum_num());
    Function Class
    package com.bea.wlevs.example.FunctionCEP;
    public class TestFunction {
         public Object execute(int num_1, int num_2)
              return (num_1 + num_2);
    config.xml file
    <?xml version="1.0" encoding="UTF-8"?>
    <wlevs:config xmlns:wlevs="http://www.bea.com/ns/wlevs/config/application"
    xmlns:jdbc="http://www.oracle.com/ns/ocep/config/jdbc">
         <processor>
              <name>processor</name>
                   <rules>
                   <view id="v1" schema="num_1 num_2">
                        <![CDATA[
                             select num_1, num_2 from inputStream     
                        ]]>
                   </view>
                   <view id="v2" schema="num_1 num_2">
                   <![CDATA[
                   select sum_fxn(num_1,num_2), num_2 from inputStream // I am getting error when i am trying to call this function
                   ]]>
                   </view>
                   <query id="q1">
                        <![CDATA[
                             select from v2[now] as num_2*     // Showing error while accessing the view also               ]]>
                   </query>
              </rules>
         </processor>
    </wlevs:config>
    Error I am getting is :
    Invalid statement: "select >>sum_fxn<<(num_1,num_2),age from inputStream"
    Description: Invalid call to function or constructor: sum_fxn
    Cause: Probable causes are: Function name sum_fxn(int,int) provided is invalid, or arguments are of
    the wrong type., or Error while handling member access to complex type. Constructor sum_fxn of type
    sum_fxn not found. or Probable causes are: Function name sum_fxn(int,int) provided is invalid, or
    arguments are of the wrong type., or Error while handling member access to complex type.
    Constructor sum_fxn of type sum_fxn not found.
    Action: Verify function or constructor for complex type exists, is not ambiguous, and has the correct
    number of parameters.
    I have made a user defined function in a java class and configured this function in the EPN assembly file under the processor tag.
    But when i am trying to access the function in the config.xml file , it is giving me an error in the query.
    Please provide urgent help that how to write the exact query.

    Hi,
    In the EPN Assembly file use
    <bean class="com.bea.wlevs.example.FunctionCEP.TestFunction"/>
    instead of
    <bean>com.bea.wlevs.example.FunctionCEP.TestFunction</bean>
    Best Regards,
    Sandeep

  • How to resolve the error message "JBO-25009" in ADF table?

    Hi all,
    There is a master detail form in jsff page using adf application. Detail is represented as ADF table. In the adf Table we have 4 primary key, two foreign key from master table.
    Type of primary key in master are Big Decimal and String. When I input value in field of detail, we get error message :
    "JBO-25009: Cannot create an object of type:java.math.BigDecimal from type:java.lang.String with value:AC".
    How to make if I input value in detail table don't show the error message?
    Please let me know if you have any solution for this.
    Thanks.

    Hi Rakesh.
    I don't try insert String into Big Decimal variable. I have adf table with 5 column and 4 primary key. The type of primary key are: 1Big Decimal and 3 String.
    Now, I want to insert data to the table. when I input data to first column (primary key : Big Decimal) is work well and then I want to insert data to second column (primary key : String) with value "AC"
    but when I insert, the error message is show "JBO-25009: Cannot create an object of type:java.math.BigDecimal from type:java.lang.String with value:AC".
    Why the error message is show when I insert data to second column with type String and I have been input data with String value?
    Are the second column is remember of type first column is Big Decimal ?
    Thanks.

  • HT1369 how to resolve the error 1015 code

    why my iphone 3g cannot restore and update the hardware and firmware? it i try to click the restore and update at itunes, the error code is 1015.

    You have a 3G. It cannot be updated past 4.2.1. That error code means that you are trying to install a version that isn't supported on your phone, or that your phone has been hacked to unlock it. In either case there is no solution.

  • How to resolve the errors 134013003!

    Problem: I am running some of the NI-DAQmx Base examples for Pocket PC and am receiving error code 130413003, unable to lock memory chunk.
    Solution: This problem can be caused when changes are made to the development machine's Windows operating system properties such as the font, color scheme, or language. When using the NI-DAQmx Base driver, only ESeries AI Read FIFO Raw 1D I16 Pretrigger.vi and ESeries AI Read FIFO Raw 1D I16.vi are affected by this problem. Therefore, if you receive this error, you should open these VIs, place a VI on the block diagram then delete the VI you placed on the block diagram. Basically, when an item is placed on the block diagram, this triggers LabVIEW to examine all wires and prototypes and the type mismatch caused by the property change on the Windows development machine will be corrected.
    This issue will be fixed in a future version of the NI-DAQmx Base driver.

    Hi Arun,
    Actully i  realized later the  problem also witht he used DC's of ESS business package. when i open the webdypro  component diagram it is showning  some Used Dcs are missed. i tried lot to find out those DCs but i could not .
    Actually the ESS business package is getting imported in to NWDI perfectely and even   i am facing the problem with componenet Build also  it is showing build failure( DC's) ....
    I think the problem may also be with the misssing  components. could you please  let me know how can i check  and find out the missed components.
    give  reasponse ASAP .............
    regards
    Ratnakar

  • Can someone explain how to resolve the error "Error al intentar cambiar los módulos"?

    I just reinstalled Lightroom 5, but when i run it, it show the message"Error al intentar cambiar los módulos",
    Does someone know how to fix that? Thanks!

    Error changing modules | Lightroom

  • How to resolve the error "File could not open" in AL11?

    Hi Friends,
    When I am going to write a file via DATASET.
    But it's showing me a error"File Could not Found"?
    And I am unable to check my fiel at AL11.
    Please suggest me the solutions.
    Regards
    Ricky

    Hi,
    Try this code
    TYPES : BEGIN OF ty_emp,
    empno(2) TYPE c,
    empid(10) TYPE c,
    empname(3) TYPE c,
    END OF ty_emp.
    DATA : it_emp TYPE TABLE OF ty_emp,
    wa_emp TYPE ty_emp.
    DATA : pbk TYPE string.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS : p_file TYPE rlgrap-filename default 'D:\EMP.TXT'.
    PARAMETERS : p_asfile TYPE rlgrap-filename default 'EMP'.
    SELECTION-SCREEN END OF BLOCK b1.
    pbk = p_file.
    CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                      = pbk
      FILETYPE                      = 'ASC'
    has_field_separator           = ' '
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
        TABLES
          data_tab                      = it_emp
    EXCEPTIONS
      FILE_OPEN_ERROR               = 1
      FILE_READ_ERROR               = 2
      NO_BATCH                      = 3
      GUI_REFUSE_FILETRANSFER       = 4
      INVALID_TYPE                  = 5
      NO_AUTHORITY                  = 6
      UNKNOWN_ERROR                 = 7
      BAD_DATA_FORMAT               = 8
      HEADER_NOT_ALLOWED            = 9
      SEPARATOR_NOT_ALLOWED         = 10
      HEADER_TOO_LONG               = 11
      UNKNOWN_DP_ERROR              = 12
      ACCESS_DENIED                 = 13
      DP_OUT_OF_MEMORY              = 14
      DISK_FULL                     = 15
      DP_TIMEOUT                    = 16
      OTHERS                        = 17
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    OPEN DATASET p_asfile FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
      IF sy-subrc <> 0.
        EXIT.
      ENDIF.
      LOOP AT it_emp INTO wa_emp.
        TRANSFER wa_emp TO p_asfile.
      ENDLOOP.
      CLOSE DATASET p_asfile.
    ==============================================
    Regards,
    Krrishna

  • How to resolve the error in bdc call transaction in ALV report

    Dear Experts, i am executing the alv report program and in alv report program one bdc is there..
    after executing output is showing in alv format but one button is there (update master)..when i am clicking update button the bdc is run but is not updated in the material master..after executing my bdc is not updated in mm02.
    how to resove it?
    CALL TRANSACTION 'MM02' USING BDCDATA MODE MODE
                                                              UPDATE 'S'
                                                      MESSAGES INTO MESSTAB.

    Hi Kaustav,
    Looking at the code you attached, it appears to me that your BDC (Form  USER_COMMAND) is not executed at all as you haven't passed the 'USER_COMMAND' in FM REUSE_ALV_GRID_DISPLAY for ALV display.
    You must pass the importing parameter  I_CALLBACK_USER_COMMAND of this FM as 'USER_COMMAND', only then this form will be executed and your BDC will run.
    Thereafter, in case your BDC update fails, you can put a break-point in the form (at CALL TRANSACTION statement) and analyze the message table MESSTAB.
    Hope it helps.
    Regards,
    Sapeksh

  • Hello, anyone can tell me how to resolve the error "Failed to authenticate the SAML response" when accessing to on-line e-Learning course.

    Validation Error
    You must correct the following error(s) before proceeding:
    Failed to authenticate the SAML response. If this keeps happening, please contact the administrator.

    Is it still showing up in your ad-on manager?

  • How to resolve the error 403 com.apple.apple account that is giving my iphone 4 in icloud?

    Please resolve my problem

    Hi victor oliveira loyola,
    If you are having issues with your iCloud account on your iPhone, you may find the following article helpful:
    iCloud: Account troubleshooting
    http://support.apple.com/kb/ts3988
    Regards,
    - Brenden

  • Does any one know how to resolve the error while flat file upload

    Hey guys, I am so struck with this problem, please do let me know if anyone has any suggestions and ideas.
    1. I created three InfoObjects, Material Number, Name and Price,which is  a keyfigure and has data type DEC and fixed currency USD.
    Material Number is "With Master Data ", "With Text" and i added Name and Price as attributes to that.
    2.
    After that i created an Application component, and therafter a data source for Master data Attibutes.
    Now i select my flat file which is .csv file, in this data source. When I click "Load Example Data", i get all the fields from flat file, but the data type for PRICE changes to FLTP with length 16 instead of remaining DEC.
    Does anyone have any idea why on earth is this change of Data type taking place ?
    Please do me a favour by answering if you know about this problem. Thanks, appreciate it . Byee. And yeah, m just starting off in SAP so I am a total amateur unlike most of the people here.

    Am workin on BI 7.0.
    Let me put it in another way :
    Created Infoobjects:      1) Material No , 2) Material Name  3 ) Price which is the Key Figure
    Material No -
    has attributes Material Name and Price and " WIth Master Data", With ' Text"
    Price: -
    data type DEC, fixed currency - USD
    After doing things.
    Created Application Component:
    then, Right Click - Create Data Source,
    Selected -- Master Data Attributes
    After that from "EXTRACTIO' tab , selected the flat file, which is *.csv
    and then in DATA FORMAT - " SEPERATED WITH SEPERATOR"
    Then from "PROPOSAL" tab, when i click Load example data, the data from flat file shows up here, but the field PRICE now has Data Type -- " FLTP" and lenght "16"
    I hope i was clear enough. thanks

  • How to resolve the error "Invalid Annotation Object" ?

    @

    Hi sprasad260,
    Are you still facing this issue.
    Let me know your workflow and also let me know which application you are using and current version installed.
    Also attach the screen shot of the problem while you reply to this post.
    Regards,
    Ajlan Huda.

Maybe you are looking for

  • New widescreen monitor distorts images

    I am in the process of setting up and learning to use my new widescreen Samsung T260HD monitor with ATI Radeon Graphics card. Having worked on hundreds of photos in Photoshop and PSElements using a traditional 3x4 aspect ratio monitor, when I view my

  • PDF Editor for Playbook

    Is there an app available for the PB that will alllow you to fill out forms.  I am a salesman and a co-worker of mine has an Ipad and she can fill out all forms on her Ipad using PDF Expert.  Is there something similar to this for PB.  THanks

  • Cisco ISE Guest Sponsor Portal Isssue

    Dear all , We have insatalled 5 ise 3315 boxes IOS 1.0.4 in our network where in two of them are admin node , two of policy services and one is mnt node. We are using guest sponsor portal for wirless guest user where in we have integrated WLC 5508 wi

  • Opening an asset in back date

    Dear All:               My question is regarding opening asset master data through AS01. When we open an asset it is saved with current date. But what if we want to open it in back date. let us say today is 2nd july 2010 but i want to open an asset b

  • Premiere pro 5.5 won't install

    I've tried this process several times but the download instillation won't install. The dmg downloads but once I run the install, I'm given a crash report and told to try restarting, to no avail. I'm runing mac Lion on dual core imac. Trying to convin