Q
Problem solve Get help with specific problems with your technologies, process and projects.

Examples of Java making RFC calls

Expert Austin Sincock suggests an example that demonstrates how to call a BAPI through Java.

I'm a novice when it comes to Java, but I'm keen to learn more about the language. Do you have any examples of...

a Java program that makes an RFC call to SAP to get some data? Ideally, an example that makes a call to a BAPI to get some data and a example that gets data directly from a table (if possible). Could you also specify in the example what additional Java components would be required from the SAP Java SDK that comes with the SAPGUI or elsewhere. Thanks in advance for your reply.

If you are interested in running a simple example of how to call a BAPI check out my tip "Build a Java Web application for SAP right now". This shows a basic mechanism to call SAP using JCo through a standard Java Server Page (JSP). The advantage of using JSPs for testing is that you only need to reload the Web page from the Java application server to check out your changes. Check out the article for more information on JSPs and Java application servers. I also include a working example to get your development effort kickstarted.


This was last published in April 2002

Dig Deeper on SAP Java and J2EE

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close