Problems with CC in email

I have some problems with my coding below.
Table cc_itab contains :
     [email protected]
        [email protected]
        [email protected]
Table to_itab contains :
     [email protected]
        [email protected]
The emails are sended correctly but when i look at the mails in outlook i see
1st mail :     TO : [email protected]
          CC : [email protected];[email protected]
This is still correct  but now the problem starts
2nd mail :      TO : [email protected]
          CC : [email protected];[email protected];[email protected];[email protected]
in cc every email address is used 2 times.
3th mail :     TO : [email protected]
          CC : [email protected];[email protected];[email protected];[email protected];[email protected];[email protected]
in cc every email address is used 3 times.
loop at cc_itab.
  TRY.
Create persistent send request
      send_request = cl_bcs=>create_persistent( ).
Create document
      document = cl_document_bcs=>create_document(
      i_type = 'RAW'
      i_text = bodytext
  i_subject = subject ).
      i_subject = 'Overview emails of 06/10/2006' ).
Add document to send request
      CALL METHOD send_request->set_document( document ).
Get sender object
      sender = cl_sapuser_bcs=>create( sy-uname ).
Add sender
      CALL METHOD send_request->set_sender
        EXPORTING
          i_sender = sender.
Create recipient TO -> Vendor
      CLEAR c_address.
      c_address = cc_itab-s_name_text.
      CLEAR recipient.
   recipient = cl_cam_address_bcs=>create_internet_address( c_address ).
Add recipient with its respective attributes to send request
      CALL METHOD send_request->add_recipient
        EXPORTING
          i_recipient  = recipient
          i_express    = ' '
          i_copy       = ' '
          i_blind_copy = ' '.
    Create recipient CC -> Purchaser
      LOOP AT cc_itab.
        CLEAR c_address.
        c_address = cc_itab-smtp_addr.
        CLEAR recipient.
   recipient = cl_cam_address_bcs=>create_internet_address( c_address ).
      Add recipient with its respective attributes to send request
        CALL METHOD send_request->add_recipient
          EXPORTING
            i_recipient  = recipient
            i_express    = ' '
            i_copy       = 'X'
            i_blind_copy = ' '.
      ENDLOOP.
set send immediately flag
      send_request->set_send_immediately( 'X' ).
Send document
      CALL METHOD send_request->send( ).
      COMMIT WORK.
    CATCH cx_bcs INTO bcs_exception.
      RAISE EXCEPTION bcs_exception.
  ENDTRY.
endloop.

Hi,
the mail sending is inside the loop.
loop at cc_itab.
In the starting itself each time <b>refresh</b> that recipient internal table <b>that u r passing to email FM</b>
other ways the emails get appended over and over again
endloop.
hiope u got the problem solution
rgds
Anver
if hlped pls mark points

