Pieter Rijlaarsdam
Read all my blogsThe other day I was struggling with determining emailaddresses in SAP Workflow.
In my case, I was looking for the email address of a user assigned to a businesspartner, assigned to the lead I was working on.
In BUS2000108, there is an attribute ‘EMPLOYEERESPONSIBLEUSER’.
The attribute is of type USR01, which is nice, but does not contain the attribute ‘Emailaddress’…
Whilst looking around, I noticed another business object, named ‘BUS4101’, that could also eat usernames. The BUS4101 apparently does contain my emailaddress.
Great news… But how to get from a username to the attached emailaddres when the definition of the attribute is of the wrong type?
Browsing over the internet, I found that there is a method GENERICINSTANTIATE in object SYSTEM.