Hi all,
I just implemented a BAdI based on this here awesome blog post: Send e-mail after changing document status in solar02 to trigger an email to be sent when the status of a "blueprint document", i.e. NOT an incident, changes.
I have changed the coding provided in the post a bit, and it all works fine - now I am stuck, though: I want the mail to be sent to whoever is set as responsible for the SOLAR02 blueprint structure node the document belongs to. This responsibility is given in a customer attribute I have defined (pointing to standard username field).
As an example: I have a conception document for the process "test process". In the business blueprint SOLAR02, this document is saved under the node "test process". For this node, the person responsible is "testuser". I want the BAdI to find the corresponding node "test process", the "testuser" assigned to it and then send the email to him/her.
Now my question is: which tables should I select from to do that?
So far, the BAdI-coding gives me the "iwb_folder_id" for the document, which yields results in tables TTREE and TTREET, so I think the link to the structure works - but how to find the customer attribute value?
Thank you so much for your help and kind regards
Michel