Java and XML

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.


    Requires Free Membership to View

    When you register, you will start receiving targeted emails from my award-winning team of editorial writers. Our goal is to keep you informed on the hottest topics and biggest challenges faced by SAP professionals today.

    Hannah Smalltree, Editorial Director

    By submitting your registration information to SearchSAP.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchSAP.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

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 first published in November 2002