Send mail through dynamic action, but the subject line and content is blank

Hi all,
I'm facing one problem on sending mail throught dynamic action.
Whenever a new employee is hired, the system will trigger a mail to the administrator.
The mail can successfully reach the email address. But the title and the content of the mail are missing. I can receive an email with a PDF attchment. But when I open this PDF file, it's blank inside.
In t-code "SO10", I created a new mail text with name of Z_MAIL, for my mail, insteading of using the SAP standard one.
When I using the SAP standard mail text, it works and I can see the content. But even I copy and paste the exact the content of the standard one to my own new mail text, it will not work.
And I have to use my own customized mail text. So, is there any one knows about this issue? Any more setting I should do? Or is there some tricks?

Hi,
   I feel that something will be misiing in the coding.Even i faced the same problem earlier.for me it was text file as an attachment ,file was receiving but no data...the problem was i forget to add one option in objpack-head.
   R u using the FM - SO_NEW_DOCUMENT_ATT_SEND_API1??
If so pls C the below codes for text file as an attachment.
DATA: objpack LIKE sopcklsti1 OCCURS  2 WITH HEADER LINE.
  DATA: objhead LIKE solisti1   OCCURS  1 WITH HEADER LINE.
  DATA: objbin  LIKE solisti1   OCCURS 10 WITH HEADER LINE.
  DATA: objtxt  LIKE solisti1   OCCURS 10 WITH HEADER LINE.
  DATA: reclist LIKE somlreci1  OCCURS  5 WITH HEADER LINE.
  DATA: doc_chng LIKE sodocchgi1.
  DATA: tab_lines LIKE sy-tabix.
Creating the document to be sent
  doc_chng-obj_name = 'MESSAGE'.
  doc_chng-obj_descr = 'ZHRI_GARN_EPC_COMM'.
  objtxt = 'Program ZHRI_GARN_EPC_COMM has been executed successfully'.
  APPEND objtxt.
  objtxt = 'Error records passed to BDC session XPHRGARN01'.
  APPEND objtxt.
  DESCRIBE TABLE objtxt LINES tab_lines.
  READ TABLE objtxt INDEX tab_lines.
  doc_chng-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
Creating the entry for the compressed document
  CLEAR objpack-transf_bin.
  objpack-head_start = 1.
  objpack-head_num   = 0.
  objpack-body_start = 1.
  objpack-body_num   = tab_lines.
  objpack-doc_type   = 'RAW'.
  APPEND objpack.
Entering names in the distribution list
  LOOP AT se_tech.
    reclist-receiver = se_tech-low.
    reclist-rec_type = 'U'.
    APPEND reclist.
  ENDLOOP.
Sending the document
  CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
      document_data              = doc_chng
      put_in_outbox              = 'X'
      commit_work                = 'X'
    TABLES
      packing_list               = objpack
      object_header              = objhead
      contents_bin               = objbin
      contents_txt               = objtxt
      receivers                  = reclist
    EXCEPTIONS
      too_many_receivers         = 1
      document_not_sent          = 2
      operation_no_authorization = 4
      OTHERS                     = 99.
Hope this will help u.
Regards,
Manoj.

