Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Mail Output : Arabic text should be in Right Alignment using cl_bbp_doc_send_bcs

Former Member

Hi,

I am unable to print Arabic Text in Right align while my custom program triggers Mail(SOST).

If am using RAW as a format, I can able to print Arabic text but its not in Right Alignment.

ls_body-text = gv_text[]. // GV_text is my internal table

ls_body-format = 'RAW'.

ls_body-size = '1000'.

APPEND ls_body TO lt_body.

CALL METHOD cl_bbp_doc_send_bcs=>send_mail.

EXPORTING

iv_sender = 'XYZ'

is_recipient = ls_recipient
iv_subject = 'Test Mail'
iv_mail_format = 'RAW'
iv_commit = 'X'
it_body = lt_body
EXCEPTIONS
error_mail_send = 1
OTHERS = 2.

Output:

Arabic Text inside the mail is in left aligned.

Expected Output:

Arabic Text should print in right aligned.

***************************************************************************************************

If am using HTM code and HTM format, Right align is achieved but Arabic Text are in special Characters.

ls_body-text_as_binary = GV_text_bin // GV_text is my internal table which is in Binary F

ls_body-format = 'HTM'.

ls_body-size = '1000'.

APPEND ls_body TO lt_body.

CALL METHOD cl_bbp_doc_send_bcs=>send_mail.

EXPORTING

iv_sender = 'XYZ'

is_recipient = ls_recipient
iv_subject = 'Test Mail'
iv_mail_format = 'HTM'
iv_commit = 'X'
it_body = lt_body
EXCEPTIONS
error_mail_send = 1
OTHERS = 2.

Output:

Text inside the mail is in Right aligned but I couldn't able to print Arabic text. Instead its taking Special Characters and printing it.

Expected Output:

Arabic Text should print in right aligned.

Please give a solution which will be meet my requirement. Kindly find screen shot for reference.

0 REPLIES 0