How can I set the language when sending an e-mail with attachment - 'Html'?

"Character Broken"
I made an ALV program, and this convert to "HTML',  and send an e-mail with this.
Used Process is:
DATA: gt_abaplist LIKE TABLE OF abaplist,
      gt_html LIKE TABLE OF w3html,
      doc_chng LIKE sodocchgi1,
      objpack LIKE TABLE OF sopcklsti1 WITH HEADER LINE,
      objhead LIKE TABLE OF solisti1 WITH HEADER LINE,
      mail LIKE TABLE OF solisti1 WITH HEADER LINE,
      reclist LIKE TABLE OF somlreci1 WITH HEADER LINE,
      lv_line TYPE i.
DELETE FROM MEMORY ID '%_LIST'.
SUBMIT z_template
   AND RETURN EXPORTING LIST TO MEMORY.
CALL FUNCTION 'LIST_FROM_MEMORY'
  TABLES
    listobject = gt_abaplist
  EXCEPTIONS
    not_found  = 1
    OTHERS     = 2.
CALL FUNCTION 'WWW_HTML_FROM_LISTOBJECT'
  TABLES
    html       = gt_html
    listobject = gt_abaplist.
doc_chng-obj_name   = 'URGENT'.
doc_chng-sensitivty = 'O'.
doc_chng-obj_descr  = ' '.
doc_chng-obj_langu  = '3'.
objhead-line        = ' '.
APPEND objhead.
mail[] = gt_html[].
DESCRIBE TABLE mail LINES lv_line.
CLEAR: objpack.
objpack-transf_bin = 'X'.
objpack-head_start = 1.
objpack-head_num   = 0.
objpack-body_start = 1.
objpack-body_num   = lv_line.
objpack-doc_type   = 'htm'.
objpack-obj_descr  = ' '. 
objpack-doc_size   = lv_line * 255.
objpack-obj_langu = '3'.
APPEND objpack.
CLEAR: reclist.
reclist-receiver = 'e-mail address'.
reclist-rec_type = 'U'.
APPEND reclist.
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               = mail
    receivers                  = reclist
  EXCEPTIONS
    too_many_receivers         = 1
    document_not_sent          = 2
    document_type_not_exist    = 3
    operation_no_authorization = 4
    parameter_error            = 5
    x_error                    = 6
    enqueue_error              = 7
    OTHERS                     = 8.
SUBMIT rsconn01 AND RETURN.
I want to show  this by "Japanese".
But the character is broken.
LIke This:
u01D1u072C          u0205|            u0205u072C          u0508           QC u04B90m
How can I set the language?  How can I solve "Charancter Broken" ?
Plesse, let me know.
Thank you so much.
Edited by: Jaime White 999 on Nov 21, 2011 8:45 AM
Edited by: Jaime White 999 on Nov 21, 2011 8:46 AM

Hi Jaime,
Are you saying, you are getting junk characters in the email attachment? Then pls check the following. Since you want to send Japanese fonts, please pass language 'J' in both  objpack-obj_langu = '3' & doc_chng-obj_langu  = '3' instead of '3' please replace it with 'J'.
Another thing which you may have to check is the SCOT device type. As I understand from my basis colleague, this may also affect your attachment fonts since the emails are sent through SCOT. Go to transaction SCOT-> Settings-> Device types for format conversion. Check whether wrong device type is defined for Japanese there. Hope this helps
Regards,
Gokul

