Email program error

Hi,
I want to sent the EKPO results in excel format for that, I have copied the program from the site.
But when I tested this program, it is giving me the following error message.
CON_TAB must be a character-type data object (data type C, N, D, T, or string).
Below is my code :
REPORT  ZEMAIL_ATTACH                   .
TABLES: ekko.
PARAMETERS: p_email   TYPE somlreci1-receiver
                                  DEFAULT '[email protected]'.
TYPES: BEGIN OF t_ekpo,
  ebeln TYPE ekpo-ebeln,
  ebelp TYPE ekpo-ebelp,
  aedat TYPE ekpo-aedat,
  matnr TYPE ekpo-matnr,
END OF t_ekpo.
DATA: it_ekpo TYPE STANDARD TABLE OF t_ekpo INITIAL SIZE 0,
      wa_ekpo TYPE t_ekpo.
TYPES: BEGIN OF t_charekpo,
  ebeln(10) TYPE c,
  ebelp(5)  TYPE c,
  aedat(8)  TYPE c,
  matnr(18) TYPE c,
END OF t_charekpo.
DATA: wa_charekpo TYPE t_charekpo.
DATA:   it_message TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
                WITH HEADER LINE.
DATA:   it_attach TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
                WITH HEADER LINE.
DATA:   t_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
        t_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
        t_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
        t_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE,
        t_object_header LIKE solisti1 OCCURS 0 WITH HEADER LINE,
        w_cnt TYPE i,
        w_sent_all(1) TYPE c,
        w_doc_data LIKE sodocchgi1,
        gd_error    TYPE sy-subrc,
        gd_reciever TYPE sy-subrc.
*START_OF_SELECTION
START-OF-SELECTION.
  Retrieve sample data from table ekpo
  PERFORM data_retrieval.
  Populate table with detaisl to be entered into .xls file
  PERFORM build_xls_data_table.
*END-OF-SELECTION
END-OF-SELECTION.
Populate message body text
  perform populate_email_message_body.
Send file by email as .xls speadsheet
  PERFORM send_file_as_email_attachment
                               tables it_message
                                      it_attach
                                using p_email
                                      'Example .xls documnet attachment'
                                      'XLS'
                                      'filename'
                             changing gd_error
                                      gd_reciever.
  Instructs mail send program for SAPCONNECT to send email(rsconn01)
  PERFORM initiate_mail_execute_program.
*&      Form  DATA_RETRIEVAL
      Retrieve data form EKPO table and populate itab it_ekko
FORM data_retrieval.
  SELECT ebeln ebelp aedat matnr
   UP TO 10 ROWS
    FROM ekpo
    INTO TABLE it_ekpo.
ENDFORM.                    " DATA_RETRIEVAL
*&      Form  BUILD_XLS_DATA_TABLE
      Build data table for .xls document
FORM build_xls_data_table.
  CONSTANTS: con_cret TYPE x VALUE '0D',  "OK for non Unicode
             con_tab TYPE x VALUE '09'.   "OK for non Unicode
*If you have Unicode check active in program attributes thnen you will
*need to declare constants as follows
*class cl_abap_char_utilities definition load.
*constants:
   con_tab  type c value cl_abap_char_utilities=>HORIZONTAL_TAB,
   con_cret type c value cl_abap_char_utilities=>CR_LF.
  CONCATENATE 'EBELN' 'EBELP' 'AEDAT' 'MATNR'
         INTO it_attach SEPARATED BY con_tab.
  CONCATENATE con_cret it_attach  INTO it_attach.
  APPEND  it_attach.
  LOOP AT it_ekpo INTO wa_charekpo.
    CONCATENATE wa_charekpo-ebeln wa_charekpo-ebelp
                wa_charekpo-aedat wa_charekpo-matnr
           INTO it_attach SEPARATED BY con_tab.
    CONCATENATE con_cret it_attach  INTO it_attach.
    APPEND  it_attach.
  ENDLOOP.
ENDFORM.                    " BUILD_XLS_DATA_TABLE
*&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
      Send email
