Home > SAP software/management Tips > SAP ABAP/Java developer tips > Build a Java Web application for SAP right now
SAP Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

SAP ABAP/JAVA DEVELOPER TIPS

Build a Java Web application for SAP right now


Austin Sincock
03.05.2002
Rating: -3.76- (out of 5)


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


So you can't wait for SAP to officially release a Java application server and need to start building Web applications for SAP now. A great place to start your development is with Apache's open source Java server, Tomcat. By starting your Java development now you not only hone your skills but are also building code that can easily be ported to SAP's Web Application Server when it supports Java.

First things first. You need to get the application server. Point your browser at: http://jakarta.apache.org/tomcat/index.html and download the latest release of Tomcat (4.0). Next you need to download SAP's Java connector JCo from http://service.sap.com/connectors (you will need your OSS ID and password to get in).

Now that we have the goods, we need to install them into the right locations. Run the Tomcat install script and install it into the location of your choice (e.g. c:tomcat). Drill into the Tomcat directory to find the 'commonlib' directory (c:tomcatcommonlib). Open the JCo zip and extract the file jco.jar to the tomcatcommonlib directory. Don't forget to extract the three dlls that come with JCo into <Windows root directory>system32 (e.g. c:winntsystem32). That's all there is to it. If you are running a flavor of UNIX as your desktop, please refer...


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



RELATED CONTENT
SAP ABAP/Java developer tips
How to do additional dialog processing after SAP COMMIT WORK statement
How to find a piece of SAP ABAP code without debugging
How to read an SAP transaction in an ABAP code
How to provide an SAP R/3 4.5B application server with a Web service interface
How to find owners and transports of deleted ABAP programs
Fixing a common OPEN_FORM and START_FORM error in SAPscript
Select Text fields: Case-insensitive
Is this the quickest way to find a BADI?
Easily debug error messages in SAP processes
Accessing private attributes in ABAP Objects

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


to the documentation included with JCo for installation instructions. We can now access SAP through JCo with any application running in the Tomcat server.

The next step is to create a basic JSP (Java Server Page) that allows us to access SAP. I used the example code that comes with JCo. The original can be found under: <JCo install dir>:demoexample1.java

First create a directory called 'testapp' under the tomcatwebapps directory (e.g. c:tomcatwebappstestapp). Then create a text file called 'sysinfo.jsp' (don't forget the .jsp file extension). Cut and paste the source code from the demo into 'sysinfo.jsp', change the system information in the code to reflect your specific SAP configuration, and save it. Run the 'startup.bat' script in the tomcat root directory. Finally point your browser at http://localhost/testapp/sysinfo.jsp. If all goes well, you should see some rather exciting SAP system information displayed in your Web browser. This may not seem like much, but we have laid the groundwork for quickly developing Web applications for SAP. Enjoy!


Author Austin Sincock is product manager for ROBUSTA(tm), Gamma Enterprise Technologies Web sales solution for SAP.



Code


Rate this Tip
To rate tips, you must be a member of SearchSAP.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



NetWeaver SAP White Papers
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, 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