How can i send a folder containing multiple excel file to a mail address?

hi ,
       i have report showing details sales report. Key field is customer id.  my requirement is to send the output of this report as excel file  to a mail id according to customer id. suppose there are 100 customer id , so 100 excel sheet will go to the mail. I have done it. But now  i want to send a folder or zip folder that's containing all the excel file to the mail id  so the mail user can download that folder at a time containg all the excel file. Is it possible ? if then how.  i have used cl_bcs , cl_document_bcs and if_recipient_bcs  these class and interface.
I need your suggestion.

Hi Sandipan,
You can use some of this classes: CL_ABAP_ZIP or CL_ABAP_GZIP
For example:
DATA: OBJ_ZIP TYPE REF TO CL_ABAP_ZIP,
            ZIP_FILE  TYPE XSTRING.
CREATE OBJECT OBJ_ZIP.
OBJ_ZIP->ADD( NAME = <file_name>   CONTENT = CONTENT ).
OBJ_ZIP->ADD( NAME = <file_name2> CONTENT = CONTENT ).
ZIP_FILE = OBJ_ZIP->SAVE( ).
You can also visit this Otto Frost detailed post on GZIP:
http://wiki.sdn.sap.com/wiki/display/profile/GZIP
I hope that helps.
Regards,
John
Edited by: John Smith on Feb 5, 2012 2:21 PM

