Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • SIF API to get Hub State Ind of Record

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 633
    Comment on it

    If you want to get Hub State Ind of Record in Base Object, you can use following code illustration for same:

    1. GetRequest req = new GetRequest();
    2.  
    3. req.setSiperianObjectUid("BASE_OBJECT.MY_BASE_OBJECT"); // Name of the BO
    4. RecordKey identity = new RecordKey();
    5. identity.setRowid("8848484"); // Rowid Object of the Record
    6. identity.setSystemName("SAP"); //Source System Name
    7. req.setRecordKey(identity);
    8.  
    9. RecordTypes recTypes = new RecordTypes();
    10. recTypes.setXrefType(true);
    11. recTypes.setDeletedXrefType(true);
    12. req.setRecordTypes(recTypes);
    13.  
    14. GetResponse res = (GetResponse) sipClient.process(req);
    15. String hubStateInd =null;
    16. List<Record> recList = res.getRecords();
    17. for (Record rec : recList) {
    18. if (rec.getSiperianObjectUid().startsWith("XREF")){
    19. Field field = rec.getField("HUB_STATE_IND");
    20. hubStateInd = field.getValue().toString();
    21. }
    22. }

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Reset Password
Fill out the form below and reset your password: