New Agents are not receiving existing WorkItems

Soady, Phil phil.soady at sap.com
Thu Apr 17 22:47:53 EDT 2003


Even easier way.
Create a maint. view on table HRUS_D2.
Generate the maintenance screen (table maint generator) on the this view.
 
Wha la, sm30 maintains ALL substitutions !!!!!
No mods, and only slightly hacking....
 
As for the an "intellectual"  (euphemism for hack)
way of solving what was referred to as a bug.
 
Write a small program, that selects the workitems in question.
then calls SWW_WI_AGENTS_CHANGE
Adding all users (not just the new one).
 
I use this little hack when you have a custom
ESS option allowing a user to forward an item
to an extra approver because  the current approver cant
get to their inbox.  Ie A controlled forward tool.
 
hth
 
 
Phil Soady
Senior Consultant
Business Technologies
SAP Australia
* : 0412 213 079
* : phil.soady at sap.com
 
 
 
 
 
-----Original Message-----
From: Balasubramaniam, Swaminathan [mailto:SBalasubramaniam at medrad.com]
Sent: Friday, April 18, 2003 5:27 AM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: New Agents are not receiving existing WorkItems
 
 
Thanks a lot.
 
Swami
 
-----Original Message-----
From: Jaeger, Carsten (Calgary) [mailto:Carsten_Jaeger at nexeninc.com]
Sent: Thursday, April 17, 2003 3:19 PM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: New Agents are not receiving existing WorkItems
 
 
We built a custom tcode that allows the Workflow administrator to maintain substitutes on behalf of a user (it was too much trouble to get teach all our users this all the time).  It's based on a call to function RH_SUBSTITUTES_LIST.  You'll need to ensure you have proper authority to access this.
 
tcode = ZWF_SUB_MAINT
pgm = ZWF_SUBSTITUTE_MAINTAIN
 
Here's the code:
I have removed anything that could be deemed dangerous <grin>.  If you're going to use it, try it in your sandbox first.  Good luck.  cj
 
 
 
 
 
*   Description   : Allows WF_Admin role and SAP_Security role to      *
*                   maintain Substitutes on behalf of other users.     *
*                   Normally this functionality is only available to   *
*                   the end user through the business workplace.       *
*                   This allows us to perform this function in the     *
*                   event that a user is ill or on holidays.           *
*                                                                      *
*   Called by T-Code: ZWF_SUB_MAINT                                    *
*----------------------------------------------------------------------*
 
*----------------------------------------------------------------------*
*           M O D I F I C A T I O N         H I S T O R Y              *
*----------------------------------------------------------------------*
* Changed By      : xxxxx                                    *
* Changed On      : xxx                                      *
* Change Request  : xxx                                         *
* Description     : Added functionality to allow a list of past and    *
*                   current substitutes to be shown if desired through *
*                   user selecting the Subs List Only parameter        *
*----------------------------------------------------------------------*
 
*=========================================================*
*           N a m i n g     C o n v e n t i o n s         *
*=========================================================*
*   L_    |   Local Variable                              *
*   LC_   |   Local Constant                              *
*   LT_   |   Local Internal Table                        *
*   LR_   |   Local Range Table                           *
*   F_    |   Form Parameter
*   G_    |   Global Variable                             *
*   GC_   |   Global Constant                             *
*   GT_   |   Global Internal Table                       *
*   GS_   |   Global Structure                            *
*   GR_   |   Global Range Table                          *
*   FT_   |   Table decalared for Form (Subroutine)       *
*   SO_   |   Select-Options                              *
*   P_    |   Parameters                                  *
*   CB_   |   Check Boxes                                 *
*   RB_   |   Radio Buttons                               *
*   T_    |   Type Declaration                            *
*=========================================================*
 
*--------------------------------*
*--- Global Data Declarations ---*
*--------------------------------*
 
 
*<--- Tables --->*
TABLES: hrus_d2.   "Keeps a list of all substitutes
 
*<--- Parameters --->*
PARAMETERS: p_userid LIKE swhactor-objid OBLIGATORY,
            p_list AS CHECKBOX DEFAULT ' '.
 
