Agent Detemination using Org Structure

harishraj harishraj2805 at gmail.com
Sun Jul 18 03:44:59 EDT 2010


Hello Yegorm,

Once again thank you for you valuable help.

I have created a responsibility rule with container variable to hold org
unit responsible for, and created a rule responsibility with relevant org
unit. With FM RH_GET_ACTORS I am able to determine the org unit id
programatically.

Thanks
Harish

-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of
yegorm
Sent: Sunday, 18 July 2010 4:34 AM
To: SAP Workflow Users' Group
Subject: Re: Agent Detemination using Org Structure

Harish,

To avoid harcoding (which is obviously too inflexible), you should
find some way to keep the id as some system setting\customization, and
read it  from your code.
For example you can create a responsibility rule "Orgunit responsible
for ..." and evaluate its value with RH_GET_ACTORS.
Get more info on responsibility rules here:
https://cw.sdn.sap.com/cw/docs/DOC-44595




On Sat, Jul 17, 2010 at 5:43 PM, harishraj <harishraj2805 at gmail.com> wrote:
> Hello Yegorm,
>
> Thank you very much for your kind help.
>
> Yes, the evaluation path B003 provides me the list of positions under the
> organizational unit. I have tested this with the function module suggested
> by you; it is providing me the list of positions under the org unit.
>
> Sorry to trouble you again, but the function module RH_STRUC_GET receives
> the object id as parameter, so I have to give my org unit object ID as
> parameter, when I transport the org unit to production environment, should
I
> change function module parameter?
>
> Thanks
> Harish
>
> -----Original Message-----
> From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of
> yegorm
> Sent: Saturday, 17 July 2010 2:24 PM
> To: SAP Workflow Users' Group
> Subject: Re: Agent Detemination using Org Structure
>
> Hello, Harish!
>
> As i get it, here is what you need:
>
> input: a purchase org, a merchandise category, an org unit
> output:
>  list of positions
> requierment:
> resulting list should be defined as the intersection of two lists:
> 1) positions attached to given purchase org or merchandise category
> 2) positions belonging to given org unit
>
> To get the second list you can use fm RH_STRUC_GET with an appropriate
> evaluation path (something like O-O-S - I'm sorry I don't have access
> to a sap system right now to give you exact name. you can test if you
> chose the right eval path in transaction PPST)
>
>
>
> On Sat, Jul 17, 2010 at 1:09 AM, harishraj <harishraj2805 at gmail.com>
wrote:
>> Hello All,
>>
>>
>>
>> We are planned use org structure (purely for workflow) for agent
>> determination in our workflow. We have more than 50 positions attached to
>> different org unit.
>>
>> For Example
>>
>> Org Unit A
>>
>> -          Position A1
>>
>> -          Position A2
>>
>> -          Position A3
>>
>> Org Unit B
>>
>> -          Position B1
>>
>> -          Position B2
>>
>> -          Position B3
>>
>>
>>
>> Within the Org Unit, the positions will be attached to SAP Business
Object
>> like Purchase Org, Merchandise Category, etc.
>>
>>
>>
>> And we are planning to use the custom function module to determine the
>> position attached purchase org and merchandise category, up to this point
>> everything works fine. But here the challenge is we want only the
> positions
>> under Org Unit A having relevant purchase org and merchandise category,
> but
>> the custom function module will determine all positions having these two
>> parameters across all org units.
>>
>>
>>
>> Is there any best way to determine the agent for this scenario without
hot
>> coding Org Unit. Currently we are exploring other possibility of
attaching
>> custom attribute to position to identify it is belongs to Org Unit A or B
>> etc. Or following naming convention against org unit and filtering
> positions
>> within org unit and applying the objects search.
>>
>>
>>
>> Apologise for lengthy question.
>>
>>
>>
>> I greatly appreciate your valuable suggestions and feedbacks.
>>
>>
>>
>> Thanks
>>
>> Harish
>>
>>
>>
>>
>>
>> _______________________________________________
>> 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
>
>
> _______________________________________________
> 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





More information about the SAP-WUG mailing list