How can I define a own exception

Hallo,
I want to delete rows in a table after pressing the "Delete"-Button.
When pressing "delete" the message box htmldb_delete_message is shown.
When pressing "Ok" the row will not deleted if there are depending rows in another table. On the Form the Error "ORA-02292: Integritäts-Constraint (EV_ADM.SEM_TEILNAHME_PN_FK) verletzt - untergeordneter Datensatz gefunden" is displayed. For this ORA--message I want to create a own exception and displays a message that the user can understand. How can I do this?
Thanks, Daniela

See also
how to avoid ora-errors to be displayed
for a similar discussion, and a solution. Follow also the links in teh posts !
Leo

Similar Messages

  • Define our own Exceptions in th function builder

    hi
    how to define our own Exceptions in th function builder in the Exception tab and how to use them in functon definiton.
    regards
    ravish

    Hi,
    <b>Exceptions</b>
    The exception of a function module are defined on the Exceptions tab page in the Function Builder. Here you can select exception classes to define whether class-based exceptions are declared or non-class-based exception are defined. Class-based exceptions are represented in the above syntax by RAISING, and non-class-based exceptions are represented by EXCEPTIONS.
    The addition RAISING is used to declare class-based exceptions that can be propagated from the function module to the caller. Exceptions in the categories CX_STATIC_CHECK and CX_DYNAMIC_CHECK must be explicitly declared, otherwise a propagation can lead to an interface violation. A violation of the interface leads to the treatable exception CX_SY_NO_HANDLER. Exceptions of the category CX_NO_CHECK are implicitly always declared. The declaration of exceptions of the category CX_STATIC_CHECK is statically checked in the syntax check. For exceptions of the category CX_DYNAMIC_CHECK, the check is not performed until runtime. In a function module in which class-based exceptions are declared with the RAISING addition, the statement CATCH SYSTEM-EXCEPTIONS cannot be used. Instead, the relevant treatable exceptions should be handled in a TRY control structure.
    The addition EXCEPTIONS is used to define a list of non-class-based exceptions that can be triggered in the function module using the statements RAISE or MESSAGE RAISING. Exceptions defined in this way - as with formal parameters - are bound to the function module and cannot be propagated. If an exception of this type is triggered in a function module, and no return value has been assigned to it with the homonymous addition EXCEPTIONS of the CALL FUNCTION statement when the call was made, this leads to a runtime error.
    <b>Note</b>
    For new developments after release 6.10, SAP recommends that you work with class-based exceptions that are independent of the function module.
    Regards,
    Padmam.<b></b>

  • How can i define in which transaction i come to this include!

    hi sap experts.
    i write this code in include ZXQEVU10 :
        CALL FUNCTION 'QAST_PROCESS_ACTIVITY'
             EXPORTING
    *             I_DIALOG             = 'X'
                  I_OBJNR              = I_QALS-OBJNR
                  I_VORGANG            = 'QM68'
             EXCEPTIONS
                  NOT_ALLOWED          = 1
                  ACTIVITY_NOT_ALLOWED = 2
                  OTHERS               = 3.
        E_EXIT_ACTIVE = 'X'.
    but i want this code execute just when im in qa12 or qa14, but know it done in qa11 too, how can i control it?
    how can i define the transaction that come to this.
    thanks for your help.

    Hello Mahdieh ,
    Please check for sy-tcode value.
    You can try like below
    If sy-tcode = 'QA12' or 'QA14'.
    CALL FUNCTION 'QAST_PROCESS_ACTIVITY'
             EXPORTING
    *             I_DIALOG             = 'X'
                  I_OBJNR              = I_QALS-OBJNR
                  I_VORGANG            = 'QM68'
             EXCEPTIONS
                  NOT_ALLOWED          = 1
                  ACTIVITY_NOT_ALLOWED = 2
                  OTHERS               = 3.
        E_EXIT_ACTIVE = 'X'.
    endif.
    thanks

  • How can we define custom error page in protal application

    How can we define custom error page in protal application, like we define "jsp Error page " in JSPs

    Hi,
    Check these:
    Customization of Portal Runtime Errors and portal standard error codes
    http://help.sap.com/saphelp_nw04/helpdata/en/9a/e74d426332bd30e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/ec/1273b2c413b2449e554eb7b910bce7/frameset.htm
    Regards,
    Praveen Gudapati

  • How can I define Double Click Processing in SAP Query ?

    The first question is : How Can I define drill-down for SAP Query report ?
    The second one :  How can I program Double Click in SAP Query report for Different columns like ALV Grid processing ?

    you can attach a repot or at tcode etc in an SAP query using report assignment in SQ01 but as far as i remember you cannot attach multiple reports.
    regards,
    khusro habib

  • HOW CAN I USE MY OWN EMAIL FOR IMESSAGE IF I DONT HAVE MY OWN ACCOUNT

    HOW CAN I USE MY OWN EMAIL FOR IMESSAGE IF I DONT HAVE MY OWN ACCOUNT

    You have to achieve at least 500 points before you are able to do that.
    Award points, level up, and earn new privileges

  • How can I define "java.util.ResourceBundle" in my Code ?

    Dear Mr. MLRon,
    Thanks to you for your replying to me.
    How can I define "java.util.ResourceBundle" in my Code ? To more understanding about my problem I can say that the Persian Font is Like as Arabic, but the Java can not Recognize it. please tell me how can I add "java.util.ResourceBundle" to my code and what should I do then?
    Thank you in advance,
    Tantan.

    Please stop starting new threads for this. Please reply in the original thread!
    http://forum.java.sun.com/thread.jspa?threadID=627917

  • How can i define a boolean variable with the condition if i got a specific text on a selected column?

    How can i define a boolean variable with the condition if i got a specific text on a selected column?
    Example:
    my select results:
    [id = 102] [Company = 'Microsoft']
    If i got microsoft in 'Company' i want to my another table with the columnName "Microsoft" get "true".
    Can you help me?

    That is called 2-table UPDATE.
    Example:
    http://www.sqlusa.com/bestpractices2005/updatewithcorrelatedsubquery/
    Kalman Toth Database & OLAP Architect
    Free T-SQL Scripts
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • How can I define the possible entries for "invoicing process" at fkkinv_ma?

    At the transaction code fkkinv_ma, I fill in the fields "Date ID" and "Identification" but I have a problem with the field of "Invoicing Process". When I psh theF4 button, there comes no search help. What should I do? Should I define the possible entries first? If I should, how can I define the possible entries for "invoicing process"? How is the customization done?
    Thanks in advance for the answers.

    You have to define them in the IMG 
    Financial Accounting (new)
    Contract Account Recievable and Payable
    Business Transactions
    Invoicing
    Invoice Types
    You have to set up a number range, decide what type of Financial transactions should not be invoiced -- like  Dunning Charges
    then you have to have a developer create the form and form class of invoice.

  • How can I define global variable in user exit whic I can use anywhere.

    Hi all,
    How can I define global variable( Table ) which I can use when it come back to same user exit where I defined and stored some data.
    What I mean is I want to define 1 global table.
    In user exit when it comes I store some information. and again when it will come I will have that stored information so I can use it.
    Thanks a lot in advance.

    You can use EXPORT  TO MEMORY ID and IMPORT FROM MEMORY ID Statement for this.
    EXPORT T_ITAB FROM T_ITAB TO MEMORY ID 'ABC'.
    IMPORT T_ITAB TO T_ITAB FROM MEMORY ID 'ABC.'

  • How can i define folder to save files in DMS

    Dear all,
    How can i define folders to save uploaded files.
    Regards,
    Gaurav Sood

    Hi Gaurav,
    generally there are no 'folders' in DMS. In DMS we use document info records (DIR) which are mainly a kind of box which contains data like
    - descriptions
    - object links
    - classification data
    - original files
    So if you create such a DIR in transaction CV01N then you can also upload or assign a file to this document info record and check it in. So you can say that the folder is the document info record.
    Another possibility for DMS is to use EasyDMS which is a kind of small Add-On to the Windows explorer. In this Add-On
    folders are displayed to simplify the navigation for the user equal to the Windows Explorer. The folders you see in EasyDMS is a document BOM header in the SAP backend system. But mainly this is also a DIR which has additional DIRs assigned to build up a document BOM. If you have such a BOM header DIR than you can display the detailed BOM items by using transaction CV13 for example.
    So in a nutshell, if you want to upload files in DMS you need to create a document info record in transaction CV01N first. Therefore the customizing in transaction DC10 and DC30 is important.
    Best regards,
    Christoph

  • How can i define database name in oracle ADI

    Hai Friends,
    I am facing a problem when i am going to define database name in oracle ADI there is a error u can enter minimum 6 char database name but my database name is PROD it is only 4 char long. how can i define can i will change the database name. Please suggest me.
    If u have any query regarding oracle apps plse discuss with me.
    Many thanks
    Ghanshyam khetan

    Database is used internally by ADI and does not have any relationship to the name of your database.
    Using ADI I am able to create a database with the following:
    Name - My Wacky Database
    GWYUID and FNDNAM as usual
    Connect String - VIS
    I'm able to signon and work successfully with that definition. The connect string is more important in this scenario as that tells the networking layer which database to actually talk to. As you can see here mine is only three characters.

  • How can we define no of processors for a server

    How can we define no of processors for a server.on what factor that No of Processors depends? Is it based on
    1.Application type,
    2.No of transaction perday,
    3.No Of users connected simulatneoulsy

    You can also add the quality of the application to your list. A poorly writtern application cangobble up resources faster than you can spend.
    Also, the size of the database. Bigger size means increased memory, disk, and CPU.

  • I am making a complex vector pattern for laser-cutting. No part may be more than 7mm wide at any point. How can I define this in order to get a warning when a shape is too wide? can this be automated?

    I am making a complex vector pattern for laser-cutting. No part may be more than 7mm wide at any point. How can I define this in order to get a warning when a shape is too wide?
    can this be automated?

    Not in Illustrator. You will need a CAD program or similar where you can dial in such manufacturing criteria.
    Mylenium

  • How can i add my own number in imesseges

    Hi my name is kawaljit kaur.suddenly my phm's imesseges stop working...its just using my apple id which i dnt want...plz tell me how can i add my own cell number in imesseges.thnx

    Hi, Kawaljit kaur.
    Thank you for visiting Apple Support Communities. 
    Here are a couple troubleshooting resources I would recommend when experiencing this issue. 
    Phone number missing on iPad or iPod touch
    If your phone number is not listed on an iPod touch or iPad, follow these steps:
    Update to the latest version of iOS.
    Verify that you're using the same Apple ID that you are using on your iPhone.
    On your iPad or iPod touch, sign out of your Apple ID in the following locations:
    Settings > Messages > Send & Receive. Tap your Apple ID, then tap Sign Out.
    Settings > FaceTime. Tap your Apple ID, then tap Sign Out.
    Sign in to your Apple ID with FaceTime and iMessage.
    If your phone number is still not listed, follow these steps:
    Sign out of your Apple ID on all iOS devices, including your iPhone, in the following locations:
    Settings > Messages > Send & Receive. Tap your Apple ID, then tap Sign Out.
    Settings > FaceTime. Tap your Apple ID, then tap Sign Out.
    Sign in to your Apple ID on your iPhone.
    When activation is complete, your Apple ID and all verified email addresses should be visible in Settings > Messages > Receive At and also in Settings > FaceTime.
    Now sign in to your Apple ID on your other iOS devices.
    iOS 6 and OS X Mountain Lion: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    If you experience any issues with activation, see the article below. 
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/ts4268
    Cheers,
    Jason H. 

