on 2013 Oct 04 3:06 PM
Hello,
I am trying to fetch the email ID of the owner of a master agreement. This is how I 'm doing it.
Following is the script :
NewUserAccountIBeanHomeIfc userAccountHome = (NewUserAccountIBeanHomeIfc)IBeanHomeLocator.lookup(session,com.sap.odp.api.usermgmt.masterdata.NewUserAccountIBeanHomeIfc.sHOME_NAME);
userAccountBean = userAccountHome.findByName(doc.getDocumentOwnerUserReference().getDisplayName());
receiver_email = userAccountBean.getEmail();
Now I 'm getting this exception - Error executing script: Sourced file: inline evaluation of: ``import com.sap.odp.api.ibean .*; import com.sap.odp.api.doccommon.masterdata .* . . . '' : null
Looks like nothing is being fetched. Where am I going wrong? Please help. Thanks in advance.sa
Request clarification before answering.
Hi Shreya,
You might want to do the following to retrieve the MA owner email id:
import com.sap.odp.api.common.platform.IapiAccountLocator;
ownerRef = doc.getDocumentOwnerUserReference();
owner = IapiAccountLocator.lookup(session, ownerRef);
email = owner.getEmail(); // Print this or use as you want.
Hope this helps!
Regards,
Bindu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.