FM RH_GET_ACTORS

Hi,
I'm using the function RH_GET_ACTORS to get responsibles from a rule.
The container rule is defined by three parameters, and when i call the function it is doen't get me nothing however when I simulate the rule from the pfac yes is getting me values.
My code is this, could you help me thanks
Add parameters to get responsibles from the rule
  MOVE: 'MTART'  TO i_swcont-element,
        'C'      TO i_swcont-type,
         v_MTART TO i_swcont-value.
  APPEND i_swcont.
  MOVE: 'WERKS'  TO i_swcont-element,
        'C'      TO i_swcont-type,
         space   TO i_swcont-value.
  APPEND i_swcont.
  MOVE: 'MATKL'  TO i_swcont-element,
        'N'      TO i_swcont-type,
         v_MATKL TO i_swcont-value.
  APPEND i_swcont.
Get Responsibles from rule 90000054
  CALL FUNCTION 'RH_GET_ACTORS'
    EXPORTING
      act_object                = 'AC90000054'
      search_date               = sy-datum
    TABLES
      actor_container           = i_swcont
      actor_tab                 = i_swhactor
    EXCEPTIONS
      no_active_plvar           = 1
      no_actor_found            = 2
      exception_of_role_raised  = 3
      no_valid_agent_determined = 4
      no_container              = 5
      OTHERS                    = 6.

i solved this

