Mail not showing in inbox.

Hi,
I am trying to send a mail to SBWP. what is happening is i am able to see the mail in outbox but not in inbox.
let me know what do i do?

REPORT  zsendemail                    .
PARAMETERS: psubject(40) type c default  'Hello',
            p_email(40)   type c default 'WRITE YOU ID' .
data:   it_packing_list like sopcklsti1 occurs 0 with header line,
        it_contents like solisti1 occurs 0 with header line,
        it_receivers like somlreci1 occurs 0 with header line,
        it_attachment like solisti1 occurs 0 with header line,
        gd_cnt type i,
        gd_sent_all(1) type c,
        gd_doc_data like sodocchgi1,
        gd_error type sy-subrc.
data:   it_message type standard table of SOLISTI1 initial size 0
                with header line.
*START-OF-SELECTION.
START-OF-SELECTION.
Perform populate_message_table.
*Send email message, although is not sent from SAP until mail send
*program has been executed(rsconn01)
PERFORM send_email_message.
*Instructs mail send program for SAPCONNECT to send email(rsconn01)
perform initiate_mail_execute_program.
*&      Form  POPULATE_MESSAGE_TABLE
      Adds text to email text table
form populate_message_table.
  Append 'Email line 1' to it_message.
  Append 'Email line 2' to it_message.
  Append 'Email line 3' to it_message.
  Append 'Email line 4' to it_message.
endform.                    " POPULATE_MESSAGE_TABLE
*&      Form  SEND_EMAIL_MESSAGE
      Send email message
form send_email_message.
Fill the document data.
  gd_doc_data-doc_size = 1.
Populate the subject/generic message attributes
  gd_doc_data-obj_langu = sy-langu.
  gd_doc_data-obj_name  = 'SAPRPT'.
  gd_doc_data-obj_descr = psubject.
  gd_doc_data-sensitivty = 'F'.
Describe the body of the message
  clear it_packing_list.
  refresh it_packing_list.
  it_packing_list-transf_bin = space.
  it_packing_list-head_start = 1.
  it_packing_list-head_num = 0.
  it_packing_list-body_start = 1.
  describe table it_message lines it_packing_list-body_num.
  it_packing_list-doc_type = 'RAW'.
  append it_packing_list.
Add the recipients email address
  clear it_receivers.
  refresh it_receivers.
  it_receivers-receiver = p_email.
  it_receivers-rec_type = 'U'.
  it_receivers-com_type = 'INT'.
  it_receivers-notif_del = 'X'.
  it_receivers-notif_ndel = 'X'.
  append it_receivers.
Call the FM to post the message to SAPMAIL
  call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
       exporting
            document_data              = gd_doc_data
            put_in_outbox              = 'X'
       importing
            sent_to_all                = gd_sent_all
       tables
            packing_list               = it_packing_list
            contents_txt               = it_message
            receivers                  = it_receivers
       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.
Store function module return code
  gd_error = sy-subrc.
Get it_receivers return code
  loop at it_receivers.
  endloop.
endform.                    " SEND_EMAIL_MESSAGE
*&      Form  INITIATE_MAIL_EXECUTE_PROGRAM
      Instructs mail send program for SAPCONNECT to send email.
form initiate_mail_execute_program.
  wait up to 2 seconds.
  if gd_error eq 0.
      submit rsconn01 with mode = 'INT'
                    with output = 'X'
                    and return.
  endif.
endform.

