Chapter 5: A Few Simple JavaSAP Examples

Team-Fly

Overview

This chapter contains three examples of fairly simple Java programs that access SAP. Each example takes you step by step through the creation of the Java code, compilation, and finally execution of the program. The basics of the Java language, along with how to integrate it with SAP, are presented in much more detail elsewhere in this book. The purpose of this chapter is to show you the entire picture through simple examples. This approach prepares you to understand the details provided in subsequent chapters.

Even these simple examples may look intimidating if you have not done much Java programming, because quite a bit of code is necessary for even the most rudimentary command. However, a great deal of this code is required only once, and much of it is reusable. For instance, in the example on retrieving data from the material master, just a few more lines of Java would be required to create a material master or to read in or create a customer record. You will also notice that the connection code is the same in both the ping and reading the material master records examples.


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