Hi Anita,
Yes, something is missing there:
- the getOrganizationalUnitRef method returns an ObjectReferenceIfc, not the BusinessUnitIBeanIfc.
What you'll need to do is:
buObjRef = doc.getOrganizationalUnitRef(); buHome = IBeanHomeLocator.lookup(session, buObjRef); businessUnit = buHome.find(buObjRef);
From the businessUnit variable you can call all methods available on BusinessUnitIBeanIfc.
PS: Good to see you around here, it's been a long time
Regards,
Bogdan Toma