Skip to Content

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

Status of a row in java


I'm doing an application and I whant obtain the status of a row in the client on run time. how can do it?


Former Member
Former Member replied

Hello Juan,

you want to get the status of a row?

Well, I guess you want to read a single row? The MDK gives you a great overview about the MI Persistence API - there you fiond exactly what you are looking for.

In general: you have a SyncBO. If you for example want to print the status of the top rows of the sync BO, the coding would be pretty much like:

try {

SyncBoDescriptor sb_Descriptor = SmartSyncRuntime.getInstance().getSyncBoDescriptorFacade().GetSyncBoDescriptor(<<Name_Of_SyncBO>>);

SyncBoDataFacade sb_DataFacade = SmartSyncRuntime,getInstance().getSyncBODataFacade(VisibilityType.SEPARATED);

SyncBoCollection sb_List = sb_DataFacade.getSyncBOs(sb_Descriptor);

MeIterator iter = sb_List.iterator();

while (iter.hasNext()) {

SyncBo syncBO = (SyncBo);

System.out.println("Status :"+syncBo.getStatus().toString());

} //end while

} catch (PersistenceException ex) {

//whatever you will do here


Well, I hope this gives you an idea how to access separate values in the code.

If you need access to a single item of a row, you can easily access it with its RowDescriptor method for example. But as I said in the beginning of my answer, it makes sence to have a deep look into the MDK here, this will give you a great overview.



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question