Issue in workflow binding of Table in send mail step

Hi All,
I am working on a Travel Management workflow where mail needs to be sent to the manager along with the trip details.
We are displaying data in tables (html format). Now i need to add another such table with details into this already existing workflow but i am facing issues in binding.
Issue: For already existing tables, the binding is like this,
Export to task,
&TRIP& --> &T_SUMMARY##&
Import to w/f,
&T_SUMMARY##& <--- &T_SUMMARY##&.
But when i am trying to add my table in binding as, &TRIP& --> &T_MILEAGE##&,
I am getting a binding error, &T_MILEAGE##& is not available in the container.
I checked the container both in workflow and in task, both contain multiple declarations of the variable &TRIP& which is of type the BO.
Kindly help me how to proceed further.
Regards,
Jose

Hi Anjan,
The status of  note  1658491 is also cannot not be implemented.
I checked the correction given in this note. All changes exists into system.
Following is code of method SEND ( (CL_SWF_UTL_MAIL_FACADE)
*- check if document has recipients at all
       lt_recipients = lo_send_request->recipients( ).
       if lt_recipients is initial.
         lo_send_request->delete( ).
         ls_t100msg-msgid = 'WZ'.
         ls_t100msg-msgty = 'E'.
         ls_t100msg-msgno = 619.
         raise exception type cx_swf_run_wim
           exporting
             t100_msg = ls_t100msg.
       else.
*-       Send document
         call method lo_send_request->send( ).
       endif.
The exception is thrown, because lt_recipients table is blank.
With same parameter the workflow is running successfully if 'Long mail title' is not set in SWPA.
When is field is active, workflow returns message Document <> could not be sent
The method "SELFITEM->SendTaskDescription" does not send mail if Long Mail Title" indicator is set .   
Thanks & Regards,
Mounj K

Similar Messages

  • Send Mail step in ready state

    Hello Experts,
    I am a workflow novice, just starting out.
    I have copied the standard PO release workflow - WS20000075 and inserted a send mail step before activity "Release of purchase order". This was because I would like to send the PO as a PDF attachment to the approver.
    The send mail step works fine (i have custom object and method to attach and send mail), it sends out the mail with the attachment correctly, but the work item is in "ready state" and needs to be manually "completed" for the workflow to proceed. After this, the workflow proceeds perfectly.
    The send mail is marked as a background task and synchronous object method.
    What do i need to do for the "Release of purchase order" to happen as soon as the email has been sent out?
    Thanks a lot for the help.
    Regards,
    Parag.

    Hello Ravi,
    Thanks for the prompt reply, there are no erros in the workflow log.
    SWU3 was definitely done, standard PO Release workflow works fine and so do other ones. Its just that I copied the standard and inserted a new step.
    Do I somehow need to "terminate" the send mail step for the workflow to move over to the next activity ?
    Regards,
    Parag.

  • SEND MAIL STEP IN WORKFLOWS.

    hi gurus,
    The send mail step sends a notification to the sap inbox of the user. This step works fine in a client, whereas it fails in another......I am not aware of the reason.
    Regards,
    Sukumar.

    hi,
    please check the agent finding rule is failed in the log or the background job is scheduled properly inorder to schedule or delver the mails using the transaction : swnconfig if it EP 5.0 or above.
    if it is issue with the workflow like buffer problem, then try this technique
    You have changed your workflow template in client 000. If you look to the workflow definition in another client with SWDD, then you see the newest version as just maintained in client 000. But at runtime, the old (former) version of the workflow definition is used.
    Cause:
    When activating a workflow template, then also some client specific data is replicated from client 000 to the other clients. In this replication there is currently an error. I just talked to a workflow colleague. The problem we have observed seems to be just the tip of an iceberg ... . They are working on the issue(s) related to this.
    Workaround:
    Execute  function module SWD_WFD_REPLICATE_FROM_9999 in the client, you need to have the newest template definition. Enter your workflow template ID (with pattern "WSxxxxxxxx") in parameter IM_TASK and execute. Make sure that you do not lock the template in SWDD.
    Then you also (may) need to execute transaction SWU_OBUF to synchronize the buffer
    i hope this answers your query.
    Regards,
    Saujanya

  • Logo in send mail step - workflow

    Dear Experts,
    I'm using send mail step for sending mails from workflow to external mail id's in workflow, i need company logo in the same is it possible to do, or suggest me how to do on this issue.
    Thanks and Regards,
    Thirukumaran. R

    Hi Sunil,
    I assume that the login ID is SUNIL and the expression is fetching the 'US' appended value as USSUNIL.
    Please check the datatype of the fetched value. It should be WFSYST-AGENT.
    Regards,
    Saumya

  • How to send mails in HTML format from the send mail step of workflow?

    Hi,
    I have a requirement where I need to send mails in the html format from the send mail step of the workflows.
    But what I found out that the html tags are not renderd and as such the output is in plain text.
    I know that there is an alternative of using an activity step and use my own custom code from within there,But due to certain business constraints, I need to use the send mail step only.
    My SCOT settings are all right.
    Please let me know how it can be done.
    Thanks,
    Samrat.

    Samrat,
    It can't be done, you have to use your own activity step.
    What are these constraints that refrain you from doing that?
    Rgds,
    Patrick

  • How to restart an workflow if ended in error at SEND Mail step.

    Hello All
          I am facing some problem in restarting the error workflow.
    Issue is:
       Workflow ended in error at the mail notification step, since the mail id is not filled into the container so there is no address (mail id) and ended in error.
       How to restart these kinds of workflow in the system?, we have tried to change the container value by assigning mail id and restarted the workflow but still went into error.
    Is it possible to restart an workflow which ended in error other than rule resolution.
    Regards
    Anand KS

    I think you went in the write approach. I think you have to change the container properly by populating the ADDRESSTRING container element. Also check whether type of email recipient in your container is et to Email.
    Thanks
    Arghadip

  • 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

  • Send mail step of workflow

    Is it possible to create a new task for the send mail step of the workflow instead of using the standard task TS45308726-send mail?

    Hello Binil,
    I can't see why you would want to create another task. This task should be able to provide you with all you need.
    Any way, it is definitely possible. All you have to do is to create a method in a class that will send the desired e-mail. Inside this method you can call any send e-mail function module (for example, SO_SEND_OBJECT or SO_OBJECT_SEND - I'm not sure of the order, but you should be able to find it). After that generate a task that calls this method (using transaction PFTC).
    After that, you can insert this newly created task into your workflow template.
    Regards,
    Abdullah

  • SEND Mail Step Mail body is not getting displayed in SOST Transaction

    Hi Gurus,
        I have a very strange problem. I have developed a workflow to send notifications.  My client wants to send notifications in different languages based on the user. If the users language is english, the notification mail should trigger in english. If the user's language is French, then the notification mail should trigger in French. like if the user's language is chinese, the notification should be in chinese.
         I have used the Standard text objects (SO10) and read the text based on language of the user into the workflow container element. We have passed that container element (which has the required text in users language) to text_lines in SEND MAIL step of the workflow.  I am getting the text in the correct language based on the user.
        When the mail triggers to user, the user is getting a blank email. There is no body/text in that email.  We have checked the SOST transaction and observed that the notification email doesnt have any body, even though we have the text in workflow log.   For the users who have the English language, they are getting the text in their mail, SOST and workflow log. Where as for the other languages (French, Chinese, Spanish etc...), they are getting the blank mail, (SOST doesnu2019t have body text) but in workflow log the correct text(based on user language) is getting displayed.
        I tested the same workflow in devlopment & quality, everything is working fine. All users (English & Non-English) getting mails in their respective languages. Where as in production, only for English users it is working, but for Non-English users it is not working.   I have compared all three environments workflow definitions and they are same. I do not understand why this is behaving differently in production. Could you please help me how do I resolve this issue. 
        May I know, does any one has faced similar issue. I request you to throw some light in this area.
       Thanks in advance.
    Regards,
    V.Nagaraju

    Hello,
    Interesting! That seems like a foolproof way to handle the language problem
    which can be a challenge in multi-language workflows. Please be sure to tell us
    how you solve this and what the cause was.
    You keep referring to the language of the "user". I assume you mean the
    mail recipient?
    You have to watch out with the workflow logs, they take the language settings
    of the person viewing it into account when displaying texts, unlike SOST.
    "I have used the Standard text objects (SO10) and read the text based on language of the user into the workflow container element"
    Which user actually executes the method to do this? Is it WF-BATCH?
    Are you using an actual SendMail step? And you reference the variable text_lines##
    in the task description?
    regards
    Rick Bakker
    hanabi technology

  • How to send Formatted text in send mail step

    Greetings
    I need to send a formatted email in the send mail step of WF, however I don't se any option to change the font/size/color etc. Currently the email body contains only simple text.
    Appreciate your quick response.
    Thanks

    >
    Weise, Roman wrote:
    > Hello Manas,
    >
    > sending a formated email with a standard mail step will not be posible as far as i know. in general sending formated emails only makes sense if you can be sure that you are in a completely consolidated environment, e.g. a company where everyone uses the same mail client with a configuration ensure through a company pc template. if you try to send formated mails to heterogeneous environment you won't be happy as email clients / web mail providers are so different that you will be busy triying to get an acceptable layout for eternity (i deal a lot with mail sending to externals and always have these discusions with my customers).
    >
    > If you are sure you have a consolidated environment you could try to send a smartform through a functional method in a workflow. smartforms allow a high flexibility in layout. If you want to try this option i can give you additional help on the implementation.
    >
    > Best Regards
    >
    > Roman Weise
    Hi Roman,
      I have the same issue and I'm in a consolidated environment. I'd like to know if sending through a smartform will produce an e-mail message with attachment or just a text mail and the steps required to do so.
    thanks in advance
    Stefano

  • 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.

  • ERROR  in send mail step

    In workflow  i have  user decision step with attachment as PDF, after he rejects i should send a notification to the initiater about rejection, I used send mail step after the user decision step of rejection branch,,  the send mail step is giving following error..occurs
    Executing batch work item ;Work item 000000653444: Object SELFITEM method SENDTASKDESCRIPTION cannot be executed.
    EXECUTE_METHOD_OBJECT_SYNC ; Method container for work item cannot be created
    EXECUTE_METHOD_BOR ; method container for work item cannot be created
    Executing batch work item Unable to instantiate object '_ATTACH_OBJECTS'
    is this attachment is creating any problem..

    Hi Sunil,
    In the user decision step check the binding. The attachment should be binded from workflow container to the task container and from the task container to the workflow container.
    The description given by you indicates that the binding has been done one way only i.e. from workflow container to the task container. It should also be from the task container to the workflow container.
    Since it is not able to get an instance of the '_ATTACH_OBJECTS' it is giving an error.
    Regards,
    Sameena

  • Send Mail Step forced to error status

    Hi,
    In my send mail step, i'm using Expression and passing 'UserComplete' field which is the person who has completed the document in FV60 tcode. But, it ends in error status.
    The error message is,
    Work item 000000399146: Object 000000399146 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.
    I want to know wat binding should i give for task and method ?
    Regards,
    JMB

    Hi,
    Just check what your passing in the field "UserComplete".
    You need to pass user id as USXXXXXXXX.
    US refers to USER and XXXXXXX is the user name.
    Reply back if the problem still exist.
    Regards,
    Gautham P

  • Multiple Send Mail Steps

    Hi All,
    I want to have multiple send mail steps (around 100) in my Workflow. But whenever create a step it creates a new Standard task. I do not want to create so many of them.
    Is there any way I can minimise that ? Consider that each send mail steps will have different Subject and body.
    Thanks & Regards,
    Debabrata Mohanty

    Hi Sanju,
    Thanks for the reply. I have to send miltiple mails to multiple people at multiple stages (Not at the same time).
    The subject and body are different for different mail. I could have used dynmic variables from worklfow container.
    But the subject and body are descriptive texts more than even 1000 characters.
    I thought of creating multiline string variables. But again we can not format the paragraph, punctuating and all in the
    body part if I only bind dynamic variables from workflow container.
    Hope you got the problem.
    Thanks & Regards,
    Deb

  • Multiple users in send mail step

    Hi,
    I have to pass mutiple users to send mail functionality to send UWL notification. These users belong todiff org units. Is there any option available in send mail step.
    Thanks
    Swamy

    Check teh binding of the task, it uses multiline element containers for addresses and for recipients etc.
    also check this link: http://www.sdn.sap.com/irj/scn/advancedsearch?query=multipleusersinsendmail+step
    then filter down on forum, then workflow.
    Edited by: Rob Dielemans on Sep 7, 2010 2:41 PM

Maybe you are looking for

  • Hd 7790 2gb radeon on Vista - disaster

    My machine vista 32 bit home Previous card palit geforce 8400 gs 550w psu 4 gig ram I installed the card and driver and initially it worked. After 30 minutes while running game developers software and game my computer blue screened bsod for the first

  • Uploading PHPBB forums

    Can this be done? I would like to upload a forum to use inreplace of a blog. How can I do this? For example, lets say my website is web.mac.com/travis.royer, i would want to be able to make a web.mac.com/travis.royer/forums. Is this possible? If so,

  • How to remove a picture / wallpaper on lock screen?

    Hi, I have a question and hopefully somebody can help me, how to remove a background on the lock screen? I just want to have default settings back, without any picture on my lock screen but I want to see home screen only. Does anyone know how to chan

  • MyRIO upgrade to Ni-myRIO13.1 may require chrome browser reset

    I upgraded the myRIO to the newest drivers myRIO13.1 and afterwards connecting to the web server was partially broken. Most sections worked, but the buttons for: Security Administration Web services management Web Server configurations ... were no lo

  • Wireless keyboard with Marvicks doesn't work properly

    It's not easy to post this article due it's Marvicks (?) / Apple wireless keyboard problem. Once I'm at home, I use my MBP like a desktop by connecting with Apple wireless keyboard/mouse. Works Great! Since a while, I updated to Marvicks with great e