*<--- Main Routine --->*
IF p_list = 'X'.
  SELECT * FROM hrus_d2 WHERE us_name = p_userid.
    IF hrus_d2-endda LT sy-datum.
      EXIT.
    ENDIF.
    WRITE: / hrus_d2-rep_name(10), hrus_d2-begda, hrus_d2-endda.
  ENDSELECT.
  IF sy-subrc NE 0.
    WRITE: / 'User', p_userid, 'not found in HRUS_D2 table'.
  ENDIF.
ELSE.
  CALL FUNCTION 'RH_SUBSTITUTES_LIST'
    EXPORTING
      us_type                  = 'US'
      us_id                    = p_userid
      act_plvar                = '01'
*   ACT_BEGDA                = sy-datum
*   ACT_ENDDA                = '99991231'
*   MAINTAINANCE_FLAG        = ' '
*   ACT_MODE                 =
    EXCEPTIONS
      no_active_wf_plvar       = 1
      otype_not_valid          = 2
      object_not_valid         = 3
      OTHERS                   = 4
            .
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
ENDIF.
 
-----Original Message-----
From: Balasubramaniam, Swaminathan [mailto:SBalasubramaniam at medrad.com]
Sent: Thursday, April 17, 2003 12:31 PM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: New Agents are not receiving existing WorkItems
 
 
CJ and Alon,
Thanks for your suggestion. I think I have it working based on CJ's suggestion. Is there a way , I can make this substitution? The way I have it working now is, I asked the old user to go to their SAP inbox and maintain the new user as a substitute. It works well.
 
Thanks
Swami
 
-----Original Message-----
From: Alon Raskin [mailto:araskin at 3i-consulting.com]
Sent: Thursday, April 17, 2003 2:12 PM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: New Agents are not receiving existing WorkItems
 
 
I am on release 6.10 and I do not have this transaction neither. Which version of SPA are you running?
 
Swami, I think CJ's suggestion is your best bet so far.
 
Alon Raskin
3i Consulting Group
e: araskin at 3i-consulting.com
w: http://www.desktopworkplace.com
 
 
-----Original Message-----
From: SAP Workflow [mailto:Owner-SAP-WUG at MITVMA.MIT.EDU] On Behalf Of Ramki Maley
Sent: 17 April, 2003 4:32 PM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: New Agents are not receiving existing WorkItems
 
Check if your SAP release has the transaction SWI1_RULE - Execute Agent Rules for Work Item (Program RSWIWILS). You can select the task for which you want to reexecute the rules.
 
Regards,
Ramki.
 
 
 
 
 
 
                      "Jaeger, Carsten
                      (Calgary)"                 To:
SAP-WUG at MITVMA.MIT.EDU
                      <Carsten_Jaeger at nex        cc:
                      eninc.com>                 Subject:  Re: New
Agents are not receiving existing WorkItems
                      Sent by: SAP
                      Workflow
                      <Owner-SAP-WUG at MITV
                      MA.MIT.EDU>
 
 
                      04/17/03 10:49 AM
                      Please respond to
                      "SAP Workflow
                      Users' Group"
 
 
 
 
 
 
Hi, Swami:
One of the ways I've solved this is to make the new person a substitute of one of the existing people in the workcenter.  This allows the new person to see items that have been created previously.  I usually let the substitution last for a month or so - at least until existing work items have been cleared.  We use this in a situation where we have Accounts Payable clerks doing similar jobs, i.e. it doesn't matter which one of them executes the workitem, but the new person definitely needs to work on items that were created before they joined the team.
 
Hope this helps.  cj
 
-----Original Message-----
From: Balasubramaniam, Swaminathan [mailto:SBalasubramaniam at medrad.com]
Sent: Thursday, April 17, 2003 8:13 AM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: New Agents are not receiving existing WorkItems
 
 
Hi,
We have a Workflow which uses a Role to route Workitems to corresponding agents. The Role basically looks at the workcenter and grabs all the agents.
 
 
Whenever a new agent is added to the workcenter, all existing workitems which are still in ready status does not reflect the new agent. However, any new workitem created gets routed to the new agent. How can I fix this issue for existing workitems, which are in ready status?
 
 
TIA
Swami
 


More information about the SAP-WUG mailing list