Experts,
My workflow needs to select emails from SAP user ID. The following is the function module:
EFG_GEN_GET_USER_EMAIL
EXPORTING
L_name = XXXXX
IMPORTING
e_mail address = XXXXX
EXCEPTIONS
Not Qualified
User not found
Address_not_found
others
I have ensured that the parameters I_uname and e_mail_address are valid types. The task is set up in the background. However when running the workflow the activity stops at the function module.When I debugged the workflow using SWUS , the code works fine until it hits the function module above and then stops. However when I hard-code an email address and comment out the function module the workflow works just fine and populates my task container with the email address. This is not a permanent solution as the workflow has to select multiple email addressess.
Does anybody out there encounter a similar issue or can you indicate some fundamental mistake that I am making?
Thank you.
David Dittmer