Printing Smartforms in Other Language
Hi,
I have designed a smartform in English Language.
Then I translated the the Text to Arabic using SE63.
Now, I am getting the <b>Print Priview</b> properly. It is showing Arabic, if the logon language is Arabic and showing in English if the logon Language is English.
Also, we have created a output devide <b>ZARABIC</b> for printing in Arabic.
Though the print preview is comming properly, the print out is not comming properly for Arabic(Some Junk in Arabic is comming). It is comming properly for English using device LP01.
Note: If I type anything in Arabic in Wordpad and give printout, it is comming properly. So, there is no OS level problem. There is problem from SAP Side only.
The BASIS person has tried all the options available to him. Still it is not printing properly.
Please help me solve this problem.
Do suggest me, if I have to set anything in the Smartform.
Waiting for your valuable suggestion.
Regards,
Ishaq.
Ishaq,
In my requirement i have to combine both english and arabic text.I have created the smartform in english.The problem is in the print preview arabic text are reversed.Do i have to translate the text in se63? Iam using text element with combination of both english and arabic text.can u tell me the procedure to translate the text elements.
regard
chinna
Similar Messages
-
Web report print PDF in other language than English
Hi,
when i try to print the queries thro' web analyser(web output seen on Enterprise portal), the pdf document is generated in some other language than English.
What is the problem?
thank you....Hi BI.
I would check the default language in the portal for the specific user. You will find this in the EP user administration in the general information tab.
Hope it helps.
BR
Stefan -
Using the one language invoice to print in all other languages
Hi All,
Is there any way or setting I can use so that one language Invoice to print all lanuguages say European lanuguages for testing purpose?
Right now the printing language is based on customer master and Output type condition record..
Any help will be appreciated.
Thanks
NetajiHi Tummuru,
Try to change the output type of the script during the runtime.
All output type information is stored in the Table: TNAPR.
&******** Reward point if helpful********& -
Problem in sending the smartform as email for other language except english
Hi Experts,
I could not send the smartform as an attachment for other languages, but where as i could send it in english.
The program is working fine with print priview but not when sending the SF as an attachment
(in other languages except english).
Please do find the below code which i used to send the smartform as an attachment.
Please let me know if there is any mistake in the code.
wa_ctrlop-LANGU = nast-spras.
wa_ctrlop-getotf = 'X'.
wa_ctrlop-no_dialog = 'X'.
wa_compop-tdnoprev = 'X'.
CALL FUNCTION lf_fm_name "'/1BCDWB/SF00000197'
EXPORTING
control_parameters = wa_ctrlop
output_options = wa_compop
user_settings = 'X'
is_ekko = l_doc-xekko
is_pekko = l_doc-xpekko
is_nast = l_nast
iv_from_mem = l_from_memory
iv_druvo = iv_druvo
iv_xfz = iv_xfz
IMPORTING
job_output_info = wa_return
TABLES
it_ekpo = l_doc-xekpo[]
it_ekpa = l_doc-xekpa[]
it_pekpo = l_doc-xpekpo[]
it_eket = l_doc-xeket[]
it_tkomv = l_doc-xtkomv[]
it_ekkn = l_doc-xekkn[]
it_ekek = l_doc-xekek[]
it_komk = l_xkomk[]
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*Convert the data from OTF to PDF format
it_otf[] = wa_return-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = l_len_in
bin_file = lp_xcontent
TABLES
otf = it_otf
lines = it_tline
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
TRY.
---------- create persistent send request ----------------------
send_request = cl_bcs=>create_persistent( ).
len = XSTRLEN( lp_xcontent ).
transform to solix tab
lt_solix =
cl_document_bcs=>xstring_to_solix(
ip_xstring = lp_xcontent ).
Create Body to the E-mail.
APPEND Text-005 TO l_text.
Attachment Name
l_ponumber = text-004.
CONCATENATE l_ponumber l_doc-xekko-ebeln INTO l_ponumber.
Subject for the E-Mail.
l_subject = text-001.
CONCATENATE l_subject l_doc-xekko-ebeln INTO l_subject.
*create document E-Mail.
*TRY.
CALL METHOD cl_document_bcs=>create_document
EXPORTING
i_type = 'RAW'
i_subject = l_subject
i_length = '13'
i_language = nast-spras
i_importance =
i_sensitivity =
i_text = l_text
i_hex =
i_header =
i_sender =
receiving
RESULT = l_email_object
CATCH cx_document_bcs .
*ENDTRY.
CALL METHOD cl_document_bcs=>create_document
EXPORTING
i_type = 'RAW'
i_subject = l_subject
i_length = '13'
i_text = l_text
RECEIVING
result = l_email_object.
*Create PDF Document
bcs_doc = cl_document_bcs=>create_document(
i_type = 'PDF'
i_subject = l_ponumber
i_length = len
i_language = nast-spras
i_hex = lt_solix
*Type casting
obj_pdf_file ?= bcs_doc.
Add PDF document as an attachment
CALL METHOD l_email_object->add_document_as_attachment
EXPORTING
im_document = obj_pdf_file.hi,
i tried with ur problem.but i am able send mail in other languages also.actaullly i wrote a msg whether the mail has been sent or not.i got success message. i am placing my code here please go thorugh it,and do relavant modifications.
*& Report ZPPS_SMARTFORM_TO_PDF
REPORT ZPPS_SMARTFORM_TO_PDF.
PARAMETER: p_date LIKE sy-datum.
PARAMETER: p_rea TYPE char255.
DATA: t_otfdata TYPE ssfcrescl,
t_lines LIKE tline OCCURS 0 WITH HEADER LINE,
t_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
t_RECORD LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
Objects to send mail.
DATA:T_OBJPACK LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE,
T_OBJTXT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
T_OBJBIN LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
T_RECLIST LIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE.
DATA: w_filesize TYPE i,
w_bin_filesize TYPE i,
wa_ctrlop TYPE ssfctrlop,
wa_outopt TYPE ssfcompop,
WA_BUFFER TYPE STRING, "To convert from 132 to 255
WA_OBJHEAD TYPE SOLI_TAB,
WA_DOC_CHNG TYPE SODOCCHGI1,
W_DATA TYPE SODOCCHGI1.
DATA: form_name TYPE rs38l_fnam,
V_LINES_TXT TYPE I,
V_LINES_BIN TYPE I,
nast-spras type sy-langu value 'DE'.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZSR_DEMO1'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = form_name
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
wa_ctrlop-LANGU = nast-spras.
wa_ctrlop-getotf = 'X'.
wa_ctrlop-no_dialog = 'X'.
wa_outopt-tdnoprev = 'X'.
CALL FUNCTION form_name
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = wa_ctrlop
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS = wa_outopt
USER_SETTINGS = 'X'
MYDATE = p_date
REASON = p_rea
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO = t_otfdata
JOB_OUTPUT_OPTIONS =
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
t_otf[] = t_otfdata-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = 132
ARCHIVE_INDEX = ' '
COPYNUMBER = 0
ASCII_BIDI_VIS2LOG = ' '
PDF_DELETE_OTFTAB = ' '
IMPORTING
BIN_FILESIZE = w_bin_filesize
BIN_FILE =
TABLES
OTF = t_otf
LINES = t_lines
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
ERR_BAD_OTF = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
loop at t_lines.
TRANSLATE t_lines USING '~'.
CONCATENATE WA_BUFFER T_LINES INTO WA_BUFFER.
ENDLOOP.
TRANSLATE WA_BUFFER USING '~'.
DO.
t_RECORD = WA_BUFFER.
APPEND t_RECORD.
SHIFT WA_BUFFER LEFT BY 255 PLACES.
IF WA_BUFFER IS INITIAL.
EXIT.
ENDIF.
ENDDO.
Attachment
REFRESH: T_RECLIST,
T_OBJTXT,
T_OBJBIN,
T_OBJPACK.
CLEAR WA_OBJHEAD.
T_OBJBIN[] = T_RECORD[].
Create Message Body Title and Description
T_OBJTXT = 'test with pdf-Attachment!'.
APPEND T_OBJTXT.
DESCRIBE TABLE T_OBJTXT LINES V_LINES_TXT.
READ TABLE T_OBJTXT INDEX V_LINES_TXT.
WA_DOC_CHNG-OBJ_NAME = 'smartform'.
WA_DOC_CHNG-EXPIRY_DAT = SY-DATUM + 10.
WA_DOC_CHNG-OBJ_DESCR = 'smartform'.
WA_DOC_CHNG-SENSITIVTY = 'F'.
WA_DOC_CHNG-DOC_SIZE = V_LINES_TXT * 255.
Main Text
CLEAR T_OBJPACK-TRANSF_BIN.
T_OBJPACK-HEAD_START = 1.
T_OBJPACK-HEAD_NUM = 0.
T_OBJPACK-BODY_START = 1.
T_OBJPACK-BODY_NUM = V_LINES_TXT.
T_OBJPACK-DOC_TYPE = 'RAW'.
APPEND T_OBJPACK.
Attachment (pdf-Attachment)
T_OBJPACK-TRANSF_BIN = 'X'.
T_OBJPACK-HEAD_START = 1.
T_OBJPACK-HEAD_NUM = 0.
T_OBJPACK-BODY_START = 1.
DESCRIBE TABLE T_OBJBIN LINES V_LINES_BIN.
READ TABLE T_OBJBIN INDEX V_LINES_BIN.
T_OBJPACK-DOC_SIZE = V_LINES_BIN * 255 .
T_OBJPACK-BODY_NUM = V_LINES_BIN.
T_OBJPACK-DOC_TYPE = 'PDF'.
T_OBJPACK-OBJ_NAME = 'smart'.
T_OBJPACK-OBJ_DESCR = 'test'.
APPEND T_OBJPACK.
CLEAR T_RECLIST.
T_RECLIST-RECEIVER = 'MAIL-ID'.
T_RECLIST-REC_TYPE = 'U'.
APPEND T_RECLIST.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = WA_DOC_CHNG
PUT_IN_OUTBOX = 'X'
COMMIT_WORK = 'X'
TABLES
PACKING_LIST = T_OBJPACK
OBJECT_HEADER = WA_OBJHEAD
CONTENTS_BIN = T_OBJBIN
CONTENTS_TXT = T_OBJTXT
RECEIVERS = T_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.
IF SY-SUBRC <> 0.
WRITE:/ 'Error When Sending the File', SY-SUBRC.
ELSE.
WRITE:/ 'Mail sent'.
ENDIF.
and i thought of one more soluyion u can write
wa_ctrlop-langu = T002-spras. i think it will also help for u.
revert back if any questions.
please reward me if helpful.
gupta.pullipudi -
Printing Arabic and English Language on a smartform
Hi All,
i need a help. i wanna print English (Left to Right) and one more language of Arabic Style (Right to Left) on a smartform. I tried thru lot of means but the solution is big ZERO as of now. Please somebody help me.
Thanks in advace.
Kind Regards,
ShekherThank you very much for your reply.
Could you mind tell me the Device Settings? I believe ZARSWIN is of customized Printer Settings.
The Requirement is as of below i have print English and Arab Language on the same page.
Waiting for your reply.
Thank You
Shekher Ch
shekher_ch2yahoo.com
blossomsdue2gmail.com
+9609894471 -
Smartform translation into other language
Hello Experts,
i have a requirement of printing of smartform in multiple languages i.e english and french or english and chinese depending on the selection. i have developed my form in 'English'. Now, how to translate the form in other language? Whats the process of doing that..
Can you please explain step by step
Regards
ShekharHi,
First you change the seetings in your Smartform.
Goto Global Settings ---> Form Attributes ---> General Attributes tab
Select the Radio Button "To All Languages".
Now you can use smartforms in any languages.
Please Go through the link for further reference:
URGENT : Converting Smartform into different languages
Re: Multiple Language Support in Smartforms
Hope this will help you.
Regards,
Dhanalakshmi L -
Smartform printing issue in polish language
Hi All,
I am facing a problem in SMARTFORM .
I have developed a form in EN language and converted that in POLISH language using SE63 . When the form is printed in the POLISH language "#" is coming for some special characters of POLISH Language . ( e.g. 'ŁUAŚSĆ' ' but it is coming as '#US#S#'')
Please tell me how to handle these special characters in POLISH Language.
ThanksHi there,
There are many threads in the forum which talk about the accentuated and other special characters, in Polish and other languages. There are also many SAP notes about these issues.
The following can impact the output:
- if your system is Unicode or not
- which device type you use, and what is its code page ("character set")
- which font you use
BR
Sandra -
Printing Only address in other language
Hi all,
My requirement is i want to print address in bangladesh language in rtf template is it possible to do soo.
please help..
thanks...create way for translate address in english language to address in bangla language
for example
you can create table for relation between address in english language (EL) to address in bangla language (BL)
table xx_translt_addrees where
|col1 | col2 |col3 |
|by EL| by BL|some code|
or create lookup for this
or see to multi-language in oebs
next
in query select address (EL) and address (BL)
put to tag in xml (for example)
<address_el>addreesssss by EL<address_el>
<address_bl>addreesssss by BL<address_bl>
next
in rtf template
put field or <?address_el?> for address in EL
put field or <?address_bl?> for address in BL -
Printing Pro*C Outputs with Other Language Text and PCL
Hi,
Since I did not find any separate forum for Pro*C, I am posting my query in this forum.
In our application, using Pro*C programs we are generating reports. These reports contain other language characters such as Arabic, Thai along with printer control characters (PCL). Earlier for the reports that contains only English characters, we have used C program to print the document and now we could not use the same C program because of the presence of other language characters in the output (when the old C program is used for printing, the other language characters are printed as junk).
Can anyone update me about the options that are available in C or VB or any other third party printing program to print the documents generated in other language as well as with printer control characters.
Thanks in advance.
Best Regards,
GanesanHey Thanks .
Does that mean I will put 1900 as character set in that device type and assign it to printer and then print with that ?
Best
Ganesh -
Smartforms : CHanges in one language are not reflecting in other languages.
Hi
I did some changes to the smartforms in language en and was trying to see the effect in other client in language de. But dont see any changes in other language.
Changes that i did were, Changing the text in the forms, addition of new fields, set some conditions to text.
Hope the problem is clear.
Please help.After doing changes in the German Form in transaction SE63, the changes do not reflect in English language after activating the german form.Please help me with your valuable suggestion to solve this problem.
Regards
Ankur Godre -
How to convert smartforms one lanuage to other language
how to convert smartforms one language to other language
en ->ja.Refer the links -
How can we convert language of a smartform.
Re: How to Convert smartfrom from one language to other language
Regards,
Amit
Reward all helpful replies. -
Hello
Anyone has experience in SMARTFORM in Hebrew language
I have a form in EN and for testing i have convert EN text into HE Lang (Tcode:SE63).
When i print this invoice into HE language , SAP Convert the invoice from Right to Left(all the English char) but it works in different way.
Example :
1.
EN : Schindler Nechushtan Elevators Ltd
HE: Ltd Schindler Nechushtan Elevators
2.
EN: Tel: 972 3 7214400 Fax: 972 3 7214405
HE : 7214405 Tel: 972 3 7214400 Fax: 972 3
Do anyone has idea "How it works" and how can i start defined Hebrew forms.
with best regards
RaviHello Gungor
Do you think that for HE i should not translate from SE63 .
I have a form in EN (dev language EN) and from SE63 i convert EN to HE (with all EN).
Now from SE63 , I have a form in HE with English text .
some text is converted from Right to left with strange order
HE --yr.comravi.shankar.tiwary at ch.schindle :E-mail
EN will be : ravi.shankar.tiwary atch.schindler.com
Do you have any example for me how can i handle EN + HE in same form or how can i do it .
do you think that in HE i have to translate the form not through SE63 but to logon in HE and then translate.
With best regards
Ravi -
Problem in Smart form while printing it in POLISH language
Hi All,
I am facing a problem in SMARTFORM and SAP SCRIPT.
I have developed a form in EN language and converted that in POLISH language using SE63 . When the form is printed in the POLISH language "#" is coming for some special characters of POLISH Language . ( e.g. 'Length' should get printed as 'DŁUGOŚĆ' ' but it is coming as 'D#UGO##'')
Please tell me how to handle these special characters in POLISH Language.
ThanksHi,
To solve this Basis need to create a new output device type which supports Latin-2 character set (Device type to I2HP4) or change the existing one to support Latin-2 character set.
Thanks
Edited by: dipesh kothari on May 6, 2008 5:33 PM
Edited by: dipesh kothari on May 6, 2008 5:34 PM -
Smartforms in different languages
Hi guys,
In one form I want the matter to be printed in two different languages.
Eg. One window in English other window in Germany. Is it possible.Hi nagaraju,
In Smartforms we have a option in the initial screen of smartforms
Go to Transaction SMARTFORMS
Enter your form name
then change
Click the Form Attributes
Go to the general attributes of form attributes
there you find language attributes
select the all languages Radio button for multiple languages.
reward points
regards
reena -
Error while printing smartforms
Hi Friends,
I am getting error "<b>Invalid value for parameter ARCHDEST</b>" while printing smartforms. This is happening only in IDES server. In Development the same smartform is working normally. I have checked in transaction SU53, to see whether all the authorisations have been given for IDES server. There is no problem in authorisation also. So what might be the reason for this. Please give me the solution to solve this problem.
Thanks & Regards,
RanjithHi Beginner,
In the layout you have taken window or layout taken the big width in that case only you will get this type error syntatically it shows correct when you exicute the smart from try to give the print or see the print preview you will get this error (suggestion is better to check the window sizes)
Thanks
Ashok
Maybe you are looking for
-
BO 4.0: Database error:Unable to connect to SAP BW server Incomplete logon
Hello Experts, I have enabled a 'SSO to database' between SAP BW and Business objects by referencing to the documents related to below link. http://wiki.sdn.sap.com/wiki/display/BOBJ/HowtosetupSSOagainstSAPBWinSBOBI4.0forLDAPusers I have created a un
-
I am using my ipad on a secure network. I have problems staying connected. It shows I'm connected with full bars but I can't use the internet. I turn the wireless off, reset the network and turned off the ipad, but this problem keeps happening. (I
-
Recording straight to hard drive
Some friends of mine what to shoot on a Sony HDV V1U, and record straight to an external hard drive. Is the proper procedure to start FCP on a lap top and capture just like it was from a tape through fire wire or is there a better method for this? Th
-
Android's software function key hiding, custom page numbering
Please update your app for those two functions. Those two things are really annoying and made me not using adobe reader for android.
-
Emails corrupt when scrolling down
Hi, I have a 9360 and i have a problem that keeps happening. When i scrol down through emails the body of the message disappears and the screen changes to a check pattern. if I scroll backup the text reappears. This only seems to happen on emails