How can I to send an email with a longer than 50 characters subject?

I'm trying to send an email through an abap program ( report ), but when the email arrives to the SOST transaction the subject is cut to 50 characters. How can I send an email with a longer than 50 characters subject?

check this below code and do changes in ur report
FORM SEND_MAIL_SUPPORT  TABLES   P_EM_BODY
                        USING    P_TITLE.
*_ Start of the code to send an email notification
  DATA : ATTACH_REC TYPE I.
  DATA: OBJPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE,
        OBJHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE,
        OBJBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE,
        OBJTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE,
        DOC_CHNG LIKE SODOCCHGI1,
        TAB_LINES LIKE SY-TABIX.
Creation of the document to be sent
  DOC_CHNG-OBJ_NAME = 'Mat Attach'(010).
  DOC_CHNG-OBJ_DESCR = P_TITLE.
  APPEND LINES OF P_EM_BODY TO OBJTXT.
  DESCRIBE TABLE OBJTXT LINES TAB_LINES.
  READ TABLE OBJTXT INDEX TAB_LINES.
  DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
*Creation of the entry for the compressed document
  CLEAR OBJPACK-TRANSF_BIN.
  OBJPACK-HEAD_START = 1.
  OBJPACK-HEAD_NUM = 0.
  OBJPACK-BODY_START = 1.
  OBJPACK-BODY_NUM = TAB_LINES.
  OBJPACK-DOC_TYPE = 'RAW'.
  APPEND OBJPACK.
  DESCRIBE TABLE IT_ERROR LINES ATTACH_REC.
  IF ATTACH_REC GE '1'.
*Start of email attachement of internal table conversition
   APPEND LINES OF IT_ERROR TO OBJBIN.
WRITE: '----
' TO OBJBIN.
APPEND OBJBIN.
CLEAR OBJBIN.
CONCATENATE 'CCode.' 'A/CDocNum.' '  FYear.' 'DType.' 'PDate.' '  RefField.' INTO
             V_TEXT SEPARATED BY ' '.
APPEND V_TEXT TO OBJBIN.
CLEAR V_TEXT.
WRITE: '----
' TO OBJBIN.
APPEND OBJBIN.
CLEAR OBJBIN.
LOOP AT IT_ERROR.
CONCATENATE IT_ERROR-BUKRS IT_ERROR-BELNR IT_ERROR-GJAHR IT_ERROR-BLART
             IT_ERROR-BUDAT IT_ERROR-STATUS INTO V_TEXT SEPARATED BY '   '.
APPEND V_TEXT TO OBJBIN.
CLEAR V_TEXT.
ENDLOOP.
WRITE: '----
' TO OBJBIN.
APPEND OBJBIN.
CLEAR OBJBIN.
    DESCRIBE TABLE OBJBIN LINES OBJPACK-BODY_NUM.
    OBJPACK-TRANSF_BIN = 'X'.
    OBJPACK-HEAD_START = 1.
    OBJPACK-HEAD_NUM = 1.
    OBJPACK-BODY_START = 1.
    OBJPACK-DOC_SIZE = OBJPACK-BODY_NUM * 255.
    OBJPACK-DOC_TYPE = 'RAW'.
    OBJPACK-OBJ_DESCR = 'List of Error Documents'(012).  " Description
    APPEND OBJPACK. CLEAR OBJPACK.
  ENDIF.
  RECLIST-RECEIVER = S_EMAIL-LOW.
  RECLIST-REC_TYPE = 'U'.
  RECLIST-COPY = 'X'.
  APPEND RECLIST.
Sending the document
  CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
      DOCUMENT_DATA              = DOC_CHNG
      PUT_IN_OUTBOX              = 'X'
      COMMIT_WORK                = 'X'
    TABLES
      PACKING_LIST               = OBJPACK
      OBJECT_HEADER              = OBJHEAD
      CONTENTS_BIN               = OBJBIN
      CONTENTS_TXT               = OBJTXT
      RECEIVERS                  = RECLIST
    EXCEPTIONS
      TOO_MANY_RECEIVERS         = 1
      DOCUMENT_NOT_SENT          = 2
      OPERATION_NO_AUTHORIZATION = 4
      OTHERS                     = 99.
*CHECK SY-SUBRC = 0.
ENDFORM.                    " SEND_MAIL_SUPPORT

