Home > Ask the SAP Experts > Application development Questions & Answers > Using the catch exceptions method
Ask The SAP Expert: Questions & Answers
EMAIL THIS

Using the catch exceptions method

Matthew Billingham EXPERT RESPONSE FROM: Matthew Billingham

Pose a Question
Other SAP Categories
Meet all SAP Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 02 June 2005
I have an upload program from which I have uploaded some data. If the record already exists in my Z table, it gives me a runtime error and a dump.

I want to catch that runtime error and return to the program without having a dump, so I am trying to use the catch exceptions method. Can you tell me how to do that?


>
EXPERT RESPONSE
You could check whether the value is already there, and use insert or update accordingly. Modify will work automatically -- inserting if the record isn't there, updating it if it is -- but is expensive in processing terms. If you look at the documentation of insert, you'll see that it does not specify any catchable exception. Therefore you cannot intercept it with the catch exceptions method.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
Application development
How to create Include programs in the ABAP editor
Is there a 'load of program' option in report generation?
Deleting entries from a dynamic table
Defining a structure in a report
Validating table fields
The difference between field groups and internal tables
Unicode check error fix
Creating a screen for grid display
Migrating test programs from ECC 4.6 to 6.0
Creating a field exit for a data element

SAP development
SOA-backed spell check wins SAP Demo Jam
SAP asks for help with enterprise Web 2.0, other development challenges
Fixing a common OPEN_FORM and START_FORM error in SAPscript
SAP TechEd 2007 Las Vegas: SearchSAP.com Special Report
Doing Objects in Visual Basic 2005
Book excerpt: Essential ASP.NET 2.0
.NET Internationalization: The Developer's Guide to Building Global Windows and Web Applications
Sending sales orders in R/3 via ALE
Splitting the string to fit in standard text
BAPI ignoring segment and third-party invoice cannot post
SAP development Research

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



SAP White Paper Topics
HomeNewsTopicsBlogsTipsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2000 - 2008, TechTarget | Read our Privacy Policy
SearchSAP.com is a search service provided by TechTarget and is completely
independent of and not affiliated with SAP AG.
  TechTarget - The IT Media ROI Experts