Job as responsible agent

Richard Marut rvmarut at earthlink.net
Tue Jan 18 08:22:37 EST 2005


Use function module RH_GET_STRUCTURE right after your loop to resolve the
assignment to users. Use SAP_TAGT for import parameter ACT_WEGID.

Richard...

-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of
Maorriyan
Sent: Tuesday, January 18, 2005 6:45 AM
To: SAP Workflow Users' Group
Subject: Job as responsible agent

Good day all,

Sorry if I repost this question since I haven't get
any satified andwer yet.

My clients doesn't want to maintain any organization
structure, but I have requirement to assign
responsible agent using organization object type job
(C).

I have a method that executed by background task to
determine agent.

*constants: c_c(2)  type c value 'C',
*           c_space type c value ' '.

*DATA: BEGIN OF ijob OCCURS 0,
*       job LIKE wfsyst-agent,
*END OF ijob.

*DATA: BEGIN OF izsgmmpwf01 OCCURS 0,
*        werks LIKE zsgmmpwf01-werks,
*        mtart LIKE zsgmmpwf01-mtart,
*        sttxt LIKE zsgmmpwf01-sttxt,
*        agr_name LIKE zsgmmpwf01-agr_name,
*        agr_name_appr LIKE zsgmmpwf01-agr_name_appr,
*END OF izsgmmpwf01.

*LOOP AT izsgmmpwf01.
*  SELECT single objid INTO ijob-job
*         FROM hrp1001
*         WHERE otype = 'C'
*         AND plvar = '01'
*         AND rsign = 'B'
*         AND relat = '038'
*         AND istat = '1'
*         AND infty = '1001'
*         AND subty = 'B038'
*         AND sclas = 'US'
*         AND sobid = izsgmmpwf01-agr_name.
*    CONCATENATE c_c ijob-job INTO ijob-job SEPARATED
BY c_space.
*    APPEND ijob.
*  ENDSELECT.
*ENDLOOP.

I check the result the result in my 'Job' container
and it's containing 'C 50165784'

So in my responsible agent I choose expression and
this expression contain my 'Job' container and my
possible agent AG Role where this AG Role contains
users: A,B,C,D,E.

Also in expert mode (PO03), I'm using infotype 1001
and subtype A/B 038 to link between job (C 50165784)
with user A (US A)

Unfortunately when this task is executes it come up
with error 'Agent determination for step '0000000045'
failed and 'Result of agent resolution does not agree
with agents of task'



=====
Maorriyan

________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html
_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug




More information about the SAP-WUG mailing list