FORM send_file_as_email_attachment tables pit_message
                                          pit_attach
                                    using p_email
                                          p_mtitle
                                          p_format
                                          p_filename
                                          p_attdescription
                                          p_sender_address
                                          p_sender_addres_type
                                 changing p_error
                                          p_reciever.
  DATA: ld_error    TYPE sy-subrc,
        ld_reciever TYPE sy-subrc,
        ld_mtitle LIKE sodocchgi1-obj_descr,
        ld_email LIKE  somlreci1-receiver,
        ld_format TYPE  so_obj_tp ,
        ld_attdescription TYPE  so_obj_nam ,
        ld_attfilename TYPE  so_obj_des ,
        ld_sender_address LIKE  soextreci1-receiver,
        ld_sender_address_type LIKE  soextreci1-adr_typ,
        ld_receiver LIKE  sy-subrc.
  ld_email   = p_email.
  ld_mtitle = p_mtitle.
  ld_format              = p_format.
  ld_attdescription      = p_attdescription.
  ld_attfilename         = p_filename.
  ld_sender_address      = p_sender_address.
  ld_sender_address_type = p_sender_addres_type.
Fill the document data.
  w_doc_data-doc_size = 1.
Populate the subject/generic message attributes
  w_doc_data-obj_langu = sy-langu.
  w_doc_data-obj_name  = 'SAPRPT'.
  w_doc_data-obj_descr = ld_mtitle .
  w_doc_data-sensitivty = 'F'.
Fill the document data and get size of attachment
  CLEAR w_doc_data.
  READ TABLE it_attach INDEX w_cnt.
  w_doc_data-doc_size =
     ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
  w_doc_data-obj_langu  = sy-langu.
  w_doc_data-obj_name   = 'SAPRPT'.
  w_doc_data-obj_descr  = ld_mtitle.
  w_doc_data-sensitivty = 'F'.
  CLEAR t_attachment.
  REFRESH t_attachment.
  t_attachment[] = pit_attach[].
Describe the body of the message
  CLEAR t_packing_list.
  REFRESH t_packing_list.
  t_packing_list-transf_bin = space.
  t_packing_list-head_start = 1.
  t_packing_list-head_num = 0.
  t_packing_list-body_start = 1.
  DESCRIBE TABLE it_message LINES t_packing_list-body_num.
  t_packing_list-doc_type = 'RAW'.
  APPEND t_packing_list.
Create attachment notification
  t_packing_list-transf_bin = 'X'.
  t_packing_list-head_start = 1.
  t_packing_list-head_num   = 1.
  t_packing_list-body_start = 1.
  DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
  t_packing_list-doc_type   =  ld_format.
  t_packing_list-obj_descr  =  ld_attdescription.
  t_packing_list-obj_name   =  ld_attfilename.
  t_packing_list-doc_size   =  t_packing_list-body_num * 255.
  APPEND t_packing_list.
Add the recipients email address
  CLEAR t_receivers.
  REFRESH t_receivers.
  t_receivers-receiver = ld_email.
  t_receivers-rec_type = 'U'.
  t_receivers-com_type = 'INT'.
  t_receivers-notif_del = 'X'.
  t_receivers-notif_ndel = 'X'.
  APPEND t_receivers.
  CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
       EXPORTING
            document_data              = w_doc_data
            put_in_outbox              = 'X'
            sender_address             = ld_sender_address
            sender_address_type        = ld_sender_address_type
            commit_work                = 'X'
       IMPORTING
            sent_to_all                = w_sent_all
       TABLES
            packing_list               = t_packing_list
            contents_bin               = t_attachment
            contents_txt               = it_message
            receivers                  = t_receivers
       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.
Populate zerror return code
  ld_error = sy-subrc.
Populate zreceiver return code
  LOOP AT t_receivers.
    ld_receiver = t_receivers-retrn_code.
  ENDLOOP.
ENDFORM.
*&      Form  INITIATE_MAIL_EXECUTE_PROGRAM
      Instructs mail send program for SAPCONNECT to send email.
FORM initiate_mail_execute_program.
  WAIT UP TO 2 SECONDS.
  SUBMIT rsconn01 WITH mode = 'INT'
                WITH output = 'X'
                AND RETURN.
ENDFORM.                    " INITIATE_MAIL_EXECUTE_PROGRAM
*&      Form  POPULATE_EMAIL_MESSAGE_BODY
       Populate message body text
form populate_email_message_body.
  REFRESH it_message.
  it_message = 'Please find attached a list test ekpo records'.
  APPEND it_message.
endform.                    " POPULATE_EMAIL_MESSAGE_BODY
Please help me out how to overcome this.
Thanks,
Pavan.
Message was edited by: Pavan Panduru

Comment the current definition of con_tab & uncomment the
constant con_tab ie use
* con_tab TYPE x VALUE '09'. "OK for non Unicode
class cl_abap_char_utilities definition load.
constants:
con_tab type c value cl_abap_char_utilities=>HORIZONTAL_TAB.
~Suresh

