cancel
Showing results for 
Search instead for 
Did you mean: 

Building a custom repository using JCO3

Former Member
0 Kudos

Hi,

can somebody tell me how to programmatically generate a JCO (version 3!) repository? I'm fine doing this in JCO version 2, however for version 3 the whole API seems to have changed and there's not much documentation besides the Java doc.

I think for scalar parameters it should work as follows:

JCoListMetaData imports = JCo.createListMetaData("IMPORTING_PARAMETERS");

imports.add("ID",JCoMetaData.TYPE_INT,4,4,JCoListMetaData.IMPORT_PARAMETER);

However how is this done for structures and tables that look e.g. like as follows:

type PERSON

ID TYPE I

NAME(255) TYPE C

FIRSTNAME(255) TYPE C

Any help would be greatly appreciated!

Sebastian

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member218672
Active Contributor
0 Kudos
Former Member
0 Kudos

The simplest way to achieve custom repository is use JCo class static methods:

JCo.createCustomRepository();

JCo.createRecordMetaData();

JCo.createListMetaData();

etc.

regards

servee