Skip to end of metadata
Go to start of metadata

Creating Function

JCO.Function function =  getDefaultJCoConnection().getJCoFunction("Function_Module_Name");

Import Parameters

JCO.ParameterList importParam = function.getImportParameterList();
importParam.setValue("Field_Value",  "Field_Name");

Adding Data to Structure

JCO.Structure structure =  importParam.getStructure("Structure_Name");
structure.setValue("Field_Value", "Field_Name");
function.getImportParameterList().getStructure("Structure_Name").setValue("Field_Value", "Field_Name");

Adding Data to Table

JCO.Table table = function.getTableParameterList().getTable("Table_Name");

JCoHelper.setValue(table,"Field_Value", "Field_Name");
table.setValue("Field_Value", "Field_Name");

Export Parameters

JCO.ParameterList exportParams = function.getExportParameterList();

String  returnCode  = exportParams.getString("Field_Name");
String returnCode= function.getExportParameterList().getString("Field_Name");

Retrieving  Data From Table

Table resultTable = func.getTableParameterList().getTable("Table_Name");

for (int i = 0; i < resultTable.getNumRows(); i++, resultTable.nextRow()){
 result = resultTable.getString("Field_Name");


for (int i = 0; i < resultTable.getNumRows(); i++){
 resultTable.setRow( i );

result = resultTable.getString("Field_Name");


  1. Former Member

    can u plz illustrate through an example telling what xactly are "import " and "export" parameters. For Eg: i want to enter user id through a jsp page ; based on which i want user details to be fetched from BAPI thru RFC.

  2. Former Member

    Continuing to above... what are import and export parameters in it??