cancel
Showing results for 
Search instead for 
Did you mean: 

JCOFunction getStructure

Former Member
0 Kudos

hi all,

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,

EX: function.getExportParameterList().getStructure("RETURN");

is there any standard list of index available? since the parameter what we are passing looks like hardcoded.

Any help is greatly appreciated,

-bs

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello bs,

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).

Regards,

Daniel

former_member182372
Active Contributor
0 Kudos

Hello bs,

JCO.ParameterList implements IMetaData interface and you can use getFieldCount(), getExtendedFieldMetaData(int index) and getMetaData(int index) methods.

Regards Maxim R.