cancel
Showing results for 
Search instead for 
Did you mean: 

Email body in local language based on country

former_member267445
Participant
0 Kudos

Hello Gurus,

I have written one report to send an email to the vendor with mail by using CL_BCS class. Everything is working fine. Now business want to send an email content in local language based on country.

For example, if vendor exist in Italy then the mail content and subject in Italian language. While creating a body content used the class CL_DOCUMENT_BCS and CREATE_DOCUMENT. in this method i can see the language parameter. This parameter solve my problem or is there any alternate option. Please light me on this issue.

Thanks and Regards,

Muralikrishna Peravali.

Sandra_Rossi
Active Contributor

If the text is to be written in English or Italian or Chinese, then it's not the problem of CL_BCS, it's a problem of providing CL_BCS the text in the right language. What is your problem?

former_member267445
Participant
0 Kudos

Hello Sandra,

Thank you for your reply.

I am bit confusing here, how the body content with local languages based on vendor to be passed in class CL_DOCUMENT_BCS.

Thanks and Regards,

Muralikrishna Peravali.

Sandra_Rossi
Active Contributor

I guess the parameter I_LANGUAGE is just for informing SAP what is the language of the text, and it's not used for any processing at all (maybe it had some interest "a long time ago" with non-Unicode/MDMP systems).

Accepted Solutions (1)

Accepted Solutions (1)

venkateswaran_k
Active Contributor

Yes, exacly.. SO10 dynamic text, - Moreover you need to know that language as well 🙂

Regards,

Venkat

former_member267445
Participant
0 Kudos

Hello Venkat,

Thank you for reply.

Can I use read_text with language by creating only one SO10 text here.

Thanks and Regards

Muralikrishna Peravali

matt
Active Contributor

venkateswaran.k use comment to reply - not answer.

muralikrishna.peravali2 you have to create your own translations. There's no automated translation in SAP. So one text object per language.

p244500
Active Contributor
0 Kudos

Hi,

I also think SO10 Dynamic text will be the solution .

Regards,

Nawa

Answers (2)

Answers (2)

former_member267445
Participant
0 Kudos

Hello Experts,

Apologies for the delay, I was in discussion with functional and client with the requirement so got late. Actually business is having 36 company codes and they are giving the email contents based on company code language which exist in T001. So, am creating 36 SO10 texts and based on the company code language am reading SO10 and displaying in mail body.

So, am closing this.

Thanks and Regards,

Muralikrishna Peravali.

venkateswaran_k
Active Contributor
0 Kudos

Dear Muali,

I do not think so, the language parameter will translate your content. May be it is used to justify the content of the document ( may be right to left or left to right direction like arabic).

You may have to create body content according to vendor language .

REgards,

Venkat

former_member267445
Participant
0 Kudos

Hello Venkat,

Thank you for reply.

You mean to say that we have to call the body content based on Vendor language? If this is so we need to create the SO10 text as many as?

Thanks and Regards,

Muralikrishna Peravali.