Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

synchronizewithBackend method

let's say i have a device which is offline. and i will go and collect warehouse info, after the day end, i will syncrhonized to the server.

this method, after will call the syncrhonized with backend after the value changed. but the device offline, what is the consequences, will it update the file I/O? or it will update the backend with RFC call but the device is offline ?

public void modifyRecord(String syncBoName,String syncKey){
			SyncBoDescriptor sbd=descriptorFacade.getSyncBoDescriptor(syncBoName);
			try {
				System.err.println("modify Record: " +syncKey);
				SyncBo sb=dataFacade.getSyncBo(sbd,syncKey);
				RowDescriptor tdes=sbd.getTopRowDescriptor();
				Row trow=sb.getTopRow();
				FieldDescriptor fd1=tdes.getFieldDescriptor("PROFESSION");
				trow.modifyFieldValue(fd1,"MOO");
			
				RowDescriptor trd=sbd.getRowDescriptor("010");
				Row[] item=getItemInstances(sb,"010");
				FieldDescriptor fd2=trd.getFieldDescriptor("CITY2");
				item[0].modifyFieldValue(fd2,"MU");  
				sb.modifyRow(trow);
				sb.modifyRow(item[0]);
				SyncManager smgr=SyncManager.getInstance();
				smgr.synchronizeWithBackend();
			
			} catch (PersistenceException e) {
				// TODO Auto-generated catch block
				System.out.println("Exception :" +e.getMessage());
				e.printStackTrace();
			}catch(Exception e){
				System.out.println("Exception: " +e.getMessage());
			}
			
		}

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question