Problem to attach file.

Hi everybody!!!! I'm with problem bellow. Anybody can help me?!
intradoc.common.ServiceException: !csCollectionInvalidMeta,001219!csCollectionContentMaxed at intradoc.server.ServiceRequestImplementor.buildServiceException(ServiceRequestImplementor.java:1739) at intradoc.server.Service.buildServiceException(Service.java:1999) at intradoc.server.Service.createServiceExceptionEx(Service.java:1993) at intradoc.server.Service.createServiceException(Service.java:1988) at collections.CollectionUserHandler.verifyContentNotMaxed(CollectionUserHandler.java:2517) at collections.CollectionUserHandler.verifyContentNotMaxed(CollectionUserHandler.java:2503) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at intradoc.common.IdcMethodHolder.invokeMethod(ClassHelperUtils.java:461) at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:142) at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:75) at intradoc.server.Service.doCodeEx(Service.java:488) at intradoc.server.Service.doCode(Service.java:470) at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1350) at intradoc.server.Service.doAction(Service.java:450) at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1191) at intradoc.server.Service.doActions(Service.java:445) at collections.CollectionValidateCheckinData.doFilter(CollectionValidateCheckinData.java:62) at intradoc.shared.PluginFilters.filter(PluginFilters.java:92) at intradoc.server.DocServiceHandler.validateCheckinData(DocServiceHandler.java:1378) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at intradoc.common.IdcMethodHolder.invokeMethod(ClassHelperUtils.java:461) at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:142) at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:75) at intradoc.server.Service.doCodeEx(Service.java:488) at intradoc.server.Service.doCode(Service.java:470) at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1350) at intradoc.server.Service.doAction(Service.java:450) at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1191) at intradoc.server.Service.doActions(Service.java:445) at intradoc.server.ServiceRequestImplementor.executeSubServiceCode(ServiceRequestImplementor.java:1061) at intradoc.server.Service.executeSubServiceCode(Service.java:3453) at intradoc.server.ServiceRequestImplementor.executeServiceEx(ServiceRequestImplementor.java:939) at intradoc.server.Service.executeServiceEx(Service.java:3448) at intradoc.server.Service.executeService(Service.java:3432) at intradoc.server.Service.doSubService(Service.java:3421) at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at intradoc.common.IdcMethodHolder.invokeMethod(ClassHelperUtils.java:461) at intradoc.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:128) at intradoc.common.ClassHelperUtils.executeMethod(ClassHelperUtils.java:113) at intradoc.server.Service.doCodeEx(Service.java:505) at intradoc.server.Service.doCode(Service.java:470) at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1350) at intradoc.server.Service.doAction(Service.java:450) at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1191) at intradoc.server.Service.doActions(Service.java:445) at intradoc.server.ServiceRequestImplementor.executeActions(ServiceRequestImplementor.java:1111) at intradoc.server.Service.executeActions(Service.java:431) at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:632) at intradoc.server.Service.doRequest(Service.java:1709) at intradoc.server.ServiceManager.processCommand(ServiceManager.java:357) at intradoc.server.IdcServerThread.run(IdcServerThread.java:195)
--

https://support.oracle.com/CSP/ui/flash.html#tab=KBHome(page=KBHome&id=()),(page=KBNavigator&id=(bmDocType=PROBLEM&bmDocDsrc=KB&bmDocID=1100694.1&bmDocTitle=csCollectionContentMaxed%20Error%20When%20Trying%20to%20Add%20Content%20to%20the%20Content%20Server&from=BOOKMARK&viewingMode=1143))

