cancel
Showing results for 
Search instead for 
Did you mean: 

BoGenerator

Former Member
0 Kudos

Hi all,

The code generated by the BoGenerator has an import to a class that doesn’t exist.

com.sap.ip.me.api.smartsync.ObjectIterator. The class did exist in the 2.1 version of MEg.jar but not in the current 2.5 version.

I downloaded the SAP Mobile Development Kit 2.5. Which also includes the MDKPlugin. This plugin includes both BoGenerator.jar and MEg.jar.

Either the 2 jars don't match or I am doing something wrong. Has anyone solved this problem already?

Regards,

Michel

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi michel,

generally, ME2.1 APIs are not totally compatible with MI2.5 APIs. thus, you need

to re-write your code according to what is being offered by MI2.5 APIs.

If you need an iterator, MI2.5 has MeIterator. please refer to:

https://help.sap.com/javadocs/NW04/current/me/com/sap/ip/me/api/services/MeIterator.html

regards

jo

Former Member
0 Kudos

Hi Jo,

Thanks for your reply!

The problem is not in my code, but in the code that is generated by the BoGenerator. It has an import to com.sap.ip.me.api.smartsync.ObjectIterator which doesn't exist anymore. I can change it manually but that's not what I want. It shouldn't be there in the first place.

Regards,

Michel

Former Member
0 Kudos

I removed the import using the ant task replace. The class was never used.

[code] <replace dir="${generate.dir}/java" value="">

<include name="*/.java"/>

<replacetoken>import com.sap.ip.me.api.smartsync.ObjectIterator;</replacetoken>

</replace>[/code]

It works now, but looks like there's a bug in the BoGenerator.jar

Former Member
0 Kudos

hi,

the easiest thing to do is to modify the template that is included in the BoGenerator.jar.

extract the jar files and locate the template.txt under the location

com\sap\mbs\util\bogenerator\builder\bomanager\implclass

you can also found other templates for methods, etc... and you can customize

them to cater your needs. after you have made the changes in the templates,

repack the jar once again, put it the same location on the MDK plugin. then

restart your NWDS...

regards

jo