cancel
Showing results for 
Search instead for 
Did you mean: 

Need Simple Example of Java Access to SAP Customer/Order Record

Former Member
0 Kudos

I need to create a simple demonstration application that uses a Java class to read/update an SAP customer record and an SAP order record.

I just downloaded with SAP Netweaver 04 Web Application Server 6.40 Trial. Can I create my sample application with this? Does it include a base R/3 (or stripped down R/3) system from which I can read/update a customer record and/or an order record? From my preliminary look at it, it just seems like a J2EE server. Where is the core SAP stuff that I'm supposed to integrate with using the Netweaver J2EE??

I'm a Java developer, but am clueless about SAP, so any help would be appreciated greatly.

-- Mark

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi the alternative way of accessing SAP from java is using Java connectors from Arasoft.

Just download that package form there site.

Lot many examples are provided in that download form which u can build ur own applications in Java which accesses SAP.

enter Arasoft in google and try to downlaod the JCO.

Satish

gregorw
Active Contributor
0 Kudos

Hello Mark,

you can develop your demo application with the SAP Netweaver 04 Web Application Server 6.40 Trial Java. But you have to connect to a backend R/3 Sytem. There you can call the BAPI's:

- BAPI_CUSTOMER_GETDETAIL or BAPI_CUSTOMER_GETDETAIL1

- BAPI_CUSTOMER_CHANGEFROMDATA

- BAPI_SALESORDER_GETSTATUS

- BAPI_SALESORDER_CHANGE

Regards

Gregor

Former Member
0 Kudos

Thanks!

Is there a way to get a trial version of a backend R/3 system?

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Not of a R/3 system, but a WAS which is basically like R/3 without the R/3 part. Meaning it has all of the basis stuff, ABAP runtime, development tools and so on. But no business functionality/modules such as MM PP SD PM and so on. You can download the Sneak Preview WAS 6.40 ABAP stack here on SDN. Just go to the download section for WebAS.

Regards,

Rich Heilman

Former Member
0 Kudos

OK - so if I need to write a demo application that accesses, for example, BAPI_CUSTOMER_GETDETAIL - what should I do?

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

You will an R/3 system. The BAPI only resides in an R/3 system. If you don't have access to an R/3 system, you could develop a small "customer master" in your sneak preview 6.40 ABAP stack. Create a custom table for customer with a couple fields. Then write a RFC enabled function module to access the data. This way you can simulate what it would be like calling the BAPI in an R/3 system.

Regards,

Rich Heilman

Former Member
0 Kudos

OK - I finally get this. I guess that SAP Business One is the entry level, least expensive license. If my company buys SAP Business One, will that provide the R/3 system and BAPIs to build some demos? And can I hook up SAP Business One to the Sneak Preview SAP NewWeaver 6.40 in order to invoke the BAPIs using Java?

And I guess that if we buy SAP Busienss One, then I don't need 6.40 ABAP stack to invoke the BAPIS - or do I?

Thanks for your help.

gregorw
Active Contributor
0 Kudos

Hello Mark,

Business One will be of no use for you because it does not have an RFC or Web Service Interface by default. What you can try is to get an R/3 IDES System. Or look at the FLIGHT Example coming also with the Sneak Preview SAP NewWeaver 6.40 ABAP. Your demo Application could be Booking Flights.

Regards

Gregor