Email Issue using FM SO_NEW_DOCUMENT_ATT_SEND_API1

Hi Experts,
I am sending few data in through excel(in attachment) using fm SO_NEW_DOCUMENT_ATT_SEND_API1.
I wanted to dispaly the data line by line in excel sheet. I properly populated the data in parameter 'contents_bin' i.e. appended the data line by line. But the problem is that when the FM execute I got the excel sheet but all the data is displayed in only one line.
Can anybody suggest me how I can resolve the issue?
Thanks,
Neha

Hi
CLASS CL_ABAP_CHAR_UTILITIES DEFINITION LOAD.
CONSTANTS:
CON_TAB TYPE C VALUE CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB,
CON_CRET TYPE C VALUE CL_ABAP_CHAR_UTILITIES=>CR_LF.
      LOOP AT T_FINAL INTO WA_T_FINAL.
        CONCATENATE WA_T_FINAL-PERNR
                    WA_T_FINAL-NAME
                    WA_T_FINAL-LEVEL
                    WA_T_FINAL-POS
                    WA_T_FINAL-JOB
                    WA_T_FINAL-SECTION
                    WA_T_FINAL-DEPT
                    WA_T_FINAL-GROUP
                    WA_T_FINAL-EX_HEAD
                    WA_T_FINAL-SUPID
                    WA_T_FINAL-SUPNM
                    WA_T_FINAL-FHRNM
                    WA_T_FINAL-VACID
                    WA_T_FINAL-VAC_SECTION
                    WA_T_FINAL-VAC_DEPT
                    WA_T_FINAL-VAC_GROUP
                    WA_T_FINAL-VAC_EX_HEAD
                    WA_T_FINAL-VAC_FHRNM
        INTO T_FINAL1 SEPARATED BY CON_TAB.
        CONCATENATE CON_CRET T_FINAL1 INTO T_FINAL1.
        APPEND T_FINAL1.
      ENDLOOP.

