on 2004 Nov 23 6:10 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello bs,
JCO.ParameterList implements IMetaData interface and you can use getFieldCount(), getExtendedFieldMetaData(int index) and getMetaData(int index) methods.
Regards Maxim R.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.