Similar Messages

  • How do I convert a folder containing multiple jpg files to pdfs

    I have to convert several folders containing jpg files to individual pdf files. I can't seem to do this.

    You could use Acrobat XI Pro to Create PDF from Files.
    This process lets you select supported file formats and outputs PDF.
    Be well...

  • How can I send a message to multiple contacts using "groups".

    How can I send a message to multiple contacts using "groups".
    It was easy on my sony ericssonn....do i need to download an app?

    There is no group send option like you are looking for.
    To send to a group you have to pick each person you want to send to and send as a group that way. Then don't delete that SMS thread and you can reuse it again later.
    As for an app, well SMS works via your carrier and the OS, not something an App can do unless the app send the data to them (a third party) and then they relay it to the carrier. Do you really want to be sending your SMS to some 3rd party first?

  • How can I send email from my yahoo alias account in iPhone5 mail?

    How can I send email from my yahoo alias account in iPhone5 mail?
    I have 2 email accounts: [email protected] is an alias of [email protected]
    In my old iPhone3 I had these accounts set up so that I could send and receive email from both accounts. I did this using the following settings:
    ‘Other’ POP account info:
    Name: xyz
    Address: [email protected]
    Description: alias
    Incoming mail server:
    Host name: pop.mail.yahoo.com
    User name: [email protected]
    Password: password for yahoo account
    Server port: 995
    Outgoing mail server:
    SMTP: smtp.o2.co.uk (o2 is the name of my phone network)
    Server port: 25
    ‘Yahoo!’ account info:
    Name: xyz
    Address: [email protected]
    Password: password for yahoo account
    Description: Yahoo!
    Outgoing mail server:
    Primary server: Yahoo! SMTP server
    Server port: 465
    I’ve tried using the same settings in my new iPhone5, but it doesn’t work. I can receive mail to both accounts, and can send from the Yahoo account, but I cannot send mail from the alias account. When I try, it displays the message: “Cannot send mail. A copy has been placed in your Outbox. The recipient ‘[email protected]’ was rejected by the server”.
    I’ve tried to configure the POP alias account using combinations of ‘pop.mail.yahoo.com’, ‘pop.mail.yahoo.co.uk’, ‘apple.pop.mail.yahoo.co.uk’ and ‘apple.pop.mail.yahoo.com’, for the incoming host, and ‘smtp.o2.co.uk’, ‘smtp.mail.yahoo.com’, ‘smtp.mail.yahoo.co.uk’, ‘apple.smtp.mail.yahoo.com’ and ‘apple.smtp.mail.yahoo.co.uk’ for the outgoing mail server. None of these have worked.
    I’ve also tried setting it up using IMAP instead of POP without success. I tried configuring it using combinations of ‘imap.mail.yahoo.com’, ‘apple.imap.mail.yahoo.com’, ‘imap.mail.yahoo.co.uk’ and ‘apple.imap.mail.yahoo.co.uk’ for the incoming mail server and ‘smtp.o2.co.uk’, ‘smtp.mail.yahoo.com’, ‘smtp.mail.yahoo.co.uk’, ‘apple.smtp.mail.yahoo.com’ and ‘apple.smtp.mail.yahoo.co.uk’ for the outgoing mail server.
    Yahoo say that if I can't send Yahoo! Mail from my mail program, I may be accessing the Internet through an ISP that is blocking the SMTP port, and that if this is the case, I should try setting the SMTP port number to 587 when sending email via Yahoo!'s SMTP server. I don't think that this is the problem, but I tried it just to make sure - without success.
    I’ve also heard that the problem might have something to do with the SPF settings of my alias domain provider. I’m not too sure exactly what SPF settings are, or how to change them, but from what I can gather it seems unlikely that this is the problem given that I was able to send mail from my alias account on my old iPhone3.
    Any help much appreciated: how can I get my alias account to send emails in iPhone5 mail?
    Many thanks,
    Patrick

    A new development: I've tried sending emails from the alias several times over the past 24 hours, but in general I've deleted them if they haven't sent within about half an hour.
    However, one of the messages I left sitting in the outbox did send successfully in the end, but this took about an hour.
    So: perhaps my problem is not in fact that I am completely unable to send mail from my alias, but that I can only do so intermittently and extremely slowly, and by ignoring the "cannot send" message.
    Any help appreciated.

  • HT201774 how can i set my on my iphone 3g, my personal e-mail address so i can check my mail when i am away form my lap top?

    how can i set upmy personalemail onmy Iphone 3g so i can read, send messages and sent picutres to my home e-mail address?
    Thanks,
    Alfredo

    Check out the User Guide http://manuals.info.apple.com/en_US/iphone_user_guide.pdf.

  • How do I export a folder containing multiple photos from iPhoto? I can't get it to export anywhere- no matter what I try!

    I'm having trouble exporting a folder containing many folders out of iPhoto. How do you do it?
    I just get error messages...

    Re-sync your device to iTunes and uncheck Sync under Photos.

  • How can i send a email to multiple people on my ipad2 using the contact and group list downloaded from my iMac.  Thank you

    I am 63 yrs old and not to computer literate.  I know how to send an email to multiple people using my contact list and groups on my IMAC.  I tried using a group name downloaded to my Ipad2 from my IMac.  It does not work.  If I choose a single email address it works.  Any idea what I am doing wrong?
    Thank you for your paitence and help.
    Steve

    You are not doing anything wrong. The feature that you need is totally lacking in the built in Mail app on the iPad.
    There are a couple of third party mail apps that will let you do this ... MailShot and Group Email with Attachments. You can check them out in the App Store.

  • When sending e-mails, how can I show only the name and not include the e-mail address?

    When sending e-mails, how can I show only the name of the recipient and not include their full e-mail address?

    Hi beverlyfromnull,
    Have you added the recipients to your address book?

  • How can i Read the Data from such Excel files?

    Dear All,
            Here I am attaching an excel file in which all the datat cells have more than one data, can anybody tell me, how to read from such kind of excel files?
    Thanks in Advance & Happy New Year,
    Rujuta

    Greetings Ruju,
    Here is what I do to read such a file:
    I first save the Excel file (xls) as CSV file (which is easier to handle: Comma Seperated Values) .. Open the file using Excel and save it CSV.
    Then using the code attached I get all these values in a string array.
    Hope this helps
    Ayman Mohammad Metwally
    Automation Engineer
    Egypt - Cairo
    Attachments:
    CSV2ARRAY.vi ‏29 KB

  • How can I transfer dates and locations from excel file to iCal?

    I received an Excel file with dates and locations to visit for 45 days. Is there a way to transfer over to iCAL and then to iPhone?

    how to input all those addresses into my Garmin as well.
    I can't help you with that one.
    Could have I also input somehow from excel to entourage and then ical??
    I don't think Entourage has the data detectors feature.
    AK

  • How can I send an email to multiple contacts at once and have them not able to see the list or emails of the other persons included on the email?

    Im trying to send one email to a list of people from my contact list but don't want them to be able to see who all is on the email list.

    You use BCC instead of TO when addressing the message.
    BCC = Blind Carbon Copy
    The easiest way to do this is using the Contact Sidebar in the Write window. Press F9 to turn it on when a Write window is open.
    Select all the contacts for the message. Hold the control key while clicking the contacts to select multiples. Then use the Add to BCC button at the bottom.

  • How can I send an email to multiple addresses for one recipient?

    I would like to send to recipient who has an "additional" email acccount, that is to both of his accounts.

    Did you manage to read the article I linked to in the last post?
    Enter the address manually.
    Just press enter after the first address and you get a field for another address Your choice of fields so you can use it as if they are '''To:''' two separate individual recipients, or use a primary address and a '''CC''' field, the arrowhead allows you to choose.

  • How can I send the messages in the CANdb file to the hardware(PXI-8464)?

            I tried to open a Vector CAN Database (*.dbc) and wanted to transmit the message of the database ,but I do not know how to achieve it ?  I want to  send the messages of Vector CAN Database (.dbc file) out through the hardware( PXI-8464) of NI device. What confused me now is that I do not know how to read the message  of  the .dbc file after improting it into labview, also I do not know use what kind of  tools  to control the progress of reading and sending. Because some part of the .dbc file is blank and needed to be filled from the Labview front pannel , so the connection between the  control (on the front pannel)and the .dbc file has to be setup, further more, I do not know how to make that out . For example,if a message in the .dbc file has a value table for a message, such as message 'SwitchStatus' that shows a 0 = open and 1 = closed, is there a way to read this value table into Labview and send it to the hardware( PXI-8464) of NI device.

    Hi
    I have tried it according to your help, but the message can not be recieved by CANoe. WHY?
    Look forward to your reply.
    Regards
    Vivian

  • How can I extract the metadata from multiple image files into a .csv?

    Hi.
    I'm looking for what I believe is a simple task but I am not sure how to go about it. I want to get the relevant data (seen in the screen grab below) into a spread sheet. I need to get the File Name, Size, Dimensions, Resolution and Kind into the spreadsheet so I can better analyze the data for my purposes. I have tried to find EXIF and IPTC extractors but only come across products that show me the info with no way of transferring it. I figured there must be a way to do this in the Finder. Maybe it's a simple Automator task (which I am not very good at) or a Script.
    Can anyone guide me thru or suggest a tool that would work?
    I was given a suggestion in another Disscussion to use a Plug-In for iPhoto. I found an old one but it dosnt have all of the metadata I need. It's missing the File Name and Resolution as options.
    http://www.tc.umn.edu/~erick205/Projects/Metadata%20Export/
    Thanks,
    Stephen

    Nevermind, I found it.
    +Inspector > Metrics > File Info: > drag the file's icon to the desktop+
    cheers

  • How can I hide the extension in multiple pdf files?

    I make a lot of PDF files and would like to know if there is a way to hide the extensions without using the 'Finder - Preferences - Advanced'  tick box method. It is very time-consuming doing this for every file.

    Thanks for the speedy replies.
    The 'show extensions' box was not being ticked between uses.
    I make PDFs with several applications. I did not know that extensions could be hidden at source. Now I can do that with some applications, but not all, thanks to VikingOSX.
    The number of extensions to hide is now reduced and I will do this with one action, thanks to Linc Davis. (Why did I not think to try this key combination?)

Maybe you are looking for

  • Installed Mavericks and now can't access iPhoto

    Hello, I recently updated my imac to the new mavericks system. Once the download was complete I noticed that iphoto had a white circle over it, indicating that it is not compatible with this system and an update is needed. I then went to the app stor

  • Sum of Condition types

    Hi, I have two condtions 1. for cost and 2. other for markup cost and markup are statastical condtiions. tehre is an other condition which is sum of cost and markup. when i am creating the sales order the condition is added at KWETR and not KBETR. Us

  • Conecting to TK-Suite via USB / serial conection

    Hi we are trying to connect to a AGFEO phone system using TK-Suite software the connection on the AGFO is a PC style serial port I have tried a serial to USB adaptor (from CEFC) but my mac book cannot see any port activity. Thanks Gary

  • Can't attach action to a button?

    This is a newbie question. I've made an animated button and it plays back just as I want it to when preview it, but when I choose it on the stage and try to attach an action to it (goto frame etc) "I get a message that says Current selection cannot h

  • Establishing trust with windows 8

    Hello please i have been trying to establish trust with my windows 8 pc but its not working. what can I do because i can't even update anything.