Similar Messages

  • How should i set the baseURI when a db file path with a space

    if the db file in a path like c:\program file\myapplication,then i set the baseURI dbxml:c:\program file\myapplication ,some exception occur~what should i do ?
    thanks a lot

    The Base URI needs to be a valid URI, which means it cannot include the Windows '\' character at all. In your case, you should be fine using something along the lines of "file:////C:/program file/myapplication"
    (give or take a '/' or two -- I haven't tested this).
    It's a common for BDB XML users to confuse the argument to create/openContainer() (a filesystem path) with the Base URI (a URI). The meanings and requirements are different. The best thing to do is to set and use a container alias (XmlContainer::addAlias()) to use in your queries.
    Regards,
    George

  • When sending an email how do I set the address when sending to multiple recipients so that each recipient only sees his or hers address and not everyone else

    I would like so send emails to multiple addresses yet I want each recipient to only see his or her address

    This question isn't related to Mozilla Firefox. However, I can still answer your question. In the 'to' field, put your own e-mail address and put each recipient's address in the BCC field. This way the only address seen is your own.
    Please try to post in the appropriate forum next time. (Thunderbird, Gmail, etc.)

  • How can I change the font when creating an e-mail in Outlook's web-mail mode?

    I am new to Firefox. When I go to a web-mail server, I can click on sending a new message. While there, I cannot find any way to change the font, font size, or color of the text. All of these options were available in a toolbar at the top of the message window when I am using Internet Explorer 9 or IE8. I have looked through all of the help files provided by Firefox, and found nothing about changing fonts, etc.
    Thanks for trying to help

    Hi Jaime,
    Are you saying, you are getting junk characters in the email attachment? Then pls check the following. Since you want to send Japanese fonts, please pass language 'J' in both  objpack-obj_langu = '3' & doc_chng-obj_langu  = '3' instead of '3' please replace it with 'J'.
    Another thing which you may have to check is the SCOT device type. As I understand from my basis colleague, this may also affect your attachment fonts since the emails are sent through SCOT. Go to transaction SCOT-> Settings-> Device types for format conversion. Check whether wrong device type is defined for Japanese there. Hope this helps
    Regards,
    Gokul

  • How can I change the language back to English on Appstore?

              I just recently upgraded my Ipod touch to iOS 5.0.1 and after that the language of applications Appstore & Itunes was set to French, while everything else is in English -as it is supposed to be as before the upgrade everything was in English-.
              Currently the Language set on my Ipod is English (From Settings->General->International->Language->English).
              The account for Appstore is not linked to any credit card it is a an account to only download free applications.
                  How can I set the language back to English?
    Thanks a lot,

    Is the address on your account based in France ? The language of the stores should reflect the language of the country where your account is based, which isn't necessarily the same language as you've set on the device.
    If your account isn't based in a French spealing country, then try logging out of the account (via Settings > Store) and then log back in (and also make sure that your address is correct and complete), and see if the language of the iTunes and App Store the reflect the language of the country where your account is based.

  • How can I set the page that will open, when I open a new tab, to be the same as the homepage?

    How can I set the page that will open, when I open a new tab, to be the same as the homepage?
    An app changed it to some other search engine, before installing the app, I the tab that would open was the homepage I set.
    In my case it is Google, and I want my new tabs to open on Google like they did before the installation.
    thank you,
    Asaf Privman.

    You can middle-click or Ctrl left-click the Home button on the Navigation toolbar to open the Home page in a new tab.
    You can look at one of these extensions:
    * NewTabURL : https://addons.mozilla.org/firefox/addon/newtaburl/
    * New Tab Homepage : https://addons.mozilla.org/firefox/addon/new-tab-homepage/

  • Formatting issues: when I open a msg, the font is sooo small you need a magnifier to read it. How can I set the font size to one I can easily read?

    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    I have various formatting issues:
    a. When I open a msg from my web browser (Cablevision), the font is sooo small I need a magnifier to read it. How can I set the font to a size I can easily read?
    b. When I forward msgs, the text gets all distorted and I need to clean it up (some symbols, lots of spaces between words). How can this be fixed?
    c. When I want to tell someone about a website, I cannot type the URL in so that all they have to do is click on it. How can this be fixed?
    d. When I open messages, the text opens in a small window and covers the "Show Images" button. Why?
    == This happened
    ==
    Every time Firefox opened
    == Ever since I started using Firefox (a few months ago)
    ==
    '''Troubleshooting information'''
    I didn't find any results
    == Firefox version
    ==
    3.6.3
    == Operating system
    ==
    Windows 7
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
    == Plugins installed
    ==
    *-nphpclipbook
    *Office Plugin for Netscape Navigator
    *The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
    *Default Plug-in
    *Adobe PDF Plug-In For Firefox and Netscape "9.3.2"
    *NPRuntime Script Plug-in Library for Java(TM) Deploy
    *The Hulu Desktop Plugin allows Hulu.com to integrate with the Hulu Desktop application.
    *Shockwave Flash 10.0 r45
    *Adobe Shockwave for Director Netscape plug-in, version 11.5
    *iTunes Detector Plug-in
    *3.0.40624.0
    *NPWLPG
    *Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers

    The text editor is the text area that you use on the webmail (Yahoo, Hotmail) website to create a new mail.
    You can compare that with the ''Post new message'' text area that you use to create a new post on this forum.
    Just above the text area that you use to enter the message text there is usually a button bar with buttons that allows some text formatting like Bold and Italic and can also include a button to make a clickable hyperlink.
    Check the tooltip of each button by hovering with the mouse over each button.
    Make Link - https://addons.mozilla.org/firefox/addon/142

  • Can I set the language (for spellcheck) of a document in the iCloud Web version, or iOS version, of Pages? If yes, how?

    Can I set the language (for spellcheck) of a document in the iCloud Web version, or iOS (iPad) version, of Pages? If yes, how?

    In iOS, the spellcheck language follows the keyboard.
    The forum for questions about iOS Pages is at
    https://discussions.apple.com/community/app_store/iwork_for_ios

  • How can I set the United States as my country when opening PSE 10?

    How can I set the United States as my country when opening PSE 10 so I don't have to scroll down every time?

    Why do you have to scroll down every time? You should only see the country window the very first time you launch PSE after installing it.

  • How can I set the default print settings of my document as color.  I want the default print setting to be color when someone opens a document.  similar to duplex print preset is there a color print preset?

    How can I set the default print settings of my document as color.  I want the default print setting to be color when someone opens a document.  similar to duplex print preset is there a color print preset?

    Hi,
    Try saving your settings as a Preset by clicking the Preset drop down and then select Save Current Settings as a Preset.
    Next try changing the settings by selecting the saved preset.
    That allow saving the settings for a specific printer, I assume it may also allow selecting these settings for another printer.

  • How can I add the Language Toolbar to my English version of Firefox? I want to be able to switch to Japanese language for certain websites and when typing e-mails.

    How can I add the Language Toolbar to my English version of Firefox? I want to be able to switch to Japanese language for certain websites and when typing e-mails.
    There should be something that allows me to switch back and foth between Japanese and English...or is that in Windows XP and not in the browser?

    See:
    * http://windows.microsoft.com/en-US/windows7/The-Language-bar-overview The Language bar (overview)
    * http://support.microsoft.com/kb/258824 - How to change your keyboard layout

  • How can I change the language and the dictionary on Mac Airbook so that When I Right click on a word in Italian will be defined in Dictionary. The Mac Airbook is  bought in USA.

    How can I change the language and the dictionary on Mac Airbook so that When I Right click on a word in Italian will be defined in Italian Dictionary. The Mac Airbook is  bought in USA.

    Dictionary.app only has English and Japanese, no other language.  Modules can be added sometimes:
    http://m10lmac.blogspot.com/2011/12/more-dictionaries-for-dictionaryapp.html

  • How can I set the program to automaticaly send recieved email addresses to my address book?

    As the question asks, how can I set the program to automatically add new email address from messages to my address book. Other email programs can be set up to do this. If this can't be done in Firefox, why not. It's the best email program otherwise.

    First off Firefox is an Internet browser and does not deal with email addresses or have an address book to add them to. Secondly I cannot think of a good reason to add the address of each piece of spam to the Thunderbird address book.
    There are addons that will pick out addresses from incoming email and add them to the Thunderbird address book. I suggest you search through the add on list for one that fits your needs.

  • How can you get the schedule of a single reoccurring job with Restart ability in Redwood to pause when it has failed...?

    We need the Request Restart ability when scheduling a single reoccurring job in Redwood. Most of our jobs are scheduled in CHAINs which offers the Final Status Handler on Step level, and the schedule is "paused" when a job in the CHAIN has failed ( the next instance does not populate until the OP MSG has been Replied to) , and once the OPERATOR message is replied to, the CHAIN can resume running again ( desired ) . But we need this same ability when scheduling a single job not in a CHAIN. In our testing, we set up a job with Request Restart chosen on the Error , Killed and Unknown selections on the Restart Behavior Tab. But we found when a job is scheduled say once a day at 8AM, and when it fails, an OPERATOR msg appears allowing a Restart choice ( desired), but the next day's schedule also populates ( undesired) and we do NOT want the schedule to continue on yet because we need a chance to fix the error before the next insance runs for business reasons. So how can you get the schedule of a single reoccurring job with Restart ability in Redwood to pause when it has failed...?

    Hello Fran,
    You can wrap the job chain in a master job chain in the first step and set the final status handler there.
    You can also set the Restart Behavior to 'Stop Submit Frame', in that case you will have to resubmit the job once you are finished troubleshooting.
    Regards Gerben

  • How can I set the order of search engines on my Macbook?

    When I use "Manage Search Engines" to rearrange the order of my search engines, the order changes temporarily, only to revert to the order the search engine add-ons were installed, the next time Firefox is restarted. How can I set the hierarchy of search engines to suit my preference, and have it stay that way?

    It may be your preferences problem.
    Try to Reset your firefox and try it newly
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

Maybe you are looking for

  • How to increase the performance of  Weblogic server 7.0?

    How to increase the performance of Weblogic server 7.0 ? also, how do i avoid typing the server login and password evertime I start the webserver?

  • While working in Version 10.8.5, why does my recently downloaded backgammon crashes daily.

    Backgammon Premium freezes when it signals "No possible moves found". Currently working om 10.8.5. Have not experienced any problems with any applications except Backgammon Premium.

  • Looking For 'Thee' Adobe Air Juggernaut...

    Hello Community, My partner and I are both developers looking to hire/partner with 'thee' juggernaut of Adobe Air.  We are looking to outsource a large majority of the heavy lifting to someone who has serious experience with this framework.  If there

  • Songs I don't own showing in iCloud

    Hi, this is a weird one. Basically I was browsing the iTunes app on my iPhone 4 (running the dreaded iOS6) and went into the purchased section. I saw there was an option to download songs not on my iPhone. Navigated to this and downloaded a couple so

  • Very new to Flash

    Hi all. I am very very new to Flash, been thinking about usig it for all of a day! I have to come up with a website and the general idea is that a lot of 3D is to be used. Although I have been heavily involved in 3D for 14 years now, web development