on 05-15-2009 7:55 AM
hi,
I found an error while connecting my java application which calls a BAPI.
the error was
JCO_ERROR_RESOURCE
trying to set row values in a table which does not have any rows yet.
My BAPI contains 3 import parameters which are table type.
the code i wrote was:
JCO.Table bill_doc =
function.getImportParameterList().getTable("BILL_DOC");
bill_doc.setValue("I", "SIGN");
bill_doc.setValue("EQ", "ZOPTION");
bill_doc.setValue(billdoc, "LOW_VBELN");
bill_doc.setValue(to1, "HIGH_VBELN");
is this the right way?
arati.
1: what is the error.
2. as said by the person above me, add the row to the node for each element.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
add this line before you set the values.
bill_doc.appendRow();
Regards
Rajendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.