If you want to get Hub State Ind of Record in Base Object, you can use following code illustration for same:
GetRequest req = new GetRequest();
req.setSiperianObjectUid("BASE_OBJECT.MY_BASE_OBJECT"); // Name of the BO
RecordKey identity = new RecordKey();
identity.setRowid("8848484"); // Rowid Object of the Record
identity.setSystemName("SAP"); //Source System Name
req.setRecordKey(identity);
RecordTypes recTypes = new RecordTypes();
recTypes.setXrefType(true);
recTypes.setDeletedXrefType(true);
req.setRecordTypes(recTypes);
GetResponse res = (GetResponse) sipClient.process(req);
String hubStateInd =null;
List<Record> recList = res.getRecords();
for (Record rec : recList) {
if (rec.getSiperianObjectUid().startsWith("XREF")){
Field field = rec.getField("HUB_STATE_IND");
hubStateInd = field.getValue().toString();
}
}
0 Comment(s)