Similar Messages

  • Problem with attaching file to Sales Order

    Hello,
    In my company we have the possibility to attach files to sales orders, e.g. pdf files with the printing details.
    These files are added by the GUI user, this works fine.
    Now we have an extra order creation stream in which a pdf file has to be added to the SO without user interaction.
    I found a helpful link ( /people/rammanohar.tiwari/blog/2005/10/10/generic-object-services-gos--in-background )
    This program creates URL links with no problem, but the file generation is not implemented yet.
    I tried to add the file functions to his sample report but still have one problem. The file is uploaded, but not reported as a PDF file in sap. If I select the created attachment SAP allows only the saving of the attachment. After saving the created file is a good PDF file, it opens with PDF-viewers.
    Why does SAP not know this is a PDF file and report it as such (and open the pdf viewer when selected).
    Thanks, Frank.
    source-code:
    REPORT  zzfb_brc                                .
    * Report  Z_RMTIWARI_ATTACH_DOC_TO_BO
    * Written By : Ram Manohar Tiwari
    * Function   : We need to maintain links between Business Object and
    *              the attachment.Attachment document is basiclally a
    *              business object of type 'MESSAGE'.In order to maintain
    *              links, first the attachment will be crated as Business
    *              Object of type 'MESSAGE' using Message.Create method.
    *              Need to check if we can also use FM
    *              'SO_DOC_INSERT_WITH_ORIG_API1' or SO_OBJECT_INSERT rather
    *              than using Message.Create method.
    * I took this program and removed all the parts for adding URL's and
    * notes.
    * Include for BO macros
    INCLUDE : <cntn01>.
    * Load class.
    CLASS cl_binary_relation DEFINITION LOAD.
    CLASS cl_obl_object      DEFINITION LOAD.
    PARAMETERS:
    *  Object_a
       p_botype LIKE obl_s_pbor-typeid DEFAULT 'BUS2032',    "SO
       p_bo_id  LIKE obl_s_pbor-instid DEFAULT '0000757830', "example number
    *  Object_b
       p_docty  LIKE obl_s_pbor-typeid DEFAULT 'MESSAGE' NO-DISPLAY,
       p_msgtyp LIKE sofm-doctp        DEFAULT 'EXT'     NO-DISPLAY,
    *  Relationship
       p_reltyp  LIKE mdoblrel-reltype DEFAULT 'ATTA'.
    TYPES: BEGIN OF ty_message_key,
            foltp     TYPE so_fol_tp,
            folyr     TYPE so_fol_yr,
            folno     TYPE so_fol_no,
            doctp     TYPE so_doc_tp,
            docyr     TYPE so_doc_yr,
            docno     TYPE so_doc_no,
            fortp     TYPE so_for_tp,
            foryr     TYPE so_for_yr,
            forno     TYPE so_for_no,
           END OF ty_message_key.
    DATA : lv_message_key TYPE ty_message_key.
    DATA : lo_message TYPE swc_object.
    DATA : lt_doc_content TYPE STANDARD TABLE OF soli-line,
           ls_doc_content TYPE soli-line.
    * Create an initial instance of BO 'MESSAGE' - to call the
    * instance-independent method 'Create'.
    swc_create_object lo_message 'MESSAGE' lv_message_key.
    * Upload the pdf file, for now from the frontend, in the future from
    * the server.
    DATA:
    *  dsn(40) TYPE C VALUE '/usr/sap/trans/convert/1.pdf', "server location
    l_lines TYPE i. "filelenght
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename   = 'c:t1.pdf'
        filetype   = 'BIN'
      IMPORTING
        filelength = l_lines
      TABLES
        data_tab   = lt_doc_content.
    * no exceptions, the file is there in this example
    break brouwersf.
    ** the coding for the server input, for later
    *OPEN DATASET dsn FOR INPUT IN BINARY MODE.
    *IF sy-subrc <> 0.
    *  EXIT.
    *ENDIF.
    *READ DATASET dsn INTO ls_doc_content.
    *WHILE sy-subrc EQ 0.
    *  APPEND ls_doc_content TO lt_doc_content.
    *  READ DATASET dsn INTO ls_doc_content.
    *ENDWHILE.
    *CLEAR ls_doc_content.
    *CLOSE DATASET dsn.
    * define container to pass the parameter values to the method call
    * in next step.
    swc_container lt_message_container.
    * Populate container with parameters for method
    swc_set_element lt_message_container 'DOCUMENTTITLE' 'Title'.
    swc_set_element lt_message_container 'DOCUMENTLANGU' 'E'.
    swc_set_element lt_message_container 'NO_DIALOG'     'X'.
    swc_set_element lt_message_container 'DOCUMENTNAME' p_docty.
    swc_set_element lt_message_container 'DOCUMENTTYPE' p_msgtyp.
    swc_set_element lt_message_container 'DocumentSize'    l_lines.
    swc_set_element lt_message_container 'DocumentContent' lt_doc_content.
    swc_call_method lo_message 'CREATE' lt_message_container.
    * Refresh to get the reference of create 'MESSAGE' object for attachment
    swc_refresh_object lo_message.
    * Get Key of new object
    swc_get_object_key lo_message lv_message_key.
    * Now we have attachment as a business object instance. We can now
    * attach it to our main business object instance.
    * Create main BO object_a
    DATA: lo_is_object_a TYPE sibflporb.
    lo_is_object_a-instid = p_bo_id.
    lo_is_object_a-typeid = p_botype.
    lo_is_object_a-catid  = 'BO'.
    * Create attachment BO object_b
    DATA: lo_is_object_b TYPE sibflporb.
    lo_is_object_b-instid = lv_message_key.
    lo_is_object_b-typeid = p_docty.
    lo_is_object_b-catid  = 'BO'.
    *TRY.
    CALL METHOD cl_binary_relation=>create_link
      EXPORTING
        is_object_a = lo_is_object_a
        is_object_b = lo_is_object_b
        ip_reltype  = p_reltyp.
    * Check if everything OK...who cares!!
    COMMIT WORK.

    Hi,
    Welcome to the SDN Forums!!!
    You need to supply the PC file extension in the container element 'DOCUMENTTYPE'.
    swc_set_element lt_message_container 'DOCUMENTTYPE' p_msgtyp.
    In your case change the above statement as below:
    swc_set_element lt_message_container 'DOCUMENTTYPE' 'pdf'.
    <b>OR</b> change the default value of p_msgtyp to 'PDF'.
    Cheers,
    Ramki Maley.
    Please reward points if the answer is helpful.
    For info on awarding points click on this link: https://www.sdn.sap.com/sdn/index.sdn?page=crp_help.htm
    Message was edited by: Ramki Maley

  • Problems reading attached files in Mail 5.2

    After moving messages from inbox to different mailboxes, it sometimes happens that the attached file (exel, word...) disappears as an attachment and is no longer readable. > The content converts itself as a long text looking like this "CBAAAAYFAOwVzQfBwAAABgMAAOEAAgCwBMEAAgAAAOIAAABcAHAADQAAYWRtaW5pc3Ry...." and I can no longer save the file because it has disappeared!!!
    I don't want to PRINT or SAVE every attachment. I just want to keep the message as long as I might need it's content. But this is no longer possible nor reliable.
    CAN SOMEONE HELP ME??? Thank you :-)

    Disable Mac Mail.app Inline Image Attachments
    http://micahgilman.com/play/disable-mac-mailapp-inline-image-attachments/
    Force Apple mail.app to display attachments as icon
    http://www.sant-media.co.uk/2010/11/apple-mail-inline-attachments/
    Mail.app attachment as icon
    http://creativebits.org/mac_os_x/mail_app_attachment_as_icon/

  • Problem in attaching file

    Hi,
    I write the code for sending mail using javamail, it works fine for text message but when I attach any file the file content get inserted in mail and for images or pdf file not displayed proper, please help me out .
    Dnyanesh

    Hello Ashish,
    I used same code as u mentioned, but its not working correctly,
    I want to send mail to any email address through my progarm then how could use IMAP for receiving mail,
    I am attaching my code, please see if any correction, try to help me out if possible
    //**********************Code***********************************/
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    import javax.activation.*;
    public class mail
         public static void main(String[] args)
              try
              Properties properties=new Properties();
              properties.setProperty("mail.transport.protocol", "smtp");
              properties.setProperty("mail.smtp.host","host");
              Session session = Session.getDefaultInstance(properties,null);
              Transport transport = session.getTransport();
              transport.connect();                                             
              Address address = new InternetAddress("");//receiver's address
              Message message = new MimeMessage(session);
              message.setFrom(new InternetAddress(""));// sender's address
              message.setRecipient(Message.RecipientType.TO, address);
              message.setSubject("Test Mail");
                   MimeMultipart multipart = new MimeMultipart("attachment");
                   MimeBodyPart messageBodyPart = new MimeBodyPart();
                   messageBodyPart.setText("Attachment here");
                   MimeBodyPart messageBodyPart1 = new MimeBodyPart();
                   FileDataSource source = new FileDataSource("filename");// attaching file
                   messageBodyPart1.setDataHandler(new DataHandler(source));
                   messageBodyPart.setFileName("Hello.txt");
                   messageBodyPart.setDisposition("attachment");
                   messageBodyPart.setHeader("Content-ID","Hello.txt");
                   multipart.addBodyPart(messageBodyPart);
                   multipart.addBodyPart(messageBodyPart1);
                   //put parts in message
                   message.setContent(multipart);
                   transport.sendMessage(message, message.getAllRecipients());
              transport.close();
              catch(Exception e)
                   System.out.println("Exception in file:"+e);
    }

  • Problem while attaching file to create service notification(IW51) iView

    Hi,
    We are using Create Service Notification (IW51) transaction iView (SAP GUI for HTML) in one of our portal workset.
    Few users are facing issue while trying to attach file to the Service Notification. When they open the file dialogue to attach the file
    it keeps on spinning and hangs, nothing proceeds further. Does anyone faced similar issue if so can you provide solution for this?
    Regards,
    Abhiram.

    Hi,
    Check the users experiencing issues java runtime on their systems. The file system object uses the JRE. Also check that if the java runtime is up-to-date and of teh same version whose systems are working, that their browser security setting as well as trusted sites have been configured correctly.

  • Problem with attaching files to mail message

    Hello,
    I have problem with my mail app. I'm using spaces for better organization. When I wanna add some file to mail message I usually go to different desktop (space), where I have the file I wanna attach. I grab it move to right up corner to activate spaces, than move to desktop (space) with mail.app and press spacebar (it activates the desktop immediately). At that time it also start random app, which is in my dock.
    You can see it in my youtube video.
    How can avoid this strange thing happen?
    http://www.youtube.com/watch?v=KUypUnPHZvc
    I'm using MacBook Pro 15'', Snow Leopard - latest updates. I've reinstalled my mac two days ago, so no garbage should be in.

    Thanks for quick reply.
    I don't have selected "always..." so I also tried it with selected "always...".
    Now I discovered that it has nothing to do with the mail. I've tried just move some file from one of spaces (desktop) to another using the spacebar for faster switching and it did the same. It opens random app from Dock.
    So now this topic is in wrong discussion. I will post it to correct discussion...

  • Suddenly I am unable to attach files in yahoo email while using firefox, but when I use IE, there is no problem in attaching files. The problem is existing for last 5 days.

    Even files of small size are not getting attached in yahoo mail when I use firefox. However there is no problem when I use IE.

    Thank you jscher2000. Yes my PDFs do contain the .pdf extension. I tried your excellent idea to utilize the drag and drop method, but I still get the same error message with PDFs. I have no problem attaching photos or Word documents with either method; just PDFs.
    For further diagnostics, I started composing my email in Safari, attached all my pdfs and saved my email as a Draft.  I then went to Firefox, opened the draft to continue working on it, and voila!  There are all the pdfs I attached previously while in Safari.  I was able to send the email with attachments through Firefox with no issues. The attachments went through and were able to be opened.
    I am mystified, as Firefox has been trouble-free with my email account, and I have never had this particular issue till today. I made no changes to anything else on my computer, but I did notice very late last night that Outlook had one of those typical messages at the top of my Inbox to refresh my browser since Outlook had been updated. I refreshed and shut down for the night, and when I rebooted this morning that is when I discovered this brand new glitch with attachments. I'm assuming this has something to do their last update.

  • Please I am having problem viewing attached files onto emails on my iPad 1, can anyone help?

    PLease I need help. I have had my iPad 1 3G wifi for about a year now, but after updating the software to 5.0.1 I have been unable to view e-mail attachment except for PDF documents. Can anyone help? Thank

    HI Diavonex, I have tried to reset several times without any luck
    THanks anyway

  • Unable to Attach Files in Yahoo! Mail Since Upgrading to Safari 5

    My ability to attach files in Safari has been removed. Any suggestions would greatly be appreciated.
    Thanks and have a great day!

    HI,
    BrowserPlus causes problems when attaching files to Yahoo mail after the Safari update.
    Go here for help to uninstall BrowserPlugshttp://help.yahoo.com/l/us/yahoo/browserplus/uninstall.html
    Carolyn

  • Safari 5.0 freezes after attaching files in Yahoo Mail

    Since upgrading to Safari 5, I cannot use Yahoo mail after attaching a file to a message. The program acts like there is a dialog box open and it is waiting for a choice to be made, but there is no dialog box.

    HI,
    BrowserPlus is causing problems when attaching files to Yahoo mail. It's not compatible with Safari 5.
    Read here for help to uninstall BrowserPlus:
    http://help.yahoo.com/l/us/yahoo/browserplus/uninstall.html
    Carolyn

  • Problem in attaching a xml file in Email Notification

    Hi,
    I am new to BPEL. I am using 10.1.3.4 Jdev. Facing a problem in attaching a xml file in Email Notification process. I do not get any email when ever the attachment is a xml. Whereas when the attachment is a pdf, i get the pdf in the mail. I have put the mime type as text/xml. Used ora:doc() to read the xml. Dont know what i am missing. Please help me out. Thanks.
    Edited by: friendsforever on Oct 6, 2010 1:05 AM

    actually i want that when a user open my website register form then he must attached their resume in it
    so i want to know how can i make a field of attaching.
    please reply
    I am waiting for your reply

  • Problem in attach a file during mail

    I am facing problem while attaching a file during mailing

    What file ?
    If its some Office document (word / excel) .. first open the document and then (...)-->share and select your mail client ..

  • Problem in attaching a file

    hello
    I have a problem in attaching a file from client site
    Actually i am building a website and i want that client attach any file in login form and that must be attach in my database. I am using a database MsAccess.
    Please help me
    I am waiting for ur reply
    Ashish

    actually i want that when a user open my website register form then he must attached their resume in it
    so i want to know how can i make a field of attaching.
    please reply
    I am waiting for your reply

  • Alignment problem in sending an attachment file as a mail

    Hi,
      My requirement is to send a mail where i have the data in an internal table.
    the .txt attachment file is sent properly no problem in that. But the text inside the file is not alligned properly.
    For eg if i have 5 records in the internal table which iam going to send as an attachment then 5 lines should exist on the attachment file.
    But for me what happens is
    for eg the first two records in the internal table is like as follows.
    record 1 : my name is rose
    record 2 : iam working in SAP ABAP consultant.
    These lines are coming in the attachment file like
    line 1: ame is rose  (some spaces are given then it prints) my  n
    line 2: n SAP ABAP consultant (some spaces are given then it prints) iam working i
    can anyone tell me why this happens . i want the lines to be  displayed as  it is in the internal table.
    can anyone tell how to solve this problem. Thanks...
    Regards,
    rose.

    Hi camila,
    visit this thread
    Alignment in mail body
    regards
    Anup.

  • Problems with specifying File Extension of E-Mail attachment

    Hi everybody
    I have a problem that seems to be so simple that it almost drives me crazy that I cannot find a solution for it.
    I need to send the content of an internal table (some lines) as a mail attachment to a specified mail address.
    The format should be normal ASCII, so when I open it with any text editor (e.g. Notepad),  I want to have all my lines there (including CR/LF).
    The problem now is - The extension of this mail attachment must be ".key", so the attached file should have the name "L_12345.key" (for example).
    For E-Mailing I use FM "SO_NEW_DOCUMENT_ATT_SEND_API1".
    This part works fine, also the attachment part works in general.  (I receive the mail and I receive the attachment).
    BUT I get either an attachment with the name "L_12345.txt" or "L_12345.key.txt" and in correct format, or I get an attachment "L_12345.key", where the name is correct but format is wrong (no CR/LF - everything in one line).
    Example:
    =======
    Attachment-Content should be:
    Line 1
    Line 2
    Line 3
    Name of Attachment should be: L_12345.key
    What I tried:
    TEST 1 **
    Declare Attachment in Packing list. ..
      ls_packing_list-transf_bin   = ' '.
      ls_packing_list-head_start   = 1.
      ls_packing_list-head_num     = 0.
      ls_packing_list-body_start   = 7.  "Startline of Attachment
      ls_packing_list-body_num     = 3.  "No of Attachment lines
      ls_packing_list-doc_type     = 'RAW'. 
      ls_packing_list-doc_size     = 3 * 255.
      ls_packing_list-obj_name     = 'ATT01'.
      ls_packing_list-obj_descr    = 'L_12345'   "Attachment name
      APPEND ls_packing_list TO lt_packing_list.
    ==> Result: Attachment Filename = L_12345.txt
    ==> File as I need it (ASCII with CR/LF), but extension wrong
        Line 1
        Line 2
        Line 3
    TEST 2 **
    Same as TEST 1, but with:
      ls_packing_list-obj_descr    = 'L_12345.KEY'   "Attachment name
    ==> Result: Attachment Filename = L_12345.KEY.txt
    ==> File as I need it (ASCII with CR/LF), but extension wrong
        Line 1
        Line 2
        Line 3
    TEST 3 **
    Declare Attachment in Packing list. ..
      ls_packing_list-transf_bin   = ' '.
      ls_packing_list-head_start   = 1.
      ls_packing_list-head_num     = 0.
      ls_packing_list-body_start   = 7.  "Startline of Attachment
      ls_packing_list-body_num     = 3.  "No of Attachment lines
      ls_packing_list-doc_type     = 'KEY'.
      ls_packing_list-doc_size     = 3 * 255.
      ls_packing_list-obj_name     = 'ATT01'.
      ls_packing_list-obj_descr    = 'L_12345'. "Attachment name
      APPEND ls_packing_list TO lt_packing_list.
    ==> Result: Attachment Filename = L_12345.KEY
    ==> File Format is wrong:
        Line 1          Line 2     Line3
    I have tried several other Extensions (DOC_TYPE), it seems, that the File format is only correct with "RAW", but it seems with "RAW" SAP adds ".txt" as extension to the filename.
    Does anyone know how I can achieve having an e-mail attachment with multiple text lines and name "<anyname>.key"
    Any help (if possible with example code ?) would be highly appreciated.
    Many thanks
    Harald

    hi,
    check the following code.
    *&      Form  send_email
    FORM send_email.
    CLASS cl_abap_char_utilities DEFINITION LOAD.
    CONSTANTS: con_cret TYPE c VALUE cl_abap_char_utilities=>cr_lf.
    *Body of mail
      CLEAR objtxt.
      CLEAR objtxt[].
      objtxt = 'Dear abc'.
      APPEND objtxt.
      CLEAR objtxt.
      APPEND objtxt.
      objtxt = 'Attached herewith is the detail list of materials.'.
      APPEND objtxt.
      CLEAR objtxt.
      APPEND objtxt.
      objtxt = 'Regards,'.
      APPEND objtxt.
      objtxt = 'Admin'.
      APPEND objtxt.
      DESCRIBE TABLE objtxt LINES tab_lines.
      READ TABLE objtxt INDEX tab_lines.
    *Mail description
      CLEAR docdata.
      docdata-doc_size  = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
      docdata-obj_name  = 'List'.
      docdata-obj_descr = 'List of materials'.
      docdata-obj_langu = sy-langu.
    *Packing list for main document
      CLEAR objpack.
      CLEAR objpack[].
      objpack-head_start = 1.
      objpack-head_num   = 0.
      objpack-body_start = 1.
      objpack-body_num   = tab_lines.
      objpack-doc_type   = 'RAW'.
      APPEND objpack.
    *Attachment data
      CLEAR objbin.
      CLEAR objbin[].
      CONCATENATE
            'field1' 'field2' 'field3' 'field4'
        INTO objbin SEPARATED BY ','.
      CONCATENATE con_cret objbin INTO objbin.
      APPEND objbin.
      LOOP AT it_material_list INTO wa_material_list.
        MOVE-CORRESPONDING wa_material_list TO wa_char_material_list.
        CONCATENATE
              wa_char_material_list-field1
              wa_char_material_list-field2
              wa_char_material_list-field3
              wa_char_material_list-field4
          INTO objbin SEPARATED BY con_tab.
        CONCATENATE con_cret objbin INTO objbin.
        APPEND objbin.
        CLEAR objbin.
        CLEAR wa_char_employee_list.
      ENDLOOP.
      DESCRIBE TABLE objbin LINES tab_lines.
      READ TABLE objbin INDEX tab_lines.
    *Packing list for attachment document
      CLEAR objpack.
      objpack-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objbin ).
      objpack-transf_bin = 'X'.          "check these values
      objpack-head_start = 1.          "check these values
      objpack-head_num   = 1.          "check these values
      objpack-body_start = 1.          "check these values
      objpack-body_num   = tab_lines.
      objpack-doc_type   = 'KEY'.
      objpack-obj_name   = 'Attachment'.
      objpack-obj_descr  = 'Report.KEY'.
      APPEND objpack.
    *Email receiver's list
      CLEAR reclist.
      CLEAR reclist[].
      reclist-receiver = mail_id.
      reclist-rec_type = 'U'.
      APPEND reclist.
    *Function module to send email with an attachment
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = docdata
          put_in_outbox              = 'X'
          commit_work                = 'X'
        TABLES
          packing_list               = objpack
          contents_bin               = objbin
          contents_txt               = objtxt
          receivers                  = 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 sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    "send_email
    Edited by: vikram shah on Sep 25, 2008 5:28 PM

