Sending PO as PDF to multiple recipients

Hi,
I have to out put the PO as pdf and send it to mulitple recipients.
I am taking the standard program and copied to z program and i did some modifications in it.
i am able to send the PDF as attachment in a mail and its working fine.
Now requirement enhanced... they were asking to me to send it to multiple recipients in CC.
Can anyone guide me how to do it... where should I pass these ID's so that the mail can send to multiple recipients.
How to use the open form close form sequence. If I call the Open form 2 times does it work.. if so how to use the sequence can anyone guide me plz

Sreejith,
I really appreciate your valuable time first of all
here i am posting piece of code... where exactly i am passing the email id to get the TO mail... where as CC how to write the same logic
CALL FUNCTION 'Z_OPEN_FORM'
EXPORTING
APPLICATION = APPLICATION
ARCHIVE_INDEX = ARCHIVE_INDEX
ARCHIVE_PARAMS = ARCHIVE_PARAMS
DEVICE = DEVICE
DIALOG = DIALOG
FORM = FORM
LANGUAGE = LANGUAGE
OPTIONS = OPTIONS
MAIL_SENDER = MAIL_SENDER
MAIL_RECIPIENT = MAIL_RECIPIENT    <------ <b>Single To ID 
                                           is passing here</b>
MAIL_APPL_OBJECT = MAIL_APPL_OBJECT
RAW_DATA_INTERFACE = RAW_DATA_INTERFACE
FAX = ZALPHA-TELFX_1
COMPANY = ZALPHA-NAME1_1
CONTACT = ZALPHA-TEXT63
COMMENT = NAST-TDCOVTITLE
USER1 = ZALPHA-TEXT62
USER2 = NAST-OBJKY
*{ REPLACE SBXK901084 4
OWNER = SY-UNAME
OWNER = WRK-OWNER
*} REPLACE
EMAIL = ZALPHA-TEXT61
COVER = ZALPHA-TEXT64
USERID = ZALPHA-TEXT65
IMPORTING
LANGUAGE = LANGUAGE
NEW_ARCHIVE_PARAMS = NEW_ARCHIVE_PARAMS
RESULT = RESULT
EXCEPTIONS
CANCELED = 1
DEVICE = 2
FORM = 3
OPTIONS = 4
UNCLOSED = 5
MAIL_OPTIONS = 6
ARCHIVE_ERROR = 7
INVALID_FAX_NUMBER = 8
MORE_PARAMS_NEEDED_IN_BATCH = 9
SPOOL_ERROR = 10
OTHERS = 11.
IF SY-SUBRC <> 0.
Raise the corresponding exception
CASE SY-SUBRC.
WHEN 1. RAISE CANCELED.
WHEN 2. RAISE DEVICE.
WHEN 3. RAISE FORM.
WHEN 4. RAISE OPTIONS.
WHEN 5. RAISE UNCLOSED.
WHEN 6. RAISE MAIL_OPTIONS.
WHEN 7. RAISE ARCHIVE_ERROR.
WHEN 8. RAISE INVALID_FAX_NUMBER.
WHEN 9. RAISE MORE_PARAMS_NEEDED_IN_BATCH.
WHEN 10. RAISE SPOOL_ERROR.
WHEN OTHERS. RAISE OTHERS.
ENDCASE .
ENDIF.
Any suggestions please

