Conversion of smartform to urdu
Dear experts,
My aim is that i should be able to see smartforms from language EN to Urdu.
I have certain doubts to proceed.
1. Will i need to make my SAP ECC 5.0 Unicode enabled ?
2. If step 1 says "yes" does this mean applying all patches related to unicode systems.
Tuning all my Z programs to unicode.May be 2,3 extra things for standard programs too.
Further learning how to program in unicode system.
3. If step 2 says "yes" do i need to carry out so many laborious activities merely to see few urdu words
on my smartforms. This is my first question.
Second question is keeping my system intact and just installing urdu language
on client will solve my purpose or not ?.
I am puzzled and dont know what to do .
Hi,
You can refer following:
Link:[http://www.saplab.net/smart-forms-multiple-language/]
Link:[http://wiki.sdn.sap.com/wiki/display/ABAP/SmartFormLanguageTranslation-StepbyStepprocedure]
Link:[http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=31187]
Thanks,
Renuka S.
Similar Messages
-
Direct Conversion of smartform into PDF system has to take spool request ?
does anybody know:
Direct Conversion of smartform into PDF, system has to take spool request dynamically..
i don't mean to use the SE38 calling PRG RSTXPDFT4 to transfer SAP sript into PDF.
thanks
SRIDHAR--strike Yes this is what I understood.
In the structure job_output_info of your function you'll find your OTF data :
st_ssfcrescl-otfdata --
CALL FUNCTION smartform_fonction_name
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
control_parameters = st_ssfctrlop
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
output_options = st_ssfcompop
user_settings = ' '
IMPORTING
document_output_info = st_ssfcrespd
job_output_info = st_ssfcrescl " This is the one which contains OTF data
job_output_options = st_ssfcresop
TABLES
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
-- Then you just have to convert, using something like that : --
* Convert OTF to PDF
LOOP AT otf_data INTO w_otf.
CONCATENATE w_otf-tdprintcom w_otf-tdprintpar
INTO w_pdf.
APPEND w_pdf TO i_content_txt.
ENDLOOP.
CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
EXPORTING
format_src = 'OTF'
format_dst = 'PDF'
CHANGING
transfer_bin = w_transfer_bin
content_txt = i_content_txt
content_bin = i_content_bin
objhead = i_objhead
len = v_len_in
EXCEPTIONS
err_conv_failed = 1
OTHERS = 2.
v_size = v_len_in.
pdf_itab_size = v_size.
it_pdfout[] = it_pdf[].
* Create the PDF File
CLEAR it_pdfdata.
REFRESH it_pdfdata.
* it_pdfdata[] = it_pdfout[].
LOOP AT it_pdfout.
MOVE it_pdfout-tline TO it_pdfdata-line.
APPEND it_pdfdata.
CLEAR it_pdfdata.
ENDLOOP.
-- The smartform creation and the PDF creation are done in the same time...--
OK, So what do'nt you want to use the RSTXPDFT4 program ?
Hope this helps,
Erwan
Edited by: Erwan LE BRUN on Aug 28, 2008 12:02 PM
Edited by: Erwan LE BRUN on Aug 28, 2008 12:03 PM -
PDF Conversion of Smartform Output
Hi All,
Requirement : Be able to provide customers with reprinting old invoices.
As Is : We have a standard way of doing it by reissuing a print of the Invoice by going into transaction VF02. But in doing so we have a chance that if some master data changes for that customer or the material those changes will get reflected in the new smartform output.
To Be : We want to be able to exactly reproduce the invoice which was sent out at the time of invoice creation, what I mean to say is on initial issue of the print output, is there any way we can store that output(may be as raw data) and retrieve it and issue a print at a later stage.
Any help in this regard would be greatly appreciated.
Karthikhi
check this link...it will help you
https://www.sdn.sap.com/irj/scn/advancedsearch?query=sendalvtomailas+pdf&cat=sdn_all
or
REPORT zsuresh_test.
Variable declarations
DATA:
w_form_name TYPE tdsfname VALUE 'ZSURESH_TEST',
w_fmodule TYPE rs38l_fnam,
w_cparam TYPE ssfctrlop,
w_outoptions TYPE ssfcompop,
W_bin_filesize TYPE i, " Binary File Size
w_FILE_NAME type string,
w_File_path type string,
w_FULL_PATH type string.
Internal tables declaration
Internal table to hold the OTF data
DATA:
t_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
Internal table to hold OTF data recd from the SMARTFORM
t_otf_from_fm TYPE ssfcrescl,
Internal table to hold the data from the FM CONVERT_OTF
T_pdf_tab LIKE tline OCCURS 0 WITH HEADER LINE.
This function module call is used to retrieve the name of the Function
module generated when the SMARTFORM is activated
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = w_form_name
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
fm_name = w_fmodule
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.
Calling the SMARTFORM using the function module retrieved above
GET_OTF parameter in the CONTROL_PARAMETERS is set to get the OTF
format of the output
w_cparam-no_dialog = 'X'.
w_cparam-preview = space. " Suppressing the dialog box
" for print preview
w_cparam-getotf = 'X'.
Printer name to be used is provided in the export parameter
OUTPUT_OPTIONS
w_outoptions-tddest = 'LP01'.
CALL FUNCTION w_fmodule
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
control_parameters = w_cparam
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
output_options = w_outoptions
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
job_output_info = t_otf_from_fm
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_otf_from_fm-otfdata[].
Function Module CONVERT_OTF is used to convert the OTF format to PDF
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_pdf_tab
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.
To display File SAVE dialog window
CALL METHOD cl_gui_frontend_services=>file_save_dialog
EXPORTING
WINDOW_TITLE =
DEFAULT_EXTENSION =
DEFAULT_FILE_NAME =
FILE_FILTER =
INITIAL_DIRECTORY =
WITH_ENCODING =
PROMPT_ON_OVERWRITE = 'X'
CHANGING
filename = w_FILE_NAME
path = w_FILE_PATH
fullpath = w_FULL_PATH
USER_ACTION =
FILE_ENCODING =
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
NOT_SUPPORTED_BY_GUI = 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.
Use the FM GUI_DOWNLOAD to download the generated PDF file onto the
presentation server
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE = W_bin_filesize
filename = w_FULL_PATH
FILETYPE = 'BIN'
APPEND = ' '
WRITE_FIELD_SEPARATOR = ' '
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
CONFIRM_OVERWRITE = ' '
NO_AUTH_CHECK = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = ' '
TRUNC_TRAILING_BLANKS_EOL = 'X'
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
IMPORTING
FILELENGTH =
tables
data_tab = T_pdf_tab
FIELDNAMES =
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards
Ansumesh -
Conversion of smartform output to DOC format
Hi,
I have a requirement to convert Smartform output to DOC format. Could anyone provide me any direction for this?
SSHi SS,
In the link sent by Anki Reddy... you can follow the same but in this FM change PDF to DOC thats it.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'DOC' * Change from 'PDF' * to DOC
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_pdf_tab
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
ERR_BAD_OTF = 4
OTHERS = 5
Regards,
sg -
Language Conversion in Smartform
Hi Gurus,
I have a little problem with a Smartform... I need to show differents languages in the same Form, depends on the client language.
Can somebody help me?
Many thanks for all
Rakesh RhI
if the language parameter, be it a flag or sy-langu is passed to the Smartform, then u can have different variables for the same text carrying the same word in different languages. Based on the language parameter, u can use conditions in ur Smartform to display the correct word depending on the language. Hope u clear...
By adding a Text module we can do this.
i.e in smartforms transaction
you can see the text module
in that text module you can upload any type of language
and add this in your forms. -
PDF Conversion from Smartform-Thai
Hi All,
we have smartform which has Thai Characters along with bar codes. we want to convert it into PDF, as have tried PDF! however the Thai in not coming as correct. we have uploaded TTF as well. please anyone suggest any SAP notes for this or solution.
Thank you very much!
Regards,
PradeepHi Wen,
TH_VISTA_FONTS is already activated in the system. please refer the attached screenshot.
Regards,
Pradeep -
Amount conversion in smartform
HI all,
I have an amount of 1,80,000 as total amount in the smartform . I called a function module to display the amount in words ,but its showing as one hundred and eighty thousand and zero.
How to display it as one lakh and eighty thousand and zero in the smartform?
Do we have to do any changes in the called function module?
In my profile its been defined as 1,000,00 but still am not getting.
ThxHi,
Remove Spell amount and use this
CALL FUNCTION 'HR_IN_CHG_INR_WRDS'
EXPORTING
AMT_IN_NUM = G_TOTAL1
IMPORTING
AMT_IN_WORDS = G_GRNDTOT_WORDS
EXCEPTIONS
DATA_TYPE_MISMATCH = 1
OTHERS = 2 -
PDF conversion of smartform- Printing Latin -2 characters
Hi All,
We are facing a typical issue with Printing of Latin -2 characters in PDFs.
These are characters from the Polish language for e.g. char 'Ń'.
These were originally printing as # in the Production system. After raising a message with SAP, they came up with the advice of uploading Latin-2 fonts using note 141343.
However when I did a test in the sandbox system, the character 'Ń' is replaced by character 'C' and not '#'. This was even before I could upload an appropriate font! I am confused as to why this is happening.
Any help appreciated.
Regards,
Jitender.Hi ...
we had a similar kind of problem ..in which the special characters were coming in development and quality systems..but when they were moved to production system..the special characters were not coming and the desire characters were getting printed...this was becuase of the difference betwwen the codepage of dev and production systems.....So i think in your case also the same may work....
Edited by: Rudra Prasanna Mohapatra on Aug 6, 2008 1:15 PM -
Smartform Output to PDF conversion
Hi experts,
i want to convert the smartform output to PDF Format and stored it in system level.But i got the following information message "OTF end command // missing in OTF data".
I used "CONVERT_OTF" for conversion of smartform output and "WS_DOWNLOAD & GUI_DOWNLOAD".
wt it means,can i make any changes,if tl me why it shows the message.
points wl be rewarded.
Thank you
chandu
Edited by: Chandu Valluri on Jan 4, 2008 12:56 PMhi,
*& Report ZPDF_DNLD_TEST2 *
*& DEVK904540 *
REPORT ZPDF_DNLD_TEST2 .
data: i_otf LIKE itcoo OCCURS 100 WITH HEADER LINE,
i_pdf LIKE tline OCCURS 100 WITH HEADER LINE.
data: op_option type SSFCTRLOP,
job_output type SSFCRESCL.
op_option-getotf = 'X'.
CALL FUNCTION '/1BCDWB/SF00000005'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = op_option
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
itab1 = itab1
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO = job_output
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.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = 132
ARCHIVE_INDEX = ' '
COPYNUMBER = 0
ASCII_BIDI_VIS2LOG = ' '
PDF_DELETE_OTFTAB = ' '
IMPORTING
BIN_FILESIZE =
BIN_FILE =
TABLES
otf = job_output-otfdata
lines = i_pdf
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.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
filename = 'c:\test_pdf_sf.pdf'
FILETYPE = 'BIN'
tables
data_tab = i_pdf
FIELDNAMES =
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
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 Adobe Form to SMARTFORM
Hi,
is it possible to convert a form created with adobe form builder to a SMARTFORM document?
I need to upload a PDF or DOC document into a SMARTFORM. This seems not to be possible. So I used Adobe for this upload. But now I can't convert it to a SMARTFORM document...
Can this problem solved?
Any help is appreciated!
Thanks and regards
GabrielHi Gabriel,
as far as I know, SAP does not deliver any tools to support conversion between smartforms and pdfs ... I did it manually, which is a pain in the neck ...
Steph -
Hi,
I want to send a smartform with a barcode by e-mail.
Currently the conversion of smartforms in SCOT is set to TXT. When I check the smartform on screen (from transaction SOST) the barcode is correct but when the e-mail is dispatched, the barcode is converted into a number again.
If I change the conversion to PDF, the PDF document attached in the e-mail displays the barcode but I don't want every mail to be sent as PDF.
Is it possible to:
- send a barcode in a TXT e-mail?
- or send this smartform as PDF by e-mail and every other smartform as TXT?
- or convert a smartform (or some smartforms) to HTM in stead of the default TXT, PDF, etc.?
Thanks for your help!
Regards, PatrickHi,
1) Take the spool request no. from SP01
2) Go to SE38 and use this program RSTXPDFT4 and enter the spool no. and convert it into PDF and store it in your hard disk with the path and download the file.
3) This you can use it to attach in email offline and can send to the vendor.
Best regards,
Sridhar -
Hi, experts
I want to send the Smartform to mail as PDF attachment.
I found the program in code gallery., it name was 'ZTEST_NREDDY_PDF_MAIL' .
I wrote my program .it was send the Smartform to mail as PDF attachment
but when open the pdf file it gave me error.
error : 'An unrecognized token '654.15Td' was found.
Please help me out.
Thanks&Regards,
AyşenurHi,
Please refer this program which is as per your requirement.
conversion of smartform to pdf souce code its urgent pls
Best regards,
Prashant -
Suppress the zeros in quantity filed
Hi friends,
in smart forms i need to suppress the zeros in the quantity field.
instead of 2.00 EA it should be 2 EA.
it should happen only for EA unit of measure.
regards,
Saravan Rajone way is using the conversion .
in smartform,
Delcare a v_qty global variable with lenght of character 17.
Just before the text node for printing the quanity, create a program node.
if you quantity field name is v_quant and unit of measure field name is v_unit.
in the program node, use the below statement:
write v_quant to v_qty unit v_unit.
and use field v_qty in the text node for printing the quantity -
Hi,
I need to convert Smartform data stream into HTML format and
pass the same to Webdynpro application where it will be displayed on the browser.
I have specified Smartform output format as 'XSF output+HTML'.
Use of BSP application is ruled out due to certain limitations.
The FM CONVERT_OTF returns data in ASCII or PDF format only.
Can any one tell some Function Module name to convert
Smartform data to HTML format or any other way out?
thanks.check out this link
Smartform to HTML conversion
thnks
jaideep
*reward points if useful -
Smartform to PDF conversion having issue with Russian address
We are having a business situation we are the invoice in English language and the the address of ship-to party and sold-to party in Russian.
The issue we face is.
When the smartform is converted to PDF the Russian specific characters are missing in the PDF output. The same are perfect in the smart form print preview.
we are using CONVERT_OTF function module and we are getting the Russian characters correctly in the table parameter OTF.
We are using "SX_TABLE_LINE_WIDTH_CHANGE" and " SO_DOCUMENT_SEND_API1"
function module to attach and mail the pdf.
In the PDF we are missing the Russian specific characters .
For Example in "Sedláčkova čč" the output is "Sedláčkova " means "čč" is mising
Thanks in advance
Regards
JobyHi,
As described in note 999712 - PDF conversion for Unicode, there is a new unicode PDF converter PDFUC.
It depends on the SAP Version if you have to install the device type or not. You can check also via SPAD -> Full Administration -> Device Types -> Display.
You can pass the device type in the output options. I used:
SSFCTRLOP-no_dialog = 'X'.
SSFCTRLOP-getotf = 'X'.
SSFCTRLOP-langu = 'EN'.
SSFCOMPOP-tdprinter = 'PDFUC'.
If you specify a device other than printer in the control options like SSFCTRLOP-device = 'TELEFAX'., above will not work as
SSFCOMPOP-tdprinter is only evaluated for printer.
You have to check in SCOT -> Settings -> Device Types for Format Conversion.
You can make a general entry or for a specific language:
PDF SAPscript/Smart Forms PDFUC
PDF EN English SAPscript/Smart Forms PDFUC
Let me know if you get this working.
Jeroen.
Maybe you are looking for
-
Do I need a separate volume.
My question, do you need a separate volume for Time Machine. or can data reside on the same volume as the backup.
-
11.1.4 gives me an error message that says Service "Apple Mobile Device" failed to start. Verify that you have sufficient privileges to start system services. Now, iTunes won't work at all.
-
Less than one week old, my 27" Retina iMac is- dead! I put it to Sleep a few hours ago, and returned to find that I could not wake the machine. Screen trouble? Pressing the Power button, to turn it OFF, and pressing it again to turn it ON produced NO
-
Internet Based Client Management - upgrade clients
Hi. I have a customer, who wants to deploy an SCCM site and Internet Based clients. Main purpose is to patch manage the clients. I have one concern though - the certificate and client deployment AND the ongoing upgrade of clients. I believe, we will
-
How to catch the Ctrl-V (paste) event in TextEdit UI element
Hello Experts, I want to track the Ctrl-V event in the TextEdit UI element . Is there any possibility to do this . Please help . Regards Vivek