cancel
Showing results for 
Search instead for 
Did you mean: 

SUP 2.1 Windows Mobile : Cannot update device database.

Former Member
0 Kudos

We are developing a Native Windows Mobile application using SUP 2.1.

We are interfacing to SAP using a custom BAPI. We have created multiple related MBOs based on the custom BAPI and can use it to populate the database on the hand held device. We are trying to make changes to the data in the device database and save them but so far we have not succeeded. The code we are using looks like...

PRODUCT prd = PRODUCT.FindByPrimaryKey("950242");

prd.brand = "Good";   
   
prd.Save();


(PRODUCT is a class in the SUP generated code and represents one of the MBOs created from the custom BAPI)

After execution we see no change to the device database. No errors are produced (that we can see). Essentially we want to be able store captured data while the application is off line.

Can we make changes to the local database and if so how?

We would be grateful for any help offered.

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Again.

After some trial and error we have worked out that if we create an update operation based on another BAPI and call that operation rather than using Save(), we can update the local device data. The code now looks like...

     PRODUCT prd = PRODUCT.FindByPrimaryKey("950242");

     prd.brand = "Good";   
   
     prd.myUpdateOperation();

     myDB.SubmitPendingOperations();


Our issue now is that our update operation needs to take input data from multiple related MBOs. We would like it to work as follows...

1. We update the related MBOs with captured data.
2. We call our update operation, consolidating all the required data from the related MBOs.


The issue is with step 1. Can we save the related MBOs data without requiring a BAPI (or other EIS operation) to define update operations on these MBOs?

Thanks.