SendTaskDescription Method

Hi ,
I am uisng SELFITEM.SendTaskDescription method to send the mail to SAP Inbox only. I have passed following parameters
AddressStrings : US<Name>
Type ID:               G.
I have maintained the e-mail id in User master data( Table ADR6) & HR master data( PA0105, subtype 0010).
When you use this step in workflow, does workflow send mail to SAP Inbox only? or Does it send mail to SAP Inbox and external email?
Thanks.
Murali

Hello,
" I would like to send mail to SAP Inbox only"
In that case don't fetch the email yourself from PA0105, just send it to the SAP user. But then you will also have to turn off automatic forwarding.
If you want to sometimes send the mail only to the SAP user and sometimes only to the external email then you should not use automatic forwarding (SO16) but instead fetch the email address yourself, as you are already doing.
regards
Rick Bakker
Hanabi Technology

Similar Messages

  • Object SELFITEM/SENDTASKDESCRIPTION method help needed

    Hi All,
    I am working on Credit Release workflow for SD documents.
    -     I have a mail sending step in workflow definition.
    -     In this step I have created a task which is using SELFITEM object & SENDTASKDESCRIPTION method.
    -     When I logged into the system with default language (EN) I can see all the details in the mail body.
    -     When I logged into the system with some other language (Say JA) I can not see all the information in mail body
    -     Some information like currency of the order value is not shown in mail body when logged in with some other language.
    Can anybody will help me to resolve this issue.
    Thank you all in advance.
    Best Regards,
    Deepa Kulkarni

    Try like below:
    Data:  lv_logon TYPE t002-spras,
              lv_text   TYPE char80.
                 lv_logon = sy-langu
                 if lv_logon EQ 'E'.
                     lv_text = "English text"
                 elsif lv_logon EQ 'J'.
                   lv_text = " Japanese text".
                endif.
    SWC_SET_ELEMENT CONTAINER 'TEXT' lv_text.
    Note...if your content is having multiple lines...then you can go with table parameter instead of variable.

  • How to format bold text in SENDTASKDESCRIPTION method?

    Hi Gurus,
    I'm using the SENDTASKDESCRIPTION method of SELFITEM object to send a message to an user's inbox in SBWP tx.
    The description task has formatted text in bold using <H>Example</>. But at moment to display the message in user's inbox the text appears plane, without bold characters.
    How can I do to display the text formatted in bold?

    Hi Gurus,
    I debuged the method and found that the text is sent without format (ASCII).
    The method used the FM SWU_GET_TASK_TEXTLINES and only obtain the "ascii_text_lines" table:
    CALL FUNCTION 'SWU_GET_TASK_TEXTLINES'         
      EXPORTING                                    
        task              = workitem_task          
        usage             = 'W'                    
        linewidth         = line_width             
        language          = send_language          
        container_handle  = wi_container           
      TABLES                                       
        ascii_text_lines  = text_lines             
      EXCEPTIONS                                   
        wrong_usage       = 01                     
        text_not_found    = 02                     
        text_system_error = 03.                    
    This is the reason because the method don't sent the text in bold.
    One option is to create a subtype object with a method to send the email in HTML format (Thanks for Pavel García for this tip)

  • Change in sender name of mail sended through workflow

    Hi All,
    I have requirement where we want to chage the sender name decription for mails which are going through workflow.When we send mails through send mail step in workflow it is taking sender decription name automatically as "GSAP E1B WORKFLOW SYSTEM".
    I have to change this decription to "OSIRIS Invoice". Is there any way to change sender name?
    We are using SENDTASKDESCRIPTION method of SELFITEM object in send mail step.
    Any help on this regards will be grate help...
    Regards,
    Rahul

    Hello Rahul,
    here, the sender's name is the user's name of the background user performing this task, i.e. usually WF-BATCH.
    If you do not have any other workflow scenarios running that could interfere here you could possibly just change that user's name.
    Otherwise you have to re-program the sendmail step to specifically set the sender description.
    Best regards,
    Florin
    P.S: Workflow issues have a separate forum:
    SAP Business Workflow

  • Workflow : Mail Step Problem

    Hi,
    I am getting a peculiar problem with Mail step. I am getting the following ERROR :
    <i><b>Work Item XXX Object YYY method SWW_BI_EXECUTE_S cannot be executed</b></i>
    What could be the problem?
    All the containers are properly BINDED are getting passed to the Mail Step.
    Regards,
    Raja Sekhar

    If you are using the standard Selfitem.SendTaskDescription method and are getting the error, one or more of the values being passed could be wrong. Check if Workflow technical log has more info on the error.
    Cheers,
    Ramki Maley.

  • Rule in sendmail option

    I have created a rule and I want to use it in Sendmail task. But there is no option for rule there.
    How can I do it? Please help.
    Thanks
    Abhishek

    Hi,
    We cannot use "Agent determination Rules" directly in sendmail step. Instead you will have to use an Activity step and try to use SELFITEM.SENDTASKDESCRIPTION method.
    I havent tried this myself but i am sure it should work as in some of the earlier versions of SAP SENDMAIL step was not available and using SELFITEM.SENDTASKDESCRIPTION was possible then.
    Alternatively you can also use a BG method which will send out the mail for you determined agents using the function module SO_NEW_DOCUMENT_SEND_API1
    Thanks,
    Prasath N

  • Send the pdf document as attachment

    Hi all,
    I have requirement as send the archived IXOS image(Object type IMAGE ) as attachment to an email sent to outlook.
    I used sendtaskdescription method to send email.
    But attachments are type SOFM and my attachment of type IMAGE which is not supported to bind.
    I am passing the IMAGE object to sendtaskdecription but attachment is not coming.
    If there any way that i can convert the ixos image of type SOFM and send kindly advice.
    Thanks inadvance.

    Moderator message -
    Total Posts:  172 
    Total Questions:  81 (78 unresolved) 
    If you assign po(i)nts and close your old posts, that will encourage people to respond to your new questions.
    When closing old threads, there is no need to add a comment. Adding a answer like "solved" only brings old threads to the top of the forum list and pushes current ones down. If you do add a comment, please indicate just how the problem was resolved.
    Rob

  • Problem in workflow (Selfitem) send mail

    Hi,
    The workflow I am working on requires sending of a notification email to the administrator. For that I have been asked to use the Object type as “SELFITEM” and method as “SENDTASKDESCRIPTION”.
    1) Can anyone give me the documentation that automatically configures the mail using Selfitem.
    2) What are the fields I need to pass to the “SENDTASKDESCRIPTION” method?
    Please help.
    Thanks in advance...
    Regards,
    Abhishek

    Hi,
    It is simple. Here you will have to go to tcode pftc.Since sending the mail is a standard task you will create a standard task. U will then add the BOR object type  in the screen area  as SELFITEM and the method as SendTaskDescription.U also need to trigger this task if its a standalone task. If it is being called as a step in the workflow builder then you will create a step in workflow template as send email.double click on the step it will take u to a new screen there u enter the task created above in pftc and assign appropriate reciver in your case the administrator.
    Hope this helps.
    Reward useful answerrs.
    Regards,
    Shrita.

  • SendMail step has email address mandatory

    Hi,
    I have included a sendmail step in workflow
    The problem is that when &ADDRESSSTRINGS& does not have a valid email address or is empty, the workflow goes into error.
    The error description is :
    Work item 000000459194: Object 000000459194 method SENDTASKDESCRIPTION cannot be executed
    I tested the object SELFITEM by executing the SENDTASKDESCRIPTION method.
    It works fine  but whenver I leave the ADDRESSTRINGS empty or without a valid address, it terminates and raises exception
    Its hard to believe that a send mail step has been given where email address is always required. It should be that without email address, the send mail step should simply not send mail and the workflow should proceed.
    Its my requirement and i think its a very common requirement.
    If anybody else has faced this problem  , kindly let me know.
    thanks

    I further checked :-
    Test the busines object SELFITEM and execute the method SENDTASKDESCRIPTION
    Import Parameter TYPEID = U and
    Import Parameter ADDRESSTRING = space --> exception
    Import Parameter ADDRESSTRING = X --> exception
    Import Parameter ADDRESSTRING = X/at/X/dot/com --> no exception
    Is it so that in my logic, I should append X/at/X/dot/com if I dont have any recipients for the send mail step ?
    so as to prevent my workflow from termination ?
    Kindly advice
    thanks

  • URL in UWL

    Dear Experts,
    How to diplay a URL as a hyperlink in UWL (under Notification); currently the URL is displayed as a text.
    Regards,
    Kanthimathi

    I am looking for an answer to the same question.
    In one of the workflow steps, i am sending notification out to the user using SELFITEM-SENDTASKDESCRIPTION method. In the Notification text, i am using a variable that contains a URL to one of the Portal iview. In the task description i use <a href="&URL&"> Click Here </a>.
    This appears as a hyperlink Click Here in SAPGUI Inbox but appears as <a href="www.google.com"> Click Here </a> in the Universal Work-list.
    Does anyone know what needs to be done to display the text as hyperlin in UWL?
    I will appreciate any ideas.
    Thanks,
    Saurabh

  • Workflow - waiting for the communication Service - Msg 672

    Hi,
    We are facing problem in a program, which triggers mail through a workflow.
    when the notification is rejected it calls an workflow
    and when the notification is approved it calls an workflow
    in the 2nd case.. when the notification is approved the mail is not getting delivered to the user.
    in SOST we found that it is showing the satus sent.. with the Msg 672 ( waiting for communication services)
    can anyone guide.. what may be wrong .. or where to check it and solve this issue
    Thanks
    am s

    Hi,
    You can use the program lines..
    *** These two statemnets are used to force the mail to send it to the
    *receipeint otherwise we need to go to SOST tcode where we need to press
    * F8 to send the mail to the other user. To avoid this we need to use
    *these two statemnets. Here the mail is not in queue.
    submit rsconn01 using selection-set 'INT' and return.
    call function 'SO_DEQUEUE_UPDATE_LOCKS'.
    * SUBMIT rsconn01 WITH mode   = 'INT'
    *                      WITH output = 'X'
    *                      AND RETURN.
    But since you care sending the mail through a workflow and not programatically,
    Copy the standard BO, SELFITEM in which you can add the above two commands in the SENDTASKDESCRIPTION method.
    Create a standard task in PFTC binding the z BO and give this task in your mail step which will force the mail to your inbox.
    Regards
    Indu

  • Creation of instance of SELFITEM BO in send email task

    Hello,
    I would like to find out how the system creates the instance of the SELFITEM object.
    For example in SendTaskDescription method there is the workitem id fetched from variable object-key-workitemid, but I was not able to find out where the source of the value is.
    There is no related binding into the method/task, no explicit creation of object SELFITEM, but it works :). Are there any related hardcoded "miracles" in SAP standard or am I missing some points?
    Thank you very much,
    JJ

    Hi Ennrique,
    thank you for your answer, but it is not the answer for my question. There is NO binding into the email task which fills WIOBJECT_ID, but in the task method there is the code which is instance specific. So where is the instance created? 
    KR,
    JJ

  • Sending an email with attachment with method SENDTASKDESCRIPTION.

    Hi everyone sorry for my english_;
    in custom workflow I set a Send Mail's step.
    If i try to send an email without attachments with method SENDTASKDESCRIPTION, the function SWW_SRV_MAIL_SEND return sy-subrc eq 0 and the email wa sent.
    If I try to attach a text, change binding for the step
    ATTACHOBJECTS -> &ATTACHMENTS& the step have an error in method SENDTASKDESCRIPTION execute the function SWW_SRV_MAIL_SEND; this function return an exception that had not defined.
    Thank's a lot.

    Hello.
    Take into acount that the attacment tha you pass to method has to be type of business object SOFM. The attachment is correctly created in the workflow container? Review the creation of the object to attach.
    How do you created the attachment?
    Regards.

  • Method SENDTASKDESCRIPTION cannot be executed

    Hi,
         I am getting error message while creating attachment in the work item but it was working fine in Development and quality.. only happens in production... without attachment my workflow works fine.. the only problem is attachment.. Pls guide me how to resolve it..
    Error :-   Work item 000000575666: Object 000000575666 method SENDTASKDESCRIPTION c
    Document <FOL33000000000004RAW35000000027513> could not be sent
    Error handling for work item 000000575666...
    Regards,
    Roops.

    Hello,
    I'll see if I can find anything, I assume you've searched as well though.
    Please make sure you're getting all of the error messages in the workflow log, try Extras > All Errors.
    Does it only happen for some users? Check SU53 or ST01 for authorization problems.
    Check that it finds at least one recipient and that it is a valid user.
    Also check SOST for any errors.
    Anyone else have ideas?
    regards
    Rick Bakker
    Hanabi Technology

  • Exception '1003' is not defined for method 'SENDTASKDESCRIPTION' object type 'SELFITEM'

    Hi All,
    Please help me in this. I am trying to send a mail when user rejected the item in his inbox. I am getting error like
    Exception '1003' is not defined for method 'SENDTASKDESCRIPTION' object type 'SELFITEM'. I tried so  many ways like no attachments,send express ,siganture,encryption all disabled but still the same error from user outbox who ever rejects it.
    Regards,
    Madhu.

    Hi Madhu,
    This exception is raised means you have checked the Signature check-box  and encrypt check box.
    Now you have unchecked that the issue should be solved , but if it is still giving the same exception synchronize your run time buffer using the t-code SWU_OBUF .
    Let me know if the issue is still there.
    Regards
    Bikas

Maybe you are looking for