Send Mail from workflow with a Long URL

Hello,
My problem is that when an email gets generated from the workflow in my application, the generated url is quite long. As a result the link is not completely underlined in the email. I know there are limitations discussed in SAP note 363986. But does anybody know a workaround using aliases for the URL? and an example for the same would be great.
Regards,
Manoj.
Message was edited by:
        Manoj Vudathala

Hello!
I had the same requirements a while ago and even sent OSS note because customer insisted - even though I informed about the known restrictions.
Well, SAP replied back that the restrictions are still valid and we tried to use alias and splitting email to multiple container elements but still did not work!
Using send mail step will simply not work with long URL's!
But there is a work around if the requirement is business critical - you can create a smartform that has the email text and then pass the URL to the smartform. Smartforms can handle the long URL. You can then trigger a method in your workflow that will send the smartform as email. Hope that gives you an idea!
Harald

Similar Messages

  • Sending Mail from workflow or updating container elements

    Dear friends,
    I'm new to work flow.
    My requirement: <b>send mail from workflow to a user after dead line is missed</b> I do not want to use messages in 'Latest end' tab. I want to send mail.
    The mail id of the user is determined in the previous step using a FM. How do I use this mail id to send the mail. I thought of using 'Rule' option in 'Send Mail' (and use same FM)but thats not possible. In that case how do I pass the mail id value to the WF container from the FM?
    I also tried this idea:
    created a task with BOR object SELFITEM, method 'SENDTASKDESCRIPTION' .
    *in an activity step used this task and filled the 'Rule' option in notification tab appropriately
    *in this case the WF goes into an error '.....error executing 'sendtaskdescription' .....'
    *i would prefer using the activity step because, the mail has to be sent after a delay
    Is there any other simple method to do this?
    My problem would be solved even if someone can show me how to transfer values from a FM into a WF container.
    Can someone please explain?

    Reposted under different thread

  • Sending mail from workflow or Updating container from FM

    Dear friends,
    I'm new to work flow.
    My requirement: send mail from workflow to a user after dead line is missed I do not want to use messages in 'Latest end' tab. I want to send mail.
    The mail id of the user is determined in the previous step using a FM. How do I use this mail id to send the mail. I thought of using 'Rule' option in 'Send Mail' (and use same FM)but thats not possible. In that case how do I pass the mail id value to the WF container from the FM?
    I also tried this idea:
    created a task with BOR object SELFITEM, method 'SENDTASKDESCRIPTION' .
    *in an activity step used this task and filled the 'Rule' option in notification tab appropriately
    *in this case the WF goes into an error '.....error executing 'sendtaskdescription' .....'
    *i would prefer using the activity step because, the mail has to be sent after a delay
    Is there any other simple method to do this?
    My problem would be solved even if someone can show me how to transfer values from a FM into a WF container.
    Can someone please explain?

    Hi,
    => To get the deadline worked via programming, you can write your own logic. In current case,
    1. Create a custom function, having proper input and output parameters like End Time to wait if in case you have maximum of 2 days of wait.
    The total wait time is calculated from the Endtime, which is input to function module.  From the Endtime, the start date and end date are calculated and then the difference between the two dates is counted as total wait time.
    Here at the most 2 days of wait time is calculated.
    * Local parameters
      DATA: LV_UTCSTART TYPE /SDF/CMO_TSTMP,
            LV_UTCEND   TYPE /SDF/CMO_TSTMP,
            LV_SECOND   TYPE /SDF/CMO_SEC,
            LV_ENDDATE  TYPE SY-DATUM,
            LV_STR TYPE STRING.
      IF ENDTIME >= SY-UZEIT AND ENDTIME <= '235959'.
    *   Today's date
        LV_ENDDATE = SY-DATUM.
      ELSE.
    *   Tomorrow's date
        LV_ENDDATE = SY-DATUM + 1.
      ENDIF.
    * Get the Start Time for function module
      CONCATENATE SY-DATUM SY-UZEIT INTO LV_STR.
      MOVE LV_STR TO LV_UTCSTART.
      CLEAR LV_STR.
    * Get the End Time for function module
      CONCATENATE LV_ENDDATE ENDTIME INTO LV_STR.
      MOVE LV_STR TO LV_UTCEND.
      CLEAR LV_STR.
    * Get the total wait time in seconds
      CALL FUNCTION '/SDF/CMO_TIME_DIFF_GET'
        EXPORTING
          UTC_START = LV_UTCSTART
          UTC_END   = LV_UTCEND
        IMPORTING
          SECOND    = LV_SECOND
        EXCEPTIONS
          PARAMERR  = 1
          OTHERS    = 2.
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Wait for total time
    WAIT UP TO LV_SECOND SECONDS.
    2. Now, create one method in the BOR object whose event triggers your workflow.
    3. Use this method in an activity step in you workflow where you want to wait on some given conditions.
    => You can use the email ID which was given by earlier step in Send Mail step. Just make your email id field as Export/Import <i><b>AD_SMTPADR</b></i> type of parameter. In the send mail, use this Id in Email Address input.
    Hope this helps your.
    PS If the answer solves  your query, plz close the thread by marking it Solved and rewarding each reply.
    Regards

  • Sending mail from servers with non-ASCII names

    As part of an effort to internationalize our product we're testing on machines with host names that include non-ASCII characters (accented e's and whatnot). When trying to send mail from these machines we're getting:
    javax.mail.MessagingException: 501 5.5.4 Invalid Address
    at com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTransport.java:1634)
    at com.sun.mail.smtp.SMTPTransport.helo(SMTPTransport.java:1068)
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:458)
    at javax.mail.Service.connect(Service.java:291)
    at javax.mail.Service.connect(Service.java:172)
    at javax.mail.Service.connect(Service.java:121)
    at javax.mail.Transport.send0(Transport.java:190)
    at javax.mail.Transport.send(Transport.java:120)
    at msgsendsample.main(msgsendsample.java:86)
    Looking at a network trace I see the EHLO command being sent as
    EHLO test[0xe9][0xdf]\r\n
    where the machine name is testéß. From a Unicode table 0xe9 0xdf = é ß.
    I found a reference from RFC 5336 (SMTP Extension for Internationalized Email Addresses) that says the hostname in the EHLO must be in the form of ACE (ASCII-compatible encoding) labels:
    3.7.1. The Initial SMTP Exchange
    When an SMTP connection is opened, the server normally sends a
    "greeting" response consisting of the 220 response code and some
    information. The client then sends the EHLO command. Since the
    client cannot know whether the server supports UTF8SMTP until after
    it receives the response from EHLO, any domain names that appear in
    this dialogue, or in responses to EHLO, MUST be in the hostname form,
    i.e., internationalized ones MUST be in the form of ACE labels.
    ACE encoding for my machine would be: java.net.IDN.toASCII("test4éß") --> "xn--testss-eva".
    I'm not sure if this RFC applies in this case - I didn't know anything about the guts of SMTP until yesterday - but it makes sense that you'd need to escape the hostname in the EHLO until you can negotiate capabilities.
    Looking at the JavaMail API it seems that if I were to call SMTPTransport.helo(String domain) myself without going through the higher-level Transport class that maybe I could work around the issue, but I haven't looked into it enough to know if that's feasible.
    Is anyone familiar with this problem? I'm using JavaMail 1.4.2 on Windows 2003 and Exchange as my SMTP server.
    thanks,
    Eric

    Same problem here (or at least in part). Some .mac folders did no longer show any messages, while they were there and could be seen online and with Thunderbird. After your remark I changed the name of a folder which contained a "´" and now it works. It is really strange because there is another folder with a "¨" in it which does not work (I will test if the name change works with this folder as well in a minute) whilst there is another one with such name which works fine. The update really messed up Mail and in Dutch we just use such characters so Mail without supporting them will be rather useless for me...

  • Sending mail from workflow inbox to outlook,when idoc error occurs

    Hi All,
    I tried to send a mail to outlook from workflow by giving the email address in the step mail, but it was not working.
    i am getting the workitem in the sap inbox so tried setting the automating forward which we can forward from the sap inbox to outlook.
    Searched in SDN , but my issue was not solved..
    Could you please help me out with this issue to get the mail from workflow to outlook inbox.
    Thanks,
    Praveena

    Hi Praveena,
    Please check if the necessary SCOT settings have been made in your system to send mails outside SAP box. Check with your basis team if the SMTP connection between external system (Outlook, Lotus, etc) has been maintained or not.
    Then check in t-code SOST if you are getting the mail here when sent from workflow.
    Hope this helps!
    Regards,
    Saumya

  • Problem in sending mail from database with attachment

    Hi All,
    I amd using forms10g,oracle10g
    I am facing a error while running a procedure to send mail from db
    procedure is:
    declare
    ErrorMessage VARCHAR2(4000);
    ErrorStatus NUMBER;
    -- enable SQL*PLUS output;
    --SET SERVEROUTPUT ON
    -- redirect java output into SQL*PLUS buffer;
    --exec dbms_java.set_output(5000);
    BEGIN
    ErrorStatus := SendMailJPkg.SendMail(
    SMTPServerName => '192.168.4.2',
    Sender => '[email protected]',
    Recipient => '[email protected]',
    CcRecipient => '',
    BccRecipient => '',
    Subject => 'hth106: Test JavaMail',
    Body => 'This is the body: Hello, this is a test that spans 2 lines',
    AuthReqdYNNum => 1,
    UserID => 'jagan',
    Password => 'songbirds',
    ErrorMessage => ErrorMessage,
    Attachments => SendMailJPkg.ATTACHMENTS_LIST('C:\oramail\MHTHSO_GEN45.html')
    END;
    while running this procedure i am receiving following error
    "ORA-29532: Java call terminated by uncaught Java exception:
    java.lang.IncompatibleClassChangeError"
    but the same procedure sending mail from all other user in the same database
    I am very myuch confused.i have given the all rights
    below mentioned rights are given .it is working in all other user on the same db except this user "hth106". And all the othere things are compared between working user and this hth106 user every things are same.But i am receiving error when i sending mail with attachment if the mail is sending without attachement it is working fine
    below rights are given to this user
    1.exec dbms_java.grant_permission('HTH106','java.util.PropertyPermission','*','read');
    2.exec dbms_java.grant_permission('HTH106','java.util.PropertyPermission','*','write');
    3.exec dbms_java.grant_permission('HTH106','java.net.SocketPermission','*','connect');
    4.exec dbms_java.grant_permission('HTH106','java.net.SocketPermission','*','resolve');
    5.exec dbms_java.grant_permission('HTH106','java.io.FilePermission','C:\oramail\*','read');
    exec dbms_java.grant_permission('HTH106','java.io.FilePermission','C:\oramail\*','write');
    6.call dbms_java.grant_permission('HTH106','java.net.SocketPermission','HTHDS01','resolve');
    7.call dbms_java.grant_permission('HTH106','java.util.PropertyPermission','*','read,write');
    7.call dbms_java.grant_permission('HTH106', 'java.io.FilePermission','C:\oramail\*','read');
    please advise me to proceed further
    Thanks in advance
    Thanks ,
    Antony

    With respects to the following:
    The bit you'll have most diffulty with is the attachment, because you can't be sure that
    the directory path specified is one that the database can read from. You can probably
    resolve this by using some java to move the file to a directory which utl_file can see.Another alternative is to specify a location on then database server where all file attachments MUST be copied to and the define and Oracle DIRECTORY (CREATE OR REPLACE DIRECTORY [dir_name] AS '/dir/name/on/files/system';) that references this location. When you attach a file to an email, then you only have to refer to the DIRECTORY for the file location.
    Just my 2 cents on the topic. :-)
    Craig...

  • SCOT don't work correctly when I send mail from Workflow

    Hi.
    I setting from SU01 the mail of users. I send an email from Workflow, I find this mail in SCOT.
    But the SCOT don't send the mail to user.
    Can I solve it?
    Regards
    Angela

    Hi Angela,
    I don't think your problem lies in SAP. You need to check with the exchange guys to see if the e-mail you send is relayed in the exchange server. Depending on your sending address it is possible the exchange server will not send it on. Depending on the place the exchange server is, there is a possibility there still is a firewall which blocks smtp communication.
    Regards,
    Martin

  • How to send mail from linux with .txt file as attachment ..

    I want to send email from linux box and in the body of the email i want to have the content of dblog.txt file.
    I want dglob.txt file content to be part of the mail body.
    Thanks in advance!!

    Apr 29 15:19:35 lctwprddb01 sendmail[1616]: m3TJJZ4k001616: to=[email protected], ctladdr=oracle (500/500), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30109, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m3TJJZhB001617 Message accepted for delivery)
    Apr 29 16:04:52 lctwprddb01 sendmail[1422]: m3TIP6LJ031388: to=<[email protected]>, ctladdr=<[email protected]> (500/500), delay=01:39:46, xdelay=00:48:01, mailer=esmtp, pri=120423, relay=cluster2a.us.messagelabs.com. [216.82.249.211], dsn=4.0.0, stat=Deferred: Connection timed out with cluster2a.us.messagelabs.com.
    Apr 29 16:07:36 lctwprddb01 sendmail[1619]: m3TJJZhB001617: to=<[email protected]>, ctladdr=<[email protected]> (500/500), delay=00:48:01, xdelay=00:48:01, mailer=esmtp, pri=120425, relay=cluster2a.us.messagelabs.com. [216.82.248.44], dsn=4.0.0, stat=Deferred: Connection timed out with cluster2a.us.messagelabs.com.
    Apr 29 16:07:52 lctwprddb01 sendmail[1627]: m3TILs2r031176: to=<[email protected]>, ctladdr=<[email protected]> (500/500), delay=01:45:58, xdelay=00:48:01, mailer=esmtp, pri=120429, relay=cluster2a.us.messagelabs.com. [216.82.248.45], dsn=4.0.0, stat=Deferred: Connection timed out with cluster2a.us.messagelabs.com.

  • Sending mail from workflow

    I am using 2-level approver ESS Leave workflow .I need to send mails to outlook from workflow .
    I am successfully able to send mail to 1st approver AGENT_001.AGENTS , but not to 2nd approver.
    But I am choosing 2nd  approver through rule 00000168 .
    There is no rule kind of thing in send mail step . Also if I send mail through a activity step and set it as background task , it does not allows me to choose agent through rule .
    is there any other though which i can choose 2 approver and its mail id .
    Points will be rewarded

    Hi Sahiba,
    You have to get the agent 2 before the task and put  his id in task.
    You can create a custom method for it or you can insert this logic into an exitisting method which is calling before the taks.
    Thanks & Regards,
    Malpani

  • Send mail from report with DESNAME and DESFORMAT

    j have tried to send a mail from a report to "outlook express" passing as parameters the email of the user to send the mail.
    i have passed as parameter list :
    DESCNAME = [email protected]
    DESFORMAT = mail
    but aoutlook express don't start.
    It start only if i press the icon "mail" on report, and don't put the email adress in the "send to" field....
    There is a reason or there is an error or it is impossible ????
    Than'k from "il vampiro italiano"

    Hello Mike,
    In order to mail a report from Reports Builder 6i using the system's default MAPI client, you would need to set DESTYPE=MAIL, DESNAME=<email address of recipient> and DESFORMAT=<format of report output>.
    Thanks,
    The Oracle Reports Team.

  • Sending mail from plsql with attachement

    Hi Friends,
    i wanted to prepare an excel report and send that by email useing PLSQL .
    i know the inbuild packages UTL_FILE and UTL_SMTP can do this job . But my DBA not allowing me to do this . My DBA adviced me to do this work with in database by inplementing BLOB.
    I have never come accross to this task with in database , ( preparing the excel file and attaching that with mail and send it to users ) ??.
    can some one share tips & sample codes if any ???
    Thank You,
    Raj.

    First thing is Excel is Microsoft Specific and cant be created using UTL_FILE. May be as Excel supports CSV you can create CSV file using UTL_FILE.
    Next BLOB is a datatype like CHAR or VARCHAR2. You can store data in it. Thats all nothing much. With BLOB you can store an excel file. BLOB can't create or send it via EMail.
    So it would be better you talk to your DBA asking him to give more details.
    Thanks,
    Karthick.

  • Sending mail from iPhoto with signatures

    I spent a lot of time setting up my signatures which include small jpg's.
    When I send my photos via iPhoto, the jpg's are dropped and it says "unknown" in place of the image I want.
    How can I correct this so that my jpg's are included in my mail via iPhoto?

    First thing is Excel is Microsoft Specific and cant be created using UTL_FILE. May be as Excel supports CSV you can create CSV file using UTL_FILE.
    Next BLOB is a datatype like CHAR or VARCHAR2. You can store data in it. Thats all nothing much. With BLOB you can store an excel file. BLOB can't create or send it via EMail.
    So it would be better you talk to your DBA asking him to give more details.
    Thanks,
    Karthick.

  • Changing Sender Details in Sending mails from SAP

    Hi All,
           I am getting request from legacy system to send mail from along with document. So i am creating the document and attaching   that to send request then the system automatically taking the user login eamil ID as sender Email ID.But My requirement is i have to change the sender email ID as the what ever the email ID i got from legacy system.
    In this i am using class :: CL_SAPUSER_BCS
    Please help me if any implemented this earlier.
    Thanks
    Anil d

    I am using object oriented approach and this is my modified code
    Intially SAP using the following code
        Sender details; Usually user name
         WA_SENDER0 = CL_SAPUSER_BCS=>CREATE( SY-UNAME ).
         call method WA_SENDREQ->SET_SENDER
           exporting
             I_SENDER = WA_SENDER0.
    but i hv commented this one and added my code.then also i can't able to send mails from this class.
    V_SENDER = 'abc.yahoo.com'.
    data: SENDER type ref to CL_CAM_ADDRESS_BCS.
    SENDER = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS( V_SENDER ).
    call method WA_SENDREQ->SET_SENDER
    exporting
    I_SENDER = SENDER.
    Thanks

  • 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

  • Cant send mail from i phone 3s, with a tiscali account

    I can no longer send mail from my tiscali mail account on my i phone 3s, or my ipad without going through web mail account. please can anyone advise

    Isn't mail.virgin.net the name of the Incoming Server -- the incoming server, which you say is working is set up at Mail Preferences/Accounts/Account Information as to name of the server, Username, and password, along with entries in Mail Preferences/Accounts/Advanced for Port select for the Incoming.
    However, if that is working for you, you must have it correct. For the Outgoing server, isn't the proper name for Virgin services smtp.virgin.net? In Mail Preferences/Accounts/Account Information, click on the arrows beside the name of the SMTP, and choose Edit Server List. Remove all, or all but one of any references to the smtp.virgin.net. Enter anew, or with the remaining server, click on the Advanced Tab there, and choose Use Custom Ports. Then enter the Custom Port to be Port 25, and set the Authentication to None, and have no entries in Username or Password. This is consistent with those specs I can online saying the SMTP does not require Authentication.
    Also click Use this server only. Now if the smtp.virgin.net server is online, it should work.
    Ernie

