Skip to Content
0
Former Member
Aug 19, 2015 at 11:48 AM

Fetching Group Ben

20 Views

Hi ,

We are in sourcing 10.0.

Need help on piece of code to achieve one requirement.

I am trying to fetch group bean but no luck!! here is my code ,,

I have logged it I am not getting any value in groupBean.

if(collaboratorType.equals("group"))

collabGroupMemObj= collaboratorMember.getPrincipal();

mchl_LogIt("Principal:"+collabGroupMemObj.getDisplayName());// VALUE : collaboratorMember:Principal: XYZ, Role: Collaborator, Source: USER(showing in logs)

groupHome=IBeanHomeLocator.lookup(session, com.sap.odp.api.usermgmt.masterdata.GroupIBeanHomeIfc.sHOME_NAME);

groupBean = groupHome.find(collabGroupMemObj);

mchl_LogIt("groupBean:"+groupBean);///// NOT DISPLAYING ANY VALUE

Can anybody help me on this where I am wrong.

Thanks in Advance.

Regards, Geetika