I am creating a Web application that will issue an RFC call to SAP to execute a function module to read selected...
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
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.
Dig Deeper on SAP Java and J2EE
Related Q&A from Austin Sincock
How to provide an SAP R/3 4.5B application server with a Web service interfacecontinue reading
A reader wants to know how to consume a Web service from an SAP 4.6c R/3 application server.continue reading
Are you a Java/J2EE developer interested in SAP? This expert tip lists the most relevant SAP modules and technologies for you.continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.