Maybe you are looking for

  • How can you make it so that when a person from a company calls me it shows their name and company on the screen

    I use my iPhone for work as well as personal. However for work, I have noticed that when someone rings me, for instance Bob Mansfield from Com tec, the phone screen states just 'Bob' and no other details. I have the best part of 6 Bob's in my contact

  • How can I find out what causes a program to NOT RESPONDING status suddenly?

    After a very long period of functioning without serious problems a program suddenly doesn't start anymore, showing this funny rotating ball and a message in the Activity Monitor that this program is not responding. I have searched the log files metic

  • Is MBP a good choice here?

    My son is looking at getting a MacBook pro, after several years of pc laptops (lenovo, etc). He is not a gamer, but is inclined to have a lot of tabs open at once, download music, maybe movies. His previous laptops have died at about the four year po

  • CONDITIONS IN BAPI_PO_CREATE1

    Hi, dear experts. Does anybody know how to fill correctly conditions in BAPI interface? I`d successfully use a field named "Condition amount" (POCOND-COND_VALUE in TABLES interface), but I need to use "Condition value". How can I fill it? In ME21N ("

  • Packaged app - image script problem

    I have a packaged app which has several scripts to install the underlying database objects and seed the initial data. It also runs as script to install the images which are specific to the app, not the workspace. The script is created using the expor