Issues with their Chinese or Japanese characters while sending mail

Hi All ,
I am sending mail using FM SO_DOCUMENT_SEND_API1. I am facing problem with display of chinese and japanese character in mail attachment.
For example , Data in ABAP table 延平路123弄1号10A is converted to ösï721_ 3S÷83L in excel sent via mail through abap.
I am using ASCII conversion while filling internal table for attachment.  Since these are not ASCII character conversion is not helpful.
Please help me for solving above problem.
Thanks & Regards ,
Jigar Thakkar.

Hi Kang Ring,
please convert the content of the attachement into the binary format and then add it as a mail attachment.
LOOP AT i_data ASSIGNING <wa_data>.
if s_output is INITIAL.
CONCATENATE <wa_data> cl_abap_char_utilities=>cr_lf into s_output.
else.
CONCATENATE s_output <wa_data> INTO s_output SEPARATED BY cl_abap_char_utilities=>cr_lf.
endif.
ENDLOOP.
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
text = s_output
IMPORTING
buffer = x_output.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = x_output
TABLES
binary_tab = imail_att.
     OR
please use ABAP-Object classes like CL_BCS , CL_document_BCS.....
please findthe below sample code.
  cl_bcs_convert=>string_to_solix(
          EXPORTING
            iv_string   = s_output
            iv_codepage = '4103'          "suitable for MS Excel, leave empty
            iv_add_bom  = 'X'               "for other doc types
          IMPORTING
            et_solix  = s_output_binary  "(of type solix_tab)
            ev_size   = size ).
attachment->add_attachment(                       "attachment of type ref to cl_document_bcs
          i_attachment_type    = 'xls'                     
          i_attachment_subject = l_subject    
          i_attachment_size    = size
          i_att_content_hex    = s_output_binary ).
you need to write the code for adding the receipents, subject and adding this "attachment " as an attachment to the mail.
Hope this will helps to you....,
thanks,
Rahim.

