cancel
Showing results for 
Search instead for 
Did you mean: 

JCO_ERROR_RESOURCE

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

nitin_mahajan2
Contributor
0 Kudos

1: what is the error.

2. as said by the person above me, add the row to the node for each element.

former_member182416
Active Contributor
0 Kudos

Hi

add this line before you set the values.

bill_doc.appendRow();

Regards

Rajendra