Similar Messages

  • How can I active  send by email button in reader

    Send by email button works perfectly in acrobat pro. But it does not work in reader.
    How can I active send by email button in reader?
    Please Suggest me......

    Thanks to join  in this field.
    I have got answer.

  • I've just subscribed to adobe exportpdf. Can I simply send an email with the converted file?

    I've just subscribed to adobe exportpdf. Can I simply send an email with the converted file?
    THanks in advance
    solromac

    I do not understand your question; what happens when you try?
    [topic moved to ExportPDF forum]

  • HT1918 How can I un-associate an email with my iTunes account?

    How can I un-associate an email with my iTunes account.

    You should be able to login here and remove/update the accounts that are linked to your account : https://appleid.apple.com - click 'Manage your Apple ID' on the right-hand side of that page and log into your account

  • Why can't I send an email with attachments?

    I've been trying to send an email with a biology review on it so that my mom can print it out but it keeps telling me that I can't send the email. The exact message is "To send this message, delete the current attachments and attach them again." I've done that ad it's still not working and giving me the same message. What do I do??

        jo1retired,
    Being able to send and receive email on your smartphone is one of the more important pieces to having a phone. We can certainly help you get everything up and running on the phone for you. Have you ever been able to send email from your cell phone? Do you have any other email accounts on the LG phone? Please share some additional information so that we can assist.
    CandiceH_VZW
    Follow us on Twitter @VZWSupport

  • How can I sync my company email with iCloud?

    I have my company email address synced with my iCal account but I want to sync with my iCloud account so it will be pushed to my iPad. How can I do this? Please and thank you!

    Yes, I am try isn't. To figure how to sync mail as well,  just a pop account.  It appears it his cannot be done. The response you received to just setup email directly on the device does not answer the question.  Yes, that is easy to do, but does not sync with devices which is the objective.  Are there more features coming from cloud??

  • How can I sync Outlook Express email with Nokia 58...

    Hello -
    I'd like to know if/how I can sync my works outlook express emails with my nokia 5800?  Not via a web browser but setting up the sync in the messages area.  All the sites/manuals I've searched are too vague and don't seem to offer any explanations on what I need to do specifically for outlook.
    Can anyone help?
    Many Thanks

    In general you don't sync with a mail client's local message store (such as the Outlook Express message store on your Work PC).  You generally sync to a mail server.
    So what you can do is find out which server your Outlook Express mail client is configured for on your PC, and then use the same server settings on your Nokia Phone.
    For further questions, you may want search in, and post to the Mail, Messaging & Browsing discussion forum.
    Lumia 920, Lumia 800
    Nokia N8-00 (NAM, Product Code: 059C8T6), Symbian Belle, Type RM-596, 111.030.0609
    Nokia 5800 XpressMusic (NAM, Product Code: 0577454) Software v51.2.007, Type RM-428

  • How can I unsync my default email with my notes app?

    Turning off notes under email warns that I will lose my note info from iPad. I just want to separate my Notes as personal and confidential. How can I do this?

    No app is required.                                               
    - If you previously turned on FIndMyiPod on the iPod in Settings>iCloud and wifi is on and connected go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone. If the iPod has been restored it will never show up.
    - You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
    - If not shown, then you will have to use the old fashioned way, like if you lost a wallet or purse.
    - Change the passwords for all accounts used on the iPod and report to police
    - There is no way to prevent someone from restoring the iPod (it erases it) using it.
    - Apple will do nothing without a court order                         
    Reporting a lost or stolen Apple product                              
    - iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • How can I sync my IMAC email with my Iphone

    I have two email accounts on my IMAC.  The one email account sync's with my phone but I don't remember how I did it so I can sync my second email account.

    You don't sync mail at all.
    The iphone retrieves it from the server just as you computer does.
    Just set the e-mail account up on the iphone:
    iPhone User Guide (For iOS 5.0 Software)

  • HT4865 how can i report a phishing email with an icloud address?

    I got an email purporting to be from Apple requesting my email user name and password for my iCloud account.  The return address is an iCloud.com address.  Obviously, I know it was a phishing email, but is there some way to forward it to Apple so they can see if it actually did  originate from an iCloud address?

    Hi Gail,
    I’m answering your question because I’ve received so many spoof/spam messages lately to my email address(es) at me.com. I decided to find out how to report them.
    Here’s what I found out:
    Suspicious email messages can be forwarded to one of the following;
    [email protected]
    [email protected]
    Make sure to include the long header.
    Long headers can be displayed using the menubar (see below)
    Then either copy & paste the long header or simply forward the entire message.
    Example of long header from a suspicious email:
    “From:   Kikki Howard <[email protected]>
      Subject:   Kiss to you
      Date:   June 9, 2013 4:21:21 PM PDT
      To:   [email protected]
      Return-Path:   <[email protected]>
      Received:   from nk11p00mm-smtpin004.mac.com ([xx.xxx.xxx.xxx]) by ms04574.mac.com (Oracle Communications Messaging Server 7u4-26.01(7.0.4.26.0) 64bit (built Jul 13 2012)) with ESMTP id <[email protected]> for [email protected]; Sun, 09 Jun 2013 23:21:21 +0000 (GMT)
      Received:   from hakahakajkfbczj.googlemoogl.tk ([91.191.18.62]) by nk11p00mm-smtpin004.mac.com (Oracle Communications Messaging Server 7u4-27.05(7.0.4.27.4) 64bit (built Apr 23 2013)) with SMTP id <[email protected]> for [email protected] (ORCPT [email protected]); Sun, 09 Jun 2013 23:21:21 +0000 (GMT)
      Received:   from nwk-txn-msbadger0204.apple.com (nwk-txn-msbadger0204.apple.com. [xx.xxx.x.xx]) by xx.xxx.x.xx with HTTP; Mon, 10 Jun 2013 01:21:21 +0200
      Original-Recipient:   rfc822;[email protected]
      X-Proofpoint-Virus-Version:   vendor=fsecure engine=2.50.10432:5.10.8626,1.0.431,0.0.0000 definitions=2013-06-09_07:2013-06-08,2013-06-09,1970-01-01 signatures=0
      X-Proofpoint-Spam-Details:   rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=14 phishscore=0 bulkscore=53 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1305010000 definitions=main-1306090279
      Dkim-Signature:   v=1; a=rsa-sha256; c=simple/simple; d=hakahakajkfbczj.googlemoogl.tk; s=hakahakajkfbczj; h=from:subject:date:to:content-type; bh=tL+/wJmQOT1qfRAmSggBixqXyEIqt839Zb4SbOAPNOM=; b=…lggV4PzuGc/TkDUNdlU=;
      Message-Id:   <[email protected]>
      Mime-Version:   1.0 (Apple Message framework v936)
      Content-Type:   multipart/mixed; boundary="-4277442969-183115831-7904244676=:70228 ”
    You can find more info at:
    http://support.apple.com/kb/HT4933?viewlocale=en_US
    http://support.apple.com/kb/TS4019
    b/r’s, ab/simsboynton

  • How can i use windows live email with photoshop elements 5.0

    How to use Windows Live email program with Photoshop Elements 5.0. The prefference only lets you use Outlook express.
    Any help please.
    Al
    [email protected]

    You've got the wrong forum, the Photoshop Elements forum is this way:
    http://forums.adobe.com/community/photoshop_elements

  • Why can't I send an email with my LG Optimus Exceed 2 phone?

    I have no problem receiving Verizon account emails but I am unable to send.

        jo1retired,
    Being able to send and receive email on your smartphone is one of the more important pieces to having a phone. We can certainly help you get everything up and running on the phone for you. Have you ever been able to send email from your cell phone? Do you have any other email accounts on the LG phone? Please share some additional information so that we can assist.
    CandiceH_VZW
    Follow us on Twitter @VZWSupport

  • Can not replly/send new email with mozilla?

    others have same problems?? I do not find anywhere ..where YOU have addressed/answered with solutions???? To this problem?

    What email client are you attempting to use?
    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back soon.

  • How can I sync my Verizon emails with my iPhone and iPad

    I am having a problem with emails, I  delete them on the iPhone and the iPad then a couple of hours later the deleted emails are back on both devices. What can I do to solve this issue. My gmail account works fine with no deleted emails showing back up again.

    You'd be better off looking in the email support section of the Verizon website. That's where you're likely to find the various settings required for configuring the account. Often email providers give both POP and IMAP settings.

  • Why can't I send Juno email with Firefox 4.0.1?

    Juno tries to spell check before sending mail, but gets hung up.

        jo1retired,
    Being able to send and receive email on your smartphone is one of the more important pieces to having a phone. We can certainly help you get everything up and running on the phone for you. Have you ever been able to send email from your cell phone? Do you have any other email accounts on the LG phone? Please share some additional information so that we can assist.
    CandiceH_VZW
    Follow us on Twitter @VZWSupport

Maybe you are looking for

  • How can I legally listen to live US Sports using OSX?

    We want to (legally) listen or watch to live US College Football and NFL Games. Several sites require Internet Explored 7.0 and do not support OSX. Also, we are in Japan. I found one site that would not let me access their streamline since I do not r

  • TABLE function not working in Dreamweaver

    Dreamweaver MX on Vista. My table function has simply stopped working or existing in my program. Everything else still works properly. When I change Table view it does not matter. When I press the table tab or icon, absolutely nothing happens and no

  • Segmentation faulting when copying text from various programs.

    Greetings, I have had this issue ongoing for months now.  I have done several re-installs and the problems will eventually come pack.  Now I am not ruling out hardware as I am RMAing the motherboard as that is the only thing left remaining.   This is

  • Why does iphone 4 not have a softwear update under the general tab

    why does my iphone 4 bnot have a softwear updater under the general tab

  • Xml scenario

    hi all, i am doing XML to XML scenario, i have a XML file downloaded from BW system and its size is  7 MB. i have created XSD from stylus studio using same xml file and i imported xsd in PI as source and receiver both. i did one to one mapping. but w