Similar Messages

  • Send multiple email attachments using FM SO_NEW_DOCUMENT_ATT_SEND_API1.How?

    Hi All,
    I have a requirement to send email to an external ID for which I am using FM SO_NEW_DOCUMENT_ATT_SEND_API1.Can anyone give a sample code to send multiple excel attachments using this function module.
    Points would be rewarded.
    Thanks
    Archana.

    Check the Thread,,
    Re: more than 1 attachements/sheets in SO_DOCUMENT_SEND_API1

  • Send Email issue using "Mail Server Load balancer"  (Cisco ACE 20)

    I have asked this question in SAP MII forum too but it appears issue could be in NetWeaver Mail API. Please let me know if someone have experienced this kind of issue or any suggestions.
    The send email action was working file in MII with smtp mail server on port 25. Recently basis did a change in mail server ip address and they installed a new Load Balancer . The Load balancer is between SMTP and MII. After this change MII does not send email (unknown source error). now MII send email action has ip address or qualified path of Load balancer in MII send email configuration instead of direct ip address of SMTP server. Below is the error message in Net Weaver logs.
    MII still sends email if direct ip address of email server  provided instead of Email Load balancer but not through Load balancer .
    Any suggestions ?
    Could not authenticate mail account (Unknown Source)
    [EXCEPTION]
    javax.mail.AuthenticationFailedException
    at javax.mail.Service.connect(Service.java:319)
    at javax.mail.Service.connect(Service.java:169)
    at javax.mail.Service.connect(Service.java:118)
    at com.sap.xmii.storage.connections.MailConnection.sendMail(MailConnection.java:202)
    at com.sap.xmii.bls.executables.actions.mail.MailActions.send(MailActions.java:223)
    at sun.reflect.GeneratedMethodAccessor1412.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:592)
    at com.sap.xmii.bls.engine.ReflectiveAction.doExecute(ReflectiveAction.java:747)
    at com.sap.xmii.bls.engine.BaseNode.executeNode(BaseNode.java:198)
    at com.sap.xmii.bls.engine.BaseAction.execute(BaseAction.java:76)
    at com.sap.xmii.bls.engine.runners.ProductionRunner.runAction(ProductionRunner.java:147)
    at com.sap.xmii.bls.executables.sequences.Sequence.execute(Sequence.java:50)
    at com.sap.xmii.bls.engine.runners.ProductionRunner.runSequence(ProductionRunner.java:126)
    at com.sap.xmii.bls.executables.controls.Switch.doExecute(Switch.java:131)
    at com.sap.xmii.bls.engine.BaseNode.executeNode(BaseNode.java:198)
    at com.sap.xmii.bls.engine.BaseControl.execute(BaseControl.java:127)

    Hi Ahmed,
    I don't have experience with Blackberry, but, as the document mentions, the first thing to do would be making sure that the connection timeout  is set to something high enough
    You can find more details on how to modify this value at the link below:
    http://www.cisco.com/en/US/docs/interfaces_modules/services_modules/ace/vA2_3_0/configuration/security/guide/tcpipnrm.html#wp1074289
    I hope this helps
    Daniel

  • Formated XL attachment in Mail using FM SO_NEW_DOCUMENT_ATT_SEND_API1.

    Hi All,
    I have a requirement where I need to send formated XL in Email attachment using FM SO_NEW_DOCUMENT_ATT_SEND_API1.
    Yes, there are other convinient ways of doing the same task IXML or CL_BCS but I can't use them.
    The existing code already uses this FM and user claims that earlier it used to work but its not working now.
    The existing code generates an Internal Table for attachment, starting with
    <TABLE style='BACKGROUND-COLOR: #XXXXX
    and ending with </TABLE>.
    The final XL in Email contains this XL file but its not formated, its in the same format as it was in Internal Table.
    I also tried increasing the doc_size field, it did not worked..!!
    Even I am not sure whether it is possible this way.
    I tried searching for some links like,
    SO_NEW_DOCUMENT_ATT_SEND_API1 next line Excel
    but, no luck..!!
    Any input provided by you will certainly help.
    Pls post if I am not clear with my requirement.
    Thanking You All.

    Hi Ankit sharma,
    i think we get nearer to point out whats wrong. But still, i dont know what the actuall problem is.
    Does the file looks different?
    When yes, what is different?
    what do you mean by "The final XL in Email contains this XL file but its not formated, its in the same format as it was in Internal Table."
    For sure it should look like in the internal table. I guess what you see is the raw data. and what is not working is, that this raw data gets interpreted like you want it to be - as an XL file. But this is not a bug of different SAP versions since the email got created successfully.
    It is all a matter of how the attachment gets interpreted. So find the Bug in the File.  Can it be that maybe
    some lines are missing in the attchment
    space is added to the end of the row
    CRLF is added to the file
    dont look at SAP Code. Look at the file. Compare it to a file that got created successfully. what is the difference. if you find it, you will find the missing part in the code.
    Looking at the FM-Interface tells me that BIN is obsolete - give your data to hex instead....
    this makes me think that CRLF sign is added in FILE. since bin-content-table  is same Data-type then TXT-content-table
    regards
    Stefan Seeburger

  • Regarding Sending an email by using SO_NEW_DOCUMENT_ATT_SEND_API1

    Hi Experts,
    I have tow internal tables like ...ITAB1 AND ITAB2.
    Is it possible to send an email with these two internal tables as attachments..like Attachment1...Itab1 and Attachment2...Itab2..
    Is it possible by using the FM SO_NEW_DOCUMENT_ATT_SEND_API1??
    Rgds,
    Sruthi.

    Hi Shruthi,
    You can use FM SO_NEW_DOCUMENT_ATT_SEND_API1 to send internal tables as attachment in mail.
    Plz check this link:
    https://wiki.sdn.sap.com/wiki/display/ABAP/Tosend2inttablesdataastwoattachmentstomailidoutsidesapsystem
    It will guide you in solving your problem.
    Thanks & regards,
    Sarita Singh

  • Email Alert Template Issue - List Alerts (Alert Me) emails not using customized XML alert template

    We have recently customized the XML alerts template (AlertTemplates.xml) for our site collection in SharePoint 2010 to exclude specific fields in the email when users who have subscribed using the "Alert Me" feature. We have renamed the
    custom alerts XML file and loaded the custom template in the following directory (%ProgramFiles%\Common Files\Microsoft Shared\Web server extensions\14\TEMPLATE\XML) and restarted IIS.  Once users subscribe to the alerts using the list "alert me"
    function they received the customized email as intended.
    We needed to auto-subscribe users to the email alerts so what we did was use a powershell script to add users to the alert subscriptions using the script shown below:
    Import-Csv D:\Temp\filename.csv | ForEach-Object{
    $webUrl=$_.WebUrl
    $listTitle=$_.List
    $alertTitle=$_.AlertTitle
    $subscribedUser=$_.SubscribedUser
    $alertType=$_.AlertType
    $deliveryChannel=$_.DeliveryChannel
    $eventType=$_.EventType
    $frequency=$_.Frequency
    $oldAlertID=$_.ID
    $web=Get-SPWeb $webUrl
    $testAlert = $web.Alerts | WHERE { $_.ID -eq $oldAlertID }
    IF ($testAlert) {
    $web.Alerts.Delete([GUID]$oldAlertID)
    Write-Host Old alert $oldAlertID deleted. -Foregroundcolor Cyan
    $list=$web.Lists.TryGetList($listTitle)
    $user = $web.EnsureUser($subscribedUser)
    $newAlert = $user.Alerts.Add()
    $newAlert.Title = $alertTitle
    $newAlert.AlertType=[Microsoft.SharePoint.SPAlertType]::$alertType
    $newAlert.List = $list
    $newAlert.DeliveryChannels = [Microsoft.SharePoint.SPAlertDeliveryChannels]::$deliveryChannel
    $newAlert.EventType = [Microsoft.SharePoint.SPEventType]::$eventType
    $newAlert.AlertFrequency = [Microsoft.SharePoint.SPAlertFrequency]::$frequency
    if($frequency -ne "Immediate"){
    $AlertTime=$_.AlertTime
    $newAlert.AlertTime=$AlertTime
    $newAlert.Update()
    Write-Host Created $newAlert.Title for $subscribedUser . -Foregroundcolor Cyan
    } ELSE {
    Write-Host Alert $alertTitle for $subscribedUser already done. Moving on. -Foregroundcolor Magenta
    When we ran the script and added the users and restarted the service, all users who were auto-subscribed via this method get the email without the customizations that were done in teh custom alert template.  All users who manually subscribed on their
    own to the list using the "Alert Me" function would get the customized email.
    Does anyone know why users who manually subscribe to the alerts get the customized email, and users who were auto-subscribed using the powershell script do not get the customized email and get the standard generic email template?

    Hi  ,
    According to your code, it create a new alert using SPUser.Alerts.Add() method. For this method, it will create a new alert based on the predefined alert template by default.
    If you only assigned the custom alert template to the list, users who manually subscribe to the alerts get the customized email, but users who were auto-subscribed using the PowerShell script get the standard
    generic email template.
    For your issue, you can set the new alert ‘s alert template:
    http://social.technet.microsoft.com/Forums/en-US/1b19c12f-fc37-48cf-8b59-6c09f095dc23/custom-alert-email-templates-issue-list-alerts-emails-not-using-customized-xml-alert-template?forum=sharepointgeneralprevious
    Here is a good blog you can have a look:
    http://blogs.msdn.com/b/sharepointdeveloperdocs/archive/2007/12/07/customizing-alert-notifications-and-alert-templates-in-windows-sharepoint-services-3-0.aspx
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Eric Tao
    TechNet Community Support

  • Send excel attachment using FM SO_NEW_DOCUMENT_ATT_SEND_API1

    Hi ABAPers,
    I managed to send excel attachment using FM SO_NEW_DOCUMENT_ATT_SEND_API1.
    Let say I send it to my own email account.
    But, when try to open the excel document, from lotus notes, there is warning message produced by the microsoft excel saying:
    "The file is not in a recognizable format.
    and so on....."
    Anyway, when I click button 'OK', excel sheet will be opened and no information lost.
    How can we code the abap program so that the message will not come each time I open the attachment from my lotus notes?
    Or this is just the tab delimited issue?
    Thank you.
    Regards,
    Edward.

    Hi Shan,
    Thank you for replying.
    I have the same as follows:
      DESCRIBE TABLE lt_contents_hex LINES lv_lines.
      lt_packing_list-transf_bin = 'X'.
      lt_packing_list-head_start = 1.
      lt_packing_list-head_num   = 1.
      lt_packing_list-body_start = 1.
      lt_packing_list-body_num   = lv_lines.
      lt_packing_list-doc_type   = 'XLS'.
      lt_packing_list-obj_name   = 'ATTACHMENT'.
      lt_packing_list-obj_descr  = 'Attachment'.
      lt_packing_list-doc_size   = lv_lines * 255.
      APPEND lt_packing_list.
    I'm using lt_contents_hex instead of lt_contents_bin.
    Still the problem is there.
    Is there any other way to calculate the doc size correctly?
    Regards,
    Edward.

  • Firefox freezes when I try to open my emails and use the internet, what can I do?

    Use Mozilla Firefox to see my emails and use the internet from about one week when I try to see my emails or use the internet it takes me to another wed site or gets freezes I am worry about because I don't know what's going up. This is the first time it happening to me. It says Firefox can not work properly it will close and I can lose some information, or click to star a new session but it never starts again it got freeze and I have to shut down the computer.

    Use internet explorer as your default until this issue is resolved. Under Firefox, hotmail live will not load my email folders. No problem using internet explorer.

  • Why can't I attach a file to an email when using Firefox 6.0.1? Works fine if using Explorer

    Using Firefox 6.0.1 browser and web mail service
    Compose email
    Click Add Attachment
    Select file to be attached
    Click Open File or double click file name
    File does not attach
    I do not have this problem when I use Explorer as the browser
    I do not have this problem with Firefox 3

    ''FredMcD [[#answer-718738|said]]''
    <blockquote>
    ''ajfollack [[#answer-718681|said]]''
    <blockquote>
    Disabling the adobe plugin . . . . did not resolve issue
    </blockquote>
    DO NOT disable old program. REMOVE them.
    Many site issues can be caused by corrupt cookies or cache.
    * Clear the Cache and
    * Remove Cookies<br> '''''Warning ! ! '' This will log you out of sites you're logged in to.'''
    Type '''about:preferences'''<Enter> in the address bar.
    * '''Cookies;''' Select '''Privacy.''' Under '''History,''' select Firefox will '''Use Custom Settings.''' Press the button on the right side called '''Show Cookies.''' Use the search bar to look for the site. Note; There may be more than one entry. Remove '''All''' of them.
    * '''Cache;''' Select '''Advanced > Network.''' Across from '''Cached Web Content,''' Press '''Clear Now.'''
    If there is still a problem,
    '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]''' {web link}
    While you are in safe mode;
    Type '''about:preferences#advanced'''<Enter> in the address bar.
    Under '''Advanced,''' Select '''General.'''
    Look for and turn off '''Use Hardware Acceleration'''.
    Poke around safe web sites. Are there any problems?
    Then restart.
    </blockquote>
    I uninstalled Adobe reader, then did the rest of your suggestions but the problem remains. It is only with 3 emails that get resent daily with slight changes to the text. It is like most of the text has been removed from the email.
    Thanks for the suggestions and advice

  • Delayed email delivery using mail app in Lion

    I'm having issues with delayed email delivery using the mail app in Lion. Specifically I have an IMAP account (AOL) that is working fine on other macs running snow leopard and on both an iPhone and an iPad. I receive an email that shows up on all other devices but does not get delivered on the Macbook Air. Clicking get new messages does not delivery the email, even if other emails have been delivered in the interim. The only way to get the email to show up is to exit Mail and restart it - and then the email shows up, in the correct date/time order and the correct read status (since I had already read it on another device).
    This has happened twice now with my AOL account in the past 24 hours (I've only had the new Macbook Air since Monday). It might also be happening on my other IMAP email accounts but I have not noticed it yet. It's intermittant as I've received many other emails correctly and ontime.
    Anyone else seeing something similar? I've never seen this with earlier versions of Mac OS X or on devices running iOS.
    This is a Macbook Air running Lion 10.7.1. I have 4 IMAP accounts set up. Mail is set to check for email once a minute and I have my IMAP accounts set to use the IDLE command.

    I have the same problem, some photos are not loaded completely and partly grey. This occurs only in Mail.app but not in the web interface of the email provider. Did you find a solution, Florian? Does somebody else have a suggestion?
    Greetings from Finland

  • Email issues after Yosemite upgrade.  Several things are happening, I delete messages only to get a error indicating that I can't delete them or if I do delete them, they reappear sometime later.

    I use Apple mail on an IMAC & IMAC Mini.  As I move from one to the other these email issues persist on both.
    I try to clean out my email by deleting emails.  I sometimes get an error message indicating I can't delete the message or when I do delete the message, then sometime later or when I go on the other computer these deleted messages reappear.  I am also getting emails from some senders but the actual content belongs to another person.
    I had none of these problems prior to upgrading to Yosemite.
    Any suggestions would be helpful.
    Chuck

    adam_30 wrote:
    i can go with other carrier with my iphone 5s so for all the pple that are ging to read this read it again befor saying something to mee kk thanxso for what  relly happen is i when too do the update to the ios 8.1 solfwaer  on  my dad iphone 5 frist so i coundn`t boot it back up so i call apple an they told me how to make the iphone 5 boot backup my dad  was sineg into evering his itunes an his apple id an find myi phone an there telling me that he was not sing in but i know he was so he was  able to get into his email bec he forgot his password too but how is that tho i would like to know that tho me on the other hand i have been ******* lock out of all my gmail an the curreent email that google has lock me out too its  the current email is lock to my iphone 5s is lock to an so the owle  email i can get on its bec it save on a friends laptop an i have the frist bill that rogers send to me  its pretty much its  the proof-of-purchase that what rogers told me today when it talk to like 15 different pple i talk  today an they all told me the same thing it shown that we did  it from rogers a show the day we had it activadev an its show the number of the activadev so am i getting such a heard time to get this  done for me an like in one of the postting i did say that the one rorgers supervisor mamageran guy was talking to the apple supervisor mamageran an the rogers supervisor mamageran guy told the apple supervisor mamage that he was  confirmed  that the iphone 5s that apple lock wasnot a lost or a hot iphone 5s to the apple supervisor mamageran so after he ending up the rogers supervisor mamageran guy told me the my frist rogers bill it the same as the proof-of-purchasean that rogers supervisor mamageran is what there a saying to be so it the rogers supervisor mamageran say that that good so apple that should be good gor u an that rogers supervisor mamageran told me the he have gave that to pple an it work for them y not me just want to know
    ......................................... what?

  • Email Pop-UP message "Email issue detected"

    Over the last week I continually receive a pop-up message with  "Email issue detected" and the options of "Fix" or "Ignore"
    When I selct FIX it sends a test message to my Outlook 2003. A new pop-up then appears with no fault found. However it does refer to my current email address and also an old email address which I have not used in 5-6 years.
    How do I stop this and get rid of old address?

    Sounds like a bit of Malware to me.
    Try malware removal tool from Cnet Downloads http://download.cnet.com/windows/security-software/?tag=rb_content;main
    Plenty on there to choose from
    Check your exchange or major service outagesIf someone has given a helpful answer, please click on their Ratings star on the left-hand side. ***

  • I can't see PDFs in email when using iPad

    I can't see PDFs in email when using iPad

    Can you be a little more specific in describing the issue?

  • Adobe Form Email Issue

    I have created an Adobe form that has 4 Submit buttons:
    mailto:[email protected]?subject=adobe form
    (each button is different, of course)
    Anyways, when you click on any of the buttons, a box appears to Select Email Client:
    Option 1: Desktop Email Application (Choose this option if you currently use an email application such as Microsoft Outlook Express, Microsoft Outlook, Eudora, or Mail.)
    Option 2: Internet Email (Choose this option if you currently use an Internet email service such as Yahoo or Microsoft Hotmail. You will then need to save your form and return it manually to [email protected] using your Internet email service.)
    I work for a company who utilizes Microsoft Outlook, so I choose Option 1 and click OK and nothing happens. I have used this type of button and form before and the button worked properly - opened a new message in Outlook with the To field and the subject field prepopulated with the information set during design of the form and the form attached as a PDF.
    Any suggestions on what I could do next or try to correct this issue because I am not the only one having this problem and the whole company I work for uses this form and it needs to be fixed soon!?!?
    Thanks!!!

    This has very little to do with Acrobat and very much to do with how email is activated
    This is discussed OFTEN over on the Dreamweaver forum, where people make an HTML form with an email submit button... and are not happy when anyone who does not use the right kind of email program is not able to use the form... such as any of the "free" email clients like Yahoo
    The usual solution over there (I don't have details, the only user submission form I work with is in a controlled company environment, where everyone MUST use the approved email client) is to set up a server based solution with your own software on the server, so clicking the submit button activates YOUR software, not whatever is on the user's computer

  • Browser and email issues with OS 10.9.4

    Had a problem that I thought had been solved.  See thread here: Just installed OSX 10.9.4 - have browser and email issues
    Now a week or so later, it's back.  Same symptoms.  I have followed the procedure posted by Linc Davis.  Anybody have further ideas?
    Don Hutchins

    If you are using Safari, try going to Safari/Preferences/Advanced and set the develop menu to show. Go to the develop menu and select Empty Caches.
    If that doesn't work, Safari/Reset Safari/Remove all web site data.
    For Mail, try:
    Do a backup.
    Quit Mail.
    Go to Finder and select your user/home folder. With that Finder window as the front window, either select Finder/View/Show View options or go command - J.  When the View options opens, check ’Show Library Folder’. That should make your user library folder visible in your user/home folder. Go to Library/Containers/com.apple.mail.  Move the folder com.apple.mail to your desktop. You must move the entire folder, not just the contents.
    Restart, re-launch Mail and test. If the problem is solved, recreate any required Mail settings and import any emails you want to save from the folder on the desktop. You can then put the folder in the Trash. If the problem remains, return the folder to where you got it replacing the one that is there. 
    Information learned from Linc Davis. Thanks to leonie for some information contained in this.

Maybe you are looking for