cancel
Showing results for 
Search instead for 
Did you mean: 

openForRead() must be called first!

Former Member
0 Kudos

Hi All,

I am facing an error openForRead() must be called first! while doing update operation.

Below is my code

Employee emp = new Employee();

emp.setAge("20");

GenericList<EmployeeG> arrlist = new GenericList<EmployeeG>();

EmployeeG gDetail= new EmployeeG();

gDetail.setLastMothsalary();

arrlist.add(gDetail);

emp.update(arrlist);

emp.submitPending();

EmployeeMDB.synchronize();

Regards

Anupam

Accepted Solutions (0)

Answers (1)

Answers (1)

midhun_vp
Active Contributor
0 Kudos

You have to use an operation to update the data to SAP, but from your code I can see that you are calling the set method to update the ultraliteDB and calling sync that won't work. What is your requirement ?

Midhun VP