Similar Messages

  • Send output through email to multiple recipients

    HI Friends,
    We are using the output type external send. But the standard PO process will send email to only 1 recipient. The email will be taken from the customer master where email is flagged as Standard.
    Is there any other way (or any user exit) to send invoice to a multiple recipient (TO and COPY-TO) maintained in customer master?
    Appreciate your input.
    thanks in advance
    Govind.

    Hi,
    Have you tried the following func module in Print prog:
    SO_NEW_DOCUMENT_ATT_SEND_API1
    Ashvender

  • How to send Outputs from orders to multiple recipients

    Hi,
    I have a requirement to send the same output (order confirmations) to multiple contacts of the same customer. the contacts are set up in VAP1 and linked to the sold to but what is the configuration needed to enable this functionality? At the time the order is confirmed, we need to trigger these outputs by emails or by fax (can be any combination here) as required.
    Appreciate any help and glad to provide nay clarifications if needed.
    Thanks!

    Wouldn't it make more sense if the customers actually maintained their own distribution lists? They could then give you an email address of the distribution list, which they would maintain internally.
    Otherwise imagine what would happen if the customer's employee leaves the company. First of all - how would you know? Second, you would need to make changes on your side (x 500 customers). In the best case you would just end up with an undeliverable email but in the worst you could expose the customer's private information. This is just a lawsuit waiting to happen IMHO.
    If you still want to go ahead with this idea, this would require some ABAPing. Actually the same question has already been asked (with the same result):
    Re: Output to more than 1 email

  • Sending Flash greeting card to multiple recipients with personalization

    Hello. 
    We are creating a greeting card in Flash and I need to send it to several people and enable others in my company to also send it to their contacts.  I want the end panel to read something like "Dear [Client Name], Season's Greetings from [name] and [organization].  The card will be distributed via a link in an email.  I think I will create one presentation for each employee so that their name will be on the end panel. 
    Is there a way to embed text strings in the email hyperlink so that when the user clicks the link, Flash will add those strings to the presentation?  I really appreciate any help you can offer!

    Yes, that is what I read from your first posting.  If you look at the link I provided in my last reply you will see that it embeds some data that follows the question mark.  That is where you will embed the data you want for the url.  If you are not familiar with hiow that is done, the format is basically....
    http:/www.someurl.com/somepage?data1=name1&data2=name2&data3=name3... etc
    So in your case you'd be using the names where I show name1 and name2, etc... (data1, etc are arbitrary variable names)
    What you need is something waiting at the url that extracts that information and my first posting describes a couple of ideas for that.  A PHP program is geared for extracting those variables almost directly.
    One thing you could also consider is not using the actual names in the url, but instead using some codenames that you use to look up the real names in a separate data file, but that is just an enhancement on the task you need to take care of.

  • Sending Text Messages to Multiple Recipients

    Is there a way to send a text message to multiple recipients? I've been trying to figure it out for a while. I feel like this is a feature that apple couldn't have just forgotten! Anybody know?

    Not supported with the iPhone - at the present time anyway with no indication that it will be supported in the future.
    Apple is known for doing research so right, wrong or indifferent, I doubt this is something Apple forgot to include.
    The only thing you can do is provide Apple feedback via the iPhone feedback link.

  • Sending mails to multiple recipients

    Hi,
    I need to send an e-mail to multiple recipients, none of which may know that the mail was sent to others as well. Of course, the first idea was to use the BCC-field. However, if I do that, the receipients get a mail with an empty To-Field, which looks both stupid and suspicious. Is there a way to send a mail in such a way that each recpient has their own address in the To-Field? I also played around a bit with Automator but I couldn't find anything.

    Hi Phunkjoker!
    I don't think you can, except by sending each individually.
    The only alternative that I can figure out is to send it to yourself, and have the other recipients in the BCC field?

  • Retrieve multiple e-mail address and send mail to multiple recipients

    Hello,
    I wonder if somebody could help me...at least with the clue to do the following.
    I have a form, with a textarea , where the people should put the e-mail addreses of all the people that later will receive all the form data via e-mail..
    I do not know how to retrieve all this e-mail addresses from the textarea (format?) and then how to send the e-mail to multiple recipients .
    It works for one...but I do not know how to do this for several recipients...
    could you please help?

    There is a setReceiptants method on the Message object.
    http://java.sun.com/products/javamail/javadocs/javax/mail/Message.html#setRecipients(javax.mail.Message.RecipientType,%20javax.mail.Address[])
    You will need to create an array of Addresses to feed it (just make space, commas, and semi-colons be tokens in your string and iterate it to create the address array)
    travis (at) overwrittenstack.com

  • Send e-mail to multiple recipients that are entered in a form

    Hello,
    I wonder if somebody could help me...at least with the clue to do the following.
    I have a form, with a textarea , where the people should put the e-mail addreses of all the people that, later will receive all the form data via e-mail..
    I do not know how to retrieve all these e-mail addresses from the textarea (format?) and then how to send the e-mail to multiple recipients .
    It works for one...but I do not know how to do this for several recipients...
    could you please help?

    use string tokenizer to tokenize the string and then use this in ur smtp coding
    message.addRecipients(Message.RecipientType.TO, to)
    where 'message' is object of MimeMessage
    and 'to' is array of Address
    ex:-
    Address[] to = new Address[count];
    Earlier u must be using message.addRecipient(Message.RecipientType.TO, to)
    where to is object of Address.
    Sample code:-
    suppose String posted from ur form is :-
    to = "[email protected],[email protected],[email protected]"
    StringTokenizer toAdd = new StringTokenizer(to,",");
    Address[] address=new Address[toAdd.countTokens()];     
    int j=0;
    while(toAdd.hasMoreTokens()){
    address[j]=(new InternetAddress(toAdd.nextToken()));
    j++;
    }

  • Sending newsletter to multiple recipients without using bcc:

    Dear Mac users,
    I would like to send out a newsletter to multiple recipients without listing all of the email addresses in the bcc: field. I know there are mail programs that will take a list and then send an email individually to each name on the list, one after the other. Is this function possible within Mac Mail?
    Thanks in advance for all your help.

    "Use Applescript. Prepare the message as a text file, run the script, it prompts you to select the file, it prompts you to select the group, then iterates through the list of group members sending a copy of the message to each separately. You could have it so that you could drop the text file on the script, saving a prompt."
    Could you please explain that step by step. I am a new Mac user and have no idea how to use applescript or how to do that. I need to send a newsletter out to about a 130 people and want to send it to each person separately without doing it manually. I'm not sending it out as a text file though but as an image file, jpeg.
    Any suggestions would be helpful.
    Thanks for your help so far.

  • Can't send emails to multiple recipients any more?

    Yesterday I had to send an email to some 30 other people (I only do this occasionally).
    It refused to go and I received this error message:-
    I have several email accounts but each one was the same.
    At that time I could not even send single emails but incoming emails were unaffected.
    Later in the day I received this email from my ISP mail account.
    Your emails may be blocked – please confirm your alternate BT Yahoo! Mail addresses
    Dear Customer,
    You’ve received a ‘553’ error message because we’ve upgraded your BT Yahoo! Mail account security to help protect against ‘spoofing’ – when people use alternate email addresses to disguise the real sender, possibly to commit fraud.
    What you need to do
    We need you to take a few minutes to confirm each of the BT Yahoo! Mail alternate email addresses you use are genuine. If you don’t, you might get more ‘553’ error messages and have problems sending emails. Just log in and follow these simple steps. We don’t ask for any personal information.
    This is rubbish and I had a similar one last year which I ignored, as the simple steps were far from simple, and the following morning all was back to normal.
    So I ignored this email and tried again this morning.
    I was still unable to send emails to multiple recipients but now I can send single emails OK!
    Any ideas what is going on?
    Is it Mail's fault or my ISP's?

    From the error message, it looks like there was a problem with at least one of the addresses ("NONE"). It is possible that a bad address is in the list you tried to send to.
    I don't know anything about BT Internet, so I can't confirm the authenticity of the email you received.
    You should be able to log into your BT account directly from the web without using any links sent in the email.
    The email also seems to indicate you used an alias as the reply-to (from) email address.
    You didn't mask out the username for your smtp server and it is definitely different from the from account. This may all be normal, but it does tend to match what the email is telling you.

  • IPhone 5 iOS7 - Sending text to multiple recipients.

    I have recently upgraded from my trusty iPhone 3GS to an iPhone 5 with iOS7. The phone is locked to the UK O2 Network.
    When abroad multiple recipient text could be sent incurring a European Text Message Cost of 6p per recipient. So far so good. Idid not use data when I was abroad as I had the Roaming option off.
    When back in the UK I tried to send Multiple Recipeint texts only to find there was a problem.
    The recipeint received a message saying that I had sent them a Media Message without the text being included. I incurred a 33p cost per multiple text instead od the texts being free.
    I have never paid for texts before as I am on an unlimited text tariff.
    Any suggestions other than sending each text individually.
    O2 seem to be aware of this issue.
    Is it an iOS7 issue, or an iPhone 5 issue?
    This was never a problem with my iPhone 3GS.
    Many thanks.

    I have just read this on the Apple Site:
    "iOS: Understanding group messaging
    Learn about group messaging.
    You can send a message to multiple recipients using SMS, MMS, and iMessage.
    Group messaging allows you to send messages to multiple people and have any responses delivered to everyone in the group. Group messaging works with iMessage and MMS.
    If you send a message to multiple recipients without group messaging in use by the sender and all recipients, an individual message will go to each recipient using either SMS or MMS. Responses to these messages will be delivered only to the original sender in separate messaging threads."
    This would suggest that Multiple Recipient Text do not necessarily need MMS.
    It would seem that unless MMS is prevented then Multiple Recipient Texts will default to MMS.
    I have switched off data and have been able to send Multiple Recipient Texts which the recipient has been able to read as texts.

  • Message error when sending to multiple recipients/contacts

    Ever since 3.0 I can't send messages to multiple recipients. I'm on Optus in Australia using a 16gb 3G.
    Anyone else having this problem?
    Any fixes?

    Actually, just for an update, if I turn off MMS I can send to multiple contacts. But with MMS on, I can't. Am I the only person having this issue?
    I've tried a restore, and set-up as new phone. But still having no success.

  • Mail issue: not sending (addressed to multiple recipients in BCC

    Hi,
    I am having trouble sending a message to multiple recipients in the BCC field.  I am sending to myself in the To: box and many others in BCC.  It is not sending the message, either through my Mail program, nor through iCloud mail.  iCloud mail gives me  "Cannot send message.  This message cannot be sent at this time." messge, but no explanation why.  (iCloud mail seems to be working normally according to on-line status report).  My Mail program give me a, "Cannot send message using the server smtp.me.com:(username)
    The server "smtp.me.com" did not recognize the following recipients:  [followed by long list of recipients all separated by commas] though it doesn't list all the recipients in the field. 
    Could it be that I just have too many in the field?
    HELP!  I'm in a time-crunch on this one.
    It did send a test e-mail to me, just fine.  No other reipients listed.)

    AAARGH!  Nevermind!  I found the answer!  over the 100 recipients-at-a-time limit.

  • Question regarding sending email to multiple recipients

    Hi All,
    I am creating a workflow that will send an email notification everytime a new campaign is created. I've learned that R16 is capable of sending emails to multiple recipients, the only concern I have is I can't find any doumentation on how to do it. It is stated in the R16 Administrator Preview Guide that you can select 'Specific Email Address' and enter multiple email addresses directly, I tried to enter multiple email addresses separated by comma - [email protected],[email protected],[email protected] as an example, but it doesn't work and prompts me to enter a valid email address. Could anybody guide me on how to enter multiple email addresses once the 'Specific Email Address' is selected or how to do it in the expression builder to define the expression that will define the list of emails. I know that using group email addresses can be used as an alternative to this requirement but I hope theirs a way to do this with workflows.
    Thanks,
    Wayne

    According to the R16 Admin preview guide;-
    "Send Email to Multiple Recipients
    Expression Builder is now linked to the email address text field that is presented when the Specific Email Address
    option is selected. Workflow administrators can enter multiple email addresses directly, or click the "fx" icon
    beside the field, and use Expression Builder to define expressions that evaluate to one or more email addresses.
    The benefit of this feature is that emails can be stored on any text field in the base record and multiple emails can
    be sent using one workflow action. "
    But how that works exactly is not clear, I have tried commas, semi-colons, spaces, apostrophes, doublequotes, to separate and try to establish the correct syntax without luck.
    Bob - Perhaps you can do some digging and find out the correct syntax for multiple addresses?

  • N8 sending SMS to multiple recipients as MMS?

    If I send an SMS text message to multiple recipients it is being sent as an MMS. Since MMS is not included in my PAYG "goodybag", it's costing me a fortune!
    I can't find this in the user guide anywhere. Can I turn it off?
    many thanks

    While you writing a text message, if you don't add anything photos or smileys (sometimes smileys may have counted as .gif s ), it must be sent as text messages. Or if you choose a recipent that have no phone number but a mail adress, it sends texts to mail adresses as MMS.
    Another thing to consider is to check again messaging centers.

Maybe you are looking for