Similar Messages

  • Mail not showing in inbox window

    Mail prior to April 11 is not showing up in my inbox window. The older mail is in the folder, I can open them from the inbox folder, but cannot get them into the mail list window. Any suggestions?

    I'm having the same issue. No emails after April 21 are showing in the inbox. If I go to the get account info page you can see the emails and it even says they are downloaded, but they are not showing up in the inbox.
    Any suggestions?

  • Mail not showing new messages on 10.8.3

    Mail not showing new messages on 10.8.3, but messages show just fine on iPhone. Nothing changed to make this happen, not sure where to start. Thanks.

    Back up all data.
    Select the problem mailbox in the mailbox list, then select
    Mailbox ▹ Rebuild
    from the menu bar.

  • Apple mail not showing all the messages?

    In Apple mail, for my icloud account, I have some mailboxes which show the wrong number of messages, it shows too few.
    As an example, a mailbox contains 150 messages, but apple mail reports there are only 146.
    I rebuilt the mailbox and let apple mail do its thing. In the activity window I can see there are 150 messages. Yet, once apple mail has finished rebuilding the mailbox, it still tells me there are 146 messages. What's going wrong? Why would apple mail not show all the messages while in the activity window it clearly shows it knows there are 150?

    Solved!
    This was too weird to be real. Apple mail does not show messages it believes to be duplicates, and buy, does it make big mistakes in deciding what are duplicate messages and what not! Some of my mailboxes had over 100 "duplicates" not showing according to apple mail.
    I found a solution thanks to this topic:
    https://discussions.apple.com/message/18265121#18265121
    defaults delete com.apple.mail AlwaysShowDuplicates
    does yield an error in 10.8.2 ( Domain (com.apple.mail) not found. Defaults have not been changed. )
    defaults write com.apple.mail AlwaysShowDuplicates -bool true
    Does work brilliantly though!

  • Apple Mail Not Showing Inbox Unread Count on Dock after installing Mavericks

    After installing Mavericks, my Apple Mail (connected to my work's Gmail account) stopped showing the Inbox's unread count on the dock. I switched it to "all mailboxes" to see if that would make a difference, and the dock shows 7 unread emails when there are actually none. When I switch it back to "Inbox" unread counts, it shows nothing. I've waited 15 minutes after receiving an email to see if it will show an unread message in the dock, but it does not. Does anyone have a fix for this?
    Thank you!

    Quit your mail entirely, then in terminal do:  
    mv ~/Library/Mail/V2/MailData/Envelope* ~/Desktop 
    This moves all your "Envelope Index*" files to your desktop.  An alternative is deleting the files, but this allows you to keep them as a temporary back-up (you can delete them at-will later).  Also, you can move the files from Finder instead of Terminal, if you prefer. 
    After the files have been moved, re-open Mail
    This should re-load all your email messages, updating/restoring the count
    While this works, it does not explain the reason the count goes missing, nor does it ensure that the count won't go missing again in the future, but at least it's a temporary workaround.

  • Inbox mail not showing up.

    I just set up a iMac. Having a problem with mail.
    My iphone is not showing my mail that is in my inbox on the imac. All other mailboxes have the mail in it. I tested by sending a email to my iphone from the imac. It shows up. However, Mail sent from the imac is sent from "first name Last name" Mail sent from my iphone is sent from "apple ID"
    Did I set up the imac mail incorrectly?

    Mail uses files called “Envelope Index files” to keep track of messages in your local mailboxes.
    Quit Mail.
    Locate your Mail folder in your User's Library. Your home Library folder is hidden by default. To display it, choose Finder > “Go to Folder” and then enter “~/Library.”
    Delete any file that begins with “Envelope Index,” in ~/Library/Mail/MailData
    Open Mail
    Mail creates new Envelope Index files. This process may take a few minutes, depending on how many messages Mail is reindexing.

  • Yosemite Mail not showing contents of inbox (Exchange 365)

    Since upgrading to Yosemite my Mac mail inbox has been playing up. All the emails are there and show for a minute or two then the view changes and the inbox appears empty, selecting a different inbox (iCloud account, hotmail, Gmail) and going back to the Exchange inbox will make the message visible again. I have tried rebuilding, deleting the account and adding it again but all to no avail. New messages are coming in and all the mail is there it is just that they do not show (or more precise only show for a short period).
    This is the case both on my mid 2012 MBP and my mid 2013 MBA both running Yosemite version 10.10.

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your documents or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this behavior; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Please take this step regardless of the results of Step 1.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • Mail not showing new mail until I switch out of and back into INBOX

    When new mail is downloaded, the messages do not appear in the INBOX until I have moved to (clicked on) another mailbox and then moved back to INBOX. The unread message count reflects the correct number of unread messages until the above procedure has been followed. Similarly, when messages are moved to another mailbox, the messages sometimes do not leave the INBOX list until the same procedure is followed. This is a relatively recent problem (last couple of months, I think). Any ideas?
    MacBook Pro 13" (2007), OS X Lion

    Try rebuilding the mailbox. Here's a reference: Mail (Mountain Lion): Rebuild mailboxes

  • Mail not appearing in inbox.

    When I click on get mail incoming mail is loaded and the number next to the inbox icon shows that I have unread messages, but they don't show up in the folder. I have to quit out of the Mail app, and reopen it to get messages to appear. A co-worker's computer has the same problem except reopening Mail doesn't fix the problem.

    I am not sure I understand your question, "...how many total messages are available in the account's inbox mailbox?" I have checked, using webmail, how full each of the accounts are and they are no where near full (10%-20%), is that what you are asking?
    I have a similar problem on two machines.
    #1 G4 Powerbook running 10.4.4, it was purchased with 10.4.? and has had a few software updates. Problem: When the Mac Mail Application is opened, new messages will be loaded but none of the messages will appear in the message list window. The mailbox will show that I have unread messages, but they do not show up in my list. When I quit the application and restart it the messages will show up in the list as unread.
    #2 G4 Emac running 10.3.9, it was purchased with who knows what and the school district installed an image with 10.3.9. It has not been updated. Problem: : When the Mac Mail Application is opened, new messages will be loaded but none of the messages will appear in the message list window. The mailbox will show that I have unread messages, but they do not show up in my list. Restarting the application does not solve the problem.
    G4 Powerbook Mac OS X (10.4.5)

  • Mail not showing IN or OUT messages

    hello
    Suddenly my mail app does not show any messages INBOX or SENT or anything else for that matter.
    the wheel keeps runing all night with no old or new messages displayed.
    even the progress bar of incoming messages gets stuck at 70% progress
    Please help
    thank you

    I'm having the same issue. No emails after April 21 are showing in the inbox. If I go to the get account info page you can see the emails and it even says they are downloaded, but they are not showing up in the inbox.
    Any suggestions?

  • Mail not showing mail

    Hi,
    My Mail has been working great.. until i bought an iPhone4.
    I don´t know if this is the reason, but when i synced my iPhone from iTunes my mail account only shows
    NOTES.
    I deleted the mail account (my schools mail, imap) and reconnected the mail accounted. Mail started showing my mail again, after a few days the same thing. only notes.
    interesting is that notes do sync AND the account is showing that new mail has arrived (the blue ball) but no matter where or what I click can I get the account to show my mail.
    Thank you all for any tips or similar problems you can provide discuss. Thank you
    /Daniel Hilli

    summer14, In case you haven't resolved this yet.
    polzbert's solustion is excellent, assuming you have a backup drive using Time Machine. However, did you try rebuilding the inbox? If not, here's how:
    Select the mail box that's giving you trouble in the left pane of Apple Mail. Then choose "rebuild" iunder the Mailbox Menu Item. This has resolved countless mailbox glitches for me in the past.

  • Apple Mail- Mail not going into Inbox

    I've been having this issue more and more recently.
    Seems when Apple Mail checks for new mail (Mail provider is Google), it does show up in the All Mail folder that Google provides, but the new messages are not showing up in the Apple Mail inbox.
    When I check this in the Google mail web client, mail appears as normal.
    I'm missing messages, so this is something I'd like to figure out what's going on.
    Thanks for any help.

    The problem is Google is delivering the mail correctly, Apple Mail isn't putting it in the Inbox. This is a new problem, which started in the last few days. I haven't made any changes to my email settings so unless Google did something, which is entirely likely, this behavior is not right.
    Appreciate the insight, but that previous thread didn't really apply to this problem.

  • Yahoo Mail not showing up on 3g ios4

    I just picked up the new iPhone and gave my old 3g to my wife. I did a factory restore and upgraded to iOS4. She uses yahoo mail. The mail icon will show that she has email but it can't be seen in the inbox. When she goes online the mail is there. I have deleted the account and set it back up again. After doing that the email shows up for a while and then stops again.
    Is anyone else experiencing this? Maybe a setting I missed? Any help is appreciated.

    What do you mean by mail does not show up? You're not receiving any email? What?

  • Apple Mail not updating IMAP inbox

    When new mail arrives in an IMAP inbox, Apple Mail will not show the new messages until several hours pass or Mail is quit and restarted. The new mail is visible via other IMAP clients (Thunderbird, Entourage, iPhone) but not in Apple Mail. This occurs once or twice a week with no obvious common trigger. It is happening on my personal computer and many of my client's systems. I've tried rebuilding Inboxes, re-syncing accounts, deleting envelope indexes, creating new mail accounts, new users, etc.... The problem will always return eventually and only quitting and restarting Mail will cause the IMAP INBOX to update.
    Affected system: Apple Mail, Snow Leopard 10.6.3 although this has been occurring on multiple systems going back to 10.5 with multiple email providers.
    I've searched and searched and just found numerous people with the same issue and no solutions. All of those threads were archived with replies no longer allowed, so I started yet another thread.

    Ernie Stamper wrote:
    That is correct, but this IDLE to achieve push email might not be working well, at least with Mail. But post back if this does not correct the problem.
    Ernie
    I have two systems that have the issue and both had the IDLE box checked. I unchecked them both and they ran all day today with no lapses in email. Looks promising but the issue has gone for days sometimes before it re-appears.
    I will keep you posted. Hopeful.

  • Mail not showing accounts after ios 7 update on iPhone 5

    After the ios 7 update to my iPhone 5 mail does not show my accounts. Specifically there is nothing below the word Accounts. The rest is working fine and still connected to my three accounts. However it no longer shows accounts.

    thanks for the suggestions, i tried the ideas you suggested but i dont even get a camera showing for the rear camera, i also noticed the torchlight no longer works.  i did all the steps but no luck.
    So I took my camera to the genius bar this weekend as well as walking through various steps with the apple guys in ohio support over the net. 
    With the guys at the genius bar, after i insisted that it must be software as the rear camera stopped working only after the softwre update, they continued to assure me it was hardware and talked me into letting them replace the camera,  they then took it to the back and tried fixing a camera and 30 minutes later came out and said the rear camera is no longer being detected and wanted me to replace the motherboard for yet more money.  im glad they didnt charge me for the new camera though as it still didnt work.
    anyway the motherboard idea i rejected as it was just 2 months out of warranty and had only stopped working the day after the release of 7.0.2, so im going to wait until the next few releases to see what happens, as i dont believe for a second its hardware.  i expected a stock answer from apple and its exactly what i got even after my explanation of how it was working the day before the release.  not overly impressed with the whole process.
    i wanted to back down to 7.0.1 to confirm the camera still works but they said no chance so i cant even see if it still works ouside 7.0.2.  anyway will update if i get any further progress.

Maybe you are looking for