cancel
Showing results for 
Search instead for 
Did you mean: 

SUP2.1.3 Android "no such operation exception"

Former Member
0 Kudos

Hi All,

I have an android project which consist some SAP MBO and I want to save a line item to the local database with the following code but cause error:

T_AVLITEM newItem = new T_AVLITEM();

newItem.setAVLNO("1");

newItem.setANLN1("2");

newItem.save();  <-- error

Project cause a run time error of "NoSuchOperationException", Can anyone see what I might be doing wrong?

Please help.

Regards

Choong

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I'm Having the same problem, Have you found a solution?

Regards,

Laguerta

0 Kudos

Try these Steps:

1. Deploy again the MBO project in SUP

2. Restart the SUP Server

3. Generate Code

4. import the new code into Android Project

5. uninstall the apps from device.

6. install the new project and test.

Former Member
0 Kudos

Hi Choong,

You have to use <project name>DB.save();

Regards,

Srinivas Divakarla

Former Member
0 Kudos

Hi Srinivas Divakarla,

There is no <project name>DB.save(); available.

Regards,

Choong

Former Member
0 Kudos

Hi Choong,

I hope you are developing a native android application and you have created MBOs deployed the project in unwired server and generated the code.

In the generated code, you must be having a <project name>DB.java you need to import the necessary class files to proceed further.

Regards,

Srinivas Divakarla

midhun_vp
Active Contributor
0 Kudos

Right click on the SUP project -> Generate code.

Import the code to the folder src inside android project.

Then will be able to call the DB and method on side your classes.

EX:SUPProjectDB.save();

Former Member
0 Kudos

Hi Srinivas Divakarla,

Thanks for your reply and sorry for the confusing.

I imported the necessary class and <project name>DB.java into eclipse project, what I means not available was the save() method in <project name>DB.java is not there.

The <project name>DB.java has synchronize(), executeQuery() etc but there is no save().

Is that any problem with my <project name>DB.java file?

Regards,

Choong

Former Member
0 Kudos

Hi Midhun VP,

Thanks for your reply. Attached herewith the sample of SUP101DB.java I generated in txt format.There is no save() method.

Please advise.

Regards,

Choong

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

sorry please attach this T_AVLITEM.java file

midhun_vp
Active Contributor
0 Kudos

To understand the problem in detail please add step by step procedure that you did. And more details on the issue.