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

Java and XML

A reader hopes to use Java to create a Web application that will issue an RFC call to SAP to execute a function module to read selected tables based on the data that was passed.

I am creating a Web application that will issue an RFC call to SAP to execute a function module to read selected...

tables based on the data that was passed. We plan to create the application using Java. Can the selected data be returned in XML format? I know that Business Connector can handle this but this will be a real-time inquiry.

Depending on the type of application you are building, your XML document requirements can be extremely simple or horrendous. If you need to model a complex set of table relationships via XML, then Business Connector is the way to go. It can operate realtime and offers a more abstracted development interface than JCo.

On the other hand, if you need to simply model a table subset in XML, I recommend coding this manually in the Java application. This means declaring a document type definition containing the required field elements, and then either rendering the plaintext XML document or passing the document over a network or file stream (HTTP, etc.). Again, the implementation of XML is highly dependent on your requirements, but these are two common options when dealing with XML.

This was last published in November 2002

Dig Deeper on SAP Java and J2EE



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.