Skip to Content
0
Former Member
Apr 18, 2008 at 10:14 AM

ModificationNotAllowedException

17 Views

Hi All,

I am trying to update certain field values in top row of syncbo which is of type S01… however when I try to do that.. I am getting the following exception…

com.sap.ip.me.api.smartsync.ModificationNotAllowedException: Modification on Field cZDBMVHCLE_TOP_VACTION with value QGOR is not allowed because SyncBo of Row 0001116159 is SYNCED and ModifyInputQualifyType is FORBIDDEN

the code I am using is as follows:

String parmVaction="QGOR";

Row vehicleRow=null;

SmartSyncTransactionManager transactionManager;

try{

transactionManager = dataFacade.getSmartSyncTransactionManager();

SyncBoDescriptor sbd =descriptorFacade.getSyncBoDescriptor("ZDBMVHCLE");

RowDescriptor rdrow = sbd.getTopRowDescriptor();

FieldDescriptor fdVaction=rdrow.getFieldDescriptor("VACTION");

FieldDescriptor fdSynckey=rdrow.getFieldDescriptor("SYNC_KEY");

transactionManager.beginTransaction();

//vehicleRow.getNumericField();

SyncBo sb = dataFacade.getSyncBo(sbd,"0001116159");

vehicleRow=sb.getTopRow();

vehicleRow.modifyFieldValue(fdVaction,parmVaction);

SyncBo vData=dataFacade.getSyncBo("ZDBMVHCLE");

vData.modifyRow(vehicleRow);

dataFacade.replaceSyncBo(vData);

transactionManager.commit();

}catch(Exception e){

e.printStackTrace();

}

Waiting for ur reply..

Regards,

Sahidur.