The Java back end uses classes of type SAPObject to represent data objects sent to and from the client. Most of these classes are POJOS (Plain Old Java Objects), meaning they store data in fields, provide accessory/mutator methods, and know how to construct themselves when told to by other code.
SAPObjects can be composed of other SAPObjects stored as arrays of SAPObjects (e.g., Notifications have NotificationItems, etc). Since fetch BAPIs will now bring down child objects as well, the logic will populate the children using a single BAPI call without the need for read steps.
Stephandler classes provide the calling interface to classes subclassing the Agentry Java API (steplets, data tables, complex tables). Methods in StepHandler classes should be static. StepHandler methods also provide an interface for JUnit test suites.
All of this metadata is encapsulated in the SAPObject class rather than in an external file.
The BAPI class encapsulates all of the BAPI processing needed by the Java back end. It is abstract because there are specific kinds of BAPIs:
The BAPI objects that the code will use will be subclasses of FetchBAPI, TransactionBAPI, DataTableBAPI or ComplexTableBAPI. Developers need to write these BAPI classes to call the BAPIs to do the things that the “application” needs to do. A developer-written BAPI is a specific ABAP function call for a particular application (i.e., fetch all work orders for a user, send up a locally added notification, etc.).
Note that there is not necessarily a one-to-one correspondence between BAPI classes and ABAP function names (e.g. /SYCLO/MM_DOPHYSINVDOC_GET).
BAPI classes do the following: