Mail Sending issue to Outlook - Mail Request not Showing in SOST

Hi,
Im using mail sending logic for sending a mail to Creator of Billing. i have one itab which is having two Users with two different mail IDs. i need to send a mail to those user mail ids to Outlook
user  Mail id
12           XXX
12           XXX
13           YYY
13           YYY
at end of User i need to send a mail..
loop at itab.
at end of user.
here sending a mail...for the first user it is sending mail perfectly..and mail request is available in SOST . once its comes to second user sending a mail getting sy-subc = 0 after SO_NEW_DOCUMENT_ATT_SEND_API1 FM..and mail request Not coming for second mail id in SOST both mails also available in Sap out box.
endat.
endloop.
Kindly Help me out..
Regards
Dileep

Hi,
to send mails use this:
FORM docu_send_email USING pv_otfdata TYPE tsfotf
pv_emailid TYPE any
pv_formname TYPE any.
DATA: lv_filesize TYPE i,
lv_buffer TYPE string,
lv_attachment TYPE i,
lv_testo TYPE i.
DATA: li_pdfdata TYPE STANDARD TABLE OF tline,
li_mess_att TYPE STANDARD TABLE OF solisti1,
li_mtab_pdf TYPE STANDARD TABLE OF tline,
li_objpack TYPE STANDARD TABLE OF sopcklsti1,
li_objtxt TYPE STANDARD TABLE OF solisti1,
li_objbin TYPE STANDARD TABLE OF solisti1,
li_reclist TYPE STANDARD TABLE OF somlreci1,
li_objhead TYPE soli_tab.
DATA: lwa_pdfdata TYPE tline,
lwa_objpack TYPE sopcklsti1,
lwa_mess_att TYPE solisti1,
lwa_objtxt TYPE solisti1,
lwa_objbin TYPE solisti1,
lwa_reclist TYPE somlreci1,
lwa_doc_chng TYPE sodocchgi1.
CONSTANTS: lc_u TYPE char1 VALUE 'U',
lc_0 TYPE char1 VALUE '0',
lc_1 TYPE char1 VALUE '1',
lc_pdf TYPE char3 VALUE 'PDF',
lc_raw TYPE char3 VALUE 'RAW',
lc_ordform TYPE char15 VALUE 'ZORDCONFIRM_01',
lc_attachment TYPE char10 VALUE 'ATTACHMENT'.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = lc_pdf
max_linewidth = 132
IMPORTING
bin_filesize = lv_filesize
TABLES
otf = pv_otfdata
lines = li_pdfdata
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4
OTHERS = 5.
IF sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT li_pdfdata INTO lwa_pdfdata.
TRANSLATE lwa_pdfdata USING ' ~'.
CONCATENATE lv_buffer lwa_pdfdata INTO lv_buffer.
CLEAR lwa_pdfdata.
ENDLOOP.
TRANSLATE lv_buffer USING '~ '.
DO.
lwa_mess_att = lv_buffer.
APPEND lwa_mess_att TO li_mess_att.
CLEAR lwa_mess_att.
SHIFT lv_buffer LEFT BY 255 PLACES.
IF lv_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
Object with PDF.
REFRESH li_objbin.
li_objbin] = li_mess_att[.
DESCRIBE TABLE li_objbin LINES lv_attachment.
Object with main text of the mail.
lwa_objtxt = space.
APPEND lwa_objtxt TO li_objtxt.
CLEAR lwa_objtxt.
DESCRIBE TABLE li_objtxt LINES lv_testo.
Create the document which is to be sent
lwa_doc_chng-obj_name = text-008.
lwa_doc_chng-obj_descr = text-008.
lwa_doc_chng-sensitivty = lc_0.
lwa_doc_chng-obj_prio = lc_1.
lwa_doc_chng-doc_size = lv_testo * 225.
Pack to main body.
CLEAR lwa_objpack-transf_bin.
header
lwa_objpack-head_start = 1.
The document needs no header (head_num = 0)
lwa_objpack-head_num = 0.
body
lwa_objpack-body_start = 1.
lwa_objpack-body_num = lv_testo.
lwa_objpack-doc_type = lc_raw.
APPEND lwa_objpack TO li_objpack.
CLEAR lwa_objpack.
Create the attachment.
Fill the fields of the packing_list for the attachment:
lwa_objpack-transf_bin = gc_x .
header
lwa_objpack-head_start = 1.
lwa_objpack-head_num = 1.
body
lwa_objpack-body_start = 1.
lwa_objpack-body_num = lv_attachment.
lwa_objpack-doc_type = lc_pdf.
lwa_objpack-obj_name = lc_attachment.
lwa_objpack-obj_descr = text-008.
lwa_objpack-doc_size = lv_attachment * 255.
APPEND lwa_objpack TO li_objpack.
CLEAR lwa_objpack.
lwa_reclist-receiver = pv_emailid.
lwa_reclist-rec_type = lc_u.
lwa_reclist-notif_del = gc_x.
lwa_reclist-notif_ndel = gc_x.
APPEND lwa_reclist TO li_reclist.
IF li_reclist IS NOT INITIAL.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = lwa_doc_chng
put_in_outbox = gc_x
TABLES
packing_list = li_objpack
object_header = li_objhead
contents_bin = li_objbin
contents_txt = li_objtxt
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.
MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDIF.
ENDFORM. " DOCU_SEND_EMAIL

Similar Messages

  • IOS7 and outlook meeting requests not showing up

    I am using Outlook 2007 on a PC (Windows 7).  Just updated my iPhone 5 to the new iOS 7 Operating System.  All seemed well until I sent a meeting request through my outlook on the desktop to a fellow iPhone user.  The email with the mime-attachment.ics came through to her email just fine.  However, you can't open it and it's not showing up in the calendar inbox or calendar.   I tried sending one to myself, same results.
    It worked just fine before the update.  Any suggestions?  I currently do not use an online calendar or iCloud...just the outlook program on my desktop.  iCloud presented a problem between my husband's exchange server and invites that I sent him so I kept it turned off.
    Thank you,
    LC

    I really wish your solution worked for me.  Unfortunately, even turning on the S/Mime switch, I'm still not able to view the calendar appointment.  Nothing has changed for me, but I'm glad it's working for you. 
    BozyGoBlue, your solution worked for me.  However, it's crazy to have to jump through the extra hoop to get an appointment on my calendar.  I did try forwarding the email appointment message to myself, and that worked too.  Since your solution worked for both of us, I'd be interested in knowing if I am gbot's solution worked for you. 
    Still looking for a  fix.  If anyone comes across anything, I'd appreciate you coming back here and posting.  I'll do the same.

  • Mail sent to SBWP outbox but not showing in SOST

    hi...
    i am using...
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = w_document_data
          put_in_outbox              = 'X'
          commit_work                = 'X'
        IMPORTING
          sent_to_all                = g_sent_to_all
        TABLES
          packing_list               = i_packing_list
          contents_bin               = it_pdf
          contents_txt               = i_body_msg
          receivers                  = i_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.
    here...
    if i execute the code i am getting a mail in SBWP outbox but it was not showing in SOST...
    in SBWP,
    in recieption list " Wait for communications service "
    the above error is showing...
    so my doubt is ..
    here code is wrong or any configuration settings i have to do ...
    can any body help me....
    thank you....

    HI ,
    Hopefully you guys solved the issue by this time..
    I faced the same issue and I found that my system time and timezone setting was different. That is what causing the problem. Hopefully this update will help others in future.
    Regards,
    Avijit Roy

  • E-mail that received in outlook from the Notes address error code:0x80070005-00000000-00000000 occurs

    When reply to the e-mail that received in outlook from the Notes address, error with an error code:0x80070005-00000000-00000000
    occurs (please refer to attachment),
    and we could not send mail. (Error details: Your message did not reach to the intended recipients, below email could not be delivered, please inquire to Network manager) When Created new
    and sent, e-mail sent became possible. Also, there was no mistake of e-mail address.
    Is there an alternative that avoids the current problem?
    If I perform a new email, it is possible to send.

    Hi,
    Which type of email account are you using?
    Have you checked this issue from web access?
    If the email address is saved as a contact in your Outlook, please try to delete it and then try to reply to the email to test if the problem persists.
    If you are connected to an Exchange server, please have a look at this KB article and check if it helps:
    http://support.microsoft.com/kb/195671/en-us
    Best Regards,
    Steve Fan
    TechNet Community Support

  • Is there a way to get an apple mail folder exported to outlook mail folder structure?  I'm using Gmail on my IMAC and have a PC for work.  Want to share folder structure between systems.

    Is there a way to get an apple mail folder exported to outlook mail folder structure?  I'm using Gmail on my IMAC and have a PC for work.  Want to share folder structure between systems.

    Use following steps to import apple mail to outlook:     
    Choose Mailbox->Export Mailbox, or choose Export Mailbox from the Action pop-up menu
    Choose a folder or create a new folder where you want to store the exported mailbox.
    Outlook for Mac: Choose File->Import Mailboxes. Select the mail application you want to import messages from.
    If it does not work then you should use third party apple mail to pst applications. You can easily search in Google about these applications.

  • My mail send defaults to wrong mail server. How do I change it?

    My mail send defaults to wrong mail server. How do I change it?

    That was a long time ago. I don't even remember asking the question. I don't have that trouble at the moment.

  • Outlook 2013 - Inbox not showing count of unread emails

    Ever since moving to Outlook 2013, some of our users are experiencing issues where their inbox does not show the count of unread emails. These user's are working in cached exchange mode. Taking them out of cached exchange mode, deleting OST file and then
    putting back in cached exchange mode usually resolves the issue. However, this is only temporary and the problem comes back. We are running Exchange 2010.
    Any suggestions on how to resolve this issue for good?
    Thanks.

    Hi
    As per the information and details provided by you, to solve the problem of Outlook 2013, please follow these steps: -
    I was also having the same problem. At the top of the
    Inbox, I clicked “Unread” (which is new to
    Outlook 2013, and different than the Unread, Mail search folder). It showed a message, something like,
    “there are more items on the server”, and gave me a link to view the items. When I clicked the link, no items appeared, but my unread mail indicator on my
    Inbox went away.
    I hope this information will be helpful for you.
    Thanks and regards
    Shweta@G 

  • Outlook 2010 contacts not showing phone number in Lync 2013 client

    Hi,
    We have Lync 2013 with Exchange 2010. Recently we started upgrading Lync clients from 2010 to 2013.
    A few users started reporting that their local Outlook contacts does not show phone numbers in Lync 2013 (working with 2010)
    I have installed the august patch which should solve this issue
    981751 - Lync 2013 does not display telephone number of an Outlook 2010 contact in the contact card
    Any idea where to look next?

    Hi Tobias Borgen Nielsen,
    Lync expects all the phone numbers to be in the E.164 format, meaning they should be +1-111-11111111 etc. If they’re not like this, you will have to normalize them if you want Lync
    to publish them.
    The related article for your reference.
    Lync not populating contact cards phone numbers from Active Directory (Or: How to normalize AD phone numbers for Lync Server 2010 and 2013)
    http://y0av.me/2012/02/23/normalize_ad_numbers/
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or
    suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
    Hope it can be helpful.
    Best regards,
    Eric

  • Xi mail sender adapter for outlook express configuration

    hi,
    can somone please tell me how to configure xi mail sender adapter for reading from inbox of outlook express?
    i keep getting errors in communication channel monitor:
    "exception caught during processing mail message; java.io.IOException: unexpected user response; read -ERR Command is not valid in this state."
    Thanks
    Tomer

    Hi,
    use below link,finish the configuration of sender mail adapter,many documents available on the same in sdn,search your self
    http://www.riyaz.net/blog/xipi-configuring-the-sender-mail-adapter/
    Cheers,
    Raj

  • VF03 - Mail send issue

    Hi Experts ,
    I have the below requirement .
    In VF03 - Issue output type - i have attched one output type name with which one Ysmartform has been attached .
    Functional guys have done some settings in SPRO so when they press the PRINT button it is generating spool for printr as well as it is sending mail to the vendor (picking mail id from vendor master)
    with the smartform as an attachment .
    The subject of the mail which goes to vendor comes from the setting - NACE - V3 (billing)- Output types -
    some output name congi by functional- click on that - mail title and text - for EN language a text has been maintained there .
    The problem i am having is the  SUBJECT OF THE MAIL and the PDF ATTACHMENT ( The out put of the smartform) both is having the same name . Means wht ever name is there in subject it is comming in the attachment also .
    I need to change the name of the  SUBJECT , in debugging i am able to change the name of the SUBJECT , so the changed name is comming in the PDF attchment , which i dont want .
    I am not able to track wheather the attachment is being generated and the name is assigned .
    I think this is the programm -  RLB_INVOICE 
    Anyidea please suggest .
    Regards
    Prabhu

    Hi Suresh
    Good on you that you are actually going through the SAP Help and trying the harder but better way unlike many others...your input regarding your problem is also quite well explained....Keep it up!
    Coming to your problem,
    <b>1.>>I see the emails only after a long time. Infact the emails sent yesterday is >>only visible today.</b>
    RSCONN01 is the program that sends email out of SAP, make sure this scheduled to run frequently otherwise you can manually run this from SE/SA38.
    <b>2. i checked in SOST and i dont see the messages at all. If its available in SOST then the system would have picked up and send to the inbox</b>
    When you run SOST make sure you tick all the checkboxes - Waiting, Errors, Sent and Transmitted. If you are on ECC, then these are available on the Send Status tab...
    Good Luck
    Ravi

  • Help! Sporadic Mail sending issues

    I have recently upgraded to Lion and since then have been having sporadic problems sending mail.  I use a .mac account with O2 broadband at home and an unknown provider at work. 
    Mail stops sending for several hours at a time, and has done so from both locations.  Since my iphone and ipad still send mail without a problem at these times, I have to assume that it is a Lion issue and not a provider issue.
    Connection doctor shows green for incoming and outgoing but mail simply refuses to send.
    My current mail-send-blackout has been going on for 18 hours now.  Yet yesterday my mail would send from home and also when I arrived at work.  But halfway through the working day it just stopped.  Again.  No apparent reason or pattern
    If anyone has any suggestions, I'd be very grateful
    Thanks
    Cal

    Yes well there were no changes to the account, just stopped sending mail via SMTP
    Deleted account and set up new one, same thing cannot send mail via Mail app
    As mentioned another disc on the same comp with same account details etc works fine
    so don't understand
    Seems a lot of people are having this problem too.
    Thanks Anyway

  • Mail send issues

    Every once in a while, I have problems with an email not being sent. It doesn't seem to matter if the email has an attachment or not.
    When I click send, the email starts being sent as normal. Then the transfer rate slows right down and stops altogether. It doesn't pick up again, but eventually Mail makes its "mail sent" sound.
    However, there is no sign of the sent email in the sent mailbox, nor in drafts. Also, if the problem email was a reply to another email, clicking on the curvy reply arrow brings up a message saying that the reply is missing.
    Does anyone know why this may be happening, and of a way to find the missing email so that I can attempt to send it again?
    Thanks

    That doesn't seem overloaded. However, that depends on the amount of space your provider gives and how much is in the inbox.
    If the message was sent, then it should have been in the sent folder and on the server. The first place it's copied to a sent folder is through the IMAP server, not the MAC. You only see it on the mac when it syncs. Check the website for that account and verify the message doesn't appear there. You might also check other folders at the IMAP site that it may have moved to such as archive that may not show on your Mac. Also check the IMAP folder for the account in the bottom of the sidebar for folders there that it may be in.
    What you can do is is uncheck to store messages on the server for the IMAP account. That will take the IMAP sent messages mailbox for that account out of the main Sent Mailbox and put it back under the IMAP folder. It will create a local mailbox for that account when you send the next message. That will save the sent messages locally. If it happens again, you will know it's not your providers problem.
    If that clears it up, then I would persue the problem with your provider.

  • Meeting request not showing up in outlook

    Outlook 2010 - meeting request received, is not showing up in Outlook inbox.  The new mail icon blinks briefly and the meeting dissapears, it does appear as tentative in the calendar, however does not give an option to accept/decline. 
    OWA works fine, and the meeting request also shows up fine in BB.
    No rules in outlook that affects this either. 
    Does anyone have any ideas on this?
    Update:
    tried outlook /cleanreminders - didn't help.
    Other reminders works, like the meeting & task reminders, just the initial meeting acceptance pop up is missing.
    The meeting can be accepted / declined by going into the calendar where the meeting shows up as tentative (as expected).
    This behaviour is on multiple machines (home/work) both exhibiting the same behaviour.
    Thanks
    Shah

       Hi
           Is this user responsible for the resource?
          Check Tools/Options/Preferences/Calendar Options/Resource Scheduling to see if it is set to automatically accept.
          Can you find metting request in delete item folder?
          Can you delete user account on blackberry and run office again?
    Terence Yu
    TechNet Community Support

  • E-mail sends from wrong e-mail address

    I'm having problems sending an e-mail from a specific e-mail account. I've bee using one account mainly, but I received an e-mail in another account. I hit reply, and typed in my response, hit send. However, the e-mail got sent by my main account (the one I also set to be my default account in the mail settings, however, I thought that was for times like sending a link from safari). So, I'm a bit confused, how do I choose which e-mail to send from, I thought you select the e-mail account and hit the button, but if I hit reply from one e-mail account, why did it send with the other?
    Alex
    Edit: If it matters, the the e-mail account that got the message I was responding was an att yahoo account, I heard people have had issues with push so I'm not sure if that's the problem, and my main e-mail is a gmail account. Though it did send, just from the wrong e-mail.
    Message was edited by: axxl

    Quick Update:
    When I send an e-mail from a different e-mail account (my other gmail account), it sends it from its own server. However, it still doesn't work with the att.net account. My yahoo account just doesn't send anything from anywhere, no traces.
    Alex

  • Event invites from Mail appearing in Calendar as "Maybe" but not showing in Calendar inbox

    Hello everyone,
    I'm actually new to using invites and Calendar on iPhone, so maybe it's something I'm missing.  But when I receive an invitation for an event that was created and sent from another iPhone using Calendar, I am not easily finding the option to "Accept" or "Deny".
    The calendar source is a CalDAV server, and all systems are functioning 100% as expected on that end.  The calendars are accessible and editable by any device, so I'm pretty sure the issue isn't here.
    I would expect the "mime-attachment.ics" received in the email to allow me to reply from that source, or to at least find the invite automatically listed in my Calendar "Inbox".  Neither is the case.  However, if I go and find the event in the calendar itself, it's sitting there with "hash" marks through the event until I go in and "Accept" or "Deny".  At this point, it shows up in my Calendar inbox under the "Replied" section.  So, it's definitely making it into my calendar.
    Should it not automatically show up in my Calendar inbox under the "New" section from the beginning?  Or what about being able to "Accept" or "Deny" straight through Mail?  Hopefully I'm not goofin' up here -- but I sure am stumped.
    Thanks for any help.
    ~Laz

    Eustace, sadly this did not work. It's a full week and I had to keep using Thunderbird to check that I'm not missing any mail. I don't get it, some comes in, some gets left out.
    Today I tired Eric Root's reindexing solution and that did not do anything either.
    I saw mail bringing in 188 messages and NOTHING new showed up. It did in T-bird because it was all the past week's mail
    Thunderbird *****. It doesn't even pay attention to rules I set up in it. I want my Apple mail back!
    Can I try to reinstall the mail app from my disks without having to delete the mail app entirely? Will the new files overwrite the old ones and 'freshen' it up (so to speak) and fix this communicaiton issue?

Maybe you are looking for

  • Posting period issue while deleting a confirmation posted for a limit PO

    Hi .. I am facing an issue whiel deleting a confirmation posted for a limit PO. Confirmation was posted for a limit PO in SRM and it created a service entry sheet in SAP. If I deleted that confirmation in the same posting period, then it is getting d

  • Submit MC.9 does not retrieve data in background processing.

    Hi, Im submitting transaction MC.9 in one of my programs. The submit statement seems to retrieve data when the program is run in the foreground, but when the program is scheduled to run in the background the submit statement does not retrieve data. k

  • Console.app not updates in LOG DATABASE

    After a forced shutdown of the MacBook Pro, the console.app displays all logfiles and also LOG DATABASE QUERIES, but the content of the LOG DATABASE only date back to the fored shutdown point in time. Afterwards, system.log, etc are updated, but the

  • Error when assigning SID: Action VAL_SID_CONVERT InfoObject 0FISCPER

    Dear experts, I'm getting this error when activating an DSO. I'll try to explain when this error happens. I have a DTP in Delta Mode between 2 DSO's. The first time I run the DTP the DSO activates with no problems. The next time I run the DTP and it

  • SWF-to-EPCM Bridge failure

    Hi, guys when i am trying to acess ess iviews i am getting an error initialization of SWF-to-EPCF Bridge failed! ERROR=TypeError: 'parent.EPCM._private' is null or not an object. can any one help please.