Similar Messages

  • Error: in sending mail through dynamics actions

    Hi Friends,
    I have a problem in sending mail through dynamics actions . In this we pass a subroutine in dynamics actions which send an mail when promotion action occured.
    Problem is that sometimes it will send an mail or sometimes not. I have no idea to solve this problem.
    Can anyone suggest me .
    Thanks ,
    Anish
    Moderator message : Duplicate post locked. Continue with thread [send mail through dynamic actions|send mail through dynamic actions].
    Edited by: Vinod Kumar on Sep 5, 2011 10:19 AM

    this is where i created the keystore.jks file
    I navigated to the location C:\Program Files\Java\jdk1.6.0_13\bin in command prompt and typed the following command to create the keystore
    keytool -import -trustcacerts -alias root -file mail_test_com.crt -keystore keystore.jksI was asked to set the password for keystore and then i was asked the question "Trust this certificate? [no]:" for which i gave yes.
    If this is not the right place to create the keystore.jks can you please tell me what is correct location to create the keystore file.

  • Problem in sending mail through dynamics actions

    Hi Friends,
    I have a problem in sending mail through dynamics actions . In this  we pass a subroutine in dynamics actions which send an mail when promotion action occured.
    Problem is that sometimes it will  send an mail or sometimes not. I have no idea to solve this problem.
    Can anyone suggest me .
    Thanks ,
    Anish
    Moderator message : Duplicate post locked.
    Edited by: Vinod Kumar on Sep 5, 2011 9:45 AM

    Hi,
    Check that all the bindings have been done in proper way as it is configured.. Try to do the binding manualy..This could also be the problem..
    thank You

  • Sending mails using dynamic actions

    Hi
    How we can send mails using dynamic actions.
    Regards
    Santhosh

    Hi,
    Sending mails is possible by using the feature M0001. This is to be coded in the dynamic action depending on the requirement with function code "M".
    Hope this would help you to explore further. Incase of any specific query you can post back.
    Regards
    Tharak

  • Send mail using Dynamic actions

    Hello experts,
    How to send  a mail using Dynamic Actions??
    Requirement : Lets say one employee is hired on 26th Aug, so after 10 days he will be confirmed. so on 8th day need to send a mail to concerned person reminding the confirmation date.
    so how do i do that using dynamic actions??
    Thanks in advance.
    Saurabh

    Hi,
    In dynamic actions there is an option for calling sub-routine from any program or subroutine pool. So u can make subroutine for sending mail according to ur requirement. An call on th same from dynamic actions.
    if u want sample code for this, pls let me know.
    <removed_by_moderator>
    Regards,
    Ranjith
    Edited by: Julius Bussche on Aug 26, 2008 3:25 PM

  • Can I script an email button to put one of the form fields in the subject line and to name the form?

    This is a fillable form on a website.  We want people to complete the form, then click on the email button to send it to us.  Prefer to have the "name" field populate in the "subject line" of the email, and also rename the form that same field name.  Is that possible?

    In the sample I used the below syntax to send an email..
    event.target.submitForm({cURL:"mailto:"+ strToAddress + "?cc=" + strCCAddress + "&subject=" + strSubject + "&body=" + strMessage,cSubmitAs:"PDF"});
    The highlighted ones are local variables which will hold the value from the form fields.
    If you want to get the Subject from Name field in the form, use some thing like this.
         var strSubject = name.rawValue;
         //and then pass the value to the code.
         event.target.submitForm({cURL:"mailto:"+ strToAddress + "?cc=" + strCCAddress + "&subject=" + strSubject + "&body=" + strMessage,cSubmitAs:"PDF"});
    Hope this helps..
    Thanks
    Srini

  • Email form created in Acrobat 9, custom subject line and content

    I'm revisiting a form I created about a year back, and I can't remember how I got a javascript to work.
    What I want is for the user to click on an "Email" button, which will open their email program and create a new message, with the subject line filled out from one of the form fields, and then will have specified text in the body, as well as attaching the document and sending it to multiple email addresses.
    I have a javascript that I thought worked, but I keep getting error messages on it when I try to test it out.
    The script I'm currently trying to make work is:
    // This is the form return e-mail. Its hardcoded
    // so that the form is always returned to the same address
    // Change address on your form
    var cToAddr = "[email protected]; [email protected]";
    // First, get the client CC e-mail address
    var cCCAddr = this.getField("Teacheremail").value;
    // Set the subject and body text for the e-mail message
    var cSubLine = this.getField("CourseNumber").value + " corrections form submitted by "
    + this.getField("TeacherName").value;
    var cBody = "\nThank you for submitting your form.\n" +
                   "Save the mail attachment for your own records.\n" +
                   "Do NOT worry if the form appears blank in your email message.";
    // Send the form data as an PDF attachment on an e-mail
    this.mailDoc({bUI: true, cTo: cToAddr, cCc: cCCAddr,
      cSubject: cSubLine, cMsg: cBody});
    What am I doing wrong?

    forgot to add
    This is the error message, but there is a correct email listed in the Teacheremail field, so I don't know why it says it's "null."
    this.getField("Teacheremail") is null
    7:AcroForm:Email:Annot1:MouseUp:Action1
    TypeError: this.getField("Teacheremail") is null
    7:AcroForm:Email:Annot1:MouseUp:Action1

  • While on e-mail tour option to send or cancel ,their is a red plus in circle on the subject line and want allow to "send"?

    I want to send an e mail message existing , am prevented by red plus circle on right of subject line?

    forgot to add
    This is the error message, but there is a correct email listed in the Teacheremail field, so I don't know why it says it's "null."
    this.getField("Teacheremail") is null
    7:AcroForm:Email:Annot1:MouseUp:Action1
    TypeError: this.getField("Teacheremail") is null
    7:AcroForm:Email:Annot1:MouseUp:Action1

  • My iPhone 4S with iOS7 has stopped sending mail.  I have deleted the account (Exchange) and readded it to no avail.  Not being able to send mail is detrimental to me.

    I have read the tips and all I can find is to delete the account and readd.  I have done so to no avail.  What are the other alternatives to solve this problem?  Thanks. 

    hjf71 wrote:
    Yes all the account settings were approved.  I can receive email just fine.  My contacts and calendar are up to date.  I just can't send.  The email disappears.  It's not in the outbox or sent items.  It's hosted exchange and works fine on my other devices.  Server names is exch2010.esfi.net hosted by Electronic Storefronts.
    That sounds like a server side problem. Contact the Exchange account administrator.

  • What happened to the subject line and body?

    Since yesterday I'm receiving emails (from friends) that contain only from/date/to information -- nothing else appears in the message. Does anyone know what this might be or how to fix it? I haven't upgraded or changed anything recently.
    Imac g4 usb2.0   Mac OS X (10.4.8)  

    Nothing is in the message body?
    Were these messages received messages that were forwarded by the sender and if so, are these friends sending with an AOL account?
    With such a message open, at the menu bar go to View > Message.
    If Plain Text Alternative is an available selection, select it.
    Any difference?

  • I have an iphone 4s. able to receive all the incoming mails but not able to send mails through this iphone 4s. please help.

    I have an iphone 4s. able to receive all the incoming mails but not able to send mails through this iphone 4s. please help.

    delete and reinstall the email account.

  • I use Go Daddy Web Mail and FireFox may be preventing me from being able to put text into the subject line when composing an email.

    As the question / statement says, When in Firefox, once I've started my webmail application through Go Daddy, I can compose an entire email filling out all the required info. But, when I put the mouse over the 'Subject Line' and click, no cursor appears.
    Having walked through this with Go Daddy, they are convinced that it's FireFox because we opened up their webmail with 2 other browsers and both allowed me to plug in a subject line.

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!

  • I set up an autoreply but i cannot work out how to change the subject line to the one I want

    I set up an automatic reply but the subject line come up as re: and what the other person wrote. I want to change the subject line to a set one to all emails. How can I do that?

    What email program are we referring to?

  • How to modify Exchange 2013 TXT(SMS) notifications to not include the subject line or any of the message body of emails

    We have a group of users who are not permitted to download/save any emails they receive onto public or personal devices, they are only allowed to log in manually and view their mail through OWA (I realize there are ways to use OWA to download mail, however
    the users are explicitly forbidden from doing this, and any countermeasures that can be put in place, are/will be).
    With our new Exchange 2013 server, it seems it has the built in capability to send TXT(SMS) notifications instantly when a user receives mail.  We would like to allow our users to utilize this feature, however currently, the notification includes not
    only the sender of the email, but also the subject line and part of the message body.  As it stands, we can't have this as part of the email would then be saved on their device.
    I am wondering if there is a way to modify Exchange 2013 to not include the subject or message body, so that our users could at least get an instant notification 1-that they have a new email and 2-who it's from?
    Any information would be appreciated, thanks!

    We can configure SMS Text Message Notification for various situation like Calendar notifications, Voice mail notifications, Email notifications if your user's Mailbox hosted in Exchange Server 2013
    To set up your phone to receive text messages when you want to have Calendar notifications, Voice mail notifications, Email notifications use the steps as follows
    Note: Text message fees are applicable and it will appear on your phone bill.
    Login to Outlook Web App, click Options > See All Options > Phone > Voice Mail tab.
         In the Notifications section, choose one of the following options:
    Calendar notifications... 
    Voice mail notifications... 
    Email notifications using an Inbox rule...
    Turn On Notification
    First step is to turn on the notification of text messaging. Click Turn on Notifications
    Select Setup Notification: Need to select your operator,
    It will request to provide your Mobile Operator.
    Note: As of now Exchange Server 2013 supports only the below list of operators.
    Locale: United State
    Mobile Operator: AT & T, Sprint PCS, T-Mobile, Verizon Wireless
    Locale: Canada,
    Mobile Operator:Bell Telus Mobility
    Locale: Romania
    Mobile Operator:Orange Romania
    Provide your telephone number. It will send you the passcode on your mobile number.
    Type the passcode for confirmation
    Calendar Notifications:
    On Selecting Calendar Notification: Select the option based upon your requirement.
    Email Notification Using Inbox Rule:
    Similarly for the text messaging for the email notification, select the option based upon your requirement and setup them up
    Exchange Queries

  • How can I edit the Subject Line of an email I've received?

    When the sender inserts vague or misleading text in the Subject Line (or leaves it blank), sometimes I'd like to edit it - makes organization and retrieval of information which might be in the email easier for me.
    I've tried opening the email file with a text editor (TextWrangler) and editing the "Subject" line. That partially works: When the message is open for reading, my edited Subject appears near the top of the message.
    However, when looking a list of emails in a Mailbox, Mail still displays the unedited Subject - which defeats my purpose.
    What am I missing, here?
    -gw

    Hi Gary, I think Mail is using stored info, not sure which of these two hold that, but...
    Safe Boot from the HD, (holding Shift key down at bootup), it will try to repair your Disk Directory while the spinning radian is happening, so let it go, run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, then move these folder & file to the Desktop.
    Move this Folder to the Desktop...
    /Users/YourUserName/Library/Caches/Mail/
    Move this file to the Desktop...
    /Users/YourUserName/Library/Mail/Envelope Index
    Reboot.

Maybe you are looking for

  • Ipod touch  not showing in tunes or windows xp

    I have an ipod touch that is not showing up in itunes or windows xp. I have tried restoring the ipod but it fails during the process. The computer and itunes will read an ipod shuffle but not the touch. I have tried all the ideas on the apple site bu

  • I get a download error when I try to update to 10.5 for Windows 64 bit.

    I had to revert back to previous version but library file is the new version.  It starts downloading like normal and then begins to back up.  I tried to do it manual with same results.  Any ideas?

  • Add a link to an image in iBooks?

    Is this possible? I can't seam to add any links to an image that I placed in the document.

  • TV CompatIbility...

    Will Apple TV work with any TV which has component connections on it? I have a TV which is 9 years old...bit of a nightmare but it has component connection on the side and wondered if an Apple TV would connect to it. Thanks for any help.. ~RICKY

  • How do i delete duplicates ... and stop Elements creating whole files of them!!!

    Somehow in starting to use Elements all photos have been duplicated. How do I delete the duplicates without going through thousands of photos? How do I stop the program from creating and saving thousands of duplicates? I can't find anything in their