Similar Messages

  • PSE 8 No Email Program Error When Sending an Email

    Hi Everyone,
    I have a student who has a pretty new computer running Win 7 with PSE 8. She has set up her email sharing with Adobe Services and has received/entered the verification code. However, when trying to send an email, she gets the following error message as soon as she hits Send.
    "There is no e-mail program associated to perform the requested action.  Please install an email program or, if one is already installed, create an association in the Default Programs control panel."
    Running PSE 8 as an administrator does not correct the problem. I thought that when you are using Adobe Email Service, you did not need an email program, like OL or Microsoft Mail. ??
    TIA Don S.

    No, I never did get an answer.
    To be honest I cannot remember if my student resolved their problem. I have never had that specific error message, and the last time I checked PSE 8 was emailing fine. HOWEVER, just yesterday, the only way I could send email from within PSE 7 was to not include any names from the PSE Contact list. This always caused PSE 7 to crash for both OL and Adobe Email Service, Photo Mail or Attachments. I have not checked PSE 8 yet.
    I found out about the PSE 7 problem from a friend using OL. For her, it was working but all of a sudden, began to crash PSE 7.
    Does anyone know if PSE 7/8 connects with Adobe while emailing, even if OL is used as the email client?
    Don S.

  • HT4796 I keep getting a Windows Mail error when trying to run the assistant on my pc, but I don't have any email programs open.

    I keep getting a Windows Mail error when trying to run the assistant on my pc, but I don't have any email programs open.

    You could of course use Safari your default browser as a quick method of accessing gmail until you figure out the Firefox problem. (More than one browser may be used on a Mac or other computer).
    Is this the only site you have problems with ? and does Safari work ok ?
    Often this problem requires the page to be reloaded
    * try pressing the shift key as you reload the page
    Another problem is sometimes the cookies for that site need clearing
    * see [[Delete cookies to remove the information websites have stored on your computer#w_delete-cookies-for-a-single-site]]_delete-cookies-for-a-single-site
    * see also [[Firefox and other browsers can't load websites]] or[[Firefox can't load websites but other browsers can]]

  • Error: "Acrobat is unable to connect to your email program" using attach to email . . .

    Windows 7 Pro Sp1
    Thunderbird 3.1.9
    Acrobat Reader x 10.0.1
    File, "Attach to email. . . " feature returns error  "Acrobat is unable to connect to your email program"
    Thunderbird is set to default email client on Windows 7 Professional SP1.

    You can't. It isn't an e-mail client, it's a web site.
    (So far as I know. Yahoo, for example, does allow itself to be set up
    as a mail server, so you can use a mail client with it).
    Aandi Inston

  • I am running FireFox on a new HP laptop with Windows 8.1. My email program ATT yahoo.mail is constantly showing error message "Mozilla Firefox is not responding

    Only happens with the email program

    Hello,
    Sometimes antivirus extensions cause browsing issues in Firefox. Try disabling McAfee while on your email program to see if it still crashes.
    If after disabling McAfee the site still crashes, enable that plugin again if you wish. Please follow the steps below to provide us crash IDs to help us learn more about your crash.
    #Enter ''about:crashes'' in the Firefox address bar and press Enter. A Submitted Crash Reports list will appear, similar to the one shown below.
    #Copy the '''5''' most recent Report IDs that start with '''bp-''' and then go back to your forum question and paste that into the "Post a Reply" box. (Please don't take a screenshot of your crashes, just copy and paste the ID's. The below image is just an example of what your Firefox screen should look like)
    [[Image:aboutcrashesFx29|width=520]]
    <br><br>
    Thank you for your help!
    More information and further troubleshooting steps can be found in the [[Firefox crashes - Troubleshoot, prevent and get help fixing crashes]] article.

  • CS6 Error: "Could not complete your request because of a program error."

    I get the error "Could not complete your request because of a program error." anytime I try to open a .psd file someone has sent me.
    This error is occuring in CS6.
    Anything I can do?

    Hi Basedcade,
    Do you know what version of Photoshop was used to create the .psd they are sending? II'd want to make sure the person sending the .psd is selecting the option to maximize compatibility when saving the .psd file. How is the person sending you the .psd file, email, etc.? Does the person sending it have an Adobe ID? If so, maybe have them upload the .psd and share it via Creative Cloud to see if it does the same thing when transferred that way?
    -Dave

  • Bursting program errors when no data - Check output before bursting

    Hello experts,
    I have a XML Publisher Report with a Data Template + Bursting Control File.
    This works perfectly when there is data.
    But, when there is no data, main concurrent program completes successfully but the Bursting concurrent Program errors.
    This is mainly because I am selecting the email address dynamically based on the data.
    + Is there a way I can check the xml output before submitting bursting program from PL/SQL package.
    Log file does not show any error:
    Here is the content of the log file for reference:
    XML Publisher: Version : 11.5.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    XDOBURSTREP module: XML Publisher Report Bursting Program
    Current system time is 09-OCT-2012 11:38:06
    XML/BI Publisher Version : 5.6.3
    Updating request description
    Retrieving XML request information
    Preparing parameters
    Set Bursting parameters..
    Bursting propertes.....
    {user-variable:cp:territory=US, user-variable:cp:ReportRequestID=2669035, user-variable:cp:language=en, user-variable:cp:responsibility=25182, user-variable.OA_MEDIA=http://hcc-928.hullcc.gov.uk:8045/OA_MEDIA, burstng-source=EBS, user-variable:cp:DebugFlag=, user-variable:cp:parent_request_id=2669035, user-variable:cp:locale=en-US, user-variable:cp:user=DURBHAKAV01, user-variable:cp:application_short_name=XDO, user-variable:cp:request_id=2669036, user-variable:cp:org_id=83, user-variable:cp:reportdescription=XXHCC OLM Course Confirmation Letter}
    Start bursting process..
    Bursting process complete..
    Generating Bursting Status Report..
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Thanks
    Vinod
    Edited by: Vinod on Oct 15, 2012 1:52 PM

    Follow up update:
    I have applied the patch 8594771 ( p8594771_11i_GENERIC) but there is no difference.
    Error still exists.
    Checked the OPP log but not much help there.
    OPP logfile shows this error:
    org.xml.sax.SAXParseException: <Line 1, Column 1>: XML-20108: (Fatal Error) Start of root element expected.
    Any inputs??
    Thanks,
    Vinod

  • There is no email program associated to perform the requested action. Please install an email progra

    I am operating on Windows 8 and using Adobe Reader XL (11.0.03) and get the following message when I open the a file
    There is no email program associated to perform the requested action. Please install an email program or, if one is already installed, create an association in the Default Programs control panel
    I went to Edit - Preferences - Email Accounts - and added a gmail account but it is still happening!

    I'm also getting this message from Adobe Reader XI when opening files from Windows Explorer. OS is Windows 7.
    I'm not trying to perform any email action, is there a way to disable this annoying popup?
    Edit: After some googling, it looks related to this: http://helpx.adobe.com/photoshop-elements/kb/freeze-or-error-no-email.html
    This is pretty poor if users can't disable this notification without installing a separate, unnecessary program.

  • There is no email program associated to perform the requested action. Please install an email program or, if one is already installed, create an association in the Default programs control panel

    I just installed Window 7 professional in place of Windows 7 Ultimate RC to which I subscribed. I was not pleased to do a clean install as opposed to an upgrade and was not informed about it.
    When I reinstalled Office 2007, my outlook does not work, although exchange on the web works. I get the following error message:
    There is no email program associated to perform the requested action. Please install an email program or, if one is already installed, create an association in the Default programs control panel 

    Louis,
    This issue may occur if the Outlook registry key is corrupted. When other programs try to use the Outlook Simple MAPI interface, they cannot retrieve the required information from the registry.
    You must first remove the corrupted Outlook registry key, and then perform a Detect and Repair operation to have Outlook rebuild the key. To do this, follow these steps:
    Click Start, and then click Run.
    In the Open box, type regedit, and then press ENTER.
    In Registry Editor, locate the following subkey in the registry: HKEY_LOCAL_MACHINE\Software\Clients\Mail\Microsoft Outlook
    Select the subkey, and then press DELETE.
    Click Yes.
    Quit Registry Editor.
    Start Outlook.
    On the Help menu, click Office Diagnostics.
    Follow the instructions on the screen to complete the repair.
    Important: Above section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
    322756  (http://support.microsoft.com/kb/322756/ ) How to back up and restore the registry in Windows.
    Hope above information helps.
    Pooja Katiyar

  • "Could not save as a PDF because of a program error"

    Saving a Photoshop file as a PDF for emailing to someone else has always been complicated by the number of choices to be made, and now it's become impossible. Every time I try it now, I get this message, and I have to send a jpeg instead. I've tried different files, trashed the PS prefs, tried different settings in the dialog box that pops up after I hit "save", but it is no longer possible to save a PS file as a PDF. In spite of the fact that this just started happening for no reason I know, I presume that it's my fault. Every single file I try to save  has "a program error", for some reason. So I'm going to have to read up on how to save  a PS file as a PDF. Can anyone help or point me to a knowledgebase article on saving a PDF in Photoshop?

    You have not provided any system information. That aside, rather than faulting Photoshop it's more likely a generic issue with Acrobat/ Adobe Reader and the shared PDF libraries. The pertinent question would therefore be if those apps actually function properly and can display PDFs, what updates they may have received recently, what their security settings are (sandboxing) and if other apps like e.g. Illustrator still save PDFs.
    Mylenium

  • Photoshop cs3 "could not complete your request because of a program error"

    I have PS cs3 on powerpc mac ox 10.5.8, and have been using it for 3 years
    or so perfectly. I started getting the "could not complete your request
    because of a program error" when I was trying to open an ai eps (like I've
    done before about 1000 times). Now, every time I open any file, I get this
    error.
    I removed everything PS cs3 from my computer (with the install disk) and
    clean installed the program (after just throwing out the prefs, settings,
    rebooting w/command/option, etc.). and now, same thing.
    I called adobe support, and he said to go online, so here I am - wits end.
    1. why do you think this happened initially and still (seems to be related
    to fonts or the type tool because of error right away when I click that)?
    2. what can I look for other than the prefs/settings that could be causing
    it?
    3. how do I fix it?
    thanks for your help,
    dan ([email protected])

    Thanks, but I found that this worked in another post below:
    I think it was a font issue, so I cleaned out some otf and ITC TT fonts (from Classic era)
    and Deleted ~/Library/Caches/Adobe folder  - think this is the key!
    restarted PS and it's working now!
    thanks!
    Happy Macing
    1. Feb 19, 2011 11:31 AM in response to: mafordha
    Re: "Could not complete your request because of a program error"
    FWIW, I just fixed this problem (I think) with the following:
    Quit PS
    Moved Stone Sans OS ITC TT out of the /Library/Fonts/ folder
    Moved Stone Sans OS ITC TT out of the ~/Library/Fonts/ folder
    Deleted ~/Library/Caches/Adobe folder
    Restarted PS
    See here: http://forums.adobe.com/thread/765852?start=0&tstart=0

  • Build Program error

    I am trying to make batch payment in Release 12 via a Payment Manager.
    The invoice which are selected by the payment process request belong to 2 operating units. The problem comes with the build progam getting errored out.
    The out file displays the following message:
    "Build program error: Exception occured when attempting to create payments from the documents payable of the provided payment service request."
    The log file is as follows:
    Payments: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    IBYBUILD module: Build Payments
    Current system time is 22-JUN-2009 15:08:50
    **Starts**22-JUN-2009 15:08:50
    **Ends**22-JUN-2009 15:09:08
    BUILD PROGRAM ERROR - CANNOT CREATE PAYMENTS
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 22-JUN-2009 15:09:09
    Could someone please provide a solution for this.
    you may email me at [email protected]

    so if i have 2 sites...say X and Y then I can pay invoices from these two sites using a single check.
    say on X site i entered invoice 1 and 3
    and on Y site i entered invoice 2 and 4
    so can i pay all invoice 1 2 3 and 4 using batch payment..i know this is yes
    but the question is can i pay using a single check???

  • Adobe Shared Review Doesn't Recognize Outlook 2010 as Default Email Program

    We just received new laptops from our company with Windows 7 on them and Acrobat 9.4.0. Previously, we were using Windows XP with Acrobat 8.3.2 and didn't have the following issue.
    When I begin a shared review and get to the Add Email dialog, I click To: and Acrobat pops up an error that Outlook is not the default email program. Fact is, though, it is the default email program. I checked under Default Programs and made sure Microsoft Outlook was set.
    Needless to say, this completely prohibits us from using Shared Review. There is no way around this that I can see (I tried just typing in email addresses but then it tells me it can't send it because I don't have an email client).
    Outlook opens fine via email links from my browsers (IE and FF), other documents, etc. The IE default email is set to Outlook as well (not sure that makes a difference).
    My fear is that this is a result of Windows 7 'not being fully supported by Adobe until an undisclosed release'. Please tell me I am wrong and there is a setting I am missing.
    I am inserting an image of the error.

    There have been other messages concerning compatibility issues with MS Office 2010
    Since Outlook is part of Office, I will guess that is your problem
    Will NOT work with MS Office 2010 - http://forums.adobe.com/thread/687988?tstart=0
    http://ptihosting.com/blog/it-blog/microsoft-office-2010-rtm-and-adobe-acrobat-incompatibl e/
    Also discussed in the Acrobat FAQ http://www.adobe.com/products/acrobat/faq/

  • When trying to send a picture as a attachment io a email its states a I to install a email program?

    Whwn trying to send a pictsure as a attachment to a email,n it states I need to install an email program, I allready email.  What do I need to do.

    Please have a check on the following link:
    http://helpx.adobe.com/photoshop-elements/kb/freeze-or-error-no-email.html

  • Sending excel file as an attachment  in email program thru Oracle8i

    I cant send my excel file as an attachment in my email program thru Oracle 8i.
    My excel file i located in my local pc C:\test.xls
    Everything is in my local machine, DB and progams.
    I have read the example of DEMO_MAIL program i am hardly understand it.
    My sample program:
    if (p_file_name is not null) then
    begin_attachment( p_mime_type=>'application/excel',               p_fname=>p_file_name,
         p_transfer_enc=>'base64'
         dbms_lob.createtemporary(l_blob, true);
         dbms_lob.open(l_bfile);
         dbms_lob.fileopen(l_bfile);
         dbms_lob.open(l_blob, dbms_lob.lob_readwrite);
         dbms_lob.loadfromfile(l_blob, l_bfile, dbms_lob.getlength(l_bfile));
         dbms_lob.fileclose(l_bfile);
         dbms_lob.close(l_bfile);
         l_file_len := dbms_lob.getlength(l_blob);
         l_modulo := mod(l_file_len,MAX_BASE64_LINE_WIDTH);
         l_pieces := trunc(l_file_len/MAX_BASE64_LINE_WIDTH);
    while (l_counter < l_pieces)
    loop
    dbms_lob.read(l_blob, l_modulo, l_filepos, l_buffer);
    l_message := utl_raw.concat(l_message, l_buffer);
    write_mb_text(l_message||g_crlf);
    l_filepos := l_counter * MAX_BASE64_LINE_WIDTH + 1;
    l_counter := l_counter + 1;
    end loop;
    if l_modulo <> 0 then
    dbms_lob.read(l_blob, l_modulo, l_filepos, l_buffer);
    l_message := utl_raw.concat(l_message, l_buffer);
    write_mb_text(l_message||g_crlf);
    end if;
    dbms_lob.close(l_blob);
    end_attachment(true);     
    Please help

    I did not receive any error messages when executing the program. It works fine, I received the email nicely but without the attachment.
    Here is the emails I received:
    LOGICAL SPACE USED HAS REACHED ITS TRESHOLD. PLEASE DO NECESSAY TO MAKE MORE ROOM FOR THE SPACE TO EXTEND.
    Tablespace Name Used Size(MB) Free Size(MB)
    SYSTEM 259.953 4.047
    USERS 144.508 55.492
    INDX 31.258 26.742
    -------7D81B75CCC90D2974F7A1CBD
    Content-Type: multipart/mixed; boundary="-----7D81B75CCC90D2974F7A1CBD"
    Content-Disposition: attachment; filename="capacity_13-JAN-05-111226.xls"
    Content-Transfer-Encoding: base64
    -haris

Maybe you are looking for

  • Compress an image before upload

    Hi, Is there a way to compress an image using Flex? the scenario I have is: the user takes a picture from a mobile device camera, I then upload it to the cloud. I'd like to be able to shrink the image in size before I upload it as it takes ages. Many

  • Apple ID Haunting Us

    My wife created an Apple ID from a Hotmail address years ago when I bought her an iPod. She gave the iPod to one of our kids, who has since lost it. When I bought my wife her first iPhone 4, she set it up using the same Apple ID, but somewhere along

  • Email attachment rows greater than 255 char get truncated

    Hi I am trying to code in 4.6C to email excel attachment with rows greater than 255, and the rows are being truncated using function module SO_NEW_DOCUMENT_ATT_SEND_API1. I have searched the forum and can not find an actual solution to this on a 4.6c

  • Hello my battery power has a x on it and the lights are not working and its making a noise - Please assist

    Hello my battery power has a x on it and the lights are not working and its making a noise - Please assist

  • Virtualbox Question (About the Toolbar)

    Hello everyone, I was hoping someone might know the answer to this little problem. In Virtualbox, when you have an OS in full-screen, there is a little popup toolbar that comes up when you move the mouse to the edge of the screen. The background of t