All abt mails

is there any function module to send a file directly to sap inbox?
SO_NEW_DOCUMENT_SEND_API1s the file to sap outbox...i can chk it in sbwp.
2 question is there any fm to collect the mail from inbox??
3 question can anyone send how to configure email setting in sap?

Hi,
try this(i'vd just tried this and it works),   if the following  doesn't work then  there must be something missing within configuration as you said.
*& Report  ZDEP_TESTS5
REPORT ZDEP_TESTS5 .
  DATA: lv_sent_to_all  LIKE sonv-flag.
  DATA: li_OBJECT_CONTENT    LIKE solisti1   OCCURS 10 WITH HEADER LINE.
  DATA: li_reclist   LIKE somlreci1  OCCURS 5  WITH HEADER LINE.
  DATA: lwa_doc_chng LIKE sodocchgi1.
  CLEAR:lwa_doc_chng,
        lv_sent_to_all.
  REFRESH:li_OBJECT_CONTENT,
          li_reclist.
*---Creation of the document to be sent
  Object Name
  lwa_doc_chng-obj_name = 'SENDFILE'.
  Mail Subject Line
  lwa_doc_chng-obj_descr = 'SUBJECT LINE ' .
li_OBJECT_CONTENT-LINE = 'test content'.
append li_OBJECT_CONTENT.
  Target recipents
    CLEAR li_reclist.
      li_reclist-receiver = '[email protected]'.
      li_reclist-express  = 'X'.
      li_reclist-rec_type = 'U'.
      APPEND li_reclist.
  copy recipents
     CLEAR li_reclist.
     li_reclist-receiver = ''.
     li_reclist-express  = 'X'.
     li_reclist-rec_type = 'U'.
     li_reclist-copy = 'X'.
     APPEND li_reclist.
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
  EXPORTING
    document_data                    = lwa_doc_chng
    DOCUMENT_TYPE                    = 'RAW'
    PUT_IN_OUTBOX                    = 'X'
    COMMIT_WORK                      = 'X'
  IMPORTING
    SENT_TO_ALL                      = lv_sent_to_all
  NEW_OBJECT_ID                    =
  tables
  OBJECT_HEADER                    =
    OBJECT_CONTENT                   = li_OBJECT_CONTENT
  CONTENTS_HEX                     =
  OBJECT_PARA                      =
  OBJECT_PARB                      =
    receivers                        = li_reclist
EXCEPTIONS
   TOO_MANY_RECEIVERS               = 1
   DOCUMENT_NOT_SENT                = 2
   DOCUMENT_TYPE_NOT_EXIST          = 3
   OPERATION_NO_AUTHORIZATION       = 4
   PARAMETER_ERROR                  = 5
   X_ERROR                          = 6
   ENQUEUE_ERROR                    = 7
   OTHERS                           = 8
  IF sy-subrc = 0.
    IF lv_sent_to_all = 'X'.
      WRITE:/ 'email sent'.
    ENDIF.
  ELSE.
    WRITE:/ 'error'.
  ENDIF.
regards.

Similar Messages

  • IOS 8.1 Does Not Download All iCloud Mail/ Keeps Cache?

    Hello,
    I have setup and enabled an iCloud e-mail account on all of my devices and was successfully able to use the Mail app in Mac OS X Yosemite to copy mail from my Yahoo! inbox to my iCloud inbox.  All e-mail copied from Yahoo! Mail appears in the OS X Yosemite Mail app as well as in the iCloud.com site, however, my iPad Air 2 and iPhone 5 both running iOS 8.1 does not download all of the mail from iCloud.  I have tried the following on both iOS 8.1 devices with no success.
    - Disable iCloud mail and re-enable
    - Sign completely out of iCloud and sign in again, then reconfigure all iCloud services including mail
    The result of both steps is that the incomplete list of e-mail in the iCloud inbox just reappears in the Mail app instead of downloading from iCloud again.  It looks like the incomplete list of e-mail is stored on the iOS device and signing out of or disabling iCloud mail just hides it; re-enabling or signing in merely shows it again.  This appears to work differently than my Yahoo! Mail configuration where if I sign out of or delete the Yahoo! account and reconfigure, iOS downloads a fresh copy of all e-mail in the inbox and all other folders.  Here are my two questions:
    - How do I get my iPhone and iPad Air 2 to download ALL e-mail from my iCloud mail account?
    - Are my suspicions true? Does iOS actually store a cached copy of iCloud mail on the device when the service is disabled and just "redisplays" it when re-enabled?
    Thanks!

    I had the same problem. My iCloud it's a mess since the iOS 8.1 update.
    Probably your iCloud isn't working too.

  • Not getting all my mail

    I have an Imac and an Ipad WIFI and use a Time machine base station WIFI. I also have two email accounts, both on the same ISP. The Imac is not turned on most of the time and I use the Ipad for most of my daily computing. The problem is the Ipad is not getting all my mail messages from the server. Whenever I start up my IMAC, I get more messages that the Ipad received. I have done a full reset on the Ipad, but as yet can't fix the problem.
    Any ideas??

    Very long shot - which might have something to do with it. The downloads are set to 25, and I don't refresh the load button. However, that is only part of the answer I think. This morning, I sent out two email messages to a group, of which I am on the list, and one my Ipad I received only one. Alos, one of the things that happens is that my wife is the other account. And we belong to a community which has a server which bounces email to all members of the community, when we send the server an email. Quite ofen, one of us will get the mail, but not the other, and it is not consistent as to who gets the email.
    Fun isn't it???

  • Not getting all my mail on the iphone

    Last week my iphone stopped receiving my email. There are some messages there, but not all. All of them are from yesterday and I can tell you that I have about 20 unread messages in my account, but only 6 are there (all from yesterday). I can send email - I sent myself a test message and it went out, but I haven't received it yet. Any ideas?

    Hi Carolyn,
    I did to that first before posting the forum. The issue is that I get some mail, but not all my mail, and there are no errors. The pattern I see is that all my mail seems to come to my phone when I am on the job site. But not in all parts of my job site. And I only get some messages at my home as well.
    Receiving all my messages has worked since I set the phone up (several months ago) and then about two weeks ago i only get some messages not all my mail. There is no rhyme or reason.
    I will probably blow away my mail account and set up fresh, but wanted to check with the forum users to see if there might be someone else who has experienced and what the solution might be.

  • How can I reinstall my mail accounts and get all my mails back?

    My internal HD died a few days ago . Fortunately I did a Time Machine backup a couple of hours before it happened .
    Now my MacBook Pro is back from the repair center, with a brand new HD and Mac OS 10.6.8 installed (the system I had) .
    But how can I get all my mails back? Indeed I used Mail to manage many mail accounts, and some of the inboxes or local mailboxes contain messages that are a few months if not years old. I coud reconfigure my accounts, but then I only get the mails of the last few weeks downloaded (those that were not erased from the pop3-server). Is there a possibility to get all the mails (including outbox) as it was before the crash?
    By the way, I'm also still looking for my address book and my iCal calendars !!
    Thanks for help.

    I have a MacBook Air, bought in 2010 or 2011.  It is running OS 10.6.8.
    I have an iMac that is the same age as my MacBook Air.  My iPhone is 2nd or 3rd generation.
    None can support "the Cloud".  I use gmail and my iPhone and both computers are all synced.
    I can't get email on my new iPad that does use "The Cloud".
    Please help.

  • How can I block all other mail account just to only use the exchange mailbox of our company? This is to prevent the user to setup his on company iPhone.

    How can I block all other mail account just to only use the exchange mailbox of our company? This is to prevent the user to setup his on company iPhone.

    I don't know if I'm asking this all in a way that can be understood? Thanks ED3K, however that part I do understand (in the link you provided!)
    What I need to know is "how" I can separate or rather create another Apple ID for my son-who is currently using "my Apple ID?" If there is a way to let him keep "all" his info on his phone (eg-contacts, music, app's, etc.) without doing a "reset?') Somehow I need to go into his phone's setting-create a new Apple ID and possibly a new password so he can still use our combined iCloud & Itunes account?
    Also then letting me take back my Apple ID & password, but again allowing us (my son and I) to use the same iCloud & Itunes account? Does that make more sense??? I'm sincerely trying to get this cleared up once and for all----just need guidance from someone who has a true understanding of the whole Apple iCloud/Itunes system!
    Thanks again for "anyone" that can help me!!!

  • I'm having problems with excessive email usage on my iphone 4/ios 7. Just noticed that (settings/usage) it was using 900  mb. I deleted all my mail, deleted the mail account, and it still says it's using 661 mb. My ipad uses a fraction of that.

    I'm having problems with excessive email usage on my iphone 4/ios 7. Just noticed that it (settings/usage) was using 900+ mb. I deleted all my mail, deleted the mail account, turned the phone off and back on, downloaded any remaining mail on the server to Outlook on my computer, and it still says it's using 661 mb. My ipad uses a fraction of that.
    Background: I recently (December) bought an ipad and set up icloud for contacts and calendar, but NOT mail. My email provider is Verizon. I use computer, iphone, and ipad to check my email; eventually I download it from the server using Outlook on the computer and then delete any remaining emails from the phone and ipad. I can't find info on this problem anywhere.

    Howdy there COUGAR444,
    It sounds like your iPad all of a sudden seems to be restarting out of no where. If you haven't called AppleCare yet, I would start with quitting either the app that seems to be causing the issue, or all the apps if a single doesn't seem to be the culprit. 
    iOS: Force an app to close
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    When you have done that restart the device and test the issue again:
    iOS: Turning off and on (restarting) and resetting
    If the issue persists, backup your device to iTunes, then restore it as new and verify that it works. 
    How to erase your iOS device and then set it up as a new device or restore it from backups
    If it does, then restore your backup to either verify it still works and the software just needed reinstalled, or isolate the issue to the backup file itself. 
    Thank you for using Apple Support Communities.
    Regards,
    Sterling

  • How can I delete all my mail from my computer, but leave it all on .Mac ?

    How can I delete all my mail ( 3.5 ) on my computer ( original G4 ) but leave it all on the .Mac servers?

    backup the device and restore it as new.
    If you already have or don't need a backup:
    Erase your device
    Erasing all content and settings will delete all the data from your device, including songs, videos, contacts, photos, calendar information, and any other data. All device settings are restored to their factory condition.
    To remove all settings and information from your device, tap Settings > General > Reset > Erase All Content and Settings. For more information about this feature, see iOS: Understanding 'Erase All Content and Settings'.
    If you are unable to erase your device, restore the device using iTunes.
    See: http://support.apple.com/kb/HT4137  for the exact steps.
    Transferring ringtones isn't supported, as far as I know...

  • I would like to use my apple id for all my mail how would i do this

    i would like to use my apple password for all my mail.

    What do you mean by editting it ? You can update your account to be linked to a different email address (http://appleid.apple.com), but you can't transfer content from one account to another account

  • I've deleted all my mail in iCloud and also empty trash, but iCloud mail still occupied my iCloud storage for 1.9GB. What do I do?

    Dear All,
    I've deleted all my mail in iCloud and also empty trash, but iCloud mail still occupied my iCloud storage for 1.9GB. What do I do?
    BR.

    Hi OaksterMe,
    In order to completely delete emails from your devices and free up space in iCloud, you should follow the steps in this article -
    iCloud: Reduce email storage space
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • Lost all my mail in my inbox +my mail account

    lost all my mail in my inbox +my mail account settings except @mac.com after a crash of my system.
    When I rebooted my mac, a pop-up from mail was telling me that it had created a new folder called "distributed" in replacement of the usual "sent items" folder. This last folder is still there but is empty.
    Can I somehow recuperate the settings as it was before the crash?

    Hi Jake, and a warm welcome to the forums!
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc that came with your computer, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Click the disclosure triangle to the left of the hard drive icon to display the names of your hard disk volumes and partitions.
    5. Select your Mac OS X volume.
    6. Click Repair. Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    After we're sure those things are OK, we can go further.

  • How can I prevent deleted mail from ending up in "All Mail"     and "Archives"?  To my horror, I've emptied these boxes and lost all my mail from all my boxes  (and why do I need to enter this question three times?"

    How can I prevent deleted mail from ending up in "All Mail" and "Archives"? 
    To my horror, I emptied these boxes and lost all my mail from all my boxes .
    All mail also disappeared from my iPad, I suppose because they are "synched"
    (Also, no offense, but why do I need to enter this question multiple times?)
    Thanks for any thoughts.

    I'm having a similar but slightly different problem. My company just migrated to Gmail, and it's saving mail drafts every 30 seconds into my Trash folder.
    I unchecked the "Show in IMAP" preference in the Gmail settings, but my Drafts folder completely disappeared. I went back and checked it and the folder reappeared (with my drafts still in there).
    I like the idea if starting an email on my laptop and having the option of finishing it on my iPhone or iPad, so only saving Drafts locally would not be ideal.

  • ALL e-mail SENT since 28 Oct FAILED. Is this a SMP...

    I use BT Yahoo e-mail and Outlook 2003. No problems whatsoever until yesterday when a client advised that he'd not received a couple of e-mails. I re-sent them and all looked fine. The pop-up box confirmed Send/Receive complete & the e-mail moved from Outbox to Sent Mail.
    First thing this morning I sent myself a test e-mail from Outlook and again it seemed OK. The test though didn't appear (8 hours later) in my In-box. I then logged onto my BT e-mail a/c via the webpage to see if my mail had got that far; but discovered that BT Yahoo Internet's homepage had moved and that BT claimed they were "changing the way e-mail worked". I therefore wondered if this mightn't be linked to my problem. Further reading showed that BT had signed-up to some anti-spam initiative and that "IF YOUR CLIENT DOES NOT SUPPORT THE SMTP AUTHENTICATION YOU WILL NOT BE ABLE TO USE IT TO SEND BT YAHOO MAIL". The website offered a link to automatically check and fix my client settings, but Outlook 2003 wasn't on the list of clients supported.
    I checked my Outlook e-mail account settings manually and found the "my outgoing server (SMPT) requires authentication" box already checked. I even unchecked the "Use same settings as my incoming mail server" box and re-entered my user name and password. But still the same problem. All Sent mail LOOKS normal but isn't being delivered if sent using Outlook. TO BE CLEAR - e-mail sent from the BT Internet webpage is fine
    The incoming and outgoing server details and the port settings all look fine (POP3/port 110 & SMTP Server/port 25)
    Any ideas, anybody???

    This may help to get your correct settings.
    BT Help with your e-mail
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • I have two computers one 10.5.8 one 10.6.8.  Updated the 10.6.8 and now my mail has disappeared on one computer - do I sync account to get all my mail content back?

    I have two computers one IMac 10.5.8 one MacBookPro 10.6.8.  Updated the MacBookPro 10.6.8 and now my mail has disappeared on that computer - do I sync account to get all my mail content back onto the MacBookPro?

    You can do it. This article from Macworld will be helpful to you:
    http://www.macworld.com/article/161087/2011/07/install_lion_over_leopard.html
    I recommend the "brute-force" method.
    Just make sure you have your data backed up properly!

  • Want to delete all the mails in the mail box configured for BPM Portal

    Hi All,
    Do you have idea to perform this activity.
    I want to delete all the mails in the Dev mail box configured for BPM Portal.
    Server and mailbox details as given below :
    Mail a/c = Y00123
    Mail server = sap.mail.com
    Thanks, Sanjay

    http://java.sun.com/developer/onlineTraining/JavaMail/contents.html
    http://www.jguru.com/faq/view.jsp?EID=17035
    if you know the password of the account, i think you can also access the mail using mail client, like you use outlook to deal with your company mail daily.

Maybe you are looking for