General Coding Changes
Because both the old and the new JCo API is available in AS Java Release 7.1, it was necessary to change the naming convention for the new API Java packages to avoid redundancies.
The previous convention (which is still valid for the old API) com.sap.mw.jco* has been changed to com.sap.conn.jco*.
The sequence of values for setValue()operations has been changed to adapt it to the standard convention.
The majority of these changes are recognized by the compiler, but unfortunately not those that occur the most frequently (String,int <-> int,String).
● For all imports with the new JCo API, change the package names from com.sap.mw.jco* to com.sap.conn.jco*.
● Check the sequence of the String- and int-values of all setValue()operations and adapt the value sequence is required.

Example
The changed value sequence for setValue()operations is made clear in the examples below:
JCo 2.x
JCO.Structure myStruct=new JCO.Stucture(repository.getStructureDefinition(“FOOBAR”)); myStruct.setValue(“Madonna”, “ARTIST“); myStruct.setValue(“Lucky Star”, 1); // 1 is index of field SONG myStruct.setValue(3.87, “LENGTH”);
|
JCo 3.0
JCoStructure myStruct= JCo.createStucture(repository.getStructureDefinition(“FOOBAR”)); myStruct.setValue(“ARTIST“, “Madonna”); myStruct.setValue(1, “Lucks Star”); // 1 is index of field SONG myStruct.setValue(“LENGTH”, 3.87);
|