Responsibility rule in workflow
hi ,
i have created a resposibility rule for workflow.
i want to agent assignment to the responsibilitys.
i have implementd in client 060.
i want to do agent assignment in client 090.
that icon is disable in 090 client.
how cani do agent assignment for diffrent clients.
<b>i cant transafer the agent assignment in the workflow, becuase positions client dependent.</b>
pls give me suggestion.
Thanks
Sankar
Message was edited by: sankar surya
Sankar,
You have to use txn OOCU_RESP to maintain agent assignments for responsibility rules in different clients.
Cheers,
Ramki Maley.
Similar Messages
-
Responsibility rules : Agent determination only works after restarting the WF
Hi Experts,
We are facing a very strange issue related to agent determination in one of our custom workflow:
For agent determination we are using a responsibility rule with two parameters "Company code" and "Plant".
The responsibility rule works well and returns the agents for all the company code.
Recently I have added few company codes to this responsibility rule in the same way we used to maintain and simulate it . It returns the correct agent for newly added company codes but at run time the agent determination is getting failed and the WF goes into an error because of it. However when i restart the WF via SWPR it works well and the agent determination works well either.
This is only happening for newly added company codes the old ones agent determination work well at the run-time.
Pls suggest what could cause this problem. If there is a problem in responsibility rule then why it works after restarting from SWPR.
Thanks in advance. The helpful/correct answers will be rewarded.
Regards,
HimHi Rick,
Thanks for replying.
1. Can you replicate this problem in the test system?
Yes I could replicate this issue in test system and it works fine there.
2. Is this a true responsibility rule or does e.g. a function module get called?
We have a responsibility where several responsibilities have been added with two parameters "company codes" and "plant". Every responsibility has a POSITION assigned into it and this position contains the related users.
This responsibility rule is getting called in one other rule with FM. Here in this another rule we are calling the responsibility rule by using the standard FM RH_GET_ACTORS to fill the ACTOR_TAB.
I have tried to simulate both the rules and it returned correct agents but failing at run time.
Regards,
Him -
How to do binding of rule with workflow
hi all
i have a problem regarding the binding of rule ,which i have maintained ,with the workflow on which i am working.
can any one please guide me how to do the binding of rule with workflow,the way am doing is like:
i have vreated a container element in workflow compatible with container element used in rule where agents are kept.
problem is arising when am trying to import that container in rule to my workflow ,at this step please suggest what should i bind in the binding of the workflow container.
the exact parameters detail will really appreciated.
am not new to the rule or workflow but somehow thing am doing is not working exactly the way i want it to be so.
full marks will be rewarded
best regards
ashishHi Ashish,
Please refer the following link. It may be helpful.
http://help.sap.com/saphelp_crm60/helpdata/en/c5/e4b0ae453d11d189430000e829fbbd/content.htm
Regards,
Johnny. -
What is a rule in workflows, when is it used
Hi,
Rule is widely used for determining the workitem responsible agents using any custom logic. You can create it using transaction PFAC. Once you create it you can use the rule in your activiy for assigning it to the agents.
You need to pass the required parameters to the rule container so that your custom logic reads it from there and determines the agents.
I am sure SAP documentation provides you a much detailed explanation on how to create and use rule. For reference you can check the rule 00000168.
Thanks,
Prasath N -
Hi all
What is rule in workflow . How to create one.
Kindly explain a scenario where rule is used.Hi,
Rule is widely used for determining the workitem responsible agents using any custom logic. You can create it using transaction PFAC. Once you create it you can use the rule in your activiy for assigning it to the agents.
You need to pass the required parameters to the rule container so that your custom logic reads it from there and determines the agents.
I am sure SAP documentation provides you a much detailed explanation on how to create and use rule. For reference you can check the rule 00000168.
1. Go to PFAC ---> 00000168 ---> display.
Check this for more Info.
http://help.sap.com/saphelp_nw04s/helpdata/en/04/926f8546f311d189470000e829fbbd/frameset.htm
Thanks,
Reward If Helpful. -
Org.determination responsibility rule
Hi Gurus
I have created the Org. determination responsibility rule for the lead transaction type,
When i enter the sales prospects the system will automatically pops up the sales offices.
It is working properly in the Development Server.
When i transport the request to the Quality Server, it is creating the duplicate sales offices.
What should i do to rectify itHi
I have checked it,
The Org. structure and sales office in the development server has different id that is
In development server it is
sales office1 50000655
sales office2 50000656
sales office3 50000657
sales office4 50000658
sales office5 50000659
where as in Quality server it is
sales office1 50000007
sales office2 50000008
sales office3 50000009
sales office4 50000010
sales office5 5000011
is bec. of this it is creating double sales offices in the Quality server when i transport the request from Dev. to Qty.
can u help me out -
Associate Business Rules with Workflow
Hi All,
We have a planning application, and forms are having some business rules.
Now our requirement is, when a user promote his cost center to another user, he should not have the access the Business Rules for that cost center.
so, is there any way that we can associate business rules with workflow?
Thanks in Advance,
Edited by: user12865804 on Oct 4, 2010 2:26 AMYa that will be a tricky one.
The only general comment is to build this into your process.
So you will give everyone a window to add To Be Hires during 1 or 2 week period. Then you block everyone and remove the ability to launch the script. Then managers review. So this becomes disconnected from "workflow" the tool inside of Planning.
You could build something but this would be way outside the out of the box process and I wouldn't want to go there personally. You would move the calc into a maxl script and build in code to validate against the workflow tables to see if the calc will work or not. This would require all sort of validate scripting and error handling and would require bring in some experts probably. The only other scenario is to troll the forums and maybe find someone how built something like this and get them to share their code.
In principal what you want sounds obvious and make sense to be in the tool. -
BOIS 4.2 - Disabling Rule Approval Workflow
Greetings,
How can we disable the rule approvals workflow in Information Steward ? from the application itself or from CMC ?
Regards,Rule Approval is a part of rule management and governance process around validation rules. It's not possible to disable the rule approval.
Can you explain your scenario and need for disabling the rule approval? -
BADI for MDGF rule based workflow
Hi Experts,
I am really struggling to get a badi that can route on field assigned in my single and agent decision tables. I have used the standard BADI that was provided in RDS documentation for BP and Materials and just tried to change the entity name and field names without success.
Can anyone please provide me with an example where someone has used this to route on field in finance.
I am trying to route on Segment for Profit center
Your help will be highly appreciated
Thanks and best regards
RiaanHi Abdullah,
I am using an existing attribute in the data model OG in the entity PCTR. The field name is PCTRSEG and element is fb_segment. In my rule based workflow in the Single decision table I have added fb_segment and I have populated the values against step 00. I have also updated my agent decision table with the fb_segment value.
I am attaching the BADI that I am struggeling with.
The service name for the change request is in the BADI filter. Thus when the requestor submit the Badi will be called and it will route to the person assigned in my agent decision table against the relevant segment..
My problem is the following:
The issue is that I don't know where I should maintain PCTRSEG and where I should maintain fb_segment in the BADI. Thus, where do I use the attribute name from the data model and where do I use the data element from the model.
When the requestor submit the request it does not go to the next approver and I get the error" Agent could not be determined"
I found ,when I change any of the values for the segment in the single and agent decision tables to not equal, example <> 1001 that the workflow works but all change requests will go to the same person.
Thus my assumption is that something might be wrong with the BADI
Your help will be highly appreciated
Thanks
Riaan
Please find Badi below
method IF_USMD_SSW_RULE_CNTX_PREPARE~PREPARE_RULE_CONTEXT.
DATA:
lo_crequest TYPE
REF TO if_usmd_crequest_api,
lt_entities TYPEusmd_t_crequest_entity,
ls_entity TYPE usmd_s_crequest_entity,
lr_table TYPE REF TO data,
lt_sel TYPE usmd_ts_sel,
ls_sel TYPE usmd_s_sel,
lv_brf_expr_id TYPEif_fdt_types=>id,
ls_context TYPEusmd_s_fdt_context_value,
lv_exit TYPE c.
FIELD-SYMBOLS: <lt_fin_int>
TYPE ANY TABLE,
<ld_fin_int> TYPE
any,
<pctrseg> TYPEfb_segment,
<value> TYPE
any.
* Prepare export parameters
CLEAR et_message.
CLEAR et_rule_context_value.
* Get the CR API for the current
CR
CALL METHOD cl_usmd_crequest_api=>get_instance
EXPORTING
iv_crequest = iv_cr_number
IMPORTING
re_inst_crequest_api = lo_crequest.
* Create data instance of the
entity PCTR for read access
CALL METHOD lo_crequest->create_data_reference
EXPORTING
iv_entity ='PCTR'
i_struct =if_usmd_model=>gc_struct_key_attr
IMPORTING
er_table =lr_table
et_message =et_message.
CHECK et_message IS
INITIAL.
ASSIGN lr_table->*
TO <lt_fin_int>.
* Get the instance keys for entity
type PCTR
CALL METHOD lo_crequest->read_objectlist
EXPORTING
iv_entity_type = 'PCTR'
IMPORTING
et_entity = lt_entities
et_message =et_message.
CHECK et_message IS INITIAL.
* Read the PCTR entity of the one
and only PCTR of the CR
READ TABLE lt_entities INTOls_entity INDEX 1.
CHECK sy-subrc = 0.
ls_sel-fieldname ='PCTRSEG'.
ls_sel-sign = 'I'.
ls_sel-option = 'EQ'.
ls_sel-low = ls_entity-usmd_value.
APPEND ls_sel TO lt_sel.
CALL METHOD lo_crequest->read_value
EXPORTING
i_fieldname = 'PCTRSEG'
it_sel = lt_sel
if_edition_logic = abap_false
IMPORTING
et_data = <lt_fin_int>
et_message = et_message.
* Get the one and only FB_SEGMENT
of the one PCTR in the CR
LOOP AT <lt_fin_int> ASSIGNING <ld_fin_int>.
ASSIGN COMPONENT 'PCTRSEG'OF STRUCTURE <ld_fin_int>
TO <pctrseg>.
EXIT.
ENDLOOP.
CHECK sy-subrc = 0.
* fill out the return table
get_element_id(
EXPORTING
iv_cr_type = lo_crequest->ds_crequest-usmd_creq_type
iv_name ='PCTR'
IMPORTING
ev_brf_expr_id = lv_brf_expr_id ).
ls_context-id = lv_brf_expr_id.
CREATE DATA ls_context-value TYPE fb_segment.
ASSIGN ls_context-value->* TO <value>.
<value> = <pctrseg>.
APPEND ls_context TO et_rule_context_value.
endmethod. -
Oocu_resp-Responsibility rule
Hi,
this txt oocu_resp.. i know it's used for responsibility rule... Can any one explain me what is the significance of his responsibility rule in SRM.... and why we use responsibility rule..
Points will be rewarded
samIt is not subject to any particular module nor it behaves differently. As you know and it is used for determining agents based on some inputs similar to querying a table. In SRM, it's upto you and if there is a need you can choose this option.
Regards, IA -
Hi all.
I am new to workflow. Can you pls let me know how to use the rule in worklow .I have created a rule using the transaction PFAC. Pls provide me some screen shots which demonstrates hoe to use this rule in workflow.Thanks in advance.
Cheers,
sami.Hi SAMI
go to this pdf in SCN.All about rules.
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d053fe48-6513-2b10-a59f-871923ff99d8
Second thing workflows related question should be posted at
SAP-Netweaver -> workflow
Regards
s@chin -
Help needed in Rules in workflow
Hi all,
I am beginner in workflow. I was trying to apply custom rules in my workflow design. I did the following steps :
1. have created a custom rule through the transaction PFAC_INS.
2. There I have used a function module for the determination of agent. The custom function module will give me the superior name for an employee.I have used ztables to store the name of the employee and their superiors.
3. The Rule has been successfully created and has been tested. It is working as required. I have tested it in PFAC itself by using Simulation button.
The problem I am facing is
When I am trying to use this Rule in the workflow at the User decision Step it is not working. I have given the Rule number in the Agent section of the User decision step.
According to my Workflow design the email should go to the Superior of the employee but instead it is coming to my Inbox.
Please suggent me what to do.
Thanks in advance.
Points will be rewarded for good suggestions.
Thanks & Regards.
Reshmi Das.Hi Raj,
I have created a custom rule and its working fine. Please check the following steps:
The rule I have created gives the superior name of an user/agent.
Steps:
1. I have created a ztable( ztest_users)which will contain the name of users and their superiors.
2. Create a custom function module(ztest_find_superior) which will return back the table containing all the superior information for a particular user/agent.
Note: This custom function module created should have the same interface as that of the SAP standard function module RH_GET_ACTORS.
The following tables parameters have to exist in the custom function module.
ACTOR_TAB STRUCTURE SWHACTOR
AC_CONTAINER STRUCTURE SWCONT
Example:
FUNCTION ZTEST_FIND_SUPERIOR.
""Local Interface:
*" TABLES
*" ACTOR_TAB STRUCTURE SWHACTOR
*" AC_CONTAINER STRUCTURE SWCONT
*" EXCEPTIONS
*" NOBODY_FOUND
INCLUDE <cntn01>.
TYPES : BEGIN OF ty_users.
INCLUDE STRUCTURE ztest_users.
TYPES : END OF ty_users.
DATA: org_agent LIKE wfsyst-agent,
lt_holders TYPE STANDARD TABLE OF swhactor,
lwa_holders TYPE swhactor,
lt_users TYPE STANDARD TABLE OF ty_users,
lwa_users TYPE ty_users,
v_len TYPE i,
v_bname LIKE ztest_users-bname,
num_lines TYPE i.
*Read values assigned to the rule criteria
swc_get_element ac_container 'org_agent' org_agent.
*Get the superior
SELECT SINGLE * FROM ztest_users INTO CORRESPONDING FIELDS OF lwa_users
WHERE bname = org_agent.
IF NOT lwa_users IS INITIAL.
REFRESH lt_holders[].
lwa_holders-otype = 'US'.
lwa_holders-objid = lwa_users-zsuperior.
APPEND lwa_holders TO lt_holders.
APPEND LINES OF lt_holders TO actor_tab.
ENDIF.
DESCRIBE TABLE actor_tab LINES num_lines.
IF num_lines IS INITIAL.
RAISE nobody_found.
ENDIF.
ENDFUNCTION.
3. Now assign the function module on the rule.
Goto PFAC_INS to create the Custom Rule.
In the rule definition category select Agent Determination: Function to be executed.
In the Function module field give the name of the function module created (ZTEST_FIND_SUPERIOR).
Check the Terminate if Rule resolution without result check box.
4. Create a container element ( org_agent)for the agent or user which will be passed to the function module.
Type:
WFSYST-AGENT.
properties: import.
5. Test the Rule by the Simulation button on the application toolbar.
Enter the user name in the Container Element value section and press enter.
It displays the name of the superior for the agent/user and the Agent Found is displayed in Green color.
Now you can use this rule in your Workflow definition.
Thanks,
Reshmi -
How to use the rule in workflow
Hi ,Guy ,
I am implementing the workflow project nowaday ,and when I use the rule to determine the step's agent , I often come across all kinds of strange problem and I do not know how to slove it goodly ,for example I do not know how to get the agent from orgainization unit etc .
can anybody give me some advices or some relevant docments(I have read the SAP standard material BIT601/BIT603/BIT610) .thank a lot .
Jialiang.QiuYes , you can define your own rule. You need to populate the table of type SWHACTOR with whatever agents you want to maintain . See the below code :
function z_cvwf_dwnam_approver_get.
""Local Interface:
*" IMPORTING
*" VALUE(ACT_PLVAR) LIKE P1208-PLVAR DEFAULT SPACE
*" VALUE(ACT_ISTAT) LIKE P1208-ISTAT DEFAULT '1'
*" VALUE(ACT_BEGDA) LIKE P1208-BEGDA DEFAULT SY-DATUM
*" VALUE(ACT_ENDDA) LIKE P1208-ENDDA DEFAULT SY-DATUM
*" TABLES
*" AC_CONTAINER STRUCTURE SWCONT
*" ACTOR_TAB STRUCTURE SWHACTOR
*" EXCEPTIONS
*" NO_ACTIVE_PLVAR
*" OBJTYP_NOT_VALID
*" NO_ACTOR_FOUND
data: l_user like draw-dwnam, "User
l_dokar like draw-dokar, "Document type
l_doknr like draw-doknr, "Document number
l_dokvr like draw-dokvr, "Document version
l_doktl like draw-doktl. "Document part
data: xausp like ausp.
*Data for AUSPC_V1 selection
data: xatinn(12) value 'APPROVER',
xklart like ausp-klart value '017',
xobjek like ausp-objek.
include <cntain>.
swc_get_element ac_container 'DOCUMENT' l_doknr.
swc_get_element ac_container 'DOCUMENTPART' l_doktl.
swc_get_element ac_container 'DOCUMENTTYPE' l_dokar.
swc_get_element ac_container 'DOCUMENTVERSION' l_dokvr.
Create objek from DRAW key fields
write: l_dokar to xobjek,
l_doknr to xobjek+3(25),
l_dokvr to xobjek+28(2),
l_doktl to xobjek+30(3).
Get Approver number
call function 'CONVERSION_EXIT_ATINN_INPUT'
exporting
input = xatinn
importing
output = xatinn.
From table AUSP
clear sy-subrc.
select single * from ausp
into xausp
where objek = xobjek
and atinn = xatinn
and klart = xklart.
Assign ATWRT to USER RESPONSIBLE FOR APPROVAL
if sy-subrc > 0.
raise no_actor_found.
endif.
actor_tab-otype = 'US'.
actor_tab-objid = xausp-atwrt.
append actor_tab.
endfunction. -
How can I call / invoke a Rule from a workflow?
I am trying to Configure a Deferred Task.
The *"Date"* Argument in this Task is actually a "Parsed Date", which needs to be derived from the date which I input into my User Form.
The problem is : when I do the actual Parsing in the User Form, it causes problems for me. That is why I decided to create a Rule, which will calculate/parse the date. And then, I will call/reference this Rule in the Update-User Workflow.
Here is the Rule which I created for Parsing the Date :
*<Rule name='Parsed Date Rule'*
*<invoke name='dateToString' class='com.waveset.util.Util'>*
*<invoke name='stringToDate' class='com.waveset.util.Util'>*
*<concat>*
*<ref>global.day</ref>*
*<s>/</s>*
*<ref>global.month</ref>*
*<s>/</s>*
*<ref>global.year</ref>*
*</concat>*
*<s>dd/mm/yyyy</s>*
*</invoke>*
*<s>mm/dd/yyyy</s>*
*</invoke>*
*<MemberObjectGroups>*
*<ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>*
*</MemberObjectGroups>*
*</Rule>*
And here is Here is my Deferred Task code :
*<Action>*
*<Argument name='op' value='addDeferredTask'/>*
*<Argument name='type' value='User'/>*
*<Argument name='name' value='$(accountId)'/>*
*<Argument name='task' value='My Task'/>*
*<Argument name='date'/>*
*<Argument name='accountId' value='$(accountId)'/>*
*<Argument name='executeOnce' value='true'/>*
*</Action>*
How can I reference/call/invoke that Rule in my Deferred Task??
I tried to do the following, but it did not work :
*<Argument name='date'>*
*<rule name='Parsed Date Rule'/>*
*</Argument>*
Any tips, please?
ThanksMy code is still give me an error : "Unparseable Date"
The values are being entered, except for the MONTH VALUE.
In my User Form, I am using drop-down menus to select the values for DAY, MONTH, YEAR.
The value for MONTH is string : JAN, FEB, MAR.
I created a separate Rule, for converting this String value into a Numerical Value (for example : JAN = O1, FEB = 02)
Here is the Rule I use to do the conversion :
<Rule name='Convert Month Rule'>
*<switch>*
*<ref>global.month</ref>*
*<case>*
*<s>Jan</s>*
*<setvar name='global.monthtwo'>*
*<s>01</s>*
*</setvar>*
*</case>*
*<case>*
*<s>Feb</s>*
*<setvar name='global.monthtwo'>*
*<s>02</s>*
*</setvar>*
*</case>*
*<case>*
*<s>Mar</s>*
*<setvar name='global.monthtwo'>*
*<s>03</s>*
*</setvar>*
*</case>*
*<case>*
*<s>Apr</s>*
*<setvar name='global.monthtwo'>*
*<s>04</s>*
*</setvar>*
*</case>*
*<case>*
*<s>May</s>*
*<setvar name='global.monthtwo'>*
*<s>05</s>*
*</setvar>*
*</case>*
*<case>*
*<s>Jun</s>*
*<setvar name='global.monthtwo'>*
*<s>06</s>*
*</setvar>*
*</case>*
*<case>*
*<s>Jul</s>*
*<setvar name='global.monthtwo'>*
*<s>07</s>*
*</setvar>*
*</case>*
*<case>*
*<s>Aug</s>*
*<setvar name='global.monthtwo'>*
*<s>08</s>*
*</setvar>*
*</case>*
*<case>*
*<s>Sep</s>*
*<setvar name='global.monthtwo'>*
*<s>09</s>*
*</setvar>*
*</case>*
*<case>*
*<s>Oct</s>*
*<setvar name='global.monthtwo'>*
*<s>10</s>*
*</setvar>*
*</case>*
*<case>*
*<s>Nov</s>*
*<setvar name='global.monthtwo'>*
*<s>11</s>*
*</setvar>*
*</case>*
*<case>*
*<s>Dec</s>*
*<setvar name='global.monthtwo'>*
*<s>12</s>*
*</setvar>*
*</case>*
*</switch>*
Somewhere in this Rule there is an error, because it is not converting the MONTH.
(The funny thing is : when I do the conversion directly from my User Form, it works perfectly! But, when I try to call that Rule in my Update Workflow, it gives the error) -
How to create Rule in workflow
Hi,
What is meant by rule and how to create it in a workflow....Hi Nandha,
Check these links...
/people/mike.pokraka/blog/2005/07/17/sap-business-workflow-faq
http://help.sap.com/saphelp_erp2005/helpdata/en/fb/135962457311d189440000e829fbbd/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/c5/e4a930453d11d189430000e829fbbd/frameset.htm
Workflow
http://www.sap-img.com/workflow/sap-workflow.htm
http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
For examples on WorkFlow...check the below link..
http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
http://www.workflowing.com/id18.htm
http://www.e-workflow.org/
http://web.mit.edu/sapr3/dev/newdevstand.html
/people/mike.pokraka/blog/2005/07/17/sap-business-workflow-faq
Reward points if this Helps.
Manish
Maybe you are looking for
-
Downloads fail to operate i can't save or view any downloaded media files
I can not save or view any form of media from any website. The 'download window' will initiate and indicate the file is being/has been downloaded but nothing happens ie it does not get saved in the designated folder or the media players all report a
-
In keynote 2.0, is there a way to disable clicking to the next slide?
I'm trying to create a Jeopardy template that lets the user click on the board to choose a question but I can't get it to stop moving forward one slide when someone click on the background of the question. Is there a way to disable that like in Power
-
Speed up time of AI Create Channel.vi task containing thousands of channels
I am creating an AI task containing a total of 8000 channels of different channels with each channel being acquired many times before the next channel is acquired. The channel list is something like 0,0,0,...,1,1,1,...,2,2,2...3,3,3... where each ch
-
Loading text from one app to another
If we are using text members and we want to transfer comments from one app to another. our steps are as follows. 1) Export indicators in Essbase 2) LCM text members out of one app to import into the other. 3) load indicators in new app 4) load LCM fi
-
Samples missing when two DAQ boards synchronised
I am attempting to synchronise the input from two NI DAQ cards using the RTSI bus: an analogue PCI-6110 card (slave) and a digital PCI-DIO32HS card (master). I think I have the cards working OK together now and they appear to be taking samples in syn