Job as responsible agent

Maorriyan maorriyan_santoso at yahoo.com
Thu Jan 20 12:18:05 EST 2005


Hi Richard,
Thanks for your reply.
Sorry not to inform to you previously. Actually I
already tested to use SAP_TAGT as input field in
ACT_WEGID but I'm facing same error. Then I tried to
use job (C) 50000752 as my responsible agent directly
and I'm facing same error message.
Richard, if you have any other input, please let me
know.
I'll try to create organization structure first and
link the job to my organization id.

Best Regards,

Maorriyan
 --- rvmarut at earthlink.net wrote: 
> Maorriyan,
> 
> SAP_TAGT is the value that needs to be passed to the
> function module through ACT_WEGID. It dictates
> exactly what SAP should do/look up with the the
> module.
> 
> As for the job id, take a look at the code and you
> will see that the code is expecting the object type
> and id to be in the container.
> 
> Richard...
> 
> 
> -----Original Message-----
> From: Maorriyan <maorriyan_santoso at yahoo.com>
> Sent: Jan 19, 2005 8:00 AM
> To: SAP Workflow Users' Group <sap-wug at mit.edu>
> Subject: RE: Job as responsible agent
> 
> Hi Richard,
> What's you mean by use SAP_TAGT?? What's SAP_TAGT?
> I was trying RH_GET_STRUCTURE from SE37 and in
> ACT_WEGID I put my job id 50000752 but system come
> up
> with 'No agent found'.
> What's my mistake?
> 
>  --- Richard Marut <rvmarut at earthlink.net> wrote: 
> > 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
> > 
> > 
> > _______________________________________________
> > SAP-WUG mailing list
> > SAP-WUG at mit.edu
> > http://mailman.mit.edu/mailman/listinfo/sap-wug
> >  
> 
> =====
> 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
> 
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>  

________________________________________________________________________
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