Job as responsible agent

Maorriyan maorriyan_santoso at yahoo.com
Tue Jan 18 07:44:54 EST 2005


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


More information about the SAP-WUG mailing list