Maybe you are looking for

  • At end of tether!  Reading in variables from a text file

    Hi all My stress factor has gone through the roof because I am trying to read in from a text file (you may have seen some earlir questions about ArrayLists) it's just not working! The code is below. The result is that it's reading in all of the car d

  • Rehire - Current and last employment

    I have a employee table like this Sample data WITH emp AS SELECT 1 PK_ID , '10' EMP_NO , TO_DATE('01-JAN-2012')  HIRE_DATE , TO_DATE('01-APR-2012')  LAST_WORKING_DATE FROM DUAL UNION ALL SELECT 2 PK_ID , '10' EMP_NO , TO_DATE('01-JUN-2012')  HIRE_DAT

  • Adobe master collection CS5.5 5.5 MLP  arabic language problem.

    Hi all of you, We have "master collection CS5.5 5.5 MLP international licensed version" it's working fine but in Photoshop Arabic language is not working properly , I tried with a Photoshop CS5 extended middle east version it's working fine in Arabic

  • Setting line item of table control

    I need to allow the user to enter a line item number 10, 20, 30 ... and then the cursor is set to that line item in the table control

  • Plan only releases one purchase requisition at the time

    has anyone seen this scenario? When the planner checks multiple purchase requisitions for release and then, when he attempts to release them, the dialog box shows that only one req got released?