Role Resolution Function Module and Container elements

Dave Aitken daitken2 at csc.com
Wed Jun 6 10:04:41 EDT 2001


Hello all,
 
I hope someone can help.
 
I have written my own role resolution function module in order to get a
list of approvers from a reference table, rather than by using the
Organisation Structure. This works fine, but I also wish to hold the names
of these approvers in a container element, so that if the approval deadline
has passed, the initiator of the workflow receives an email with the list
of approver names for that specific workitem. I want to be able to use the
expression in the email text to list the approver names. This is not
working.
 
I have set up the container element as a multiline input and output
container. I have also checked my binding which the system tells me is
consistent. When I use the expression function to pick up the container
element for the email text I can pick up the container element here.
 
I have debugged the function module in test mode, and AC_CONTAINER does
contain entries for my element, but when the email comes through, to notify
the initiator, the list of approver names is blank.
 
The field ACTOR_TAB-OBJID is filled with user names, and I have created an
internal table to hold this name called APPROVER. My code does the
following:
 
 LOOP AT ACTOR_TAB.
    APPROVER-NAME = ACTOR_TAB-OBJID.
    APPEND APPROVER.
  ENDLOOP.
 
  SWC_SET_TABLE AC_CONTAINER 'Approvers' APPROVER.
  APPEND AC_CONTAINER.
 
Can anyone tell me if there are any glaring errors in this bit of code, or
any other explanation for these names not appearing.
 
Many thanks
 
Dave Aitken
 


More information about the SAP-WUG mailing list