Similar Messages

  • SWX_GET_MANAGER vs. RH_GET_ACTORS

    Hi All,
    Since someone deleted my inquiry yesterday, I am posting a new one now.
    Basically my requirement is that I need to determine the manager of the wf_initiator so that they can be used as a recipient in the send mail step. The very kind Richard Bakker (sorry mate, wasn't able to award the points) mentioned that the strategy I am leaning towards is correct; i.e. inserting a step which will determine the manager before the actual send mail task.
    Now, after further reading, I also came across the FM SWX_GET_MANAGER which basically does the same thing at a much simpler process. From a totally ABAP newbie, can you please enlighten us the differences (pros and cons) of using SWX_GET_MANAGER vs. RH_GET_ACTORS.
    <<Text removed>>
    Regards,
    DeLo
    Edited by: Matt on Jul 30, 2011 7:15 AM

    Hi,
    SWX_GET_MANAGER is standard FM which used to get the superior/manager of a org unit.
    RH_GET_ACTORS is used to get the agents form a rule ( which is created through PFAC ). Suppose you have many custom rule to find the agents. Now if you need to use this rule to get agents within a Function Module then you can use RH_GET_ACTORS to get agents form the rule.
    CALL FUNCTION 'RH_GET_ACTORS'
      EXPORTING
        act_object                      = 'AC90000137'
      tables
        ACTOR_CONTAINER                 = l_it_actor_container
        actor_tab                       = l_it_actor_tab
    EXCEPTIONS
       NO_ACTIVE_PLVAR                 = 1
       NO_ACTOR_FOUND                  = 2
       EXCEPTION_OF_ROLE_RAISED        = 3
       NO_VALID_AGENT_DETERMINED       = 4
       NO_CONTAINER                    = 5
       OTHERS                          = 6
    Thanks and regards,
    SNJY

  • 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 table’s 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

  • Purchase order release workflow rule

    Hi ,
    I have made a zcopy of standard workflow(WS20000075) for PO release. My requirement is that there are three level of approvers who have to release the PO. MM consultant says he will assign the approvers for all three levels from SPRO. As per the std workflow there is only one level of approval as far as i have understood .every time if approver rejects the po the mail should go to outlook also , to initiator and the next approver . 
    standard rule 20000027 is taken care for all three levels of approvals ..what is the binding for rule to workflow?
    from workflow side what are the customize things should i follow..i am new to this MM workflow can u please guide me ..
    thanks,
    sandeep chennoju .

    Hi Sandeep
    The requirement changed!!!! :-)
    Okay...for the email on DEADLINE BREACH
    1) You Do not need the fork in the deadline branch
    2) Instead, call an Activity Step which calls a method -> Input:  WF Initiator (full US + Username), PO Number and the Current Release code
    3) In the method coding, call rule 20000027 using FM RH_GET_ACTORS, get the agents (with OTYPE) for the PO and Current Release code
    4) Now Fill an internal table (of type TSWHACTOR) with OTYPE and OBJID returned from the above Function Call
    5) Append WF Initiator to this table -> OTYPE = US and OBJID = username
    6) So you have a table with CURRENT Approvers and the Initiator
    7) Pass back this table to task and workflow
    8) Now use a mail step, Set Recipient Type as 'G' (org Object) and EXPRESSION = that TABLE passed from above call (type TSWHACTOR)
    9) Ensure that the settings are done for SO16 -> Tab Mail Sys Grp -> Send to users home address is selected (in each client – this is not transported, hence maintain in every system once)
    10) Ensure that the users have their email ID maintained in User Master (SU01) and the communication Method Set as INT (OR Email is maintained in HR Master Infotype 0105 - if your setup is using that)
    11) Ensure Job SWWDHEX is running periodically in the background
    12) Ensure Basis Settings and send job are in place to send outbound emails
    What will happen when the deadline gets over:
    1) SWWDHEX job will pick up the item and the control will come to deadline branch
    2) The new step/method will get the agents of Current release code using the FM Call; it will also add WF Initiator to the list
    3) The mail step will send to the ORGNIZATIONAL Objects (the Usernames, Positions passed to it in table of type TSWHACTOR)
    4) SO16 settings will ensure that the mail is sent to the email address
    5) Email address is picked up by the system automatically from User Master or HR Info type 0105 (order is really not known)
    6) Basis settings and send job will send the email out of the system
    I hope I was able to get your requirements right this time and these will not change :-)
    Regards,
    Modak

  • 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,
    Him

    Hi 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

  • Agent determination issue in a workflow

    Greetings everyone!
    I'm configuring some business scenario with the help of a business workflow in SAP CRM 7.0 I'm using activity step and want to determine agents using standard SAP rule 10000162 ("Employees for responsible org. unit"). I've tested the rule outside of the workflow and it's working fine, but  in workflow it fails to determine an agent.
    In a log I see following errors:
    Agent determination for step '0000000023' failed;
    Result of agent resolution does not agree with agents of task;
    I've made some tests depending on what assignment task has:
    1. When it is a general task, work item was created for a workflow initiator even though rule failed to determine an agent.
    2. When it is a task with general forwarding with assigned position(s), which rule will never determine, work item was created for holder(s) of that position(s).
    3. When it is a task with general forwarding with no assignments, workflow could not determine an agent as expected.
    I've also debugged functional module for that rule and it determines appropriate agent but then do some check with the help of RH_TASK_AGENT_CHECK function and returns an error.
    Can someone help me with this problem? Is it some standard expected behavior or not?
    Maybe something wrong with the org. plan?
    All answers are appreciated.
    Thanks in advance,
    Alex.

    Hello Rick and Eddie.
    I've tried to assign user directly instead of position to a task with no help. I get the same result.
    I've tried to set a task as a general task and made the rule to fail if there is no resolution and it fails.
    I've tried to assign position or user directly to activity in a workflow and it does work but that's not what I need in my scenario.
    As I said earlier I've tried to debug that rule invoked from a workflow. I will post some screenshots for you.
    I set a task as a general task and assigned rule 10000162 (ABBR="PARTNER_1", Name="Employees for responsible org. unit") to activity step in a workflow and here is what I get:
    1. Function CRM_ORGMAN_ORGOBJECTS_FIND_2 gets called by the rule and resp. sales org. unit is passed there ([screenshot1|http://www.picdrop.net/?v=debug1.png])
    2. Next function CRM_ORGUNIT_GETEMPLOYEES gets called passing id of a resp. sales org.unit without a type.
    3. Next RH_STRUC_GET gets called and returns result table with position and central person for that position ([screenshot2|http://www.picdrop.net/?v=debug2.png])
    4. In the end of CRM_ORGMAN_ORGOBJECTS_FIND_2 function only central person in inserted to the actor_tab ([screenshot3|http://www.picdrop.net/?v=debug3.png])
    5. After CRM_ORGMAN_ORGOBJECTS_FIND_2 ends we appear in a RH_GET_ACTORS function where we can see that agent check is performed if act_task is not initial. I assume that check is not performed if we do a simulation of a rule ([screenshot4|http://www.picdrop.net/?v=debug4.png])
    6. Then RH_TASK_AGENT_CHECK function gets called for every record in a actor_tab. In out particular case it's one record. ([screenshot5|http://www.picdrop.net/?v=debug5.png])
    7. Inside that function checks act_wi_id (activity work item id?) if it's initial and get exluded agents. It is initial in my case ([screenshot6|http://www.picdrop.net/?v=debug6.png])
    8. Then function tries to read table with keys equal to type and id of found agent and errors there, perhaps because there is no record in that table ([screenshot7|http://www.picdrop.net/?v=debug7.png])
    That error results in overall agent determination failure.
    Hope this screenshots will help to identify a problem.
    Why read table results in an error and because of that all rule fails?
    Regards,
    Alex.

  • How to call rule in program

    Hi
    I have created rule and attached to user decision and its working fine
    but i need to use the same rule elsewhere,  just to get the list of agent
    since i dont have user dialog task here, i need some way in which i can call this rule
    is there any std function module or BAPI which facilitates this ?
    thank u
    bhakti

    Hi,
    You can use FM 'RH_GET_ACTORS'
    Please see sample code below
    Data : custom_rule type HROBJEC_14 value 'AC90000137',
           l_it_actor_tab   type table of SWHACTOR,
           l_it_actor_container type table of SWCONT.
    Data: l_wa_actor_container type SWCONT.
      SWC_GET_ELEMENT CONTAINER 'SAP_COMPONENT' SAP_COMPONENT.
      l_wa_actor_container-ELEMENT = 'TRACK'.
      l_wa_actor_container-Value =  SAP_COMPONENT.
      Append l_wa_actor_container to l_it_actor_container.
      l_wa_actor_container-ELEMENT = 'ROLE'."
      l_wa_actor_container-Value = 'DEV_TRACK_LEAD'.
      Append l_wa_actor_container to l_it_actor_container.
    CALL FUNCTION 'RH_GET_ACTORS'
      EXPORTING
        act_object                      = custom_rule
      tables
        ACTOR_CONTAINER                 = l_it_actor_container
        actor_tab                                  = l_it_actor_tab
    EXCEPTIONS
       NO_ACTIVE_PLVAR                  = 1
       NO_ACTOR_FOUND                  = 2
       EXCEPTION_OF_ROLE_RAISED        = 3
       NO_VALID_AGENT_DETERMINED       = 4
       NO_CONTAINER                    = 5
       OTHERS                          = 6
    Here 90000137 is the custom rule.
    Hoping that this might help you.
    Thanks and regards,
    SNJY

  • Regarding export parameter in rule

    Hi everbody,
    i have created rule  and i am using this rule in User decision step... for determining agents, when i excuted the worklfow it's working perfectly..
    i am using deadline montoring(Modeled) so here i want to pass the agent in sdend mal step to receive the deadline montoring message..  so i have created one container but export parameter checkbox has been disabled...
    please let me know whether i can't able to create container wirh export parameter in rule if yes then how to pass the value from rule to send mail step....
    Thanks in advance
    ram

    Hi prasanth,
    i have used this FM already, i am getting the value in AGENTS, but in the worklfow this method fails..
    and going to error.
    please let me know after geting the value in agents then what i should do...
    CALL FUNCTION 'RH_GET_ACTORS'
      EXPORTING
        act_object                      = 'AC90300002'
    " ACT_TASK                        = 'TS00008267'
      ACT_WI_ID                       =
      ACT_PLVAR                       =
       SEARCH_DATE                     = SY-DATUM
      ACTOR_CONTAINER_OO              =
      tables
    "  ACTOR_CONTAINER                 = adressstrings
      EXCLUDED_AGENTS                 =
        actor_tab                       =  AGENTS
      ERROR_TAB                       =
    EXCEPTIONS
       NO_ACTIVE_PLVAR                 = 1
       NO_ACTOR_FOUND                  = 2
       EXCEPTION_OF_ROLE_RAISED        = 3
       NO_VALID_AGENT_DETERMINED       = 4
      NO_CONTAINER                    = 5
       OTHERS                          = 6
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • Sending mail to agent at run time determination

    hi all
    i have a problem sending mail to the person who has been identified on runtime basis.
    scenario is that i have created a custome rule to determine the person (partner function) on run time basis but problem is that i need to send only mail to that person not the object. as you may be aware we cant use rule in send mail step
    is there any way i can send mail only in this scenario
    help will definitely be appreciated
    regards
    ashish

    You need to store the agents that is getting retrieved from the rule in a Container element and use this isn the Expression of the send mail task.
    Use FM RH_GET_ACTORS to retrieve agent from Rule by using coding in method of respective BO.
    Thanks
    Arghadip

  • RH_RESOLVE_RESPONSIBILITIES

    Hi Abap Gurus,
    Is there any alternate FM for RH_RESOLVE_RESPONSIBILITIES . Please find my code and Questions in a nutshell !!
    FM Used - RH_RESOLVE_RESPONSIBILITIES
    CALL FUNCTION 'RH_RESOLVE_RESPONSIBILITIES'
    EXPORTING
    act_object = p_role
    search_date = sy-datum
    TABLES
    ac_container = p_t_accontainer
    actor_tab = p_t_appr_temp
    EXCEPTIONS
    no_active_plvar = 1
    no_actor_found = 2
    parameter_error = 3
    OTHERS = 4.
    p_role = AC94000016
    sy-datum = 20070829
    p_t_accontainer is an INternal Table HAving fieldsas Elements , TAB_INDEX , ELEMLENGTH , TYPE and VALUE.
    ( The above Internal table Contains 6 Records )
    p_t_appr_temp internal table contains fileds as OTYPE , OBJID . ( For Ex - Otype = 'S' and OBJID = '60037892' or Otype = 'US' and OBJID = '10029646' where
    S - Position and US - User )
    Question-:
    Problem is that This report is failing to fetch the Data for the user because of the lack of assignment of the workflow role with the necessary user access or authorization . Now Even though the role is there the necessary authorization fails because of the period of the waranty . So as also in the FM Because of the authorization check it fails to fetch the data . My Question is that is there any other FM or Turnaround method to avoid this authorization check ? Also if you have any clue of accessing the Functional sequence logic of accesiing the tables to arrive in the same result will be highly appreciated !! Thanks in Advance
    I have 2 assumed solution , I dont know how does it work ?
    1) Copy this FM to Z - FM , where remove the Authorization check for this .
        But Deep down the code goes a long way .
    2) If i can find the Functional sequence of accesiing the table to reach to get the
        Object ID and and  Object type Out of the role and container ..then my job will
        be done . Taking a glance at the FM to find out the tables look very complex .
    3) In worst case role  and necessary authorization will be assigned to the user . This will be at the worst case .
    Please let me know if there is an option . Will be highly oblised for a quick response !!!
    Thanks
    Creg
    Creg !!

    Thanks all.
    Hi  Pavan Bhamidipati, there is one point I don't quite understand. The infotype HRP1001 stores the relationship of Org. objects. The FM RH_RESOLVE_RESPONSIBILITIES will get the results from this table? What action will modify this table,maintinance in Org. Managerment?
    Another question, this FM is only for responsibility rule, but not for the others, such as function to be executed rule?
    Hi  Arghadip Kar, is RH_GET_ACTORS FM only for roles?
    Edited by: Yichao Sun on Jan 9, 2009 5:04 AM

  • How to slove the rule resoultion

    hai,
    I have to find the users invloved in the process. I am using the function module 'RH_GET_ACTORS' to get the users.
    Input is the plant and rule number
      swc_set_element ac_container 'plant' plant.
      CALL FUNCTION 'RH_GET_ACTORS'
        EXPORTING
          act_object                      = 'AC90000001'
        ACT_TASK                        =
        ACT_WI_ID                       =
        ACT_PLVAR                       =
        SEARCH_DATE                     = SY-DATUM
        ACTOR_CONTAINER_OO              =
        tables
         ACTOR_CONTAINER                 = ac_container
        EXCLUDED_AGENTS                 =
          actor_tab                       = actor_tab
         ERROR_TAB                       = error_tab
       EXCEPTIONS
         NO_ACTIVE_PLVAR                 = 1
         NO_ACTOR_FOUND                  = 2
         EXCEPTION_OF_ROLE_RAISED        = 3
         NO_VALID_AGENT_DETERMINED       = 4
         NO_CONTAINER                    = 5
         OTHERS                          = 6
    I am not get any values.
    When i checked the rule the above specified rule is not in my system. Any default rule is there for purchase order release and how to give import parameters for that.
    tell me please.
    thanks,
    Elamaran

    Sample code:
    form read_actor using    id_standard_role type  hrsobject-objid
                             it_act_container type swconttab
                    changing ct_actor_tab type  tswhactor.
      data: begin of ls_object,
             type like hrsobject-otype,
             id   like hrsobject-objid,
            end of ls_object.
      data: ld_act_object type rhobjects-object.
      move 'AC' to ls_object-type.
      move id_standard_role to ls_object-id.
      move ls_object to ld_act_object.
      call function 'RH_GET_ACTORS'
           exporting
                act_object      = ld_act_object
           tables
                actor_container = it_act_container
                actor_tab       = ct_actor_tab
           exceptions
                others          = 0.
    endform.                               " READ_ACTOR
    REgards,
    Ravi

  • Use of FM RH_RESOLVE_RESPONSIBILITIES

    In my scenario, I want to get the responsible agent of the previous step, which is determined by a rule. I was told that FM RH_RESOLVE_RESPONSIBILITIES can offer this functionality.
    1 I want to know whether this FM works and how to use this FM and which value should I pass to the import parameter of this FM.
    2 What the import parameters are, such as ACT_OBJECT(RHOBJECTS-OBJECT), ACT_PLVAR(OBJEC-PLVAR), ACT_OTYPE(OBJEC-OTYPE), ACT_OBJID(OBJEC-OBJID), SEARCH_DATE(sy-datum)? If I want to get the result of a rule, how can I fill them?
    3 What's the main function of this FM?

    Thanks all.
    Hi  Pavan Bhamidipati, there is one point I don't quite understand. The infotype HRP1001 stores the relationship of Org. objects. The FM RH_RESOLVE_RESPONSIBILITIES will get the results from this table? What action will modify this table,maintinance in Org. Managerment?
    Another question, this FM is only for responsibility rule, but not for the others, such as function to be executed rule?
    Hi  Arghadip Kar, is RH_GET_ACTORS FM only for roles?
    Edited by: Yichao Sun on Jan 9, 2009 5:04 AM

  • How to use customized exception

    Hi all,
    I have a problem using struts-action-mappings.
    I have a method for update in my app module, and i'm using that method with data action.
    In that method, I have to throw my customized exception to user if there is error. I just don't know how to catch the exception and display it in page.
    I've read about struts page flow diagram elements and know there are Exceptions and Global Exceptions. But i still don't know how to use them.
    What i want to know is can I relate my custom exception with Exceptions/Global Exceptions in struts diagram? And if so, can anybody show me an example for it?
    Thanks

    1.Create a method GET_ACTORS using RH_GET_ACTORS,
    2.Create a container element 'Actors' type string with multiline.
    3.Create Task, where you can call the Method GET_ACTORS  and pass the Container values of 'Actors' from Method->Task->Workflow
    4.Create a Step type before creating the Step mail and include the previous Task.
    5.Now you can create the step Mail. Give the Recipient Type as 'Expression'-> Select the Container Element 'Actors' from WF container
    But remember the values should be Passed from the task to Workflow in Binding correctly.
    Regards,
    Sriyash

  • User Decision - Loop in Latest Start

    Hi Experts,
    My requirment is to send reminder emails every day till user responds to workitem. After 6 days, need to forward the workitem to superior. Here for forwarding the workitem, i'm using Latest End for user decision. For sending reminder emails, i'm trying to use Latest Start with the help of loop (for each day). Latest Start is triggering after specified time, but loop is not working. Can you plz tell me, why is it so? and how can we handle this.
    Thanks in Advance,
    Siva Sankar.

    Hi Shiva,
                 Use Requested End of the task as deadline monitoring and action will be "Modeled". Then one outcome will be appeared. in that outcome first use a step to find out agents to whom you want to send the remainder mail using method and function module "RH_GET_ACTORS". Then create a loop according to your requirement and increase a counter to maintain the loop iteration. Inside the loop you can send the remainder mail. Once the loop will be finished use "Process control" to obsolete the particular step which is lying in current agents inbox. So that step will be obsolete after all remainder so one outcome will be appeared in that main task and in that new outcome you can create the same task to send the same workitem to suprior's sap inbox.
    Thanks
    Goutam Saha

  • How to use customized rule in step mail workflow

    Dear All:
    I have created a customized rule,which is working fine when I simulate it, it is fetching SAP user from a ztable which I created.
    My requirement is how to use the rule in my workflow which have one "send mail" step. As in "send mail" under Receipt Type I cant find rule option.
    Kindly help me.
    Rahul.

    1.Create a method GET_ACTORS using RH_GET_ACTORS,
    2.Create a container element 'Actors' type string with multiline.
    3.Create Task, where you can call the Method GET_ACTORS  and pass the Container values of 'Actors' from Method->Task->Workflow
    4.Create a Step type before creating the Step mail and include the previous Task.
    5.Now you can create the step Mail. Give the Recipient Type as 'Expression'-> Select the Container Element 'Actors' from WF container
    But remember the values should be Passed from the task to Workflow in Binding correctly.
    Regards,
    Sriyash

Maybe you are looking for

  • Creation of function module to convert the mean value to charecterformat

    hi every body i have one doubt regarding convertion of  meanvalue to integer value. first of all i took all related values to internal table but inthat internal table the value of MITTELWERT feild is mean value.inthat the feild value tobe stored is 9

  • What is the Best practice for ceramic industry?

    Dear All; i would like to ask two questions: 1- which manufacturing category (process or discrete) fit ceramic industry? 2- what is the Best practice for ceramic industry? please note from the below link [https://websmp103.sap-ag.de/~form/sapnet?_FRA

  • Batch OCR from Smart Folder

    Setup: Acrobat 8 pro Apple OS X Leopard I'm trying to batch OCR from a smart folder.  I've got the Batch process set up and have created a smart folder from a search in Finder that contains all PDFs created in the last seven days, which is placed int

  • RSCRM_BAPI requires column heading

    Hi Friends, When i download a query result using RSCRM_BAPI iam just getting the result without column headings.I need the column headings as well. I need your suggestion on it. Thanks, Raja

  • Help! all outgoing messages are copied to me-very irritating

    Help! all outgoing messages are copied to me-very irritating