SmartForms Printing Error for Japanese Characters
Hi,
I have an issue with Printing Japanese Characters in the SmartForm.
When I Print Preview the smartform I can see the characters in Japanese but when I Print the actual smartform in the printer, all I get is some junk characters like # and !.
I have the following setting in the smartform.
Multi-Byte functionality enabled
Character set used is Shift JIS
Smartform created in language EN
Translate to All Languages set to true
No restriction on Language Control
Smartstyles used has JPMINCHO fonts only
Default Para is JPMINCHO
Characters formatting has explicit JPMINCHO as font
Login language is JA
Printer is Local Printer with device type JPSAPWIN
When I debug the Smartform function module, the OTF Data Table (within the function) shows characters in Japanese (with codepage 8000) but then I look at the actual spool as a result of processing the function, it comes up as garbled.
Interestingly, I have exactly the same settings on another test smartform to print just 2 columns and it works well.
Not sure where I am going wrong.
Appreciate help on this issue.
Many Thanks
Krishnan
hi,
has anyone solved this problem? even i m facing the problem. me restating the problem as below:
in VF02 transaction, for billing document we are trying to print smartform. Our logon languagae is EN and the Output Type langugae is EN. In spool, we are getting the CORRECT format ie the texts that are maintained in Japanese are showing as Japanese characters while the whole smartform is in English format.
Our requirement is to PRINT (from printer) the texts that are maintained in Japanese should get printed in Japanese format. I know that this is problem with printer settings. The printer is printing perfectly fine as other documents in Japanese characters so its ensured that printer is enabled for Japanese.
I suppose some kind of setting needs to be done at SAP end so that printer recognises double-byte character set of Japanese.
Waiting for confirmation/ solution.
Thanks
Debs
Similar Messages
-
Smartform print program for order confirmation
Hi experts.
I am looking for a smartform print program for order confirmation.
The order confirmation in standard is a script with the name RVADOR01 and I tried to copy and change but I don't know which to eliminate and whcih to keep it.
If any body written the program already please provide me or provide the link to check.
Thanks in advance
Saithis is the processing form.
form processing.
data: lf_fm_name type rs38l_fnam.
data: ls_control_param type ssfctrlop.
data: ls_composer_param type ssfcompop.
data: ls_recipient type swotobjid.
data: ls_sender type swotobjid.
data: lf_formname type tdsfname.
data: ls_addr_key like addr_key.
data: document_output_info type ssfcrespd,
job_output_info type ssfcrescl,
job_output_options type ssfcresop.
perform get_data.
check retcode = 0.
perform set_print_param using addr_key
changing ls_control_param
ls_composer_param
ls_recipient
ls_sender
retcode.
*Get the Smart Form name.
if not tnapr-sform is initial.
lf_formname = tnapr-sform.
else.
message e001(/smb40/ssfcomposer).
endif.
determine smartform function module for invoice
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = lf_formname
importing
fm_name = lf_fm_name
exceptions
no_form = 1
no_function_module = 2
others = 3.
if sy-subrc <> 0.
error handling
retcode = sy-subrc.
if sy-subrc = 1.
message e001(/smb40/ssfcomposer).
endif.
if sy-subrc = 2.
message e002(/smb40/ssfcomposer) with lf_formname.
endif.
perform protocol_update.
endif.
call function lf_fm_name
exporting
archive_index = toa_dara
archive_parameters = arc_params
control_parameters = ls_control_param
mail_recipient = ls_recipient
mail_sender = ls_sender
output_options = ls_composer_param
user_settings = ' '
is_nast = nast
is_vbdka = vbdka
is_addres = addr_key
importing
document_output_info = document_output_info
job_output_info = job_output_info
job_output_options = job_output_options
tables
it_vbdpa = tvbdpa "Item information
it_vbdpau = tvbdpau "Subitem numbers
it_vedpa = tkomservp "Contract Item Validity
it_vedka = tkomservh "Contract Header Validity
it_vedpn = tkomservpn "Contract Item Cancellation Data
it_vedkn = tkomservhn "Contract Header Cancellation DA
exceptions
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
others = 5.
if sy-subrc <> 0.
retcode = sy-subrc.
perform protocol_update.
get SmartForm protocoll and store it in the NAST protocoll
perform add_smfrm_prot.
endif.
endform. "processing -
Can anybody plz give me Smartforms print prog for Invoice/PackList
Hello Smartforms Gurus
Can anybody plz give me Smartforms print prog for Invoice/Packing List. I need to develop the same from scratch. I know Smartform for simple Application but complex application i need to refer u all guys prog plz.
I would be greatful plz.
Thnx In AdvanceHi,
Could you please give me the link where you found these group of pre-configured smartforms available in sap labs?
I looked for... but i have not founded it.
Thanks in advance!.
Regards,
Albio.- -
Converting garbled characters for JAPANESE characters in a custom table
Hi all,
I have a custom table that store Japanese characters.
After my company has upgraded to ECC6.0, this data in the custom table has become garbled and its alot of it garbled.
Is there any SAP tool that can I use to make the correction on those garbled Japanese characters?
Thanks,
William WilstrothHi Nils,
I really really really had a field day reading and testing around UC... To my dissappointment, I do not have the authorization to use SUMG and SCP too as well as a few of the TCODES...
I finally told my higher level technical mgnt. that this table might need some changes...
Has this problem of mine got anything to do with MDMP since its no longer supported in ECC6 and I found one coding that search for MDMP in RSVTPROT...
My colleagues suggest that the data be corrected from table DBTABLOG... which i find, in my opinion, is not the right way...
Thanks,
William -
Smartform Printing : Error in spool C call: Error from TemSe
Hi! everybody,
I am stating my problem as follows : I have to print a bar-code sticker of size 10 X 7 cms. I have worked on bar-codes before this also. This time the output from a smartform is to be given to a ZEBRA TLP 2844 printer. I initially encountered problems in printing. The data does not fit on to the page.
After a lot of searching I found that ZEBRA was a partner of SAP and that a special device type needs to be created for output from a ZEBRA printer. I did this two times. Each time my steps were as described under.
To create the device type I did the following :
1. I finally found the driver from the ZEBRA website from http://www.zebra.com/id/products/global/en/utilities/sap_device_types.UtilityFile.File.tmp/Zebra_SAP_Device_Types.zip From this I uploaded the driver for 203 DPI zebra printer with IBM code 850 font file name "YZB200.PRI" into the transaction SA38.
2. Then I created a new device ZEB10 in SPAD after assigning my format to the device.
Thereafter, I tried to print my sticker. During this procedure, on selection of the new device type, the fonts automatically changed to ARIAL in the print preview. When I give the print command (Spool request : Print immed = X, Delete after output = X & New spool request = X) it gives an error message Error in spool C call: Error from TemSe.
Since the output had not been issued, I opened the spool request to view its TemSe characteristics. Here I found
Spool Attributes
Output Device ZEB10
Format ZTT Format
Doc. Category SMART
Recipient
Department
Deleted On 19.01.2011
Authorization
Output Attributes
No. of Copies 1
Priority 5
SAP Cover Page Do not print SAP cover page
OS Cover Sheet Print as set at printer
Requested 0
Processed 0 With Problem 0
With Error (Not Printed) 0
Storage Mode Print
TemSe Attributes
Object name SPOOL0000013836
Data type ????????????
Character set 0 -
> Character set of dev type = 1162
Number of parts 0
Record format
Size in bytes 0
Storage location
On seeing SP01
Spool no. Type Date Time Status Pages Title
13836 Smartforms(OTF) 11.01.2011 07:32 + 0 SMART LP01 USERID
I hope this data helps you help me. Please ask for more data if you wish. Also, I have searched vastly for this error on the net have already come across the link http://help.sap.com/saphelp_45b/helpdata/en/d9/4a8f9c51ea11d189570000e829fbbd/frameset.htm but to no use. On the SDN, I have not found a similar thread and that is why I decided to post this problem here, hoping to find a solution. Kindly help.
Regards,
ManasHi Manas,
I am facing the same issue for one of my clients.
Can you please share the solution with me if you have come out with it.
Regards,
Nirmal.K -
Smartform System Error for VF03 output type
Hi Friends,
Error encountered in Smartform:
Message no. SSFCOMPOSER181
Diagnosis
You tried to switch to the next table column, but no other column exists. The current column is 10. The line type %LTYPE1 contains only 10 columns.
System Response
The system issues an error message.
Procedure
Check whether the current line type is the desired line type and whether you defined a switch to a new table line.
%LTYPE1 contains only one cell consisting Material Description & Code .Apart from that nothin is there in line.
Please help.
Regards,
Abhishek.Hi,
check what is going else for JEX billingtype documents.
if that does not work out you can try to locate where it is going wrong.
how you do that: Disable a part of your form with conditions.
then if you have done it so far you didn't get that error meesage. Then shrink the part you have disabled until it goed worng again. Then it is going wrong in the last part you have enabled. It is a lot of work but debugging in smartform is not as easy as in sapscript.
success., Gr., Frank -
Hi ,
I'm trying to print a smartform but there is a problem when I try it from the spool(SP01).
The message is : incorrect (Reason unknown);
Log :
SAP spool error log
=====================
Print request processing log
Errors occurred processing this print request
OTF module: Page buffer (80*1000 entries) is too small
OTF module: Page buffer (80*1000 entries) is too small
OTF module: Page buffer (80*1000 entries) is too small
OTF module: Page buffer (80*1000 entries) is too small
OTF module: Page buffer (80*1000 entries) is too small
OTF module: Page buffer (80*1000 entries) is too small
OTF module: Page buffer (80*1000 entries) is too small
OTF module: Page buffer (80*1000 entries) is too small
OTF module: Page buffer (80*1000 entries) is too small
OTF module: Page buffer (80*1000 entries) is too small
OTF module: Page buffer (80*1000 entries) is too small
OTF module: Page buffer (80*1000 entries) is too small
OTF module: Page buffer (80*1000 entries) is too small
OTF module: Page buffer (80*1000 entries) is too small
OTF module: Page buffer (80*1000 entries) is too small
Did you already have this problem?
Thanks a lot
KarimHi Rejish,
we have the same problem here with SAP 730. Printing a smartform we get the "OTF module: Page buffer (80*1000 entries) is too small" error.
In ST03N I can see an "oversized" raw which refers to my print test.
This is the Task/Memory view:
I read about the note 1331658 but I think that in SAP 730 they have already fixed it..it's ad old note from 2009.
Thanks in advance -
Adobe Livecycle Form Printing Error for One Form
Only for this particular form, I am receiving the following error; all other forms are printing fine. Please assist us in understanding the error? <br /><br /><Sep 16, 2008 2:26:16 PM EDT> <Info> <WebService> <BEA-220024> <Handler weblogic.webservice.core.handler.InvokeHandler threw an exception from its handleRequest method. The exception was:<br />javax.xml.rpc.JAXRPCException: weblogic.webservice.TargetInvocationException: Failed to invoke the target:com.adobe.formServer.ws.AdobeFSServiceImpl@1cf630a operation name:XMLGetForm method:public java.lang.String com.adobe.formServer.ws.AdobeFSServiceImpl.XMLGetForm(java.lang.String) throws java.rmi.RemoteException exception:java.rmi.RemoteException: com.adobe.formServer.interfaces.FormServerException: java.util.MissingResourceException: Can't find bundle for base name com.adobe.formServer.fsLogging, locale en_US; nested exception is: <br /> com.adobe.formServer.interfaces.RenderFormException: com.adobe.formServer.interfaces.FormServerException: java.util.MissingResourceException: Can't find bundle for base name com.adobe.formServer.fsLogging, locale en_US; nested exception is: <br /> java.rmi.RemoteException: com.adobe.formServer.interfaces.FormServerException: java.util.MissingResourceException: Can't find bundle for base name com.adobe.formServer.fsLogging, locale en_US; nested exception is: <br /> com.adobe.formServer.interfaces.RenderFormException: com.adobe.formServer.interfaces.FormServerException: java.util.MissingResourceException: Can't find bundle for base name com.adobe.formServer.fsLogging, locale en_US.>
Hi Donna,
the plug-in you are referring to is, as you correctly state, an Adobe plug-in for Adobe's LiveCycle product family.
The ISR integration of Interactive Forms in SAP is based on Adobe components in Interactive Forms (Designer and ADS) that are 'related' to LiveCycle, but in essence a separate development for SAP. In addition, the ISR integration was built on top of the originally implemented integration on both the ABAP and Java side.
Within NetWeaver, there is no support for using Adobe plug-ins for forms development in .NET. This would be something that Adobe might be able to assist you with, but I assume that this would be a professional service by Adobe.
Kind regards,
Markus Meisl
SAP NetWeaver Product Management -
Smartform Printing Problem for double sided printing
Hi Techies,
I have created a smartform for invoice printing, using double side printing.
The requirement is that in the front page, page number has to be printed and at the back side static text is to be printed. So if my line items exceed to two pages. Than in printing, it is getting priinted as "Page 1 of 4" for the 1st invoice items page and "Page 3 of 4" for the second items page. But the client is asking it to be printed as "Page 1 of 2" & "Page 2 of 2" respectively.
Currently I am using Page&SFSY-PAGE& of &SFSY-FORMPAGES&.
Can anyone guide me how to achieve this requirement.
Thanks & Regards,
Vinit.Hi vinit,
better u declare your own variable . and check with sfsy , the footer window must be final window
data : lv_page type sfsy-page,
lv_tot_page type sfsy-page.
if sfsy-formpages > 2.
lv_tot_page = sfsy-page / 2.
if sfsy-page >2
lv_page = sfsy-page - 1.
else.
lv_page = sfsy-page.
endif.
else .
lv_page = sfsy-page.
lv_tot_page = sfsy-formpages.
endif -
Printing Error: A few characters + MANY blank pages
Windows 7 Professional
Thunderbird: 24.3.0
Every time I print from Thunderbird only a few characters print out, then MANY blank pages.
Print preview appears fine on screen.
Printing to PDF Creator from Thunderbird IS FINE.
Printing is PERFECT from all other applications.
Reset 'print_printer' to default in Config Editor. -> no joy
Many Thanks!Hi Matt ~
Replacing the printer driver (HP Laserjet 4 Plus) DOES correct the problem when printing email messages with Thunderbird 31.1.0. However, the next time I print a message - in a separate session - sometimes days apart, the problem reoccurs and I need to replace the driver - again.
As originally stated, all files related to other applications print just fine, without replacing the printer driver.
Any idea why the reoccurring, discordant relationship between Thunderbird and the printer driver???
Many Thanks, Jacob -
Printing Japanese Characters on Zebra ZM400 from Smartform
Hi Experts
I am trying to configure a Zebra ZM400 printer to print a Japanese label from a smartform but get no Japanese characters on the output.
The original language of the smartform is English, but I have maintained a translation in SE63 which uses the Andale_J font.
The printer ZM400 has the ANDMJ.TTF font installed and the printer has been set up in SPAD to use the LZEBU2 device type (which is the Zebra Printer Driver for 200dpi) and the Berkeley protocol (U).
When looking at the printer spool in graphical format I am getting the appropriate Japanese characters displayed, when looking in RAW format it appears to be using the correct font, FCANDALE_J, although the characters are represented as #'s. On the printer output, I get numbers or English where no translation has been maintained, but nothing where the Japanese characters should be.
Has anyone come across this problem before, or have any idea how to solve this issue?
Thanks very much
Andrew BeavanHi Aidan
Thanks for your swift response, as you may have guessed this is all very new to me and so I am struggling to make much progress.
I have uploaded the andale_j font to the printer which creates a file called anmdj.TTF. I have also uploaded a JIS.DAT file which should convert any TTF to unicode and a printer configuration file which should effectively set this font as the default.
I have tried to upload a TTF font in SAP using se73 and created a device type to go with this, however whenever I set the device type for the printer to this I get no print spool request generated. Based on your reply, I have created a style using the TTF font I uploaded, but again when I reference this in a smartform I get no errors displayed, but I also don't get a print spool request generated so I'm not convinced that the font has been loaded correctly into SAP.
I have just wiped the flash memory on the printer and am re-loading the font using a slightly different setting on the printer, so will try that, but welcome any further suggestions or clarifications if I have mis-understood your previous reply.
Many thanks for your help.
Andrew Beavan -
Chinese/Japanese characters not appearing on smartforms PDF output
Hi,
The print preview of the Smartforms output layout is correctly displaying the characters of native/local languages like Chinese, Japanses etc.....but when i try to print this output, it is printing the junk characters.
Whereas the same printer is able to print the Chinese, Japanese characters when printed from MS Word.
So this issue is occurring only when printing from SAP.
In spool i could see the Chinese/Japanese characters appearing correctly, whereas when i try to convert it to PDF using program RSTXPDFT4, the PDF is again showing junk characters replacing the chinese characters.
Thanks!This could be of different reeasons...
1) Make sure your printer is uni-code enabled.
2) Make sure, your unicode enabled printer is configured in SAP.
3) make sure, your printer device is supported by SAP. (You can find list of SAP recommended printers in www.service.sap.com)
4) Check whether the correct device type is used for printing chinese and japanese characters.
5) Check code pages.
6) Make sure you use Cyrillic font family, for printing chinese and Japanese characters.
Regards,
SaiRam -
Java PrintService printing Chinese/Japanese characters output is garbled.
Hi Java Gurus,
I have been spending the whole day trying to make our text printing application able to print non-western Characters (e.g. Chinese and Japanese) as part of our requirements. But I am constantly getting garbled output when I print a UTF-8 formatted text file containing Chinese characters. I've been trying to switch the DocFlavor types (e.g. byte array in UTF 8, input stream auto sense, UT8-8, etc) but I couldn't simply make it work.
Here is our test method:
public void testPrintText(String fileName) throws Exception {
FileInputStream textStream = new FileInputStream(fileName);
File file = new File(fileName);
String fileContent = FileUtils.readFileToString(file);
DocFlavor flavor = DocFlavor.BYTE_ARRAY.TEXT_PLAIN_UTF_8;
//DocFlavor flavor = DocFlavor.READER.TEXT_PLAIN;
InputStreamReader isr = new InputStreamReader(textStream, "utf-8");
DocAttributeSet das = new HashDocAttributeSet();
//System.out.println("host encoding: " + flavor.hostEncoding);
Doc mydoc = new SimpleDoc(fileContent.getBytes("utf-8"), flavor, das);
//Doc mydoc = new SimpleDoc(textStream, flavor, das);
PrintRequestAttributeSet pas = new HashPrintRequestAttributeSet();
pas.add(new PrinterName("\\\\fsinec\\Canon iR5055 PCL6", null));
PrintService[] services = PrintServiceLookup.lookupPrintServices(flavor, pas);
PrintService defaultService = PrintServiceLookup.lookupDefaultPrintService();
System.out.println("DEBUG: " + defaultService.getClass().getName());
if(services.length == 0) {
if(defaultService == null) {
//no printer found
} else {
//print using default
DocPrintJob job = defaultService.createPrintJob();
job.print(mydoc, pas);
} else {
//built in UI for printing you may not use this
PrintRequestAttributeSet attSet = new HashPrintRequestAttributeSet();
for(int ctr=0; ctr<services.length; ctr++) {
PrintService printService = services[ctr];
System.out.println("COTS DEBUG: " + defaultService.getClass().getName());
//attSet.add();
PrintService service = null;
if(services.length == 1) {
//assume that there is no other printer with the name \\\\fsinec\\Canon iR5055 PCL6
//resulting to fetch the printer services to only one (1) element.
service = services[0];
/* open a dialog box
* PrintService service =
ServiceUI.printDialog(null, 200, 200, services, defaultService, flavor, attSet);*/
if (service != null) {
DocPrintJob job = service.createPrintJob();
job.print(mydoc, attSet);
Please help me on this.
Thanks.This could be of different reeasons...
1) Make sure your printer is uni-code enabled.
2) Make sure, your unicode enabled printer is configured in SAP.
3) make sure, your printer device is supported by SAP. (You can find list of SAP recommended printers in www.service.sap.com)
4) Check whether the correct device type is used for printing chinese and japanese characters.
5) Check code pages.
6) Make sure you use Cyrillic font family, for printing chinese and Japanese characters.
Regards,
SaiRam -
Printing Japanese characters in English form
Hi all,
i have a requirement to print the japanese characters in the from which is printed in english.
Actually the customer adress is in japanese but when i am printing it,the japanese characters are not getting printed (text is printed as some square boxes).
Any ideas to print the japanese text as it is...
Thanks and Regards,
Sravanthi ChilalHi,
Is your text coming from an internal table or it is a standard text that you want to print in adobe form?
If it is standard text or long text,Creating a Text node by right clicking on the top node and then
CREATE -> TEXT.
In the properties of the TEXT node select Text type Include Text and then provide the Text Name, Text Object, Text ID and Text Language values as shown below.
Drag the structure from the interface into the Context.
We can pass the Text node properties values dynamically as well.
If our application makes no use of the Business Address Services but you still want to have country-specific addresses, we must use ABAP coding to achieve this. It is possible to do this in the application program or in the initialization coding of the interface.
In interface,
Define Import parameter under Form Interface.
IS_CUSTOMER_ID TYPE S_CUSTOMER
IS_COUNTRY TYPE LAND1
TYPES:
BEGIN OF ty_adr_printform_table_line,
line_type TYPE ad_line_tp,
address_line LIKE adrs-line0,
END OF ty_adr_printform_table_line.TYPES:
ty_adr_printform_table TYPE TABLE OF ty_adr_printform_table_line.
Define Global Work Areas and Internal Tables under Global definition as shown below.
IS_ADDRESS TYPE ADRS1.
IT_ADDRESS_LINES TYPE TY_ADR_PRINTFORM_TABLE.
IS_ADDRESS_LINE TYPE TY_ADR_PRINTFORM_TABLE_LINE.
IS_SCUSTOM TYPE SCUSTOM.
SELECT SINGLE *
FROM scustom
INTO is_scustom
WHERE id EQ is_customer_id.is_address-title_text = is_scustom-form.
is_address-name1 = is_scustom-name.
is_address-street = is_scustom-street.
is_address-po_box = is_scustom-postbox.
is_address-post_code1 = is_scustom-postcode.
is_address-city1 = is_scustom-city.
is_address-region = is_scustom-region.
is_address-country = is_scustom-country.* Address Format According to Post Office Guidelines
Note : Refer Function module documentation for more information.CALL FUNCTION 'ADDRESS_INTO_PRINTFORM'
EXPORTING
address_1 = is_address
address_type = '1' "normal/company
sender_country = is_country
number_of_lines = 8
IMPORTING
address_printform_table = it_address_lines.
*******If the customer address in the database table is in english, you cannot print in Japanese. -
Smartform Output with English & Japanese languages
Hi All,
I have to develope a smartform with english and Japanese languages in the output. Login language will be EN. The sap system is a Unicode system. The problem is with the Japanese characters. I could able to view english characters properly in the print preview but Japanese characters are replaced by #. I tried with unicode enabled (code page 4110) printer driver also. Could anybody worked before on this. Please provide me the settings need to be done inorder to print both langauages using a single smartforms.
Regards
VijayFor Japanese characters to dispaly use the font JPMINCHO
For printing use the device type as JPSAPWIN.
Regards
Yogesh
P.s.: Reward points is problem is solved .
Maybe you are looking for
-
How can I erase duplicate contacts on my iphone?
I have 100's so I can't do it one by one.
-
Podcast Smart Playlist and Live Updating - Fail
I have a simple smart playlist - Media Kind is Podcast Plays is 0 Live Updating ticked Syncs to iphone no problem but after playing a podcast it is not removed from the list as happens in itunes and my ipod. Does anyone have any ideas ? Thanks for an
-
Hi Experts, We are using SAP 4.7 EE.We are using SAP Insurance Collection and Distribution Management. We are having currently issue as JP Morgan Chase Bank and Bank One have merged their operation. Please advice us How can we merge all the House Ban
-
Db2-connect error - dboraslib.dll - specified module could not be found
While I am trying to START SAP server, its giving the db2-connect error . showing the following error, can anybody throw some light. Thanks trc file: "dev_w1", trc level: 1, release: "620" ACTIVE TRACE LEVEL 1 ACTIVE TRACE COMPONENTS a
-
Backlight problem along with a few others...ideas?
I'm having the classic backlight issue that seems to be getting more frequent (use flashlight to save whatever I'm working on, then close the iBook, reopen, backlight is on again). It also has some issues involving power/batter (i.e. I'll shut it dow