Changing table contents in a JCo client

Changing table contents in a JCo client

I have being trying to add values thr JCo in SAPtable. thr code table.setRow(2);

    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.

table.appendRows(2);
table.setValue("1000","COMP_CODE");
table.setValue("KNB1","COMP_NAME");
table.setValue("2000","COMP_CODE");
table.setValue("Dipali","COMP_NAME");

But the contents are added to the table temporarily. How can I commit my work in the table through JCO.


A table parameter is just a glorified array. Changing table contents (originating from an SAP call) in a JCo client has no effect whatsoever on SAP, unless there is a BAPI that uses the table to update information in the database and you invoke said BAPI.


This was first published in February 2002