Issue with email body size exceeding 4000 characters in Apex

Hi
We are getting "ORA-01403: no data found" error in our apex application whenever the the email body size exceeds 4000 characters. When the content of the email body are edited to reduce the size, it is working fine.
In our application, the item details will be emailed as part of email body and when the number of items are more, the size of the email body exceeds 4000 characters and when we try to send email of these details we are getting "ORA-01403: no data found" error.
Need your help to know if there is any way in apex to handle this issue and to send email with size exceeding 4000 characters from apex application.
Please advice.
Regards,
Sri

>
Update your forum profile with a real handle instead of "user13394362".
ALWAYS include the following information with the initial question:
<li>APEX version
<li>DB version and edition
<li>Web server architecture (EPG, OHS or APEX listener)
<li>Browser(s)/versions(s) used
<li>Theme
<li>Templates
<li>Region type
I am using APEX_MAIL.SEND procedure from apex application to send the mail. The argument P_BODY_HTML which holds the email body content is of VARCHAR2 datatype and it has a limit of 4000 characters. So I am looking for a way to send the mail through APEX_MAIL.SEND even if the email body size exceeds 4000 characters.As (somewhat telegraphically) pointed out above, <tt>apex_mail.send</tt> is overloaded to accept either <tt>VARCHAR2</tt> or <tt>CLOB</tt> <tt>p_body_html</tt> parameters. Use a <tt>CLOB</tt> <tt>p_body_html</tt> parameter.
Please consult the documentation before posting questions here.

