Agent Assignment in Sent mail step

Hi to all,
    I am having two doubts.I am new to workflow.Thai is my first development.
1. In one activity i am using one method inside that FM that convert the report to PDF and sent it to  user for approval using FM SO_NEW_DOCUMENT_ATT_SEND_API1 .For every level i am using this activity to sent the file to user in that level,my doubt is how to assign the agent to RECEIVER_list in FM SO_NEW_DOCUMENT_ATT_SEND_API1 Dynamically for every level.
Give me some idea ,.
2.In sent mail step i want to sent a mail to 5 person ,i dont know how to sent.
Urgent help me out .Give me some idea ,
give me some related document  or line for agent assignment
Points i will put for use full document.
Thankx in Adv,
Ram.

Hi Raja Ram,
I have faced the same problem in my previous project. Let me explain how i did.
If a employee creates "SALARY ADVANCE" it has to go to 7(MAX) levels of approval based upon the amount that the employee is asking for and based upon the employee subgroup.
I have created a FM in which i am checking this condition and i have created table (to hold the approvers). When i call this FM inside the method, it will create a multi-line container and the import parameter is the employees SAP user id and the Amount what he is asking for.
Get the approvers from HRP1001 based upon the selection crietria.
You can use this too.
Regards
Balaji E.

Similar Messages

  • Binding for sent mail step

    Hi expert,
                      I have to use send mail step in my workflow. The user name is availabe in the workflow container. I am also using the standard method SENDTASKDESCRIPTION but i dont know what shoud be the binding between workflow and task and task with method. I dont know what should be the Recipient type in the mail tab. Please help me this is the first time I am using send mail step.
    Thanks
    Raj

    Work item 000001079024: Object 000001079024 method SENDTASKDESCRIPTION cannot be executed
    Message no. WL821
    Diagnosis
    The calling of the object method for the work item ended with a return value for which no handling is modeled in the workflow.
    System Response
    The work item was forced into the error status.
    Procedure
    Refer to your workflow system administrator.
    Procedure for System Administration
    Also check the binding between the task container and the method container.
    this is the error mesege.  Please help me

  • I need to assigne Role into sent mail step

    i created organization stracture and assing role to job , but i am getting follow error .
    Please repair the suspended workflow
    Context Information:
    ID: 525160
    Work Item Text: test work flow
    User: WF-BATCH
    Language: E
    Press 'Execute' to display the workflow that has errors.
    Please let me kbow so i can solve this issue

    Hello,
    "Press 'Execute' to display the workflow that has errors."
    Press Execute and find out what the error is.
    regards
    Rick Bakker
    Hanabi Technology

  • Send mail step in local workflow

    Hi Experts,
    I have inserted a send mail step in my local workflow. But while executing the workflow rather than sending mail my workflow stops with status In process in send mail step. In graphical log its displaying as "No agent found" for send mail step. But i have assigned workflow initiator as agent. But other than send mail if i use other steps like user decision or activity in local workflow, wokflows proceeds with execution and sets to status completed. Should i not use send mail in local workflow step?
    Things i have done:
    1. I have mail workflow as general task from PFTC.
    2. Tried with SWU_OBUF
    3. Correctly assigned WF_INITIATOR as expression for send mail.
    Kindly help me in this regard.
    KR,
    S Bharath

    Dear Bakker,
    Sorry for the confusion. In send mail I tried with 2 options,
    1. I directly gave expression as WF_INITIATOR
    2. I created a workflow container element with type SWHACTOR and assigned a user id as initial value.
    In both cases I am not getting send mail icon and status mail sent (one that usually comes for a send mail step in log) but instead i am getting an activity icon displayed with status ready. But there is no agent icon displayed (usually we click this to find the assigned agent). So the status of the workflow remains as In process.
    KR,
    S Bharath

  • Mail step should be sent to all the users in multiple condition

    hi experts,
                      I have a requirement on invoice posting.Say if invoice amount is 1000 then person A can post the invoice.
    if >= 1000 person B can post the invoice.
    If >=2000 person C can post the invoice.
                                                                      what i have did is, created a multiple condition and then based on the inv amount assigned 3 methods for invoice posting.My problem is if a person posts an invoice amount of 1000.A mail has to be sent to Person B and C informing that an amount of 1000 is posted with user id.Same for person B, ie mail should be sent to person A and C informing regarding invoice posting.Now inside the multiple condition i cannot assign mail step.Coz based on the condition it will go to a particular user for invoice posting but where as mail should be sent to all the users.So how can i achieve this??.

    Hi Priyanka,
    I am getting 1 thing why you need need multiple conditions. No need to create any multiple conditions.
    1. Create a rule using transaction PFAC. (you can use the example as Rule: 0000168).
        a. Create an function module with table parameters as ACTOR_TAB (type SWHACTOR) and AC_CONTAINER (Type
            SWCONT). You can aswell copy the FM used in 168 rule and change it. check the logic mentioned below.
        b. In PFAC transaction, go to container tab and create 2 container elements.  For amount and Mail_indicator (type should be
            same as that of the amount field in your workflow) .
    2. Use this Rule in your workflow to send mail.
    Logic:
    ""Lokale Schnittstelle:
    *"       TABLES
    *"              ACTOR_TAB STRUCTURE  SWHACTOR
    *"              AC_CONTAINER STRUCTURE  SWCONT
    *"       EXCEPTIONS
    *"              NOBODY_FOUND
      INCLUDE <CNTAIN>.
      DATA BEGIN OF ORG_OBJECT OCCURS 0.
              INCLUDE STRUCTURE SWHACTOR.
      DATA END OF ORG_OBJECT.
      DATA: BEGIN OF NEW_AC_CONTAINER OCCURS 3.
              INCLUDE STRUCTURE SWCONT.
      DATA: END OF NEW_AC_CONTAINER.
      DATA: V_AMOUNT TYPE <AMOUNT FIELD>.
      DATA: V_MAIL_INDICATOR TYPE <FLAG>.
      REFRESH: actor_tab.
    Get the org-object under consideration. AMOUNT is the container name defined in your PFTC transaction
      SWC_GET_ELEMENT AC_CONTAINER 'AMOUNT' 'V_AMOUNT'.
    Get the org-object-type and the org-object id.
      SWC_GET_ELEMENT AC_CONTAINER 'MAIL_INDICATOR' V_MAIL_INDICATOR .
    Pass the org-object, the org-object-type and the org-object-id
    to a new container.
    The org object get a new name: ORG_AGENT.
      SWC_SET_ELEMENT NEW_AC_CONTAINER 'AMOUNT' 'V_AMOUNT'.
      SWC_SET_ELEMENT NEW_AC_CONTAINER 'MAIL_INDICATOR' V_MAIL_INDICATOR .
    check for V_AMOUNT and V_MAIL_INDICATOR.
    if the v_amount = 1000 .'
      if  v_mail_indicator = ' '.
        actor_tab-OTYPE = 'US'  .
        actor_tab-OBJID = 'SAPUSER1'.
        append actor_tab
      else.
        actor_tab-OTYPE = 'US'  . 
        actor_tab-OBJID = 'SAPUSER2'.
        append actor_tab
        actor_tab-OTYPE = 'US'  .
        actor_tab-OBJID = 'SAPUSER3'.
        append actor_tab
      endif.
    endif.
    Similarly write the logic for other conditions.
    This way you can use same for different purposes.
    If you pass the indicator that means you are sending mail to other approvers for information.
    Revert back if u need more help.
    Regards,
    Gautham

  • Call Center Agent's Need to See Sent Mails in Their Inbox

    Hi Gurus
    I am looking for a way to allow the sent mails to be seen and viewed in the Call center agents inbox on the Web UI.
    We are using EHP1 is the above mention possible for us?
    Many Thanks in Advance
    Vikas

    What about sending them to himself as BCC automatically? That would be a small change.
    Best regards,
    Thomas Wagner

  • BPM User decision Agent assignment

    I am working on User decision steps in BPM. I have added Configurable Parameter in Integration Process but after importing it into ID, I am not able to assign any user in parameters. Once I put the value and save/activate, value got cleared out.

    Click workflow  log (use any of the log transactions, swi1, swi2_freq swi6 etc)
    click list with technical details, shift+F9
    find the step, click on it and tick the tab container.
    But if you could just answer my previous question about how you are sending the mail, because if you directly use email address then it is of course impossible to use that as agent assignment for the user decision.
    A user decision is ultimately sent to a user id
    Kind regards, Rob Dielemans

  • Extended Notification not working for Dialog Task with agent assignment

    Hi Friends,
    I have an issue where I have a user decision step and a sub workflow contains a dialog task with agent assignment.
    Extended notification is configured properly and is working properly for user decision step but its not working for the dialog task created as an activity.
    Batch jobs are configured to run report SWN_SELSEN.
    I was checking SDN and found this discussion handy :
    http://help.sap.com/saphelp_nw73ehp1/helpdata/en/4f/3bed495cc018c8e10000000a42189e/content.htm
    One thing that wonders me is that notifications show up in SOST 4-5 seconds before the user decision step starts execution.
    See screenshot from SOST and WF log.
    SOST log :
    2 questions here: Why is notification not being sent for Dialog task?
                              Why is user decision notification being sent that early even before the User decision task starts execution?
    Please provide your valuable inputs.
    Regards,
    Sandip

    An activity step with agents is supported by the extended notifications if it is a decision task or not, I have used it many times and it works well just no approval/rejection links if it's not a decision task.
    From your screenshot you can see that a mail has been created and is found in SOST, usually this cases are problems with the mail server or connection to it, check the mail settings in the SMTP node in transaction SCOT, also check with mail server team if there is a block to/from the SAP server.

  • Agent Assignment Missing

    Hi Experts,
    I have created a custom workflow which has a user decision step. We have used a rule for agent assignment and we have also maintained General task: can be edited by all users. We have implemented deadline monitoring for this step.
    When we moved this workflow to QA, agent assignment (General task: can be edited by all users) was not transported.
    Now when we executed the workflow, agent was not determined, but still deadline emails were triggered.
    Is this correct ? Shouldnt the workflow go into an Error state as no agent was determined ?
    Note: I know that we can transport agent assignment using RE_RHMOVE30.
    Thanks.

    Requested start states , when the workitem must be  sent to user's inbox, In Simple, it mentions after how much interval of time the workitem will in the user's inbox
    In your case after 3 Mins of.... (check it)  the workitem will be in the user's inbox,
    and coming to Latest End  , it is a grace period to user to act on the workitems, if user does not act on the workitem then this deadline is reached, in your case teh suer has give one day , if he does not act on the workitem with in one day the deadline is reached.

  • Error in SEND MAIL step with exception 1001

    Hi Experts,
    I am getting exception 1001, error message Document <&> could not be sent
    when I put my user id in SEND MAIL step. In the same workflow,I put my user id at an activity step,and I am sucessfully receiving work item generated at that activity step in SAP Business workplace inbox.
    Can anyone please tell me why exception is happening in SEND MAIL step.
    Thanks,
    Sonali.

    Hi Surjith,
    Firstly Workflow was running fine till yesterday.
    Secondly, I put expression &_WF_INITIATOR& in the Send Mail step. Notification should go to my SAP business workplace->inbox->Document. But it is not going. Exception 1001 is happening.
    But in the same workflow, just at the immediate next activity step I put &_WF_INITIATOR& again as agent. And I am successfully receiving workitem in SAP business workplace->inbox->workflow for this activity step.
    Please guide me how to resolve the issue and why suddenly it is happening so.
    Thanks,
    Sonali.

  • Regarding Mail step in a workflow.

    Hi All,
    I have a Mail step in the work flow and the mail needs to be send to all people in a particular position. But the position number is not a static one it is determined dynamically in back ground step and is available in an element of the workflow container.
    The problem is when i choose position in the Agents i am not able to assign the workflow container element.
    The WF container element refers to: SWHACTOR-OBJID
    Could anyone please tell me the solution.
    Points are definite.
    Thanks & Regards,
    Goutham.

    Hi Umang,
    Thanks for your reply. I have 2 doubts about this.
    1.) Is it fine if I change the event of this standard workflow itself. i.e. from RELEASESTEPCREATED to RELEASED ?
    2.)If I create a customised workflow & if I change the event from  RELEASESTEPCREATED to RELEASED then will it send the mail to PO releaser for each release, because the current process to send mail to each releaser is a must, only the confirmation for each PO reelase should be stopped.
    Please suggest .

  • Setting multiple receipents (external mail adress) of mail step

    I have a workflow which is Purchase order Recejted.
    I copied it and trying to send mail to multiple external mail adresses.
    I created an element in workflow container. SOXNA-FULLNAME (Multiline).
    I created the mail step. But I want to write a method to get the receipent mail adresses and pass it to this element and again pass element to mail step.
    But I'm not sure where to write the method, I mean is it should be a step including a task etc.
    Thanks for any help

    Hello Karri,
    I did all the steps you told. Here is the screen shot of workflow;
    (The last step is PR Rejected - It is Turkish there)
    My question is: What should be the Agents of Get Mail Adresses step ? Because it asks one. I write down the WFINITIATOR as Agent of Get Mail Adresses step but the next step is not triggered until I Execute it in SAP INBOX.
    Graphical view of progress is like this;
    After I execute it ;
    And after this nothing happens, no mail sent to anyone.
    I dont want any agent in any step I just want to send mail to the mail adresses I give. Can you help me to fix this ?
    Thanks.

  • RFQ Workflow: Agent assignment

    Dear All,
    We are working on the Release RFQ workflow.
    Per my understanding, the IMG settings determine the users/OUs who should be receiving mails
    to release the RFQ. This multilevel approval is in place.
    Now, I have created an RFQ, this triggered the workflow, but there is an error in the release activity.
    The error says "Purchase reqn number is not found".
    Do we need to explicitly mention the release rule 20000030 in the agent assignment section
    of the workflow? Why does the error abt purchase reqn appear?
    Does it look if the RFQ is created w.r.t Purchase reqn?
    As this is both MM/workflow related doubt, Iam posting it in both the forums
    Please help me.
    Thanks,
    nsp.

    Thanks for your response.
    These steps are already taken care of.
    Now, what I have done is, I have created an RFQ  with reference to a purchase requisition. In SWEL, I see workflow WS20000080 triggered. But I get an error saying "Element purchase order is not available in the container. Error in resolution of rule 'AC20000030' for step.  Agent determination failed"
    Can you advise me? Why does it look for purchase order ?
    Thanks,

  • Get agents to send a mail before a task.

    Hi Experts,
      I am sending an approval screen to the approver. Before that I need to send a mail to the approver as notification. The Task which I send an approval screen has a rule to get the agents. But how can i get the agents before that to send a mail. Please help.
    Satish

    Hi,
    As you >> That is the mail will be sent first then the agents will be retrieved in the next task. I need to get the agents before the task and my mail to be sentt to the users first then the work item should be sent.>>
    I dont think it makes any difference, i mean sending e-mail and then workitem or vice virsa. The purpose of e-mail in general is to let them know that they have a workitem to act upon. As Arghadip suggests, a scheduled job based on Program RSWUWFML2  with required variant would solve your problem.
    However, if at all you dont want use the above program and to go for send mail step prior to decision step, you can use the same logic used in rule ( if it is FM based rule, it will be bit more straight forward) to find the agents and use these agents in send mail step based on SELFITEM.SENDTASKDESCRIPTION. Enable the Auto Forward option in SAP Inbox for users.
    Hope this helps you !!
    Regards
    Krishna Mohan

  • Reg : mail step in wf

    hi ,
    In my workflow..when ever quotation is created.(suppose USER1 has created quotation)......
    Workflow starts  and there is an activity with task and rule in task.
    The rule finds the responible agent and sends the work item to that ID (suppose USER2 has received the workitem).
    After the agent checks the workitem in his inbox..and approves the quotation..... a mail should be sent to the  user who careted quataion(USER1).
    I kept a mail step below thw activity with agent as workflow intitaor.
    but its not working.
    what would be the mistake??
    Can anyone help me ????
    regards
    Arjun

    Hi Arjun,
    Check if you are able to get the value of the WF initiator in the workflow container.
    This would only come if you have binded the triggering event container to the workflow container.
    This is done in 'Basic Data' button, 'Start Events' tab. Here do the binding in between the event and the workflow as &_EVT_CREATOR& => &_WF_INITIATOR&.
    Hope this helps!
    Regards,
    Saumya

