BEA WebLogic Server™ 8.1 Unleashed
by Mark Artiges, Gupreet Singh Bhasin, Bernard Ciconte, Malcolm Garland, Saranathan Govindarajan, James Huang, Subramanian Kovilmadam, Kunal Mittal, Paul J. Perrone, Tom Schwenk, Steve Steffen
Calling an SAP Function
Until this point, this chapter has dealt with establishing and discontinuing connections from SAP. The next step is to call the functions of and retrieve data from SAP.
The first step is to create a JCO.Repository object. This object calls SAP and dynamically retrieves all the metadata for each function called. The other alternative, which is hard-coding the function's interface, is not a good idea because the interfaces can change as SAP systems are upgraded and support packs are installed.
Calling one of three different constructors creates the repository. Each constructor has two different parameters. The first parameter is java.lang.String, which is used to name the repository. The second parameter is JCO.Client, a ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access