Data storage in an SAP table through JCo

Data storage in an SAP table through JCo

How do I store data in an SAP table through JCo after I have populated the JCo.Function instance with the appropriate objects?

    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.

In order to send data to SAP via JCo, you must initiate an instance of the JCo.Client, passing into an established SAP connection. You must then pass the JCo.Function instance created previously to the connection instance, calling the execute( ) method to request SAP to update the table.

This tip was based on a code snippet sent to me where all of the previous steps were correct, except for the fact that the developer had not called the execute( ) method. For hands-on code tips, search SearchSAP.com using my last name 'sincock' for more help or check out my book Enterprise Java for SAP.

This was first published in September 2006