Maybe you are looking for

  • Submit rfbibl01 fails in background as 'LIST_FROM_MEMORY'  raising exceptio

    Hi All, I have a requirement where I submit "rfbibl01" in a custom program. The program works fine in foreground. Below is the code I am using for foreground run. The list output of rfbibl01 is being written to memory using the below submit statement

  • Display a file name in th URL instead of the procedure name

    Hi , I've created a Portlet that would show a word doc stored in a blob when a user clicks on a link. However only the procedure name that downloads the word document from the BLOB appears in the URL but not the actual file name. Is there a way to sh

  • Need to control Closure of Purchase Order on Creating GRPO or A/P Invoice

    Hi All,          I have created a single Purchase Order with multiple Line Items. This Purchase Order is to be executed every Much. We do not wish to give the Vendor a new Purchase Order Every month and want to use the first Purchase Order for refere

  • XDB Native Web Services - Collection of object types

    Hello, my DB 11g (11.1.0.6.0) is enabled to use XDB Native Web Services, everything works as it should. I already use it successfully to publish a web service with object types as OUT parameter. They are created as complex types in the XML response a

  • Syncing photos FROM iphone TO windows xp

    How do I sync my photos FROM the iphone TO my xp desktop? inb4 buy a mac inb4 buy an app Itunes version 9.0.2.25 I have asked this question many times with no answer. *** is your problem, Apple?