Summary

Team-Fly

The straightforward package COM.SAP.RFC.EXCEPTION contains only a few methods. The class hierarchy diagram at the beginning of this chapter laid out the interdependence of the various exceptions. Java code cannot do too much with respect to errors that occur on the Java server or with SAP, except to end gracefully or perhaps to let the user try the operation again. Run-time errors should not occur very often if you have clean code. Let the Java classes build the complex data types; hard-coding values for field names in structures might later cause an exception if the structure or data definition changes in SAP. Use BAPIs all of the time; by definition, they perform an entire unit of work and will not corrupt the SAP database.


Team-Fly


Java & BAPI Technology for SAP
Java & BAPI Technology for SAP
ISBN: 761523057
EAN: N/A
Year: 1998
Pages: 199

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net