Printing Long text in Send Mail Task

Hi All,
My requirement is to print the long text of particular error message in the send mail task, which will be sent to outlook.
for this i have an activity beforr the mail task, where i have filled the multiline parameter called 'TEXT' and this is exported to workflow also.
In my send mail task, in the body of the message, using insert expression i have inserted the multiline container 'TEXT' with the option of line break, so it came &TEXT##&.
But once the WF is executed , i checked the WF log and found that the mail is sent and i have checked the container 'TEXT' in my previous activity where the TEXT container has 10 lines.
But when i checked the mail in SOST the contents of TEXT is not getting printed.
What will be the issue?
Thanks and Regards,
Swaminathan

@Rick
How is TEXT defined in the container? Is it passed in via the binding?
I think if at all you want to use the container element in the mail then binding is not necessary from workflow to task.
@Swaminathan PJ 
the multiline container 'TEXT' with the option of line break, so it came &TEXT##&.
Try to print the entire text continuosly with out line breaks then it works.

Similar Messages

  • Dynamic 'Include Text' syntax not working in Send mail task.

    Hi all,
    I want to send some dynamic text via send mail task to agents.
    I tried creating a standard text in SO10. In send mail task in Descriiption tab added the below syntax to call inculde text.
    "INCLUDE ZTEST OBJECT TEXT ID ST LANGUAGE EN". This works and i can see the text in mail  in my sap inbox.
    Now when I try to add text using a variable as below it simply display the sytax and not the text in ZTEST.
    "INCLUDE  &VAR1& OBJECT TEXT ID ST LANGUAGE EN"  *Where VAR1 = ZTEST.
    Please let meknow if i am missing something.
    Thanks
    Edited by: Sunny80 on Oct 20, 2009 11:02 AM
    Edited by: Sunny80 on Oct 20, 2009 11:04 AM

    Hello ,
    Please provide the details as how it is resolved so that others can follow.
    thanks
    srinivas.

  • Send Mail Task error- 2012.

    Hello Team,
                       When we are running a job which is having the SEND MAIL Task, the job is getting failed with the mentioned error. Could you please look into the
    below mentioned error and can help us on the resolution for this issue?

    Hi Pradeep,
    Please ensure you have install SQL Server Integration Services on the server. For more information about install Integration Services, please see:
    http://msdn.microsoft.com/en-us/library/ms143731(v=sql.110).aspx
    If you have installed, please ensure the SSIS service is started. We can type in "Services.msc" command which will open services window. Here is a similar thread about this topic for your reference:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/5cb39010-0899-40a0-a6cd-b7bddd6a70ca/package-giving-error-when-executed-through-bat-file?forum=sqlintegrationservices
    If you have any feedback on our support, please click
    here.
    Elvis Long
    TechNet Community Support

  • How to print long text in scripts

    plzzzzzzzzz answer this qestion
    how to print long text in scripts

    Hi Kranthi,
    You can create Text Id and include that in your script.
    For example:
    /E TEXT
    /: INCLUDE ZTEXT OBJECT TEXT ID ST
    Hope this helps.
    Please reward if useful.
    Thanks,
    Srinivasa

  • How to Print Long Text

    Hi All
    I want to print long text of WCD (work clearance document) in smart form (Field name is LTXT). How do i do. I don't know different parameters for function module 'READ_TEXT'. Any suggestion.
    Thanx and Regards,
    Rajesh Vasudeva

    Hi,
    Go to the text in the Standard Document and then double Cliick on it. Then Click on the Lens below(Detail). In the new screen, Naviagate Goto---->Header. It will give you the relevant details like Text object, Text ID etc which can be used in the read text FM. Usally the text name is the Document Number and the Text ID  and Text Object is Constant for that particular Document type.
    Hope this helps
    TC

  • How to print long Text & No of page settings in F-58

    Dear Gurus,
    Can anybody guide me reg. below:
    01. user want to print long text also along with document.
    02. When user printing F-58 Payment advice..where we can set no of pages
    Pls guide me.
    REgards,
    Venkat

    Hi,
    a. Display Document FB03 and change current layout (Ctrl+F8) and choose GL Long Text (SKAT_TXT50).
    Rgds.

  • Long text indicator against Notification task & SubOrder creation

    Hi all,
    We are using BAPI_ALM_NOTIF_ADD to create long texts against the notification tasks. Though the long texts are created and can be viewed through IW22, the long text indicator in QMSM table is not set and hence when I display the notification through IW23 and navigate to the tasks, the long text available icon is not displayed. I tried to use CREATE_TEXT and SAVE_TEXT as well. Somehow the long text indicator doesn't get set. Do I need to explicitly set this indicator after the BAPI call? Please provide your valuable inputs.
    Also, I have one more issue. Is there a way of creating Sub Order against the PM order through a BAPI? We have a requirement to create a Sub Order against the superior PM order through transaction IW36. Could you please suggest if any of you have come across any BAPI that supports this requirement?
    Thanks & Regards,
    Vidya

    I know I am posting answer to very old thread as did not find any answer so far, so giving clue. See if new solution seekers this helps you now…
    Cause:
    As the create_text or save_text  does creation of text at data base level and does not pass through all the screens of the particular transaction, so the text editor icon is not enabled  [like in tcode IW23 (IW33) Notification display text editor, tables holding damage text and cause text indicator qmfe-indtx & qmur-indtx I ]
    Solution:
    Read existing text using FM READ_TEXT i.e. retain existing text in internal table, say IT_READ
    Delete existing text using FM 'DELETE_TEXT'. Remember to set save_direct = x
    Perform BDC to add dummy text doing call transaction. This will set text indicator to ‘X’.
    Append your new ext to IT_READ.
    Now create text again using FM 'CREATE_TEXT'. Remember to set save_direct = x
    If you have requirement that created text should not be editable then you need to change format of IT_READ.
    Like IT_READ-tdformat = ‘>X’ & IT_READ-tdline = ‘*<one space><your text>’ [may use CONCATENATE '*' IT_READ-tdline INTO IT_READ-tdline SEPARATED BY space.].
    Below are above steps code snap shots.
    Bdc part for IW22
    PERFORM bdc_dynpro USING 'X' 'SAPLIQS0' '7200'.
    PERFORM bdc_field USING 'BDC_OKCODE' '=TXPS'. "DAMAGE_TXT icon
    or   PERFORM bdc_field USING 'BDC_OKCODE' '=TXUR'. "CAUSE_TXT icon
    Based on your text editor configured to keep track of timestamp log, use one of the option. My case first two lines of text editor shown timestamp log lines and they are non editable.
    *  PERFORM bdc_dynpro USING 'X'  'SAPLSTXX' '1100'.
    *  PERFORM bdc_field USING 'BDC_CURSOR'  'RSTXT-TXLINE(02)'.
    *  PERFORM bdc_field USING 'BDC_OKCODE'  '=POSF'.
    *  PERFORM bdc_field USING 'RSTXT-TXPARGRAPH(02)' '*'.
    *  PERFORM bdc_field USING 'RSTXT-TXLINE(02)' 'Dummy text for indicator line 2'.
    *  PERFORM bdc_dynpro USING 'X'  'SAPLSTXX' '1100'.
    *  PERFORM bdc_field USING 'BDC_CURSOR'  'RSTXT-TXLINE(03)'.
    *  PERFORM bdc_field USING 'BDC_OKCODE'  '=POSF'.
    *  PERFORM bdc_field USING 'RSTXT-TXPARGRAPH(03)' '*'.
    *  PERFORM bdc_field USING 'RSTXT-TXLINE(03)' 'Dummy text for indicator line 3'.
    PERFORM bdc_dynpro USING 'X'  'SAPLSTXX' '1100'.
    PERFORM bdc_field USING 'BDC_CURSOR'  'RSTXT-TXLINE(04)'.
    PERFORM bdc_field USING 'BDC_OKCODE'  '=POSF'.
    PERFORM bdc_field USING 'RSTXT-TXPARGRAPH(04)' '*'.
    PERFORM bdc_field USING 'RSTXT-TXLINE(04)' 'Dummy text for indicator line 4'.
    PERFORM bdc_field       USING 'BDC_OKCODE'  '=TXBA'.
    FORM bdc_dynpro USING    value1
    value2
    value3.
    CLEAR bdcdata.
    bdcdata-dynbegin = value1.
    bdcdata-program = value2.
    bdcdata-dynpro = value3.
    APPEND bdcdata.
    ENDFORM.                               " BDC_DYNPRO
    form DELETE_EXISTINGTEXT.
    CALL FUNCTION 'DELETE_TEXT'
    EXPORTING
    CLIENT          = sy-mandt
    ID              =   LTXT
    LANGUAGE        =   E
    name            =   <notification number + suffix>
    –  determine from text editor header damage text need suffixed 0001 , cause text need suffixed 00010001
    object          =   QMFE = damage or QMUR = CAUSE
    savemode_direct = 'X'
    *     TEXTMEMORY_ONLY = ' '
    *     LOCAL_CAT       = ' '
    EXCEPTIONS
    not_found       = 1
    OTHERS          = 2.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT          = gc_x
    endform.                    " DELETE_EXISTINGTEXT
        CALL FUNCTION 'CREATE_TEXT'
    EXPORTING
    fid         = LTXT
    flanguage   = E
    fname       = <notification number + suffix>
    –  determine from text editor header damage text need suffixed 0001 , cause text need suffixed 00010001
    object          =   QMFE = damage or QMUR = CAUSE
            fobject     = QMFE = damage or QMUR = CAUSE
    save_direct = x
    fformat     = ‘>X’
    TABLES
    flines      = t_editor_text
    EXCEPTIONS
    no_init     = 1
    no_save     = 2
    OTHERS      = 3.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    wait = gc_x.

  • Send Mail Task runnig OK but doont send the mail

    Hi Experts,
    My workflow is running OK, the Send Mail task is OK without erros but in SOST there are no items.
    It was working until July 14, after this day no more entries in SOST.
    Can Anyone help-me ?

    Hello,
    Could it be a problem with the mail system? Are you sure mails haven't arrived - it could be that your search in SOST is having problems. I think there's a checkbox for "Transmitted" which is unchecked by default.
    Check in the workflow log (SWI1) whether the SendMail steps after July 14th had any errors.
    Check ST22 for any matching dumps.
    What happens if you send a mail manually from SBWP, does it work?
    regards
    Rick Bakker
    hanabi technology

  • Configure different contacts in Send mail task

    Hi experts,
    please help in below doubt
    How to configure the send mail task to use different contacts in different environment with environment variable ?
    Thanks

    hi ,
    You can set your Recipient list in one variable then in send mail use can set that variable value in expression for
    TOLine.
    You can use below link;
    http://stackoverflow.com/questions/5075073/send-email-to-dynamic-recipient-ssis-send-mail-task
    Thanks
    Please Mark This As Answer or vote for Helpful Post if this helps you to solve your question/problem. http://techequation.com

  • Script task to convert output from a sql query into send mail task body formatting

    SSIS 2008R2 Version
    Code from script task
       Microsoft SQL Server Integration Services Script Task
       Write scripts using Microsoft Visual C# 2008.
       The ScriptMain is the entry point class of the script.
    using System;
    using System.Data;
    using Microsoft.SqlServer.Dts.Runtime;
    using System.Windows.Forms;
    namespace ST_29dd6843bd6c4aee9b1656c1bbf55ba8.csproj
        [System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
        public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
            #region VSTA generated code
            enum ScriptResults
                Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
                Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
            #endregion
            public void Main()
                Variables varCollection = null;
                string header = string.Empty;
                string message = string.Empty;
                Dts.VariableDispenser.LockForWrite("User::gsEmailMessage");
                Dts.VariableDispenser.LockForWrite("User::gsWebserviceName");
                Dts.VariableDispenser.LockForWrite("User::gsNoOfCallsInADay");
                Dts.VariableDispenser.LockForWrite("User::gsCalledBySystem");
                Dts.VariableDispenser.GetVariables(ref varCollection);
                //Set the header message for the query result
                if (varCollection["User::gsEmailMessage"].Value == string.Empty)
                    header = "Hi, Count is greater then 50 :\n\n";
                    //header = "Execute SQL task output sent using Send Email Task in SSIS:\n\n\n";
                    header += "----------------------------------------------------------------------------------------------------------------------" + "\n";
                    header += string.Format("{0}\t\t\t\t{1}\t\t{2}\n", "WebService Name", "No Of Calls In A Day", "Called By System");
                    header += "----------------------------------------------------------------------------------------------------------------------" + "\n";
                    varCollection["User::gsEmailMessage"].Value = header;
                //Format the query result with tab delimiters
                     message = String.Format("<HTML><BODY><P>{0}</P><P>{1}</P><P>{2}</P></BODY></HTML>",
                                            varCollection["User::gsWebserviceName"].Value,
                                            varCollection["User::gsNoOfCallsInADay"].Value,
                                            varCollection["User::gsCalledBySystem"].Value);
                varCollection["User::gsEmailMessage"].Value = varCollection["User::gsEmailMessage"].Value + message + "\n";
                Dts.TaskResult = (int)ScriptResults.Success;
    Above code will return data in below format and then i send this output in aemail using send mail task.
    Hi, count is greater then 50 :
    WebService Name                                                         
    No Of Calls In A Day                        Called By System
    WebServiceone                                                     1                             
    Internetbutiken
    WebServiceGetdetailstwo                                                  1                             
    Internetbutiken
    Servicenamethree                                                            2                             
    MOB
    As you can see above code is not in align as if we service name is shorter then 2nd column get disallign and its not look good.I need output should be like below.
    Hi, count is greater then 50 :
    WebService Name                                                         
    No Of Calls In A Day                        Called By System
    WebServiceone                                                              1                             
    Internetbutiken
    WebServiceGetdetailstwo                                              1                             
    Internetbutiken
    Servicenamethree                                                          2                             
    MOB
    Please suggest something...
    Thanks 
    SR_MCTS

    See code explained here
    http://microsoft-ssis.blogspot.in/2013/08/sending-mail-within-ssis-part-2-script.html
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs
    This will not help.As I am not creating smtp connectin ,send from ,send to in script task.I am just creating email body from sql output.

  • Send mail to external id using send mail task in workflow

    hello,
    i am trying to send mail using send mail task in workflow for an external email address (yahoo).No pernr here it is associated .
    IN scot, it shows it is transmitted,but i dont find any in my mail box.
    But when i send it from business workplace, i can see the mail in my mail box.
    Can you please help me in this regard.
    Best Regards,
    Saujanya.

    Hi Saujanya,
    When you send it from the workplace you also send it to your Yahoo mail-id? As far as I can see from you replies the problem lies outside of SAP. Maybe a SPAM filter which blocks the message. This could be due to the mail-id which sends the e-mail.
    Regards,
    Martin

  • Send mail task

    Hello!
    I'm trying to set up a send mail task, but even after setting the taks properties or/and the server settings (SMTP server, e-mail address), I still get the following error message:
    Failed to connect to email server: null. Reason: Could not connect to SMTP host: localhost, port: 25: com.adobe.idp.dsc.email.ConnectionFailedException: Failed to connect to email server: null. Reason: Could not connect to SMTP host: localhost, port: 25
    Does anyone have any idea?
    Thanks!

    If you are using Send with Document, you do not need to configure your email settings in  (Services> ES2 LiveCycle Process Management> Server Settings> Email Settings). These Email Settings are for sending task assignment notifications for Workspace users.
    Instead, configure the settings on the "Connection Settings" tab of the Send with Document service. (NOTE: You will not see this tab unless you choose the "All" button at the top of the properties sheet).
    Uncheck "Use Global Settings" and fill in the SMTP information on that tab.
    If Gmail those settings are probably:
    SMTP Host: smtp.gmail.com
    SMTP Port Number: 587
    Check the box  for SMTP Authentication.
    SMTP User: your email address
    SMTP Password: your password
    SMTP Transport security: SSL
    Hope this helps!
    Diana

  • How to send long text  in a mail using FM : SO_NEW_DOCUMENT_SEND_API1

    Hi All,
    In my BSp application user can enter long text   ( can be more than 300 char ) in TextEdit.
    problem is as below:
    1) i am getting all the text in oninput processing ...
    2) using the FM READ_TEXT to   get mail template built in SO10.
    3) Replacing all dynamic variables in mail template with user enterd text.
    4) then passing the data to FM SO_NEW_DOCUMENT_SEND_API1.  this FM has table parameter with 255 char ( please check once )
    i am able to send the data  in mail.   But long text more than 256 char is not comming as single paragraph.
    For expamle  ...user enter the following  text in text edit.
    Responsible for the development, implementation, and maintenance of human resource information systems (HRIS) associated with the collection, retrieval, accessibility, and usage of employee information for Human Resource department planning and activities.  Maintains internal database files and tables, and develops custom reports to meet the requirements of Human Resource management and staff.
    in inbox i am getting as below:
    Job Description for    : Responsible for the development, implementation, and maintenance of human resource information systems (HRIS) associated with the collection, retrieval, accessibility, and usage of employee information for Human Resource depa
      Maintains internal database files and tables, and develops custom reports to meet the requirements of Human Resource management and staff.
    Job Description for is fixed text from SO10 templete.   and  remainning text is user text.
    some data is missing in mail.
    SO10 template  is as below  :
    Job Description for : &INSTRUC1&
    &INSTRUC2&
    help to solve the above issue.
    Regads,
    Kishan
    Edited by: kishanrao.sap on Oct 11, 2010 3:12 PM

    Hi Krishna,
      Please use the object_type parameter of tthe FM as 'HTM'.
    Then divide the text by append them into the lines of the object_content. In the begining and end make sure you have
    <p> --  in the begining
    </p>-- in the end
    if i want to type the text in one para " My name is Imran and i am an ABAP developer".
    CLEAR: WA_OBJECT_CONTENT.
      WA_OBJECT_CONTENT-line = '<html>'<body><p> My name is Imran.
      APPEND WA_OBJECT_CONTENT TO T_OBJECT_CONTENT.
    CLEAR WA_OBJECT_CONTENT.
      WA_OBJECT_CONTENT-line = ' and i am an ABAP developer</p></body><html;>'.
      APPEND WA_OBJECT_CONTENT TO T_OBJECT_CONTENT.
    Hope this helps you.
    Regards
    Imran.

  • How to print long text in ALV

    i want to print a description in text  mode which is 5-6 lines some times it have a blank line also so
    how to print in ALV .i m using READ_TEXT function but sumtime it not works when text exceed 4-5 lines
    what i sud do.

    hi,
    there is another way u can use yours internal table field like long text field. that is.
    parameters: salno type vbak-vbeln.
    data: begin of itab occurs 0,
      vbeln type vbak-vbeln,
      matnr type vbap-matnr,
      longtext type thead occurs 0,
      end of itab.
      data: itabstxl type standard table of stxl with header line.
      select single vbakvbeln vbapmatnr into (itab-vbeln, itab-matnr)
                                     from vbak inner join vbap
                                       on vbakvbeln = vbapvbeln
                                        where vbak~vbeln = salno.
        select single tdobject tdname tdid tdspras from stxl
                                                     into (itabstxl-tdobject,itabstxl-tdname,itabstxl-tdid,itabstxl-tdspras)
                                                           where relid = 'TX'
                                                            and  tdobject = 'VBBK'
                                                            and tdname = salno    "YOUR OWN TDNAME e,g
                                                            and tdid = 'Z003'
                                                            and tdspras = 'EN'.
    call function 'READ_TEXT'
      exporting
      CLIENT                        = SY-MANDT
        id                            = itabstxl-tdid
        language                      = itabstxl-tdspras
        name                          = itabstxl-tdname
        object                        = itabstxl-tdobject
      ARCHIVE_HANDLE                = 0
      LOCAL_CAT                     = ' '
    IMPORTING
      HEADER                        =
      tables
        lines                         = itab-longtext
    EXCEPTIONS
      ID                            = 1
      LANGUAGE                      = 2
      NAME                          = 3
      NOT_FOUND                     = 4
      OBJECT                        = 5
      REFERENCE_CHECK               = 6
      WRONG_ACCESS_TO_ARCHIVE       = 7
      OTHERS                        = 8
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    break abaper.
    I HOPE THIS WILL SOLVE THIS WILL SOLVE THE PROBLEM OF THE OTHERS AS WELL.

  • Error loading file in the operation long text in the General task list

    Hi all,
    I couldnt upload the detailed check lists in the operations (operation tab) of the general task lists through the long text uplaod via Text->Upload->RTF---> .System is throwing the following Information...
    1.Error loading file " specified path with filename.rtf"
    Could you please give me any idea to eliminate this.The client is having the detailed check list for each and every operation with safety measures to be taken.
    Plz help.
    Regards,
    Suresh.

    Hi all,
    It was an authorisation object missing and the problem got solved.
    Regards,
    Suresh.

Maybe you are looking for

  • How do I copy iTunes Library to a second drive?

    How do I copy iTunes Library to a second drive? Thank you for your time and patience.                                                                W.W.

  • Restore problems w/ iPod Classic in Windows Vista

    Hello everyone, I'm having something of a cyclical problem with my 160GB iPod Classic. The iPod has stopped working and displays the message "use Windows to restore" when I turn it on. When I connect the iPod to my computer to attempt the restore, I

  • Accounts receivable on Business Area level

    Hi, Is there a way to report accounts receivable on Business Area level? I want to use the InfoCube 0FIAR_C02 for reporting transactional A/R data - the customer has 1 company code and below this 7 business areas on which receivable reporting should

  • Can't change Dock Finder Icon

    Hello Everyone!! I was changing my Dock Finder Icon recently, and I want to restore it and also change other icons. Before I do everything. I did a backup of Dock.app. I replaced the finder.png and [email protected] but when I do 'killall dock' in te

  • Material Document - Transaction Code MB03 - Deliv.Note

    Dear Friends, In the material document, Deliv.Note field shows "NONE'. How does this affect PO,MIGO,MIRO? Does it generate a error message? If i want to remove "None" from Deliv.Note field, How to do it? Please suggest. Regards Sridhar