Iam a newbie to JCO, iam working on a sample program where iam creating a function , from that function am able to get ExportParameterList , through this parameterlist iam able to get the structure.
My Question is to get the structure we need to pass the index as the parameter,
is there any standard list of index available? since the parameter what we are passing looks like hardcoded.
Any help is greatly appreciated,
JCO.Record has an overloaded method getStructure. By convention, every BAPI (a more formally remote enabled function module) should have a return structure (named return) of type BAPIRET*. In your example you get this return structure. An other way to get this structure is to set the index as parameter. This is the index of the field in the export parameters of the function module (see transaction SE37 in SAP R/3).