on 03-05-2013 10:26 AM
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
I'm Having the same problem, Have you found a solution?
Regards,
Laguerta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Choong,
You have to use <project name>DB.save();
Regards,
Srinivas Divakarla
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
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.