on 09-20-2005 5:35 PM
Hi all,
we are using MI 2.5 SP13 to run a client developped inventory application. We developed a syncbo representing a physicalinventory document using the following bapis:
- BAPI_MATPHYSINV_GETLIST
- BAPI_MATPHYSINV_GETDETAIL
- BAPI_MATPHYSINV_COUNT
The type of the syncbo is T01.
Downloading the syncbos to the mobile client is working fine. Modifying the syncbos is working as well, but when we want to synchronize the modified syncbos with MI server the troubles start:
We get a conflict saying the syncbo has been modified on the backend as well, and the client is updated with the data from the server. That means the modified data from the client is lost and the inventory document is not updated in the backend system.
When we redo the modification of the syncbo and redo the synchronization, everything is working fine.
Our questions are:
- why is there a conflict the first time?
- is there a way to find out which fields are causing the conflict?
Thanks for help,
Barbara
Hi Barbra,
You might be able to figure out whats happening using this code.
ErrorConflictInbox errorConflictInbox= SmartSyncRuntime.getInstance().getInboxNotifier().getErrorConflictInbox();
//For all the synbos.
MeIterator it;
try {
it = errorConflictInbox.getAllSyncBoResponses();
while(it.hasNext()){
SyncBoResponse resp = (SyncBoResponse)it.next();
}
} catch (PersistenceException e) {
e.printStackTrace();
} catch (SmartSyncException e) {
e.printStackTrace();
}
You can then use the SyncBooResponse to get the Error/Conflict Text message from the server (<b>resp.getText()</b>) or the message Number (<b>resp.getMessageNumber(</b>))
Hope this helps,
Wael
Message was edited by: wael aoudi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
9 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.