Maybe you are looking for

  • Condition record in display mode (Non editable)

    Hi, We have upgraded our system from 4.7 to ECC 6.0. In ECC 6.0 We have below condition types in case of India import having different delivery vendor (Customs.) other than supplier. 1.JECV 2.J1CV 3.JADC  In old version it was not there. Now ,for old

  • Still having click wheel and center button difficulties...

    My first topic-http://discussions.apple.com/thread.jspa?threadID=2115001&tstart=0 So now, basically I can use the center button to turn the iPod on, and that's it. After that, nothing works. HOWEVER!, when I have my iPod docked in my speaker, everyth

  • Copy doesn't work with embeded sub report in CR For Visual Studio 2010 SP2

    Copy feature doesn't seems to work with embeded sub report content in CR For Visual Studio 2010 SP2. I am using a winform app .net 4.0. I am not able to select the individual fields in the embeded sub report . It always select the whole sub report an

  • Media explorer issues

    Yeah I hope this is in the right place...im having problems with media explorer. I stupidly decided to update media explorer with the newer version for download on creative's site. I tried using it and the thing went insane telling me it couldnt find

  • AQMP protocol support for OSB 11g

    Hi all,    We are using OSB as our middleware tool in our project.we got a new requirement for integration.The requirement is that OSB need to communicate with an application which supports AQMP protocol.I heard that aqmp is JMS based protocol. My qu