Skip to Content
author's profile photo Former Member
Former Member

Send Email from BSP --> Character Settings

Hi all.

I'm having a question about sending emails out of BSP-pages and the used character settings. Hope someone can help me here.

We are using a BSP-page to collect input information which is then put into email content and send to email recipients using the standard class "cl_bcs" which has already been described a couple of times here.

Everything works fine and we have been using this for nearly two years now.

Now we have started to use our application in Turkey and obviuosly having problems displaying the special turkish characters in the email output. And I haven't found anything to maybe set the character settings or something like that when creating the email document.

We use the following code to create the email document:

Document = cl_document_bcs=>create_document(

i_type = 'RAW'

i_text = l_mailtext

i_length = textlength

i_subject = new_Subject ).

Example:

User enters turkish characters:

İsim

Now this is how it is processed on WAS:

Ýsim

This is also how it is stored in the database for example. When showing this as output in BSP-page (setting the codepage to "windows-1254" the result is 'İsim' again,

which is fine.

Now wehn creating the email document I don't see a way to set a codepage or something similar. Result is that the email output is exactly the same as is WAS handles internally: Ýsim.

Hope this makes sense. Has anyone come across this before ? Does anyone know of a solution here ?

We are using WAS 6.20, NO Unicode !

Thanks a lot in advance

Stefan Hester

P.S: okay great, the turkish character is not being displayed properly in this post. Hope that this makes sende anyway...

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jan 05, 2005 at 01:20 PM

    When the BCS class generates the email it will use the code page that you have setup for your SMTP node in transaction SCOT. Even if you don't have a Unicode SAP system, you can set this code page to 4110 Unicode UTF-8. See OSS Notes 633265 and 664833.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Thomas Jung

      okay, this is starting to make sense. Obviously we have a single-codepage-installation, I wasn't 100% sure about this. I have read about MDMP and Unicode before. We have already discussed converting to Unicode, but as you mention this is not a 1-day job 😊

      Anyhow this will the only way to handle this correctly...

      Thanks a lot anyway, one step more to understanding WAS 😊)

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.