Error message in triggers

i hav created a trigger which does not allow to delete rows on a particular day of the week. in the trigger body i hav given the raise_application_error with a user defined error number . now when somebody tries to delete a row on that day the the trigger is fired , it gives the error message 'cannot delete on this day with the appropriate user exception numberr.
But after taht it also gives 2 more error codes (error number 6512 and 4088) . why r these generated. This happens only when i use the raise_application_error.

Hi,
ORA - 06512 is a PL/SQL Error Message.
It is possible that your trigger is raising
another exception other then the User Defined.
(Try using SQLERRM and SQLCODE to catch this exception ).
ORA - 04088 is a Trigger Error Message.
This error is generated becuase of the above error. This is a Runtime error which occurs during the execution of a Trigger
HTH
Naresh
null

Similar Messages

  • Error message Direct PO in SRM

    Hi All,
    I got the below error when I try to create direct PO from SRM. This error message is triggered when I select Item type as u201CLimitu201D.
    Error message
    Error application is coming up.
    20100816
    MMARVEL
    111353
    sapqsr
    http://sapqsr.cc.com:8002/sap/bc/webdynpro/sapsrm/wda_l_fpm_oif/
    ASSERTION_FAILED
    The ASSERT condition was violated.
    Method: IF_WDR_NW7_EVENT_HANDLER~HANDLE_EVENT of program /1WDA/C0STANDARD==============CP
    Method: DISPATCH_NW7_EVENT of program CL_NW7_VIEW_ELEMENT_ADAPTER===CP
    Method: IF_WDR_CLIENT~GET_CLIENT_UPDATES of program CL_WDR_CLIENT_SSR_LS==========CP
    Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP
    Method: IF_WDR_RUNTIME~EXECUTE of program CL_WDR_MAIN_TASK==============CP
    Method: HANDLE_REQUEST of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP
    Thanks

    check with WEBDYNPRO consultant too.
    Note 1379678 - SessionTimeout if you click very quickly in the portal
    create OSS message if you dont get break through
    Muthu

  • Error message behaving like Abort Message

    Hi,
    In my program code , there is a error message written, but when this error message is triggered it is displayed as ABORT message and it is skipping the transaction.
      SORT zt5.
      READ TABLE zt5 INDEX 1.
      IF sy-subrc <> '0'.
        MESSAGE e208 WITH 'No tiene vistas autorizadas'.
      ENDIF.
    Could any one tell the reason why it is happening.
    Regards
    Prasanth Kasturi

    Hi Kasturi,
    if you issue a ERROR message in "PBO/ AT SELECTION-SCREEN OUTPUT it behaves like ABORT message.
    if it is of type "WARNING/INFORMATION then it behaves
    as "SUCCESS message(On the Status BAR)
    Hope this would clear the concept of MESSAGE types. For more info Take F1 Help on MESSAGE Key word
    Cheerz
    Ram

  • ME_PROCESS_PO_CUST allows save in ME21n despite error message triggered

    Hello MM Experts,
    We have a business requirement to prohibit the use of account assignment "A" (assets) on 2 particular document types that are used by departmental end users that should NOT be allowed to buy assets.  The purchase of assets is retricted to our centralized purchasing buyers who use a different document type. 
    We recently upgraded to ECC 6.0 from 4.6c, so we want to try BADi ME_PROCESS_PO_CUST instead of a user exit.  We applied the BADi to ME21n and the developer referenced methods 'check' and 'save', as well as 'post' and 'close'. 
    Our new error message is successfully triggered when a check is done in ME21n (error says "Account Assignment "A" is only valid for PO's and CSO's).  But, depending on the sequence of entry steps for required fields, when I use the save icon or do another check, the box "SAVE" or "EDIT" appears.  You can then save the order and by pass the error message. 
    Other times, depending on a different sequence of entries in the ME21n screen, for the required fields, the correct box "HOLD" or "EDIT" appears and you cannot save the order with the incorrect account assignment A/asset (you can only correct it or hold it as a faulty order and correct later).
    Thanks for any advice,
    Suzanne

    Dear Suzanna ,
    In that case, you need to track all of the "action" or "button" in ME21N, you need to use "sy-ucomm" in the badi code to track all the check. like when you display a PO in ME23N than you switch to change mode, then the sy-ucomm = METOGG, and so on, tell the abaper to use sy-ucomm,there'll know about it.

  • ME_PROCESS_PO_CUST allows save in ME21n  -  error message triggered

    All,
    Purchase order is getting saved even though there are error messages triggered via BADI in the POST method.
    I've tried both:
    MMPUR_MESSAGE_FORCED 'A' 'ME' '303' TEXT-001 '' '' '' .
    MMPUR_MESSAGE_FORCED 'E' 'ME' '303' TEXT-001 '' '' '' .
    Still the purchase order gets saved when the save button is clicked.
    Any ideas
    Meghna

    Hi Meghana,
    You can use method CHECK. I am using CHECK method and able to raise a error message.
    Sample code I am using is as follows:
    DATA i_items TYPE purchase_order_items.
      DATA: wa_item LIKE LINE OF i_items ,
      lv_if_item TYPE REF TO if_purchase_order_item_mm ,
      lt_itm_data TYPE mepoitem ,
      lv_table_count TYPE i .
    To get Header Data
      ls_header1 = im_header->get_data( ).
    To get item data
        CALL METHOD im_header->get_items
          RECEIVING
            re_items = i_items.
    Get actual line item data using Hask Key for line item
        READ TABLE i_items INTO wa_item INDEX 1.   --- you can use LOOP as per your requirement
        lv_if_item = wa_item-item.
        CALL METHOD lv_if_item->get_data
          RECEIVING
            re_data = lt_itm_data.
    IF ( v_result > 10000 ) .  " If the difference between net-prices is more than 10000 then gives Error message
            MESSAGE e368(00) WITH 'Tolerance is more than $10000' .
    ENDIF.           
    Let me know if you need further help.
    Thanks & Regards,
    Anil Salekar

  • IDOC : error message 20 : Error triggering EDI subsystem

    Hi,
          I am creating an extended idoc for WP_PLU message type . I am sending the data from my LS to KU(Customer).
    In WE20, I have configured the message type for that KU. I am using an XML port .
    The problem is that the Idoc file is getting created properly but it is thowing this message : Error 20 : Error triggering EDI Subsystem.
    In WE21 , I have ticked the Start subsytem radiobutton. I am not using any Middleware.It is simple data transfer .
    Same thing is working file when I am assigning a File port instead of XML port.
    Please help me on this urgently.

    Dear All,
    Many thanks for all suggestions. Very appreciated it guys.
    My problem solved, the issue was actually from the Functional configuration.
    After debugging i found out that there's a option to generate a trigger file (related to POS Outbound). If you tick this option then maybe you have to maintain the download path somewhere.
    My case is the option was ticked but system can't find the path.
    SAP put as error message 20 in the IDOC status.
    This maybe can explain also why i still can see my IDOC reached XI and file generated. Since the issue is not really related to any setting in IDOC but more to business configuration.
    Best Regards,
    Victor.

  • At selection-screen problem: triggering an error message...

    Hello experts,
    I have 3 radiobuttons and 1 parameter in my selection screen. it works in such a way that whenever the user clicks on the 3rd radiobutton the parameter will be inputtable. Now, what I want to do is that whenever the 3rd radiobutton is clicked and the user forgot to put a value in the paramater an error message will be triggered saying 'please put a value'.
    Now, creating a code for that is easy but here is the problem: whenever I click on any of the radiobuttons the message triggers. Anyway, below is my code:
    SELECTION-SCREEN BEGIN OF BLOCK box1 WITH FRAME TITLE text-001.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pr_upld RADIOBUTTON GROUP grp MODIF ID id3
                                              USER-COMMAND ucomm.
    SELECTION-SCREEN COMMENT 2(20) text-007 FOR FIELD pr_upld.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 03(15) text-a11 FOR FIELD p_flnme MODIF ID id3.
    PARAMETERS: p_flnme LIKE rlgrap-filename DEFAULT 'C:\' MODIF ID id3.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(22) text-002 FOR FIELD p_dcode MODIF ID id1.
    PARAMETERS: p_dcode LIKE vbak-kunnr MODIF ID id1,
                p_name1 LIKE kna1-name1 MODIF ID id1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pr_list RADIOBUTTON GROUP grp MODIF ID id4.
    SELECTION-SCREEN COMMENT 2(7) text-003 FOR FIELD pr_list MODIF ID id4.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pr_add  RADIOBUTTON GROUP grp MODIF ID id2.
    SELECTION-SCREEN COMMENT 2(3) text-005 FOR FIELD pr_add MODIF ID id2.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pr_edit RADIOBUTTON GROUP grp MODIF ID id5.
    SELECTION-SCREEN COMMENT 2(4) text-006 FOR FIELD pr_edit MODIF ID id5.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 03(20) text-a12 FOR FIELD p_code MODIF ID id2.
    *PARAMETERS: p_kunnr LIKE zts0001-kunnr.
    PARAMETERS: p_code LIKE zts0001-cdseq MODIF ID id6.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK box1.
    AT SELECTION-SCREEN OUTPUT.
    IF v_compflag EQ space.
        LOOP AT SCREEN.
          IF screen-group1      = 'ID1'.
            screen-input        = '0'.
            screen-output       = '1'.
            MODIFY SCREEN.
          ELSEIF screen-group1  = 'ID2'.
            screen-active       = '1'.
            MODIFY SCREEN.
          ELSEIF screen-group1  = 'ID3'.
            screen-active       = '0'.
            MODIFY SCREEN.
          ELSEIF screen-group1  = 'ID4'.
            screen-active       = '1'.
            MODIFY SCREEN.
          ELSEIF screen-group1  = 'ID5'.
            screen-active       = '1'.
            MODIFY SCREEN.
          ELSEIF screen-group1  = 'ID6'.
            screen-active       = '1'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSEIF v_compflag NE space.
        LOOP AT SCREEN.
          IF screen-group1      = 'ID1'.
            screen-active       = '0'.
            MODIFY SCREEN.
          ELSEIF screen-group1  = 'ID2'.
            screen-active       = '0'.
            MODIFY SCREEN.
          ELSEIF screen-group1  = 'ID3'.
            screen-active       = '1'.
            MODIFY SCREEN.
          ELSEIF screen-group1  = 'ID4'.
            screen-active       = '1'.
            MODIFY SCREEN.
          ELSEIF screen-group1  = 'ID5'.
            screen-active       = '0'.
            MODIFY SCREEN.
          ELSEIF screen-group1  = 'ID6'.
            screen-active       = '0'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    *for users that are not controllers
      LOOP AT SCREEN.
        IF screen-name   = 'P_CODE'.
          screen-input   =  '0'.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
      IF pr_list = 'X' OR
         pr_add  = 'X'  OR
         pr_upld = 'X'.
        LOOP AT SCREEN.
          IF screen-group1   =  'ID6'.
            screen-input     =  '0'.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ELSEIF pr_edit  =  'X'.
        LOOP AT SCREEN.
          IF screen-group1   =  'ID6'.
            screen-input     =  '1'.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
    *for controllers
      IF pr_upld = 'X'.
        LOOP AT SCREEN.
          IF screen-name      = 'P_FLNME'.
            screen-input     = '1'.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ELSEIF pr_list = 'X'.
        LOOP AT SCREEN.
          IF screen-name      = 'P_FLNME'.
            screen-input     = '0'.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
    AT SELECTION-SCREEN.
      IF pr_edit = 'X' AND p_code IS INITIAL.
        MESSAGE e008 WITH 'Please specify Code.'.
      ENDIF.
    Again, thank you guys and have a nice day!

    Hi viraylab,
    1. Such validations can be handled in the event
       START-OF-SELECTION.
    2. We should them and other such validations,
       using this logic
    START-OF-SELECTION.
    IF ERRORCONDIDTION.
    <b>MESSAGE 'PLEASE ENTER ' TYPE 'S'
    LEAVE LIST-PROCESSING.</b>
    ENDIF.
      WRITE :/ 'ABC'.
    3.
    The most important statements are
    A) message should be of type I, or S, or W
       (and not error E)
    b) LEAVE LIST-PROCESSING
      (it discontinues the further list showing,
       and again, re-displays, the selection screen)
    regards,
    amit m.

  • How to enable the screen after triggering the error message

    Hi All,
    we have a tcode IW31, in that one field(WBS element -PROID) is not mandatory. so we have written the following code to make it mandatory in a user exit EXIT_SAPLCOIH_010.It's triggering the error message, but it is going into disable mode. Please sugget me how to enable the screen after getting the error message triggering.
    if not caufvd_imp-proid is initial.
      select single * from t350 into wa_t350
              where  auart    = caufvd_imp-auart
                and  imord    = 'X'.
      if sy-subrc is initial.
        pspel = caufvd_imp-proid.
      else.
        call function 'CONVERSION_EXIT_ABPSP_OUTPUT'
             exporting
                  input  = caufvd_imp-proid
             importing
                  output = l_posid.
        concatenate text-t10 l_posid text-t11
                    into l_textline1 separated by space.
        message i208(00) with l_textline1.
      endif.
    else.
      message e208(00) with 'Please maintain WBS element in Location Tab'.
    endif.
    Thanks

    Hi,
    Instead of error message use status message like
    message s208(00) with 'Please maintain WBS element in Location Tab'.
    Leave to screen sy-synnr.
    This will allow to move to the screen and have in enable mode.
    WIth Regards,
    Dwaraka.S
    Edited by: Dwarakanath Sankarayogi on Feb 13, 2009 7:46 AM

  • Triggering workflow using error messages

    hi all,
    how can i trigger workflow from error messages?
    thanks in advance

    If this is a custom Error message put your code for triggering your Workflow just after that. Use FM SWE_EVENT_CREATE or SAP_WAPI_START_WORKFLOW.
    If it is a Standard message used in SAP Programs then look for User Exit.

  • Mail send issue - Workflow Triggered from Error Message

    hi
    i am learning workflow and doing some practical sessions using tutorials found on the internet. I have successfully enabled a workflow triggering options from the error message. The workflow will simply send an email and there is nothing else in that workflow definition. When i get the error message i open up the error message window and trigger the workflow option which is enabled. I get a message that the workflow has been started but i dont get the email immediately. I see the emails only after a long time. Infact the emails sent yesterday is only visible today.
    i checked in SOST and i dont see the messages at all. If its available in SOST then the system would have picked up and send to the inbox. But i dont see the mails queued in SOST. But if i wait for a day i can see the emails in my inbox. Any idea what is wrong.
    ~Suresh
    Message was edited by:
            Suresh Reddy

    Hi Suresh
    Good on you that you are actually going through the SAP Help and trying the harder but better way unlike many others...your input regarding your problem is also quite well explained....Keep it up!
    Coming to your problem,
    <b>1.>>I see the emails only after a long time. Infact the emails sent yesterday is >>only visible today.</b>
    RSCONN01 is the program that sends email out of SAP, make sure this scheduled to run frequently otherwise you can manually run this from SE/SA38.
    <b>2. i checked in SOST and i dont see the messages at all. If its available in SOST then the system would have picked up and send to the inbox</b>
    When you run SOST make sure you tick all the checkboxes - Waiting, Errors, Sent and Transmitted. If you are on ECC, then these are available on the Send Status tab...
    Good Luck
    Ravi

  • Alert is triggered daily even if there are no error messages

    Hi,
    I have done Alert Configuration for a service with the help of a document from SCN. It is successful when an error occurs.
    But I get an alert email Daily(even when there are no errors) and the message and service details mentioned in the mail will be blank.
    eg: Below are the error message details
           MessageID:
           Service:
    I want the mail to be triggered only when there is an error message.
    So could someone please help with the solution or guide me with the links of documents or threads that can provide the solution.
    Thanks In Advance

    hi
    plz refer the following  link
    http://forums.sdn.sap.com/thread.jspa?threadID=2147596&tstart=60

  • Using labview with GPIB to run Agilent 4156c: configuring SMU3/SMU4 triggers error message

    Hello,
    I posted this also in the GPIB board, since it concerns labview I thought I'd post here too.
    I'm trying to measure and plot drain curves for a JFET.  When trying to run it in labview I get the following error message:
    Error -1074000000
    Instrument reports:
    +181,"Illegal setup. Invalid command."
    +0,"No error"
    I see other people have had this problem, I've reviewed all the previous posts and tried implementing the proposed solutions, to no avail.
    Here's my configuration for when trying to run a sweep with Vgs = 0V:
    Unit          Vname          Iname                MODE                       FCTN
    SMU1      Vdd               Id                       V                               VAR1                              (drain)
    SMU2      Vg                 Ig                       COMMON                 CONST                          (gate)
    SMU3      Vs                 Is                       COMMON                 CONST                           (source)
    I ran NIspy and it told me that the error message is generated after the channels are assigned immediately after configuring SMU3 or SMU4 (SMU3 & SMU4 will both trigger it).  If I try to disable SMU3 and configure SMU4 then SMU3 will show that it's disabled on the front panel and SMU4 will be configured and I get the error.  After I get the error message, If I go to the front panel I can manually run my sweep using the configurations labview sent to the instrument.  So labview seems to be configuring the channels properly but then it halts and gives me the error message.
    I've tried configuring/disabling all unused channels and that didn't help.  I've also tried leaving the series resistance setting for each SMU as the default and assigning 0V to them, which didn't help either. 
    Any help or feedback would be greatly appreciated.

    Hello
    I see that you posted this issue in the GPIB forum. I would recommend you to keep the conversation in that forum, because it is the specialized one for those subjects. Have a good day!

  • Triggerring error messages in bsp

    Hi,
    I have 2 screens in bsp,first screen with 2 input fields and 5 checkbox,if the user doesn't select any of the checkbox and excute ,the error message should trigger in the same page .
    please provide me the code on javascript with bsp application as example.
    Thanks & Regards,
    Naveen

    Hi Naveen,
    Exactly similar issue is discussed in [THIS|Error messages in BSP; thread.
    Please search before posting.
    Regards,
    Anubhav

  • Error Message " Enter a Vendor Number "?

    Hi,
    When we are executing MIGO 411 K transaction we are getting error message 'Enter Vendor Number'. My requirement is populate vendor dynamically based on combination of Material, Plant, Storage location and Batch. I got user exit for this User-exit (EXIT_SAPMM07M_001) when click on check button.
    We found a User-exit (EXIT_SAPMM07M_001) triggered when User clicks on 'CHECK' button. But since the vendor field (LIFNR) is a mandatory field in MIGO 411 K transaction, its throwing an error message 'Enter Vendor Number'.
    SO we are not able to populate the vendor number dynamically in user exit.
    Can any one help on this ..how to proceed further...
    Thanks
    Edited by: Venkatesh Padarti on Jan 2, 2008 11:21 PM

    All mandatory fields are checked before any processing happens.
    The simplest way is to enter a dummy vendor number (create a one-time or a dummy vendor for this purpose)
    Hope this helps,
    Lakshman

  • Error message: ni: A frame has been dropped and the acqusition has been canceled

    I use a NI PCIe 1433 framegrabber with a Basler spl4096-140km line camera.
    Using triggered acqusition with an external source, I can get a framerate of 68500Hz in NI-MAX.
    When I use the Matlab image acquisiton toolbox to acquire data, I however very often get the error message: 'ni: A frame has been dropped and the acqusition has been canceled". This happens even at much lower framerates (20kHz) and only seems to go away when acquiring data slowly.
    Computer is a Dell Precision 7600 and I assume there should be no issues with RAM or the PC being slow. The error does not go away when reducing the data size (i.e. reducing the ROI to one single point that is readout).
    Do you have any pointers why this error message appears and what can be done about it?
    Thank you!
    Reto

    Hello,
    I encountered the same problem and I think it is because the allowcation of storage in matlab cannot catch up with that of the camera so that it will drop frames when the buffer is full.
    I also want to know how to solve that.
    Yang

Maybe you are looking for

  • Can I use 2 graphic card for optimisation in adobe?

    Hi, I am using Adobe CS6, Premiere pro, After effect, Photoshop, InDesign. Current set up is Dell XPS 8700, GTX 650 Ti, 128gb Plex SSD, 2TB 72krpm HDD, 16DDR3 non-ECC ram. I am looking to build a LGA 1366 dual xeon processor workstation. Plextor M5 P

  • New smart form picking enjoy purchase order /SAPDII/SPP_ORDER

    Hi Experts, Ours is a new implementation project. Requirement is to design a new smart form for purchase order. The print program for the purchase order is loaded. When I go for print preview the print program is calling the enjoy PO and not my form.

  • How to fix green screen on all flash videos

    Getting a green screen with audio on all flash videos, ranging from EI 11, Google Chrome, and Steam. Running windows 8.1 with all recent drivers and updates. Have tried enabling/disabling hardware acceleration, using software rendering instead of gpu

  • Flushing dns mac os 10.9.2?

    When I run suggested protocol to flush DNS (dscacheutil -flushcache;sudo killall -HUP mDNSResponder) nothing happens. What I am really trying to do:  I have an accumulation of websites that pop up as suggestions when I want to create a document hyper

  • Why can't i use droid4 hardware keyboard in web forms?

    I have a droid4, and with aurora I can type in the url address bar with my hardware keyboard, but I can't type in forms such as usernames, passwords, message bodies, etc. With the hardware keyboard. If I change to a touchscreen keyboard then it's ok.