Similar Messages

  • Problem with links on email templates

    Problem with links on email templates
    Hi,
    We have been having issues with links on our email templates. Some of the links point to the following URL:
    http://server'sname/thirdparty/FCKeditor/editor/fckeditor.html?InstanceName=emailTemplatesDTO.htmlBody&Toolbar=NewscaleFCKEditorToolBar#URL
    Sometimes we get “Unknown internal error” on the web page.
    Can anyone help or advise on how to resolve this issue?
    Many thanks,
    Wesley.

    Hi Wesley,
    This is rather late, but we've seen the same thing frequently (and I believe can replicate it).  It's caused when you a creating a new email by copying the content of an existing one with a name space in it.
    Upon copying, the link gets scrambled.  The approach we use is to copy the email in to a new template, then strip out all of the URL links and add them back in.
    Thanks!
    Ant

  • HT5622 Due to problems with my original email I changed my apple id email and password months ago.  Suddenly it is reverting to my old email.  How do I get it to totally forget the original? I have iPhone, iPad and MacBook Pro.

    Due to problems with my original email I changed my apple id email and password months ago.  Suddenly it is reverting to my old email.  How do I get it to totally forget the original? I have iPhone, iPad and MacBook Pro.

    Hey 1Jerry,
    Thanks for the question. You'll want to delete and re-add your iCloud account (utilizing the new Apple ID address). When prompted, opt to keep as much information on your device as possible. The following article provides information on how to do so:
    iCloud: Change iCloud feature settings
    http://support.apple.com/kb/PH2613
    Turn off iCloud completely
    Depending on whether you want to stop using iCloud on all or only some devices, do one or more of the following:
    On your iOS device’s Home screen, tap Settings > iCloud, then at the bottom of the screen, tap Delete Account.
    Thanks,
    Matt M.

  • Problems with my yahoo email account using Firefox

    I am using Firefox 14.0.1 and I have problems with my yahoo email account. I send an email, the receiver got a good version of my email, but when I see the same email into my sent box I see a differente text. When I use any other Internet browser, I can see a good version of my original email into the sent box.
    Why???

    Hi,
    Please try a '''Ctrl + F5''' refresh. This helps to bring in the page contents afresh. You can also consider the [https://support.mozilla.org/en-US/kb/reset-firefox-easily-fix-most-problems Reset Firefox] feature via '''Help''' ('''Alt''' + '''H''') > '''Troubleshooting Information'''.
    (To revert to the previous profile, close the new profile, start Firefox and choose the '''*.default''' profile. While the [https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles Profile Manager] is open, you can also delete the newly reset profile (the one containing random numbers)).
    [https://support.mozilla.org/en-US/kb/Managing-profiles Managing profiles]
    [https://support.mozilla.org/en-US/kb/Profiles?s=profile&r=2&e=sph&as=s Profiles Howto]
    If you have security software (antivirus, firewall etc.) installed, you can try deleting all existing instances of Firefox and related files in all the different configuration areas/modules of the security software. Instead create new allow/trusted rules for Firefox + its related processes. Even otherwise the security software may also ask again when Firefox is started and you can try to allow/trust at that time. Please see [https://support.mozilla.org/en-US/kb/Firewalls this].
    [http://kb.mozillazine.org/Firewalls AV/Firewalls Configuration]

  • I have a problem with a few emails i wrote which were in the outbox. The outbox disappeared all of a sudden with my mails... However they were not sent since the email address was not correct (just 3 initials). Is there a way to get it back somewhere?

    Hello,
    I have a problem with a few emails i wrote which were in the outbox. The outbox disappeared all of a sudden with my mails... However they were not sent since the email address was not correct (just 3 initials). I was waiting to find out the correct email address of that person, put in in and then sen it...Is there a way to get it back somewhere on the ipad or in some cached folder?
    Many thanks for an answe to this.
    Swisslady2

    There is no cache where the emails would be stored on the iPad, but you could try quitting the mail app and then launch it again and see if the emails return.
    Go to the home screen first by tapping the home button. Quit/close open apps by double tapping the home button and the task bar will appear with all of you recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner to close the apps. Tap the home button. Then try mail again.

  • How to correct checkout form "there is a problem with the PayPal email address supplied"

    PayPal Pro submissions do not go through. The error message reads "We cannot process this transaction because there is a problem with the PayPal email address supplied by the seller."
    I called PayPal. They checked and said my checkout form was not sending my email address to them. Any help on getting this to work will be sincerly appreciated. Thank you.

    - If you want to replace the headphone jack yourself see:
    iPod Touch Repair - iFixit
    - Apple will only exchange your iPod for a refurbished one for this price, You get a new battery.  However, it may not be worth it for a 2G iPod.
    Apple - Support - iPod - Repair pricing- A third-party place like this one is less expensive. Google from more places.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens

  • I continue to have problems with links in email, they don't  Work.

    I continue to have problems with links in email, they don't work. When I called apple support she said to hard boot by holding off and home keys and restart. However this is only since the new release of the operating system,  it happens ever day and it's getting OLD.. Any solutions?

    Yes, almost daily since the iOS update. Is there a permanent solution. And does the hard reboot hurt the iPad?

  • I just started using my iphone 5s. I have a problem with new incoming emails from my POP account. Why are they marked as read automatically even though I have not even opened them yet.

    I just started using my iphone 5s. I have a problem with new incoming emails from my POP account. Why are they marked as read automatically even though I have not even opened them yet.
    At first I thought it might be because I was using simultaneously my old iPhone 4S so it somehow realized the emails where being pushed to another device and the it marked as read, this has nothing to do since I have deleted the email account from the iPhone 4S

    Contact the email provider for assistance with their service.

  • HT1146 problem with bt/yahoo email password

    I have had an email set up on my macbook air. suddenly, it started to ask me about password "imap.yahoo.mail does not recognise your password" however, when I log on via Safari I have no problem. I deleted the email, restarted my laptop and still having same problem.
    I even tried to set up a different email (hotmail) and still got same pop up window showing the message "imap.yaho.mail server did not recognise your password"!
    I am not sure what went wrong. Any advice?

    My advice would be to ignore the email until Yahoo have had time to fix all the bugs and problems with their new email system.

  • For about 2 weeks I have been unable to leave feedback on ebay. Firefox brings up login page but will not accept password. I am having the same problem with my yahoo email. It will not accept my passwords, so I have to use IE to login to these accounts.

    On yahoo email, it accepted my login id, but not password. This started on one account about two weeks ago. Today when I tried to login to another yahoo email, which worked yesterday, but it would not accept my password on this account.
    I bought some items on ebay and wanted to leave feedback. When I clicked on the leave feedback button a sign in window appeared, this should not have happened, when I tried to sign in, it would not accept my password. I called ebay and was told they have had many complaints from customers using firefox when trying to leave feedback. The help desk suggested I try with Internet Explorer, I did, and it worked perfectly.
    I have been using firefox for a long time and really do not want to go back to IE, but when I cannot sign into my accounts, I can't, so I will have to use IE.
    As far as I know, no new programs have been installed on this computer.

    Try deleting cookies and cache:
    1. Tools| Clear recent history
    2. Time range to clear: Everything
    3. If it isn't already selected, select '''Cookies''' and '''Cache'''
    4. '''Clear now'''
    '''Check cookie exceptions'''
    1. Tools | Options | Privacy Panel
    2. Set '''Firefox will: Use custom settings for history.''' '''Insure Accept cookies for sites and accept third-party cookies''' is selected
    3. Click '''Exceptions'''. If the misbehaving site is in that list, select it and click '''Remove site'''
    '''Safe Mode'''
    Add-ons can cause problems with not being able to log into certain websites. To see if this is the case with your issue, run [[Safe mode]]. When you get to the safe mode window, select Continue in Safe Mode. If this resolves your problem, see [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    Also see [[Updating Firefox]] and [[Cannot log in to websites]]

  • Problem with Adobe Send Email functionality

    I have come across an issue in Adobe Reader 9 where if a PDF doucment loads with an IE frame, and you click the 'Send Email' button, the subject line is blank.
    Example URL: http://sc.openoffice.org/excelfileformat.pdf
    On clicking the Send Email button -> Send Copy
    Does anyone know a workaround to get the subject line populated?
    In addition, with previous versions of Abode (6,7,8) the subject line defaults to the name of the PDF instead of the PDF title? Is there a way of changing this?
    Any help would be most appreciated.

    I'm sorry to hear that you're having a problem with sending your files through Adobe Send.  Can you provide more details?
    What type of file are you sending?
    When you download the file yourself, is it blank?
    Are all recipients having the same problem?
    Do the recipients get a Preview of the file?
    Are they seeing the blank document as a Preview as well as after downloading?
    Would it be possible for you to send the file to me through Adobe Send?  I will provide you with my email address in a Private Message.

  • Having problem with big pond email account downloading on all devices

    Hi,
    Have just bought the Mac Air and am having enormous problems with emails downloading on all devices (ipad, iphone and Mac). If it downloads on one it does not download on another. I have a Telstra bigpond.net.au account. I do not want to change net.au account since I have had it since the dawn of time!
    What is the most effective solution? Apple suggest using gmail as a conduit but does this work. They say it may work but do not guarantee success.
    Help!

    With multiple computers, POP is a royal pain. Back in the days when I had to use POP mail, my solution was to access my POP accounts only from work due to the reason you describe. Basically POP works like this: mail goes into your POP account, you access the account and download the mail onto your computer, the mail that's downloaded is deleted from the mail server. When we were using just one computer that was fine but not now.
    The idea of using gmail should work. Once you are in the gmail setup window choose the Accounts tab and read the help screen under Learn More about Check mail from other accounts (using POP3) This will have gmail access your bigpond email account and move it to gmail which can be set up as IMAP so all your devices can access it 'properly'. I had this working perfectly with my work email until we finally got the go-ahead to upgrade our mail server and started using IMAP.

  • Interactive Report - problem with export by email

    Hi,
    We're upgrading to Apex 4.0 and we encountered a problem with the email export in html format for the Interactive Reports. The french accents are displayed with some weird symbols in the HTML file.
    When I export directly in html from my report instead of the email, the accents are fine. So the problem must be the encoding of the email which is set to UTF-8. Our database use WE8MSWIN1252 encoding for the NLS Characterset.
    Without changing our NLS Characterset, is there something I can do to correct this ?
    Thanks

    Hi Denes,
    The administrator have created a mapping table,and they send me this two lines in JMT.conf file:
    /htmldb-test /i/fck/*
    /htmldb-test /pls/*
    The error still exists,i would like to know if these two lines generate a kind of confusion in any treatment of filtre in interactive report.
    Aymen

  • Problem with editing primary email keeps asking fo...

    Why does a security password window come up when I try to edit profile information such as the primary email, and when I type in my password it doesnt accept it? Ive reset my password and have logged in to my skype account but this keeps happening when I go to change the primary email.

    I am having the same problems with Mac eMail.  I have two Macs, one that is running Lion and the other is running Snow Leopard.  I have spent days on the phone with Apple and Verizon and they are blaming each other and neither have a solution.  Have you been able to get a response?  It looks like this is something that happens from time to time but never really gets fixed.
    Please let me know if there has been a fix since the Mac Mail update in July?  With the Union Issues Verizon doesn't have enough people to address the issues both in person ( I had a tech come to the house and he didn't know anything about software ) or on the phone.  They keep kicking it back to Apple.  I also have a couple iPhones and both are working fine. So this seems to be OS X specific.  I've had Macs and iPhones for 3 years or more. 
    Just makes me think something was done to the mail servers they didn't get correct.

  • E61: problems with automatically receiving emails

    Hi.. I have had my E61 for quite a while already but am having problems with its internet connectivity. Basically everytime I attempt to connect to the mobile internet it very rarely connects on the first attemp, but normally I have to try 2-3 times for it to connect (even with full 3G reception. This means that when I set my email (IMAP) application to fetch emails every 2 hours it can't because it can't connect on the first time, so I have to manually connect to the mail application. Is there anything I can do to fix this with a firmware fix? or is it a problem with T-Mobile UK?
    Thanks

    It's the Yahoo servers. whether or not they are up and running have nothing to do with it. Password rejection is an ongoing problem with Yahoo. Sometimes it is caused by more then one device tryiing to access the Yahoo server with the same username and password at the same time or within minutes of one another. Yahoo by default only allows one connection for X amount of time. So if you have a smart phone with the yahoo mail setup on it and it tries to access the server and then your computer tries to access the server it will reject the request. Giving you the bad password dialog.
    Switch your primary email over to Google Mail as Google does not have these restrictions and you can actually use IMAP with Google mail.
    You can even forward all your yahoo mail to a google account so you don't have to go and change all your logons and contacts to use Gmail.

Maybe you are looking for