Similar Messages

  • Problem with chinese characters while sending mail with .CSV attachment

    Hi,
    i am sendin .CSV file as an attachment with mail using "SO_DOCUMENT_SEND_API1" FM,
    whle opening the mail attachment the chinese characters are not displaying properly.
    currently i am using ECC 5.0
    can any body help in this regard.
    Thanks,
    Rahim

    Hi Kang Ring,
    please convert the content of the attachement into the binary format and then add it as a mail attachment.
    LOOP AT i_data ASSIGNING <wa_data>.
    if s_output is INITIAL.
    CONCATENATE <wa_data> cl_abap_char_utilities=>cr_lf into s_output.
    else.
    CONCATENATE s_output <wa_data> INTO s_output SEPARATED BY cl_abap_char_utilities=>cr_lf.
    endif.
    ENDLOOP.
    CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
    EXPORTING
    text = s_output
    IMPORTING
    buffer = x_output.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
    EXPORTING
    buffer = x_output
    TABLES
    binary_tab = imail_att.
         OR
    please use ABAP-Object classes like CL_BCS , CL_document_BCS.....
    please findthe below sample code.
      cl_bcs_convert=>string_to_solix(
              EXPORTING
                iv_string   = s_output
                iv_codepage = '4103'          "suitable for MS Excel, leave empty
                iv_add_bom  = 'X'               "for other doc types
              IMPORTING
                et_solix  = s_output_binary  "(of type solix_tab)
                ev_size   = size ).
    attachment->add_attachment(                       "attachment of type ref to cl_document_bcs
              i_attachment_type    = 'xls'                     
              i_attachment_subject = l_subject    
              i_attachment_size    = size
              i_att_content_hex    = s_output_binary ).
    you need to write the code for adding the receipents, subject and adding this "attachment " as an attachment to the mail.
    Hope this will helps to you....,
    thanks,
    Rahim.

  • Active Directory domain Services – "You do not have permission to modify the group" followed by (Chinese or Japanese characters). Error message

    Folks:
    I am having an issue with a system, which is throwing a really odd error message. When the user tries to modify the AD group, they receive the following error message:
    “You do not have permission to modify the group”, which is then followed by what appears to be Chinese or Japanese characters. In addition, the characters
    randomly change, which makes me believe the characters are ASCII values or equivalent, not specific values for any coherent words provided by installed language packages.
    Has anyone seen this issue before? If so can you offer any advice?
    Thank you.

    Hi,
    This issue can be caused due to the permissions under Security tab are modified incorrectly.
    Please use delete control wizard to reassign the permissions or correct the permissions under Security tab manually.
    For more information, please refer to the following Microsoft articles:
    Delegate Control of an Organizational Unit
    http://technet.microsoft.com/en-us/library/cc732524.aspx
    Delegate Control Wizard Cannot Be Used to Remove Groups or Users
    http://support.microsoft.com/kb/229873
    Regards,
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    Which attributes should be checked to grant user permissions to Add users to Members Of option?
    Thanks.

  • Issue with font files on japanese Windows 8 OS

    We are currently facing an issue with the fonts on japanese Windows 8. While doing a normal compilation of a painter screen that is part of our application we are facing compilation issues on japanese version of Windows 8. The same operation goes perfectly
    fine on english version of winodws 8. While investigating the compilation issue, we could figure out that manually reinstalling msgothic.gcc files  at times helped in successful compilation of painter screen file. Could you please help us understand
    the exact impact of manual reinstallation. Also please advise on how to address this issue.
     Please keep us posted about why there is difference in between windows 8 japanese and english versions from the gothic files perspective.
    Thank you,
    Sreelatha.

    Hi Sreelatha,
    For issues about your OS, please reopen a new case on MS Answers
    http://answers.microsoft.com/en-us/windows/forum/windows_8?tab=Threads
    Regards,
    Barry Wang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Our software vendor tells to use FF 3.5.1. because of some printer issues with their web based program. How safe is it to work with FF 3.5.1 in 2012?

    Our software vendor tells to use FF 3.5.1. because of some printer issues with their web based program. How safe is it to work with FF 3.5.1 in 2012?

    Thanks for the reply. I'll have a look at your solution.

  • Has anyone had issues with their itunes not coming up?

    Has anyone had issues with their itunes not coming up?  I keep getting error message 13014.  I just bought a new classic ipod and am not sure if this is the problem.

    Hi
    Your new iPod has certain operating system requirements. Does your iMac meet those requirements?
    http://www.apple.com/ipodclassic/specs.html
    3rd Column on the right hand side, about a 3rd of the way down. To find out which version of iTunes you have, launch it and select "About iTunes" from the iTunes menu.
    HTH?
    Tony

  • Chinese or Japanese characters in contextual menus

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [/questions/822322]</blockquote><br>
    Whenever I right-click inside a Firefox window, at the very bottom of the contextual menu are three menu options written in either Chinese or Japanese characters. How do I get rid of this?
    Thanks in advance for any help!

    See this Apple support document.
    http://support.apple.com/kb/ht1824
    B-rock

  • Any one else have this issue with their Mophie?

    I am just wondering if anyone has this issue with their Mophie and can offer any tips.
    I recieved a Mophie from a friend for my iPhone 4. It has a crack on it that if you put a piece tape on it, part of the case can come out. It works, but you have to hold it basically still in order for it to work.
    At this point, it seems like I'm better off giving this Mophie a first class ticket to the trash but I just wanted to see if anyone else out there in the world has had a similar issue and can offer some tips but I'm sure it's beyond repair at this point.

       There is something really very very wrong in the land of Cellular Companies!!!!!!!   Verizon Wireless is not going to recover from this.   August 28th  was my time to be able to upgrade my phone.  I upgraded to a Samsung Notebook II.  Well I have it, its very pretty. BUT I CANNOT USE IT BECAUSE VERIZON WIRELESS IS SAYING  "THEY ARE HAVING A PROBLEM INTERNALLY WITH EVERYONE WHO UPGRADED THEIR PHONES THAT ENTERED INTO THE EDGE PROGRAM.  SOMEHOW THE PHONES CANNOT BE ACTIVATED FOR USE. THEY CAN GIVE ME NO TIME FRAME AS TO WHEN THIS WILL BE RESOLVED."  I will still in the meantime be billed for the phone as if I was using it. I WAS OFFERED NOTHING FOR THIS POOR PLANNING AND EQUIPMENT/PLANNING FAILURE ON THE PART OF VERIZON. I WAS NOT OFFERED ANY DISCOUNT, PRICE LOWERING, GIFT CARD, SKIP A PAYMENT.  NOTHING!!!!!!!!    I HAVE BEEN A LOYAL CUSTOMER TO THIS COMPANY FOR YEARS AND THIS IS HOW I AM BEING TREATED. 
    I am so disgusted by this.  Is there anyone else out there that is having this problem?   That is probably why I read on somone's blog that they are only letting new customers do the Edge program now.  It is a huge mess. 
    Right now what I want to do is return the phone and opt out of my contract early (it ends in December) with no dings against me. 
    One mad fed up and done with leaving Customer 

  • I am having issues with being kicked off the internet intermittently. ATT says its not an issue with their service. Does anyone have an idea?

    I am having issues with being kicked off the internet intermittently. ATT states its not an issue with their service. Any ideas?

    Yes it is NOT your internet service. It is Apples OSX. It seems to be happening to older computers trying to run the newer OSX ( Mavericks and newer). I have a 2009 iMac I bought with Leopard installed, I upgraded to Snow leopard 10.6.8 and my computer was running flawlessly. I upgraded to Mountain Lion and I noticed my computer running slower... kind of annoying having to wait longer for everything (start up, browsers opening up, apps opening up, mail opening up and so on) Mavericks came out for free and I was excited to get out of this issue. Well, everything went from bad to terrible! Fast user switching had a glitch with desktop picture resetting to the wave, mail rules didn't work properly and I kept getting kicked off the internet (Absolutely NOTHING wrong with my internet). No one could figure out what was going on or how to fix it, even senior Apple tech's! After 3-4 months of searching, troubleshooting and waiting for a fix, I looked at my Mac Pro running Tiger 10.4.11 with no issues what so ever... that is when I made an executive decision. GO BACK TO SNOW LEOPARD! Since May 2014 I have been running 10.6.8 on my 2009 iMac and it has been smoking fast with NO issues what so ever, especially since I maxed out my memory for Mavericks. So to sum it up: some people might get lucky with old machines running new operating systems, but for the most part, it seems older processors can't keep up with the new sophisticated operating systems. Mavericks... Yosemite... FREE UPGRADE! But you will pay the price

  • Is anyone else having issues with their I Phone 5 running ios 6.1?

    As stated above:  Is anyone else having issues with their I Phone 5 running ios 6.1?
    I am having issues with the WiFi connection to my AT&T router and voice recognition.
    It wont make post to Facebook half of the time. It is lacking the option to post videos to Facebook, only to mail, message, and You Tube. And finally the voice recognition messes up what it types in both Siri and messages.

    Not having any of those.

  • Is anyone else having issues with their mail , where the reply from the person you just contacted contains very old emails from a different contact ?

    Is anyone else having issues with their mail , where the reply from the person you just contacted contains very old emails from a different contact ?

    I mean that I sent an email to a contact of mine yesterday. His reply contained a stream of very old emails I had received in 2009 from a totally different contact all together !! The reply email was in my inbox as being from the original person I sent the email to. This is starting to happen more regularly now , so is a problem !

  • Terminated with error: REP-50152:Error while sending mail

    Hi
    Gets this error while sending report mails to external email id's
    Terminated with error: REP-50152: Error while sending mail - Sending failed; nested exception is: javax.mail.SendFailedException: Invalid Addresses; nested exception is: javax.mail.SendFailedException: 550 5.7.1 Unable to relay for [email protected]
    Any setting to be done in report config file?
    thanks
    MG

    It should be like this
    <pluginParam name="mailServer">%MAILSERVER_NAME%</pluginParam>
    Specify the name of your mail server in the place of %MAILSERVER_NAME% above
    Also make sure that this is not commented out.
    Thanks,

  • Acrobat 9 Pro  " An error occurred while sending mail"

    Dear Gurus:
    Free ice cream to the person with the answer that works.      I use Vista OS, 32 bit;    IE (Primary) and Mozilla;   Outlook E-mail (primary) and Windows Mail.  The preceding has been the case for the last two years so "nothing has changed".    I used Adobe Acrobat 9 Pro for two years and designed a number of interactive forms and used the functionality as much as possible.   Overall a good experience with Pro 9
    Case in point, I designed an interactive employment application that was regularly used, updated and re-released over a period of about two years without incident.  It was set up to be completed online by employment applicants.  Once completed, they would click to  "e-mail the office"  the completed application then close the document.    It was set up with the button to send a form, and more precisely to send the form as .FDF to the mailto: address#1; address #2.   Again it worked fine using either Mozilla or IE until last week.      As usual, I made some minor edits to the existing body fields and left the buttons alone sine there was no need to bother them.
    I emailed  the revised  .PDF document to   "the web guy" who added it to the website- like all the times before.     I went online to  "test it" as usual so I filled it out.   When I click the button to send form to office, the option comes up to select the email client.   I use Outlook so I selected "Desktop E-mail Application",  click  OK  and then I immediately get the message  "An error has occurred while sending mail".      In the past without fail, the Outlook would open after 1-3 seconds and attach the   .FDF file with the normal  .FDF and data jargon.  no problem...      Also, I am aware of extending features to Reader and the licensing issue, but I doubt that is an issue.....
    So, before I posted here I tried a few things:
    A-  I tried opening the source  .PDF application locally on my PC and filled it out. I clicked the button to "sent the file" to myself.    To be clear this was not posted on the website, but it did open Outlook, create the email, add the .FDF and sent it to me.       HHHMMMM so it works locally....
    B-  Next, I started fresh with a blank adobe document page and added two items:  1- a text field and a new email submit button I created to send the data via FDF.    I set it up, it worked fine when I tested it locally on the PC and created the .FDF file and the Outlook email and I sent it to myself.     Then  I took this same little test file and added it to a different website I have access to, I re-published the site,  ccessed the form and  no dice......    I got the same message,  " an error occurred while sending mail"  when I clicked OK to use the Desktop Email Application.
    C- I read other posts and Googled for about 6 hours yesterday and  now I am missing clumps of hair.
    So, it seems something "happened" that will not let the email be created from an existing form; or a NEW form that are available for use on a website;  but BOTH  work just fine if accessed on a local PC. 
    Please , and thank you..
    Brian P.

    Hi Bill,
    Thank you for your follow up.       I'm not sure what you mean by,  "did I do a comparison to the original".    If you're asking whether I'm sure the .PDF and the .FDF are the "same" documents, they are...  however the problem is even if they were entirely different forms, my issue is once the submit form button is clicked, Outlook fails to initialize and attach the   .FDF file .
    I mentioned how I tried to recreate the "error" by building a new form from scratch in order to eliminate all the possible variables of having a bug in the form that had been updated so many times before without incident.   Even with the new form having just one text field and one submit form button,  it worked as needed when I used the .PDF file locally right from my PC by  filling out the field and submitting the form's  .FDF data to myself.      It opened the Outlookprogram, created the mail and attached the .FDF file.     I clicked "send" and away it goes  from "me" to "me" and I was able to open the email, click the .FDF then browse to the .PDF source form so the files could extract into the   .PDF.    All normal and all Okay ,  like 100 times before using the WEB, but not now... .
    Today,  even that simple form with one field and one submit button encounters the same  "An error has occurred while sending mail"  message upon clicking on the web based submit button.     The option comes up to let me select the email server and when I click  "OK" , the error notice comes up...    grrrrrrrrrrrrr
    In short, when the form is used in a website environment, it doesn't want to create the outgoing email with the .FDF file attachment.      Normally, it worked like a peach.
    ?? I dunno
    BP

  • Error While sending mail

    Working with 9.1.0.1
    I have created a task which will send Mail to user when password is changed.
    so in Notification Tab i Have clicked user check box and attached a appropiate Email Defination,
    when task is triggered password is changed in OID but while sending mail i am getting below error.
    I checked in metalink its shows when Email Server IT Res Name should be same as that configured in System property ,i checked both are same.
    1 Dec 2011 18:06:54,735,[XELLERATE.REQUESTS],Class/Method: tcEmailNotificationUtil/sendEmail encounter some problems: {1}
    lang.NullPointerException
    at java.util.Hashtable.put(Hashtable.java:394)
    at com.thortech.xl.dataobj.util.tcEmailNotificationUtil.sendEmail(Unknown Source)
    at com.thortech.xl.dataobj.tcScheduleItem.checkForEmailNotification(Unknown Source)
    at com.thortech.xl.dataobj.tcScheduleItem.eventPostUpdate(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.update(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
    at com.thortech.xl.adapterfactory.events.tcAdpEvent.updateSchItem(Unknown Source)
    at com.thortech.xl.adapterfactory.events.tcAdpEvent.finalizeProcessAdapter(Unknown Source)
    at com.thortech.xl.adapterfactory.events.tcAdpEvent.finalizeAdapter(Unknown Source)
    at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpOIDMODIFYUSER.implementation(adpOIDMODIFYUSER.java:81)
    at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source)
    at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(Unknown Source)
    at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
    at com.thortech.xl.client.events.tcTriggerUserProcesses.insertMileStones(Unknown Source)
    at com.thortech.xl.client.events.tcTriggerUserProcesses.trigger(Unknown Source)
    at com.thortech.xl.client.events.tcUSRTriggerUserProcesses.implementation(Unknown Source)
    at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.eventPostUpdate(Unknown Source)
    at com.thortech.xl.dataobj.tcUSR.eventPostUpdate(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.update(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
    at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
    at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.updateUserData(Unknown Source)
    at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.updateUser(Unknown Source)
    at com.thortech.xl.ejb.beans.tcUserOperationsSession.updateUser(Unknown Source)
    at com.thortech.xl.ejb.beans.tcUserOperations_voj9p2_EOImpl.updateUser(tcUserOperations_voj9p2_EOImpl.java:1763)
    at Thor.API.Operations.tcUserOperationsClient.updateUser(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor485.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)

    Create a task "Send Email" which will be called on SUCCESS of Change Password Task
    Attach tcComplete in INTEGRATION tab And send Email from "Send Email" using Notification Tab
    It seems that issue is with Change Password Task
    Or Use APIs
    Re: Send Mail via java code but using Mail Definitions

  • Error while sending mail from SAP system

    Hi all,
    I configured SAP connect  in ecc6.0 ehp7 while sending mail using tx sost i am error
    Message cannot be transferred to node SMTP due to connection error (final) , below is the icm log.
    ERROR => IcmPlAllocBuf: MpiGetOutbuf failed (rc = 14(MPI_ESTALE: outdated MPI handle)) [icxxplugin.c 1222]
    ERROR => SMTP SmtpClientClose: alloc failed, rc = -3 [smtp_plg.c   3738]
    ERROR => IcmBufFree(id=0/32): MpiFreeBuf failed (rc=14), MPI_ESTALE: outdated MPI handle [icxxplugin.c 165
    ERROR => IcmConnClose: PlugInStopConn failed (rc=701) [icxxconn.c   3433]
    can any one please help on this
    Thanks,
    Narendar.

    Hello Priyanka,
    Actually, I performed the following two steps in order to solve the issue:
    - In transaction SICF, the node for SAPConnect must be active. In our system, this node was in inactive state. Hence I activated it.
    - Then In transaction SCOT-> Settings menu--> default domain should be 'xyz.com' if the email addresses in your company are maintained with a suffix  xyz.com.
    But for me the problem didnt get solved here..
    The problem that i am facing now is that if in my user profile, I have the email address maintained, then i get an error saying 'Sender address rejected'. However, if i goto transaction SU01 and clear the email id, the mail is successfully sent to outer world.
    You can try the above mentioned two steps using SICF and SCOT. If the problem does not get solved then try clearing the mail id in ur user profile.
    Hope this helps. If you find an answer to the problem of the mail id getting cleared, then please let me know..
    Regards,
    Himanshu

Maybe you are looking for

  • Sales order qty - Invpice qty - Creditmemo qty

    Hi gurus, Our billing Scenario is Order related Billing. I created a sales order for 200 qty and i generated an invoice for 30 qty. due to some reasons i created a creditmemo request for 30qty and i created a creditmemo also for 30qty. Now i want to

  • Creation of sales order without reference

    Hi all, How can i restrict that sales order should be created only with reference to contract and not alone? Please update. Best Regards, AI.

  • Retina Kernal Panic?

    Hey guys, My Retina 15" has been freaking out recently, the screen stays black and the unit is unresponsive. Along with that, waking from sleep and when connecting and disconnecting from my thunderbolt display the screen freaks out and takes a while

  • Does URL Services support client side script?

    My ASP page it built as a portlet, and displays fine but it won't submit. When I view the Source in my browser, Portal didn't include any of my client side vbscript script, then html is there but everything else is missing.... Question: Does URLServi

  • How much less would I have to pay if I exchanged my iPad 1st gen for a 2nd or 3rd gen iPad?

    Well I have had an iPad 1stbgen for a while but you only have a certain limit with ios 5.1.1 I was wondering if I can pay less if I exchanged my iPad for an iPad with more modern iOS such as the 2nd and 3rd gen iPad Thanks for listening and trying to