Similar Messages

  • Email Integration Scenario - Issue with email body content

    Hi All,
    We have an Email to File Scenario. PI is connected to Outlook server using Sender Mail Channel using POP3. We are able to fetch and display emails correctly for most of the received emails.
    However we notice that for Email sent from few Mail server like Yahoo mail, Gmail, Hotmail, we are not getting the Email content correctly.
    Issue is happening with Emails sent in HTML/Rich text format (containing Formatting and without any attachments). In the receiver system we see the email is converted to Plain text format. If the same email is sent with some attachment / Embedded Image, we get all the Formatting correctly in Receiver System.
    A closer look at Pimon we found the following:
    1. When Email is sent with Formatting (without any attachment/ image) in Pimon we see that it creates 2 Payloads (screenshot attached)
    2. The First Payload - MainDocument contains the Email content in XML format, but is missing the Email formatting data in it.
    3. The other Payload - ([email protected]) contains the actual Formatted Email Content.
    Not sure why the formatting data is missing from MainDocument. Instead its coming in other payload. Due to this we are not able to display correct data at receiver end as we parse the MainDocument as our Input Payload Stream
    Note: We cannot use payload swap bean, as it will swap the data for all the incoming emails which we don't want.
    Anyone faced similar issue? Steps to get proper formatting data in MainDocument..
    Suggestions / Inputs will be highly appreciated.
    Thanks,
    Azhar

    Azhar,
    We cann't influence the behavior of Gmail, Hotmail. But have to get HTML as main payload, so we have to swap payload (not always, in some cases based on a condition). Please try below Java mapping. In Operational Mapping set "Read Attachments".
    package javaapplication1;
    import java.io.*;
    import com.sap.aii.mapping.api.*;
    import java.util.Collection;
    public class NewClass6 extends AbstractTransformation {
        @Override
        public void transform(TransformationInput transformationInput, TransformationOutput transformationOutput) throws StreamTransformationException {
            try {
                InputStream inputstream = transformationInput.getInputPayload().getInputStream();
                OutputStream outputstream = transformationOutput.getOutputPayload().getOutputStream();
                byte[] b = new byte[inputstream.available()];
                inputstream.read(b);
                //Loop over attachments and if attachment name starts with 'payload-' swap it with main payload. Edit below logic as needed.
                Collection<String> listAtt = transformationInput.getInputAttachments().getAllContentIds(true);
                for (String att : listAtt) {
                    if (att.startsWith("payload-")) {
                        b = transformationInput.getInputAttachments().getAttachment(att).getContent();
                outputstream.write(b);
            } catch (Exception exception) {
                getTrace().addDebugMessage(exception.getMessage());
                throw new StreamTransformationException(exception.toString());

  • Query in 10g DB gives error when size of element exceeds 4000 characters?

    I used this query give in this thread Need help in reading a _fmb.XML and writing the item properties to a table
    select x1.item_name
         , x1.item_type
         , x2.property
         -- to convert back entities such as
    to their character values :
         , utl_i18n.unescape_reference(x2.property_value) as property_value
         -- parent information :
         , x1.parent_item_name
         , x1.parent_item_type
    from xmltable(
           xmlnamespaces(default 'http://xmlns.oracle.com/Forms', 'http://xmlns.oracle.com/Forms' as "def")
         , 'for $i in /Module/descendant::*[@def:Name]
            return element item {
              attribute item_name {data($i/@def:Name)}
            , attribute item_type {local-name($i)}
            , attribute parent_item_name {data($i/parent::*/@def:Name)}
            , attribute parent_item_type {local-name($i/parent::*)}
            , $i
           passing xmltype(bfilename('TEST_DIR','length_test_fmb.xml'), nls_charset_id('AL32UTF8'))
           columns item_name         varchar2(50) path '@item_name'
                 , item_type         varchar2(50) path '@item_type'
                 , parent_item_name  varchar2(50) path '@parent_item_name'
                 , parent_item_type  varchar2(50) path '@parent_item_type'
                 , item              xmltype      path '.'
         ) x1
       , xmltable(
           xmlnamespaces(default 'http://xmlns.oracle.com/Forms', 'http://xmlns.oracle.com/Forms' as "def")
         , 'for $i in /item/*/attribute::def:*
            let $propname := local-name($i)
            where $propname != "Name"
            return element p {
              element name {$propname}
            , element value {data($i)}
           passing x1.item
           columns property       varchar2(50)  path 'name'
                 , property_value varchar2(4000) path 'value'
        ) x2
    ;This works perfectly, but I tried a form which has a program unit which exceeds 4000 characters, i.e. I converted a fmb to xml, I.E. PROPERTY VALUE. When you run the query then you get error "function returned value too large".
    I tried changing the VARCHAR2 to CLOB but then you get another error.
    We cannot migrated to 11g as yet, so how to handle this in 10g?
    Any help would be greatly appreciated.
    Edited by: Channa on Oct 25, 2011 6:40 AM

    Hi Channa,
    I should have mentioned it in the previous thread, a sound approach to the overall requirement would be to use object-relational storage for loading XML documents in the database.
    You can read more here : http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb03usg.htm#g1055369
    However, that's not possible if we use the DUMP=ALL option to convert Forms files to XML because the generated files do not conform to the Forms XML schema.
    So unless you decide to use DUMP=OVERRIDDEN, you're stuck with the current situation.
    If I remember correctly, the ability to project large strings as CLOB with XMLTable was added in version 10.2.0.4.
    You're not out of options though.
    Here are two, one being "dirtier" than the other...
    1) Divide the property value into multiple chunks of 4000 characters (or less if the db uses a multi-byte character set), then rebuild the string as CLOB in the SELECT clause :
    select x1.item_name
         , x1.item_type
         , x2.property
         , to_clob(utl_i18n.unescape_reference(x2.property_value1)) ||
           to_clob(utl_i18n.unescape_reference(x2.property_value2)) as property_value
         , x1.parent_item_name
         , x1.parent_item_type
    from xmltable(
           xmlnamespaces(default 'http://xmlns.oracle.com/Forms', 'http://xmlns.oracle.com/Forms' as "def")
         , 'for $i in /Module/descendant::*[@def:Name]
            return element item {
              attribute item_name {data($i/@def:Name)}
            , attribute item_type {local-name($i)}
            , attribute parent_item_name {data($i/parent::*/@def:Name)}
            , attribute parent_item_type {local-name($i/parent::*)}
            , $i
           passing xmltype(bfilename('TEST_DIR','module2.xml'), nls_charset_id('AL32UTF8'))
           columns item_name         varchar2(50) path '@item_name'
                 , item_type         varchar2(50) path '@item_type'
                 , parent_item_name  varchar2(50) path '@parent_item_name'
                 , parent_item_type  varchar2(50) path '@parent_item_type'
                 , item              xmltype      path '.'
         ) x1
       , xmltable(
           xmlnamespaces(default 'http://xmlns.oracle.com/Forms', 'http://xmlns.oracle.com/Forms' as "def")
         , 'for $i in /item/*/attribute::def:*
            let $propname := local-name($i)
            let $propval := data($i)
            where $propname != "Name"
            return element p {
              element name {$propname}
            , element value1 {substring($propval,1,4000)}
            , element value2 {substring($propval,4001,4000)}
           passing x1.item
           columns property        varchar2(50)   path 'name'
                 , property_value1 varchar2(4000) path 'value1'
                 , property_value2 varchar2(4000) path 'value2'
        ) x2
    ;2) Output the property value as a text() node (XMLType datatype) and serialize as CLOB in the SELECT :
    select x1.item_name
         , x1.item_type
         , x2.property
         , dbms_xmlgen.convert(x2.property_value.getclobval(),1) as property_value
         , x1.parent_item_name
         , x1.parent_item_type
    from xmltable(
           xmlnamespaces(default 'http://xmlns.oracle.com/Forms', 'http://xmlns.oracle.com/Forms' as "def")
         , 'for $i in /Module/descendant::*[@def:Name]
            return element item {
              attribute item_name {data($i/@def:Name)}
            , attribute item_type {local-name($i)}
            , attribute parent_item_name {data($i/parent::*/@def:Name)}
            , attribute parent_item_type {local-name($i/parent::*)}
            , $i
           passing xmltype(bfilename('TEST_DIR','module2.xml'), nls_charset_id('AL32UTF8'))
           columns item_name         varchar2(50) path '@item_name'
                 , item_type         varchar2(50) path '@item_type'
                 , parent_item_name  varchar2(50) path '@parent_item_name'
                 , parent_item_type  varchar2(50) path '@parent_item_type'
                 , item              xmltype      path '.'
         ) x1
       , xmltable(
           xmlnamespaces(default 'http://xmlns.oracle.com/Forms', 'http://xmlns.oracle.com/Forms' as "def")
         , 'for $i in /item/*/attribute::def:*
            let $propname := local-name($i)
            where $propname != "Name"
            return element p {
              element name {$propname}
            , element value {data($i)}
           passing x1.item
           columns property        varchar2(50)   path 'name'
                 , property_value  xmltype        path 'value/text()'
        ) x2
    ;Edited by: odie_63 on 25 oct. 2011 17:03
    Edited by: odie_63 on 25 oct. 2011 17:04

  • Execute a DML query its length exceeds 4000 characters with execute immediate statement.

    I want to execute a DML query with execute immediate statement. That DML query length exceeds 4000 characters. This query has Xquery related conditions, i can not split the query. when i tried execute it is giving "string literal too long".  I tried with DBMS_SQL.Parse() and DBMS_SQL.Execute also, but it is giving same error. I have to execute this DML query inside a Procedure. Please help me to resolve this. We are using oracle 10g version
    Thanks & Regards,
    K.Kedarnadh

    Actually Query is a dynamic query. Query length will exceeds if the no of domains\domain values \products exceeds. Any way Below one is current dynamic query, which is generated within procedure
    SELECT
      IVT.ID_IVT
        ,IVT.ID_INS_IVT
      ,EXTRACTVALUE(IVT.DOCUMENT_IVT,'//productName/text()') AS PRODUCTNAME
      ,EXTRACTVALUE(IVT.DOCUMENT_IVT,'//elementName/text()') AS INSTANCENAME
      ,EXTRACTVALUE(IVT.DOCUMENT_IVT,'//elementInternalName/text()') AS INTERNALNAME
        ,CTG.NAME_CTG
        ,CTR.NAME_CTR
        ,MDL.NAME_MDL
      ,IVT.REEDIT_FLAG_IVT
        FROM  VARIATION_IVT IVT INNER JOIN CATEGORY_CTG CTG ON CTG.ID_CTG=IVT.ID_CTG_IVT
      AND IVT.STATUS_IVT='Active' AND IVT.DELETE_FLAG_IVT=0 AND IVT.ID_PRJ_IVT=1
      AND  IVT.DOCUMENT_IVT.existsnode('.//domain[domainName="Jurisdictions" and (domainValue="Delhi" or domainValue="Bangladesh" or domainValue="Mumbai" or domainValue="India" or domainValue="Pakistan" or domainValue="Nepal" or domainValue="Maldives" or domainValue="Kolkata" or domainValue="Bhutan" or domainValue="Chennai" or domainValue="ALL")]')=1 AND  IVT.DOCUMENT_IVT.existsnode('.//domain[domainName="Channels" and (domainValue="Agents" or domainValue="SBI" or domainValue="Maruti" or domainValue="Direct" or domainValue="CitiFinancial" or domainValue="SCB" or domainValue="BankAssurance" or domainValue="CitiBank" or domainValue="Employees" or domainValue="GE" or domainValue="Brokers" or domainValue="Telemarketing" or domainValue="Agency" or domainValue="ALL")]')=1 AND  IVT.DOCUMENT_IVT.existsnode('.//domain[domainName="ModeofDelivery" and (domainValue="Walkin" or domainValue="Internet" or domainValue="ALL")]')=1 AND  IVT.DOCUMENT_IVT.existsnode('.//context[(productName="ALL" or productName="A009" or productName="A010" or productName="A046" or productName="AccidentShieldClassic" or productName="AccidentShieldOnline" or productName="AM01" or productName="AM02" or productName="AME_Cancellation" or productName="ARHG" or productName="ARPA" or productName="B003" or productName="B004" or productName="B007" or productName="B008" or productName="B009" or productName="B010" or productName="B012" or productName="B013" or productName="B015" or productName="B016" or productName="B017" or productName="BC04_PA" or productName="BC06_FDP" or productName="BC06_PA" or productName="BC09" or productName="BC10" or productName="BC12" or productName="BC13" or productName="BF03" or productName="BS01" or productName="BS02" or productName="C017" or productName="C035" or productName="C036" or productName="C037" or productName="C038" or productName="C040" or productName="C041" or productName="C041Gold" or productName="C041New" or productName="C045HomeContents" or productName="C048" or productName="C049" or productName="C054" or productName="C057" or productName="C060Building" or productName="C060Contents" or productName="C060FDP" or productName="C061Building" or productName="C061Contents" or productName="C062" or productName="C063" or productName="C067" or productName="C070" or productName="C072" or productName="C074" or productName="C077" or productName="C081" or productName="C082" or productName="C087" or productName="C088" or productName="CITIFOREVER" or productName="CITISECURE" or productName="CITICHILDPLAN" or productName="D001" or productName="DB01" or productName="DD01" or productName="DD02" or productName="DD03" or productName="DD04" or productName="DD09" or productName="DD10" or productName="E005" or productName="E011" or productName="E016" or productName="E020" or productName="E030" or productName="E034" or productName="E040" or productName="E041" or productName="E045HCP" or productName="E045HSP" or productName="E049" or productName="E049New" or productName="E052" or productName="E053" or productName="E054FDP" or productName="E055" or productName="E056" or productName="E057" or productName="E058" or productName="E061" or productName="E061BATCH" or productName="E062" or productName="E063" or productName="E064HCP" or productName="E064HSP" or productName="E066" or productName="E069" or productName="E073" or productName="E075" or productName="E076" or productName="E088" or productName="E090" or productName="E093A" or productName="E093B" or productName="E095" or productName="E099A" or productName="E099B" or productName="E106" or productName="E107" or productName="E110" or productName="E112" or productName="E114" or productName="E115" or productName="E116" or productName="F001" or productName="FamilyHealthInsurance" or productName="FamilyHospitalBenefits" or productName="FamilyHospitalisationCoverBenefit" or productName="G001" or productName="G002" or productName="HealthShieldOnline" or productName="Health_B005" or productName="Health_S057" or productName="HealthSheild" or productName="HealthWalkin" or productName="HomeContentOnline" or productName="HomeShieldOnline" or productName="HomeShieldWalkin" or productName="HospitalCashOnline" or productName="J001" or productName="J008" or productName="K001" or productName="KV02" or productName="LC03" or productName="ML01" or productName="MP02" or productName="MP03" or productName="MR01" or productName="O005" or productName="PO01" or productName="PO02" or productName="PO03" or productName="PO04" or productName="PO05" or productName="PO06" or productName="RR02" or productName="RR03" or productName="RR04" or productName="S006" or productName="S033" or productName="S049" or productName="S051" or productName="S054" or productName="S057" or productName="S060" or productName="S061" or productName="S065" or productName="S065TM" or productName="S068" or productName="S076" or productName="S077" or productName="S079" or productName="S080" or productName="S081" or productName="S084" or productName="S085" or productName="S086" or productName="S087" or productName="S088" or productName="S091" or productName="S092" or productName="S093" or productName="S094" or productName="S095" or productName="S097" or productName="S098" or productName="S099" or productName="S100" or productName="S101" or productName="S102" or productName="S103" or productName="S104" or productName="S106" or productName="S107" or productName="S108" or productName="S109" or productName="S110" or productName="S111" or productName="S113" or productName="SCBNAC" or productName="SF02" or productName="SS01" or productName="SS02" or productName="SUNFHM" or productName="SurgicalShield" or productName="TD01" or productName="TD02" or productName="TP01" or productName="U002Building" or productName="U002Contents" or productName="U004Building" or productName="U007" or productName="U009" or productName="U013" or productName="U014" or productName="U015" or productName="U016" or productName="V001" or productName="V002" or productName="V005" or productName="V006" or productName="V008" or productName="W008" or productName="W020" or productName="W021" or productName="W022" or productName="W023" or productName="W024" or productName="W026" or productName="W027" or productName="W028" or productName="W029" or productName="W105" or productName="W106" or productName="WI01" or productName="WI02" or productName="WI03" or productName="WI07" or productName="WI08" or productName="WI09" or productName="WI10" or productName="WI11" or productName="WI12" or productName="WI13" or productName="WI14" or productName="WI17" or productName="WI20" or productName="WI21" or productName="WI21_Health" or productName="WI23" or productName="WI24" or productName="WI26" or productName="WI30" or productName="WI31" or productName="WI33" or productName="WI34" or productName="X001" or productName="X002" or productName="X003" or productName="X004" or productName="X005" or productName="X008" or productName="Y001" or productName="Y007" or productName="Y009" or productName="Y010" or productName="Y011" or productName="Y011H" or productName="Y020" or productName="Y020N" or productName="Z008" or productName="ZI001")]')=1
      INNER JOIN CENTER_CTR CTR ON CTR.ID_CTR=CTG.ID_CTR_CTG
        INNER JOIN MODEL_MDL MDL ON  MDL.ID_MDL=CTR.ID_MDL_CTR

  • Sign in issue with email

    i am still getting a issue wtih my email sign in i have click twice on the sign in box . i am using the new bt home page both on w8 and the desktop and it does it on both email accounts my primary acc/ and sub acc. my sub acc email address i use to sign into my microsoft account. i have run bt desktop help pc heath check and it come back with cache size/clear history/ auto detect settings. so i clicked on the box to clear them and still got a issue with email sign in.

    I have a large number of apps that show me what happens when accessing  web-sites and when accessing BT yahoo I have had up to ---14--yes that's right--14 adverts blocked. Also in every case Yahoo is tracking you. These cause problems with the site. Since blocking them things have got better. I say this because I post on a popular US website which has multiple adverts including pop ups and video ads which badly effected the stability of that web-site-many complaints. Now its toned them down complaints have stopped. Try telling Yahoo to stop its ads and see where it gets you.    

  • I am having some issues with email. My iphone shows 4 emails as unread yet when I look thru all my emails, both on my iPhone5 and my outlook there are no unread emails. How do I clear this up on my phone?

    I am having some issues with email. My iphone shows 4 emails as unread yet when I look thru all my emails, both on my iPhone5 and my outlook there are no unread emails. How do I clear this up on my phone?

    Email does not and has never synced between the iPhone and the computer. It sounds like you may have had your PC set up to use POP3 for e-mail, which will download e-mail from the server and delete it, causing it to vanish from your phone if the phone was set up for IMAP. IMAP provides full synchronization between the server and clients. What you delete on one will vanish from the others. This is the preferred method of managing e-mail as it prevents e-mail from being downloaded, for example, on a PC and making it inaccessible on your phone.

  • We have been having some issues with Email notifications not going out and getting hung up in SOST.  Can anyone please tell me whether we can use Solution Manager to monitor outbound emails?

    We have been having some issues with Email Notifications not going out and getting hung up in SOST. Can anyone please tell me whether we can use SAP Solution Manager to monitor outbound email?

    What version of Solman are you using ?  Check in t-code Rz20 >ccms monitor template of satelliate system , there would be option to monitor your outbound mails .You can sutomise your monitorig metrics in solman 7.1  else in 7.01 you use auto reaction methods to monitor .
    Regards
    Jay

  • Email Smartforms with Email Body

    Hello SAP Community,
    Sorry if my question has been asked before, but I did not find any answeres yet.
    I am using BO SOFMFOL and these FM to send my smartforms to external email:
    - CREATE_RECIPIENT_OBJ_PPF
    - CREATE_SENDER_OBJECT_PPF
    - SO_USER_AUTOMATIC_INSERT
    This is working fine.  My question is: How do you add an Email  Body?  I am on ECC 6.0.
    Appreciate any inputs on this issue.
    Many thanks,
    Kim

    Hi Kim,
    I had a requirement to convert the out put into PDF format and send an email using the function module SO_NEW_DOCUMENT_ATT_SEND_API1.
    I am providing my coding, hope it helps: 
    form SEND_EMAIL .
    DATA:   t_mailpack   TYPE sopcklsti1 OCCURS 0 WITH HEADER LINE,
              t_mailhead   TYPE solisti1   OCCURS 0 WITH HEADER LINE,
              t_mailbin    TYPE solisti1   OCCURS 0 WITH HEADER LINE,
              t_mailtxt    TYPE solisti1   OCCURS 0 WITH HEADER LINE,
              t_mailrec    TYPE somlreci1  OCCURS 0 WITH HEADER LINE.
      DATA: wa_maildata    TYPE sodocchgi1,
            l_filename(50) TYPE c,
            l_fldname(30)  TYPE c,
            l_fldval(100)  TYPE c,
            l_lines        TYPE i,
            l_text         TYPE text128 .
      DATA: w_email_subrc  TYPE i.
      DATA: w_ship like vbfa-vbeln.
      CLEAR: wa_maildata,
             t_mailtxt,
             t_mailbin,
             t_mailpack,
             t_mailhead,
             t_mailrec.
      REFRESH: t_mailtxt,
               t_mailbin,
               t_mailpack,
               t_mailhead,
               t_mailrec.
    *-- Fill output file
    *- Fill header
      CLEAR: t_mailbin.
    t_mailbin[] = pdf_tab[].
      t_mailbin[] = it_att[].     "Uthaman
    *This line is added to get the shipment no in Subject Line
    SELECT SINGLE * FROM vbfa WHERE vbelv EQ nast-objky
                                AND vbtyp_v EQ c_vbtyp_v_j
                                AND vbtyp_n EQ c_vbtyp_n_8.
    w_ship = vbfa-vbeln.
    shift w_ship left deleting leading '0'.
    *-- File name
    if nast-kschl EQ 'ZFPL'.
      CLEAR l_filename.
      CONCATENATE 'Packing List -'
                  sy-datum4(2) sy-datum6(2) sy-datum(4) '.PDF' INTO l_filename.
    *-- Creation of the document to be sent File Name
      wa_maildata-obj_name = 'Packing List'.
    *-- Mail Subject
      CONCATENATE l_filename '-' 'Shipment No -' w_ship INTO wa_maildata-obj_descr SEPARATED BY space.
    *-- Mail Contents
      t_mailtxt-line = 'Packing List'.
      APPEND t_mailtxt.
    ENDIF.
    if nast-kschl EQ 'ZFBA'.
      CLEAR l_filename.
      CONCATENATE 'Booking Advice -'
                  sy-datum4(2) sy-datum6(2) sy-datum(4) '.PDF'
                  INTO l_filename.
    *-- Creation of the document to be sent File Name
      wa_maildata-obj_name = 'Booking Advice'.
    *-- Mail Subject
      CONCATENATE l_filename '-' 'Shipment No -' w_ship INTO wa_maildata-obj_descr SEPARATED BY space.
    *-- Mail Contents
      t_mailtxt-line = 'Packing List'.
      APPEND t_mailtxt.
    ENDIF.
    *-- Prepare Packing List
    *-- Write Packing List (Main Subject)
      CLEAR: l_lines, t_mailpack.
      DESCRIBE TABLE t_mailtxt LINES l_lines.
    READ TABLE t_mailtxt INDEX l_lines.
      t_mailpack-doc_size = ( l_lines - 1 ) * 255 + STRLEN( t_mailtxt ).
    CLEAR t_mailpack-transf_bin.
      t_mailpack-transf_bin = ' '.
      t_mailpack-head_start = 1.
      t_mailpack-head_num = 0.
      t_mailpack-body_start = 1.
      t_mailpack-body_num = l_lines.
      t_mailpack-doc_type = 'RAW'.
      APPEND t_mailpack.
      t_mailhead = l_filename.
      APPEND t_mailhead.
    *-- Write Packing List (Attachment)
      CLEAR: l_lines, t_mailpack.
      DESCRIBE TABLE pdf_tab[] LINES l_lines.
    READ TABLE pdf_tab INDEX l_lines.
      t_mailpack-doc_size = ( l_lines - 1 ) * 255 + STRLEN( t_mailbin ).
      t_mailpack-transf_bin = 'X'.
      t_mailpack-head_start = 1.
      t_mailpack-head_num = 1.
      t_mailpack-body_start = 1.
      t_mailpack-body_num = l_lines.
      t_mailpack-doc_type = 'PDF'.
      t_mailpack-obj_name = l_filename.
      t_mailpack-obj_descr = l_filename.
      t_mailpack-obj_langu = 'E'.
      APPEND t_mailpack.
    *-- Set recipients
    tables :  ztotcemail.
    SELECT SINGLE * FROM vbfa WHERE vbelv EQ nast-objky
                                AND vbtyp_v EQ c_vbtyp_v_j
                                AND vbtyp_n EQ c_vbtyp_n_8.
    CLEAR vttk.
    SELECT SINGLE * FROM vttk WHERE tknum EQ vbfa-vbeln.
    SELECT SINGLE * FROM ztotcemail WHERE tplst = vttk-tplst
                                      AND lifnr = vttk-tdlnr.
    IF SY-SUBRC EQ 0.
      t_mailrec-receiver = ztotcemail-smtp_addr. .
      t_mailrec-rec_type  = 'U'.
      APPEND t_mailrec.
    ENDIF.
    **-- Sending the document
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = wa_maildata
          put_in_outbox              = 'X'
         commit_work                = 'X'  " N-16
        TABLES
          packing_list               = t_mailpack
          object_header              = t_mailhead
          contents_bin               = t_mailbin[]
          contents_txt               = t_mailtxt[]
          receivers                  = t_mailrec
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          operation_no_authorization = 4
          OTHERS                     = 99.
      w_email_subrc = sy-subrc.
      IF sy-subrc EQ 0.
        MESSAGE s000(zotc) WITH 'Email output sent successfully'.
      ELSE.
        MESSAGE s000(zotc) WITH 'Can not send email output'.
      ENDIF.
    endform.                    " SEND_EMAIL
    Regards,
    Kittu

  • Exchange 2010 issues with emails attachments on phones

    ok i have an issue with exchange 2010 server 2008 r2
    i currently have 7 phones running activesync
    only one phone has a problem sending attachments to other phones in the company....
    however the phone can send regular email to any of the other phones without any problems.
    I have exhausted my abilities to figure out what is going on and at this point Im lost which has never happened before
    I mirrored the setting on another phone to the one with the problems and still no difference
    I also changed to the readahead size notifications to 20mb
    and unrestricted retrieval size
    both phones are galaxy S3's
    I am leaning towards a configuration error
    anyone have any ideas i can try?

    Hi 
    I think most probably it could be a problem with the Android device and not to analyze on readahead
    size notifications since this occurs only on a particular device 
    As a part of testing please follow the below things
    1) Try to configure active sync profile for different user on that device and try sending email with attachments and see the results.
    2) Try to configure profile on a different mobile for that affected user account and see the results.
    Please mark as helpful if you find my contribution useful or as an answer if it does answer your question.That will encourage me - and others - to take time out to help you.
    Regards, 
    Sathish
    Sathish

  • Multiple OS issues with Email set up; "People" ; Synching phone not working as advertised

    Nokia Lumia 822
    Purchased yesterday (2/10/13)
    So far I have spent 14 hours attempting to resolve what feel like endless errors and bugs. If I can;t get these resolved in the next 48 hours the phone goes back. I am so disappointed  I waited especially for this phone - heard great stuff. My experience is it sucks. Worst phone ever.
    1) POP3 email accounts are non functional. I have attempted to set up and delete and re-set up now multiple times. Each time presents a fresh new nightmare.
    Issue 1 - Email account  receives email but will not send. Error message goes something like  <" Problem sending message. Message failed to send. Problem with Files or Data on your device." >
    Issue 2 - Tapping email + accounts sends me back to start screen cannot even set up account
    Issue 3 - I  get to add email account I enter my information but no account is created
    Issue 4 - I set up an account and I get an error message stating my information cannot be found.
    Issue 5 - trying to open email from start screen just resets to start screen  over and over and over NEVER opens the account.
    These are deal breaker issues. I have multiple email accounts on different platforms. If I cannot access my various emails AND send from those accounts this is NOT the phone for me.
    2) PEOPLE does not function. ALSO multiple various issues and never the same one twice.
    Issue 1 - I tap on a contact and get sent to the start screen over and over and over  and over again.
    Issue 2 I tap on a contact and the phone freezes and wont respond unless I pull the battery
    Issue 3 I open a contact and make an edit, save the contact but the change is never reflected in the list
    Issue 4 I try and search for a contact and the search freezes - only option is to return to start screen
    3) Scrolling thru any APP randomly takes me back to start screen.
    I dread attempting to synch Outlook calendar and contacts on my PC to hotmail - especially if I can't even set up email. And it seems like even holding it will jettison me out of anything I'm doing and back to start screen.
    If I can't get these issues resolved.  look like I'll be going  back to my 3 year old Blackberry Bold which performed flawlessly. It may not be the most impressive phone out there but it did what I needed it to do with out any issues.

    Interesting Twitter conversation VZWSupport on Twitter.  It was suggested to try a HARD reset - and if that doesn't work take the phone back.
    Since I don;t have anything set up yet  that's my solution.
    I see a BlackBerry Z10 in my future

  • Photo Book - issue with generating full size picture in PDF file

    Need some assistance here.
    I have created a photo book that I would like to order. In the middle of the book I have 2 pages that contain a full size picture on each of the pages. When I generate the PDF file one of these two pictures do not generate correctly leaving an incorrectly rendered rectangle in the bottom left hand corner. 80% of the time it is on of the 2 large 8x10 pictures, the other 20% it is the other 8x10 picture. Aperture does indicate the dpi is large enough to support a quality 8x10 photo.
    I have exported jpeg files for each of these pictures and there were no problems. I am not sure by I have this problem in creating the PDF. Does any one see a potential issue with the book? When I order the photo book is it done through he PDF file or are the pictures sent in?
    Because of the issue I am cautious to order the Photo Book, but would like to do so.
    Any thought or feedback? Is this something that will come through as problem with the photo book as well?
    Thanks

    Hi ejg999,
    I have a similar problem running 10.5.2/ Aperture 2.0 trial.
    My 15800*4700 pixel (19.8mb) panorama was completely screwed up when printing the book to PDF. I did not span the pict over 2 pages as the center part would not be visible in the book's fold. I created 2 full size pages, resized the frames and adjusted their position.
    The print just shows hundreds of small squares, some seem ok, some are blue, some are rendered partially. Totally unusable.
    The physical memory was not the problem as I had at least 500mb free during the printing operation.
    I printed the book twice: same problem. I thought shutting down Aperture would resolve the error. but all my pics were gone. And the Time Machine did not backup while Aperture was running (still a bug). Aaaaaarghhhh.
    I managed to restore my work. I will try to create a smaller copy of the panorama and try to print.
    BTW, what is the size of your photo creating the problems?
    regards
    FranzMacN

  • Issue with email sync

    I have configured 5 gmail accounts, 3 yahoo accounts and 1 live account. Everything was working fine until a day came that I was forced to change the password of all my G accounts. I changed it in my phone also but since then I cant sync just 1 gmail account. Not that I cant sync but its not loading the mails in the viewer. Email app works fine with other accounts. I tried deleting all the account and re-created all the accounts still its not working. I tried deleting it from email.nokia.com and STILL its not working. a 3 months ago I had the same issue with another G account. What I did then was I stopped using the Email app. I sstarted using it only a 3 weeks ago as I really needed a client on my phone. Wish someone could help me out from this really awkward situation

    you do realize there isnt an ios 7.7.1 right?

  • Issue with emails being deleted from my Yahoo mail folders

    Hi, I am experiencing an issue where emails are being deleted from my Yahoo mail folders when the weekly Sunday night purge of the Yahoo Trash folder is carried out by Yahoo. These are mails that have been moved from my inbox via the iphone mail app.
    I have a similar problem with Outlook 2010 on my laptop but not with Outlook 2003 on my desktop.
    When I move the emails from my inbox I have noticed that using Outlook 2003, the moved email is left in my inbox in "strikethrough" mode whereas on Outlook 2010 it is deleted from my inbox. I subsequently purge the marked email from my inbox in 2003.
    I am able to see and access the emails in the folder I have moved them to until after midnight on Sunday when they dissappear. The emails moved via 2003 are ok and not lost.
    Funnily enough when using an earlier version of the iphone mail app I remember that I could see emails in "strikethrough" mode in Outlook 2003 when they had been moved via the iPhone mail app but you don't see that now.
    It feels like some sort of pointer issue to me ...... any ideas on how to stop this happening?.

    This is now fixed !!!! I am not sure how though :-((
    I reported the problem to Yahoo and in the process of them investigating the issue my sub-folders suddenly became invisible via my IMAP connection and then also were invisible on-line following a log out and a log in. After my initial panic, I contacted Yahoo who were able to restore my complete account. Since then, the problem has gone away.
    I have been testing this for two weeks and all is working perfectly from whatever device I use to connect to my mail (IMAP or via my browser).
    Phew!

  • Issue with Email

    Hello,
    I have set up an email account on the MAC program Mail. The email address originates from Go Daddy. The email program is up and running, able to send and receive emails. When running the account through a spam checker, the following message is received:
    [SPF] benevolenceinn.com does not allow your server 173.201.192.105 to use [email protected]
    Sender Policy Framework (SPF) is an email validation system designed to prevent email spam by detecting email spoofing, a common vulnerability, by verifying sender IP addresses.
    What we retained as your current SPF record is:
    "v=spf1 a mx include:secureserver.net ~all"
    More information about this error:
    benevolenceinn.com: Junk encountered in mechanism 'ptr:68.178.252.102'
    In addition, [Sender ID] benevolenceinn.com does not allow your server 173.201.192.231 to use [email protected], is also stated. This is the same message but for "Sender ID" as well.
    I spoke to Go Daddy and they stated that it could be an issue with MAC mail.  When I spoke to Apple, they suggested that the issue lies with my home IP address and not Go Daddy or Apple.  The IP address of Go Daddy is listed above but the tec online said that my home ip would be the real issue.  I spoke to Time Warner and they said there is absolutely no issue with my IP.
    Any tips on how to solve this?
    Thank you!
    Shane

    It could be that the server is seeing your source address as being "masked" by routing through GoDaddy. In other words, when you originate your mail from your own IP, it then passes through GoDaddy, and the recipient sees this as a spoofing attempt.
    I would suggest the problem isn't with you or GoDaddy but maybe the way they have their servers set up. I was having trouble not getting responses to a group I was trying to join and when I contacted one of the admins directly they told me that Verizon was blocking their site and marking their setup mails as spam. It was hardly a dubious group, someone at Verizon entered the wrong IP address into a list of "bad guys."

  • Issues with email with AT&T ,

    Is anyone getting error messages using email with their iPhones and iPads with AT&amp;T
    The message says that you cannot get mail
    These is a problem with your username and/ or password. Just began a week ago last Thursday..
    I called AT&amp;T last weekend and they told me that there was a problem with their servers (I live in ct)
    And they would have it fixed in 24-48 hours. And it was not an issue with my 2 iPhone 4 s and I pad. People at work were also having problems..
    Called again a week later . They had No record of my call from the week before and know idea about a server issue.

    OK...so this post is strictly about wanting to send your contacts to the SIM. That capability is one at a time only. And there's a reason for that.
    The BB Address Book is robust, allowing you to have one name with multiple phone numbers and addresses. The SIM phonebook, on the other hand, is much less capable...if, for instance, you have one contact with three phone numbers in your BB Address Book, the SIM phonebook would require three separate entries to contain the same data (with the obvious duplication of the name on three separate records).
    So, I must ask...why on earth do you want to send your contacts to your SIM? There are much better methods for moving your contacts from the BB to somewhere else...
    Let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

Maybe you are looking for

  • Can I summarize data from a line item ODS into a higher summary level?

    Hello friends, 1) Can I summarize data from a line item ODS into a high summary level and store the results into another ODS?  If so, can you discuss the approach at a high level...i.e. whether or not a start up routine is needed? 2) Once data is sto

  • Using 'this' in a function

    I have a function ('checkDrop') which I call in 'onRelease' for several draggable MCs. At present I've hard coded each draggable MC , eg: drag2_mc.onRelease = function() { stopDrag(); checkDrop(); if (HITtest == 2 or HITtest == 1) { this.gotoAndStop(

  • Overlapping Graphs in Crystal Report

    We have a requirement of designing a drilldown for which we have used Group charts in Crystal report. Our requirement is to plot graphs on 2 different summary fields on the same level i.e we require that on change of Zone, graph should be shown for A

  • Edit Track Problem

    Whenever I edit a track (especially when adding album art) the song becomes either stretched or shortened by a few seconds. I have the latest version of iTunes and have even reinstalled it but that didn't help. I also tried searching for viruses but

  • How do i get the home icon back, facebook aswell?

    i got rid of the home icon and want to get the facebook icon too. also i have downloaded various things but how do i enable them to work, thanks