Attached File empty.

Hi ..I am able to attach file to mail but that is an empty file when I opened it.What could be the reason?

The original file is empty?
If you look at the raw message source, is there any content for the file attachment?
If you can't access the file, you should get an exception, but perhaps that's
not working right? Try opening the file and reading it in your program to make
sure your program can access the file.

Similar Messages

  • What is wrong with the table om page 2 (see attached file)

    What is wrong with the table om page 2 (see attached file)

    MySpecialSceenName wrote:
    But there are several empty lines under the text...........
    I'm guessing that by that you mean space for several lines, not empty paragraphs. This could be caused by any number of things, but not allowing hyphenation, or hyphantion rules that are too restictive might cause ID to be unable to break a line which would cause it to go into overset, as would possibly some combinations of Keep Options if there is more than one paragraph in the cell or if there is not enough room to fite the entire paragraph and you are just one line short with keep options requiring at least two lines be kept together at the end, for example. Applying No Break to a sting too wide for the cell would do it too.

  • Photos, graphics and attached files with emailsI

    I have the following problem with emails containing photos or graphics or when loading attached files : Half of the time, I cant see photos or graphics, I have empty frames. Loading attached files will never start and stay at 0 % I have set to load pictures. But even with the parameter set to "do not load picture " and using the " loading photos " button it s the same : not always working. Do you have it too? I have also the "retreiving... " message when I want to read mail. Thank you.

    Am I the only one to have this issue ?
    If someone could answer me : form time to time (half of the time...) I can't see photos or graphivs in my mails, I just have an empty frame...

  • Attaching file to an email using CL_CRM_EMAIL_DATA

    Hi experts, I am new in abap, I am trying to attach a rar file to an email in oop using class CL_CRM_EMAIL_DATA. However, I don't seem to get it right since the attached file seems to be empty.
    Here is my sample code below:
    REPORT  ztestmailoop.
    PARAMETERS: p_file TYPE rlgrap-filename.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'WS_FILENAME_GET'
        EXPORTING
          def_filename     = p_file
          mode             = 'O'
          title            = 'Upload File'(078)
        IMPORTING
          filename         = p_file
        EXCEPTIONS
          inv_winsys       = 1
          no_batch         = 2
          selection_cancel = 3
          selection_error  = 4
          OTHERS           = 5.
    *- Data Declaration
    DATA: lr_mail_data       TYPE REF TO CL_CRM_EMAIL_DATA.
    DATA: lv_to              TYPE CRMS_EMAIL_RECIPIENT.
    DATA: lv_from            TYPE CRMS_EMAIL_RECIPIENT.
    DATA: ls_struc_mail      TYPE CRMS_EMAIL_MIME_STRUC.
    DATA: lv_send_request    TYPE SYSUUID_X.
    *- create mail object
    CREATE OBJECT lr_mail_data.
    *- Email subject
    lr_mail_data->subject = 'Some subject'.
    *- To recipient (may be more)
    lv_to-address = <insert email address>.
    lv_to-name = <insert email address>.
    APPEND lv_to TO lr_mail_data->to.
    *- From recipient
    MOVE 'SAP CRM <insert email address>' TO lv_from-address.
    MOVE 'SAP CRM <insert email address>' TO lv_from-name.
    MOVE 'SAP CRM <insert email address>' TO lv_from-id.
    lr_mail_data->from = lv_from.
    *- Email Body (HTML)
    MOVE 'text/html' TO ls_struc_mail-mime_type.
    MOVE 'body.htm' TO ls_struc_mail-file_name.
    MOVE '<br>Some HTML text<br><br>cool?<br>' TO ls_struc_mail-content_ascii.
    APPEND ls_struc_mail TO lr_mail_data->body.
    CLEAR ls_struc_mail.
    MOVE 'application/x-rar-compressed' TO ls_struc_mail-mime_type.
    MOVE p_file TO ls_struc_mail-file_name.
    MOVE 'X' TO ls_struc_mail-is_attachment.
    APPEND ls_struc_mail TO lr_mail_data->body.
    *- Send Email
    lv_send_request = CL_CRM_EMAIL_UTILITY_BASE=>SEND_EMAIL( iv_mail_data = lr_mail_data ).
    Thanks in advance.

    Did you find an answer to this ?

  • How to remove attached files from an interactive Form?

    Hi,
    is it possible to delete all the attached files from an interactive form?
    I'm able to extract all the files and store them separately. But I found no way to store the interactive form without attachments.
    There is a method called SET_ATTACHMENTS, but transferring an empty table is not allowed.
    What should I do?
    Code:
    *     Create PDF Object.      lo_pdfobj = lo_fp->create_pdf_object( connection = l_dest ).
    *     Set document.      lo_pdfobj->set_document( pdfdata = iv_filecontent ).
    *     Set task to get attachments.      lo_pdfobj->set_task_getattachments( ).
    *     Execute, call ADS.      lo_pdfobj->execute( ).
    *     Get result.      et_attachments = lo_pdfobj->get_attachments( ).
    Regards,
    Mario

    Any ideas?

  • Attaching files using Forms To Go

    Can anyone help with this?
    I've just been trying out forms to go so that I can easily
    validate my contact forms.
    But how do you set it up to attach files?
    I've posted a screenshot below, where it looks as tho' it's
    asking for me to select a field that should be used to attach a
    file, but the list is empty...
    Presumably I'm just missing something simple, but if anyone
    could point me in the right direction that'd be appreciated.
    Cheers,
    Iain
    screenshot

    I've never used Forms to Go .. but your screen shot looks as
    though one
    would click that paper clip to open a dialogue box to browse
    to the file to
    attach and after doing that, the file name would appear in
    the window that
    is now empty? Did you try that?
    Nancy Gill
    Adobe Community Expert
    BLOG:
    http://www.dmxwishes.com/blog.asp
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: DMX 2004: The Complete Reference, DMX 2004:
    A Beginner's
    Guide, Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web Development
    "Iain71" <[email protected]> wrote in
    message
    news:e8h9jh$499$[email protected]..
    > Can anyone help with this?
    >
    > I've just been trying out forms to go so that I can
    easily validate my
    > contact
    > forms.
    >
    > But how do you set it up to attach files?
    >
    > I've posted a screenshot below, where it looks as tho'
    it's asking for me
    > to
    > select a field that should be used to attach a file, but
    the list is
    > empty...
    >
    > Presumably I'm just missing something simple, but if
    anyone could point me
    > in
    > the right direction that'd be appreciated.
    >
    > Cheers,
    > Iain
    >
    >
    http://www.handprintdvd.co.uk/attach.htm
    >

  • OS X Mail fails to attach files

    HI,
    I am experiencing a recent problem in my Mail app on my 2 month old MBP. When I attach files in the mail using the attach button, the file does not get attached; only the title bar blinks. When I try to drag and drop file(s) into the email, Mail attaches empty files with the correct file names. I am using IMAP email.
    I have already tried the following:
    1. Repair permissions from Disk Utility.
    2. Disconnecting the Mail, and rebuilding it.

    Please follow these directions to delete the Mail "sandbox" folder.
    Back up all data.
    Triple-click anywhere in the line below on this page to select it:
    ~/Library/Containers/com.apple.mail
    Right-click or control-click the highlighted line and select
    Services ▹ Reveal
    from the contextual menu.* A Finder window should open with a folder named "com.apple.mail" selected. If it does, move the selected folder — not just its contents — to the Desktop. Leave the Finder window open for now.
    Log out and log back in. Launch Mail and test. If the problem is resolved, you may have to recreate some of your Mail settings. You can then delete the folder you moved and close the Finder window. If you still have the problem, quit Mail again and put the folder back where it was, overwriting the one that may have been created in its place. Post your results.
    Caution: If you change any of the contents of the sandbox, but leave the folder itself in place, Mail may crash or not launch at all. Deleting the whole sandbox will cause it to be rebuilt automatically.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard (command-C). In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar, paste into the box that opens (command-V). You won't see what you pasted because a line break is included. Press return.

  • My browsers on Mac keep crashing when attaching files

    My browsers on MBP keep crashing when attaching files to my emails. I had the same problem with Safari, Firefox browsers and also with Gmail, Yahoo accounts. I emptied the cache, reset safari. It says its due to flash player..Uninstalled flash player, re-downloaded it, made safari work at 32 bit, made gmail attachments work at basic settings.. I repaired permissions using utilities ..also I have no internet plugins, no yahoo browser plus but nothing seems to work.. Any help? Many thanks

    This forum is for the MacBook Pro hardware.  You might get a better answer in the Safari forum, but you will have to provide more information there. 
    https://discussions.apple.com/community/mac_os/safari

  • How to add "Comments" and attach files onto a form?

    My server is LiveCycle ES 2.5, trial version, Turnkey install / Express mode  with  Reader Extensions.
    Client side has IE8 and Reader X 10.1.2.
    User interface is the standard out-of-the-box WorkSpace ES.
    I have an application that routes a PDF form through a Workflow,
    the input/output of the User Tasks is a Document variable that points to the PDF form.
    I know that in the WorkSpace, ther's a built-in Attachment "tab" where the user can attach files and get them routed along with the form.
    But how about Reader's "attach file" (the paper clip) and annotations (the yellow sticker)?  how to allow users to use those features?
    I tried it in the WorkSpace, and when the form is loaded in the IE window, those features were disabled.
    How to enable them?
    Do I need to modify the standard Render service? and add 'Apply Usgae Rights' or something?
    is there an easier way that I missed?
    thanks

    Attachments are lost if your form submits as XDP. If you change the submit type to PDF then server that same PDF back to the next user, the attachments will be there. If you decide for other reasons, you still want to submit as an XDP, take a look at this: http://forums.adobe.com/message/4316578#4316578

  • I can no longer attach files in Yahoo mail since upgrading to FireFox 4.0.1. I click the "attach" button and nothing happens - no file list to select from appears; nothing.

    Since upgrading to Firefox 4.0.1 the "attach files" function in my Yahoo Mail account no longer functions. When I click the "attach files" button nothing happens - nothing. No file selection box opens, no error message appears, no pinwheel of death, nothing.
    The "attach files" button is no longer 'hot' in FF 4.0.1 either = the "little hand" icon does not appear when I scroll over it. Other action buttons are still 'hot' ("attachments", "emoticons", "format", "hide bcc"etc.) - just not the "attach files" button.
    The Yahoo Mail "attach files" function still works when I use my Safari browser, however. So, it appears to be a FF4.0.1 issue.
    (Intel MacBook, Snow Leopard, 2gb ram, 360gb hd)

    You can try to delete the file mimeTypes.rdf
    See "Reset Download Actions"
    * http://kb.mozillazine.org/File_types_and_download_actions

  • Writting attached file from SOAP message to a FTP folder

    Hi everybody,
    Our scenario is an interface which receives a SOAP message with a file attached. As we don't need to do any mapping into the attachment, we are supposed to deliver that file as it is into a FTP folder.
    Our problem is that we cannot find how to configure File comm channel to write the attached file and no the SOAP XML message which is what we are getting now. Any help on this?
    Thanks in advance.

    Hi
    check these forum posts
    SOAP with attachments
    Mail Sender Adapter - Attachment Handling
    Regards
    Vishnu

  • 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

  • Unable to find line break between two lines in attachment file.

    Dear all I will be very great full if someone help me out,
    I am trying to send mail through SMTP server with an attachment of oracle report, but I am unable to find line break between two lines, when I down load the attachment from mail and open attach.txt file by double click on it. Next line starts right after previous line ends, it should starts with new line.
    In order to send an attachment file, I am reading source file line by line and put MIME protocol’s attachment instance, contain of source file is being properly written into target file if I open that attachment on cmd prompt.
    Following code may help you to understand the case.
    Thanks in advance.
    My code is as follows:-
    create or replace procedure bec_file_test
    v_subject varchar2, -- Subject of the email
    v_body varchar2, -- Body of the email
    v_from VARCHAR2 default 'XYZ.com', -- sender mail id
    v_to varchar2 default 'XYZ.com', -- Field To of the email
    v_cc varchar2 default 'XYZ.com' -- cc address
    ) is
    -- variable to hold the smtp server connection
    v_smtp_connection utl_smtp.connection;
    -- variable to hold the smtp host name
    v_smtp_host varchar2(100) default 'mail.bec-group.com';
    -- variable to hold the smtp port
    v_smtp_port number default 25;
    -- composite of {CR}{LF} caridge return and line feed.
    CRLF varchar2(2):=CHR(13)||CHR(10);
    cursor pr_rec is
    select requisition_no,line_no,release_no,a.contract,
    a.project_id,substr(a.activity_seq,1,11)ACT_SEQ,
    substr(a.part_no,1,12)PART_NO,
    substr(a.description,1,32)DESCRIPTION,
    substr(a.Bal_qty,1,8) BAL_QTY,
    substr(a.unit_meas,1,5)UOM,
    a.wanted_receipt_date WAN_REC_DT,
    a.latest_order_date LAT_ORD_DT
    from bec_pr_line_rep a
    where a.Bal_qty>0 and a.header_state not in 'Closed'
    and upper(a.state1) like 'RELEASED' and a.contract not in ('U1ENG','ULENG','U1FND','U2FND')
    and a.buyer_code='70306'
    order by a.part_no;
    begin
    declare
    fHandle UTL_FILE.FILE_TYPE;
    v_msg_line varchar2(2000);
    -- v_buffer varchar2(20000);
    --ALTER SYSTEM SET utl_file_dir = 'D:\Database\temp'
    --COMMENT='Temporary change on Dec 14'
    --SCOPE=SPFILE;
    SELECT name, value
    FROM gv$parameter
    WHERE name = 'utl_file_dir';
    --drop directory my_directory
    --CREATE or replace DIRECTORY my_directory AS 'D:\database\temp';
    --GRANT read,write ON DIRECTORY my_directory TO PUBLIC;
    begin ---writing data into a file.
    fHandle := UTL_FILE.FOPEN('MY_DIRECTORY', 'pending_pr_summry.txt', 'w');
    UTL_FILE.put_line(fHandle, ' Pending PR to process (detail report)');
    UTL_FILE.put_line(fHandle,TO_CHAR(SYSDATE,'MM-DD-YY HH:MI:SS AM'));
    UTL_FILE.put_line(fHandle, '--------------------------------------------------------------------------------------------------------------------------------------------------');
    UTL_FILE.put_line(fHandle, 'Req.no. li Re Site Prj Id Act seq Part no Description Qty UOM want rec dt lat ord dt' );
    UTL_FILE.put_line(fHandle, '--------------------------------------------------------------------------------------------------------------------------------------------------');
    for pr_temp in pr_rec loop
    begin
    v_msg_line:=to_char(rpad(pr_temp.requisition_no,12,' ')||'|'||
    lpad(pr_temp.line_no,3,' ')||'|'||
    lpad(pr_temp.release_no,3,' ')||'|'||
    rpad(pr_temp.contract,7,' ')||'|'||
    lpad(nvl(pr_temp.project_id,' '),7,' ')||'|'||
    lpad(nvl(pr_temp.act_seq,' '),12,' ')||'|'||
    lpad(pr_temp.part_no,12,' ')||'|'||
    rpad(pr_temp.description,35,' ')||'|'||
    lpad(pr_temp.bal_qty,10,' ')||'|'||
    rpad(pr_temp.uom,6,' ')||'|'||
    lpad(pr_temp.wan_rec_dt,14,' ')||'|'||
    lpad(pr_temp.lat_ord_dt,14,' '));
    UTL_FILE.put_line(fHandle,v_msg_line);
    end;
    end loop;
    UTL_FILE.put_line(fHandle, '--------------------------------------------------------------------------------------------------------------------------------------------------');
    UTL_FILE.put_line(fHandle, ' Regards : IFSAPP ( Application owner ) ');
    UTL_FILE.FCLOSE(fHandle); ------------writing into file is successfuly done here!
    --Reading of file starts here containt will be added in attchment file
    fHandle :=UTL_FILE.FOPEN('MY_DIRECTORY','pending_pr_summry.txt','R' );
    -- establish the connection to the smtp server
    v_smtp_connection := utl_smtp.open_connection(v_smtp_host, v_smtp_port); /** OPEN CONNECTION ON THE SERVER **/
    -- perform a handshake with the smtp server
    utl_smtp.helo(v_smtp_connection, v_smtp_host); /** DO THE INITIAL HAND SHAKE **/
    -- set the 'from' address of the message
    utl_smtp.mail(v_smtp_connection, v_from);
    -- add the recipient to the message
    utl_smtp.rcpt(v_smtp_connection, v_to);
    -- send the email
    utl_smtp.open_data(v_smtp_connection);
    v_msg_line:='Date: ' || TO_CHAR( SYSDATE, 'dd Mon yy hh24:mi:ss' ) || CRLF ||
    'From: ' || v_from || CRLF ||
    'Subject: ' || v_subject || CRLF ||
    'To: ' || v_to || CRLF ||
    'Cc: ' || v_cc || CRLF ||
    'MIME-Version: 1.0'|| CRLF || -- Use MIME mail standard
    'Content-Type: multipart/mixed;'||CRLF ||
    ' boundary="-----SECBOUND"'||CRLF||
    CRLF ||'-------SECBOUND'|| CRLF ||
    'Content-Type: text/plain;'|| CRLF ||
    'Content-Transfer_Encoding: 7bit'|| CRLF ||
    CRLF ||v_body|| CRLF;     -- Message body
    utl_smtp.write_data(v_smtp_connection,v_msg_line);
    v_msg_line:='-------SECBOUND'|| CRLF ||
    'Content-Type: application/octet-stream;'|| CRLF ||
    'Content-Type: text/plain;'|| CRLF ||
    'name="pending_pr_summry.txt"'|| CRLF ||
    'Content-Transfer_Encoding: 8bit'|| CRLF ||
    'Content-Disposition: attachment;'|| CRLF ||
    ' filename="pending_pr_summry.txt"'|| CRLF || CRLF;     -- Content of attachment
    utl_smtp.write_data(v_smtp_connection,v_msg_line);
    -- check file is opened
    IF utl_file.is_open(fHandle) THEN
    -- loop lines in the file
    LOOP
    BEGIN -- Content of attachment
    utl_file.get_line(fHandle,v_msg_line);
    v_msg_line:=concat(v_msg_line,CRLF);
    utl_smtp.write_data(v_smtp_connection,v_msg_line);
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    EXIT;
    END;
    END LOOP;
    END IF;
    --end of attachment containt     
    utl_smtp.write_data(v_smtp_connection,v_msg_line);
    UTL_FILE.FCLOSE(fHandle);
    utl_smtp.close_data(v_smtp_connection);
    utl_smtp.quit(v_smtp_connection);
    exception
    when utl_smtp.invalid_operation then
    dbms_output.put_line(' Invalid Operation in Mail attempt using UTL_SMTP.');
    when utl_smtp.transient_error then
    dbms_output.put_line(' Temporary e-mail issue - try again');
    when utl_smtp.permanent_error then
    dbms_output.put_line(' Permanent Error Encountered.');
    when others then
    dbms_output.put_line('Exception: SQLCODE=' || SQLCODE || ' SQLERRM=' || SQLERRM);
    RAISE;
    end;
    end bec_file_test;

    Pending PR to process (detail report)01-17-13 12:43:19 PM--------------------------------------------------------------------------------------------------------------------------------------------------Req.no. li Re Site Prj Id Act seq Part no Description Qty UOM want rec dt lat ord dt--------------------------------------------------------------------------------------------------------------------------------------------------MAT/250370 | 2| 1|ISCSP | 4977| 100004207| 0104000016|Angle 50 X 50 X 6 IS:2062 Grade |500|kg |30-NOV-2012| 20-nov-2012MAT/250370 | 3| 1|ISCSP | 4977| 100004207| 0105000002|Channel 100 X 50 IS:2062 Grade A | 1000|kg | 30-NOV-2012| 20-nov-2012MAT/250579 | 2| 1|NMDCJ | 6001| 100005580| 0109020002|TMT Bar 10 mm Fe 415 IS:1786 | 2991|kg | 13-DEC-2012| 03-dec-2012MAT/250606 | 2| |NMDCJ | 6002| 100005860| 0109020002|TMT Bar 10 mm Fe 415 IS:1786 | 4500|kg | 29-DEC-2012| 19-dec-2012MAT/250607 | |1|NMDCJ|6001|100005580| 0109020002|TMT Bar 10 mm Fe 415 IS:1786 | 1500|kg | 29-DEC-2012| 19-dec-2012MAT/250194 | 3| 1|NMDCJ | 6002| 100005818| 0109020002|TMT Bar 10 mm Fe 415 IS:1786 | 3939|kg | 29-DEC-2012| 19-dec-2012MAT/250606 | 4| 1|NMDCJ | 6002| 100005860| 0109020004|TMT Bar 16 mm Fe 415 IS:1786 | 39000|kg | 29-DEC-2012| 19-dec-2012MAT/250607 | 4| 1|NMDCJ | 6001| 100005580| 0109020004|TMT Bar 16 mm Fe 415 IS:1786 | 17500|kg | 29-DEC-2012| 19-dec-2012MAT/250194 | 2| 1|NMDCJ | 6002| 100005818| 0109020004|TMT Bar 16 mm Fe 415 IS:1786 | 12183|kg | 29-DEC-2012| 19-dec-2012MAT/250606 | 6| 1|NMDCJ | 6002| 100005860| 0109020006|TMT Bar 25 mm Fe 415 IS:1786 | 9500|kg | 29-DEC-2012| 19-dec-2012MAT/250607 | 6| 1|NMDCJ | 6001| 100005580| 0109020006|TMT Bar 25 mm Fe 415 IS:1786 | 4500|kg | 29-DEC-2012| 19-dec-2012MAT/250194 | 6| 1|NMDCJ | 6002| 100005818| 0109020006|TMT Bar 25 mm Fe 415 IS:1786 | 17500|kg | 29-DEC-2012| 19-dec-2012MAT/250607 | 7| 1|NMDCJ | 6001| 100005580| 0109020008|TMT Bar 32 mm Fe 415 IS:1786 | 22000|kg | 29-DEC-2012| 19-dec-2012MAT/250194 | 7| 1|NMDCJ | 6002| 100005818| 0109020008|TMT Bar 32 mm Fe 415 IS:1786 | 27060|kg | 29-DEC-2012| 19-dec-2012MAT/251138 | 1| 1|NMDCJ | 6002| 100005825| 3501000001|Cement 50 kg | 1|pkt | 25-DEC-2013| 14-dec-2013--------------------------------------------------------------------------------------------------------------------------------------------------
    where as source file is like that:-
    Pending PR to process (detail report)
    01-17-13 12:43:19 PM
    Req.no. li Re Site Prj Id Act seq Part no Description Qty UOM want rec dt lat ord dt
    MAT/250370 | 2| 1|ISCSP | 4977| 100004207| 0104000016|Angle 50 X 50 X 6 IS:2062 Grade | 5500|kg | 30-NOV-2012| 20-nov-2012
    MAT/250370 | 3| 1|ISCSP | 4977| 100004207| 0105000002|Channel 100 X 50 IS:2062 Grade A | 1000|kg | 30-NOV-2012| 20-nov-2012
    MAT/250579 | 2| 1|NMDCJ | 6001| 100005580| 0109020002|TMT Bar 10 mm Fe 415 IS:1786 | 2991|kg | 13-DEC-2012| 03-dec-2012
    MAT/250606 | 2| 1|NMDCJ | 6002| 100005860| 0109020002|TMT Bar 10 mm Fe 415 IS:1786 | 4500|kg | 29-DEC-2012| 19-dec-2012
    MAT/250607 | 2| 1|NMDCJ | 6001| 100005580| 0109020002|TMT Bar 10 mm Fe 415 IS:1786 | 1500|kg | 29-DEC-2012| 19-dec-2012
    MAT/250194 | 3| 1|NMDCJ | 6002| 100005818| 0109020002|TMT Bar 10 mm Fe 415 IS:1786 | 3939|kg | 29-DEC-2012| 19-dec-2012
    MAT/250606 | 4| 1|NMDCJ | 6002| 100005860| 0109020004|TMT Bar 16 mm Fe 415 IS:1786 | 39000|kg | 29-DEC-2012| 19-dec-2012
    MAT/250607 | 4| 1|NMDCJ | 6001| 100005580| 0109020004|TMT Bar 16 mm Fe 415 IS:1786 | 17500|kg | 29-DEC-2012| 19-dec-2012
    MAT/250194 | 2| 1|NMDCJ | 6002| 100005818| 0109020004|TMT Bar 16 mm Fe 415 IS:1786 | 12183|kg | 29-DEC-2012| 19-dec-2012
    MAT/250606 | 6| 1|NMDCJ | 6002| 100005860| 0109020006|TMT Bar 25 mm Fe 415 IS:1786 | 9500|kg | 29-DEC-2012| 19-dec-2012
    MAT/250607 | 6| 1|NMDCJ | 6001| 100005580| 0109020006|TMT Bar 25 mm Fe 415 IS:1786 | 4500|kg | 29-DEC-2012| 19-dec-2012
    MAT/250194 | 6| 1|NMDCJ | 6002| 100005818| 0109020006|TMT Bar 25 mm Fe 415 IS:1786 | 17500|kg | 29-DEC-2012| 19-dec-2012
    MAT/250607 | 7| 1|NMDCJ | 6001| 100005580| 0109020008|TMT Bar 32 mm Fe 415 IS:1786 | 22000|kg | 29-DEC-2012| 19-dec-2012
    MAT/250194 | 7| 1|NMDCJ | 6002| 100005818| 0109020008|TMT Bar 32 mm Fe 415 IS:1786 | 27060|kg | 29-DEC-2012| 19-dec-2012
    MAT/251138 | 1| 1|NMDCJ | 6002| 100005825| 3501000001|Cement 50 kg | 1 |pkt | 25-DEC-2013| 14-dec-2013
    Ignore alignment. It is well formatted in source file.

  • Display Material |Attachment File in ALV report

    Dear All,
    I have to make ALV report for mutliple material attachment file.I want to display material wise attachment where user can see in report. We can see attachment list in Service For Object button in MM03 tcode for single material. And i also i do not want attachement list on tool bar where like MM03 is dispalying.
    I need ALV report for materialcodewise image/attachment file like,
    MaterialCode    File
    A101                any filename
    B101                 any filename
    So user can click on file base on material, then file will open and he can see image/attachment.
    Please guide me for above mentioned query.
    Regards,
    Shivam.

    Dear Shivam,
    You can have multiple attachments for a sinlge material. You need to consider that in your report.
    for getting the list of attachments using the static method CL_BINARY_RELATION=>READ_LINKS.
      DATA: lw_BOR TYPE sibflporb.
      DATA: lt_rel TYPE OBL_T_RELT,
                 lw_rel type OBL_S_RELT.
      DATA: lt_links TYPE obl_t_link,
                 lw_links type OBL_S_LINK.
      DATA: lo_root TYPE REF TO cx_root.
      lw_bor-instid = <Materail no.>   "<------- Materail No.
      lw_bor-typeid = 'BUS1001006'.
      lw_bor-catid  = 'BO'.
      lw_rel-sign = 'I'.
      lw_rel-option = 'EQ'.
      lw_rel-low = 'ATTA'.           "<----------Attachments
      APPEND lw_relt TO lt_rel.
      TRY.
          CALL METHOD cl_binary_relation=>read_links
            EXPORTING
              is_object           = lw_bor
              it_relation_options = lt_rel
            IMPORTING
              et_links            = lt_links.
        CATCH cx_root INTO lo_root.
      ENDTRY.
    Once you get the list of attachment populate your output table using the same.
    you can use FM SO_OBJECT_READ to get details of attachment.
    Make the column with attachment as hotspot, so that ALV take action in sinlge user click.
    In the user-command of ALV write the code to open the attachment.
    you can use the FM SO_DOCUMENTS_MANAGER
    Hope this helps you.
    Regards,
    Sachinkumar Mehta

  • Open attached file in the same editor(ZCRM_DNO_MONITOR customer program)

    Hi All,
    I wrote a dialog program to simplify the CRM_DNO_MONITOR.  I gave the facility to attach file from the PC(any doc  type .txt ,doc, xls. etc) by calling the functions. I need to give  a facility to open these attached file in the same edit. Please let us know way
    Additionally,I can find the logical and physical document of these attached files
    e. g
    (Doc class       : CRM_L_ORD
    Doccument   : 4CA517D70BE60F7FE1000000AC113F3F
    Doc Class       CRM_P_ORD
    Document        4CA517D80BE60F7FE1000000AC113F3F)
    Attached files successfully by calling the following functions
           objkey = wa_tab-guid .    " (crmd_orderadm_h-guid)
           objtype = 'BUS2000116'.
          CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET
          CALL FUNCTION 'SO_DOCUMENT_REPOSITORY_MANAGER
         CALL FUNCTION 'BINARY_RELATION_CREATE_COMMIT'
         CALL FUNCTION 'CRM_KW_MIGRATE_GOS' DESTINATION 'NONE'

    Hello ,
    i think you can make use of Clase CL_GOS_MANAGER
    check Sap program which are using this clasee.
    try yourself and let me know if you have any doubts.
    regards
    Prabhu

Maybe you are looking for

  • Playing video in iTunes on laptop running Windows Vista

    I recently changed my computer. I now have an HP Pavilion running windows Vista (use to have XP). I have a video iPod -30GB. I downloaded iTunes onto the new equipment without incident, but that is the last thing that went smoothly. I can no longer w

  • My apple id stop working (this apple id has not yet been used before....

    Hi i have a problem, my apple id stop working after i purchase application at app store. Went i try to sign in it alway say "this apple id has not yet been used before in the itune store. Tap review to sign in, then review your accout information".

  • Protege Plugin Problem

    I think the sample Protege plugin Oracle provides breaks Protege 3.2.1 - I downloaded it here: http://download.oracle.com/otn/other/semantic_tech/protege_oracle_rdf_plugin.zip I made a fresh install of Protege, created an oracle directory in the plug

  • Filter LOV  with LaunchPopupListener method?

    Hi! I create a viewObject (read-Only QUERY) and for use it as LOV, I defined in his xml file: viewCriteria and bind variable. In the other ViewObject added in three attribute LOV´s using as List Data Source the same viewObject i create before. In vie

  • How can i drop datafile

    I have dropped a tablespace with drop tablespace incliding contents command Now how can i remove the datafile for that tablespace?