Unicode remediation......
In the SELECTs tatement below i am getting an error as :-
"SRTFDLOW" and "SRTFD" are not mutually convertible in a Unicode program.
SELECT client
relid
srtfd
srtf2
histo
aedtm
uname
pgmid
versn
clustr INTO
(pcl4-client,
pcl4-relid,
pcl4-srtfd,
pcl4-srtf2,
pcl4-histo,
pcl4-aedtm,
pcl4-uname,
pcl4-pgmid,
pcl4-versn,
pcl4-clustr)
FROM pcl4 WHERE relid EQ relid
===> AND srtfd Between srtfdlow and srtfdhigh <=======
AND srtf2 EQ '00'
AND aedtm IN datum
AND uname IN uname.
Please suggest me any remedy.....
Hi,
The data type of those variable are not same
i think u r trying to assign currency value to char variable.
Plz chek the type of those two variables.
reward points if it is helpful.
Regards,
Satish
Similar Messages
-
GUI_DOWNLOAD problem in unicode system
Hi Guru's,
I am facing one prolem in gui_download. we are doing unicode remediation in one report. In the program one internal table declared as of type c with length 255 and data filled into the internal table by importing the data ifrom cluster. After that this internal table used by ws_download function moduel with file type as BIN to download it in word doc file. We replaced the function module with gui_download. It is working fine in non-unicode system but it is not downloading properly in the unicode system.
i am unable to find what is the cause.. I tried with different different codepages giving in run time..it is not solving my problem.
<< Moderator message - Everyone's problem is important. Please do not ask for help quickly. >>
Thanks & Regards,
Sastry R
Edited by: Rob Burbank on Dec 13, 2010 9:39 AMHi Clemens.
I replaced the ws_download function module with gui_download.
here is my code
Earlier before 6.0 code as follows
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
bin_filesize = data_len
filename = p_file
filetype = 'BIN'
TABLES
data_tab = data_tab
EXCEPTIONS
file_open_error = 1
file_write_error = 2
invalid_filesize = 3
invalid_table_width = 4
invalid_type = 5
no_batch = 6
unknown_error = 7
gui_refuse_filetransfer = 8
OTHERS = 9.
IF sy-subrc <> 0 AND no_error_dlg = space.
MESSAGE i002(sy) WITH text-i03. "FILE OPEN ERROR
ENDIF.
Replaced above with following code
DATA:lv_fname TYPE string,
lv_ftype(10) VALUE 'BIN',
lv_codepage type abap_encod VALUE '4102'.
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
bin_filesize = data_len
filename = lv_fname
filetype = lv_ftype
codepage = lv_codepage
CHANGING
data_tab = data_tab
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
not_supported_by_gui = 22
error_no_gui = 23
OTHERS = 24.
IF sy-subrc <> 0 AND no_error_dlg = space.
MESSAGE i002(sy) WITH text-i03. "FILE OPEN ERROR
ENDIF.
I tried with all othr code pages also like 4110/4103/1110/1100/1102. It is not working,
It is giving problem in unicode system. File is downloading.but not properly..
and when i am opening the word file it is asking me select encoding type to make document readble along with the available text encoding formats.
Please help me..
Thanks & Regards,
Sastry R -
How to avoid Unicode errors in SAP custom code queries.
Currently we are going for a non Unicode technical upgrade from 4.6C to ECC 6.0.
We have many query infosets with custom ABAP code. Unable to execute these queries (infosets) as ECC 6.0 system is throwing short dump and query infoset editor throwing Unicode syntax errors . Anyway to avoid these Unicode errors by changing query or infoset system setting.
We will proceed with infosets ABAP code Unicode remediation if the above is not feasible.
Thanks in advance.If the infosets are with custome abap code let the UCCHECK be happen on these programs in ecc6 ..
In tcode UCCHECK the code which needs to be replaced for the custom programs will be provided for the abap developers . All programs in ecc6 should be ucc compliant . I hope this will happen with the abap upgrade by enabling ecc6 .
they will enable ecc check and do the code modification for moving out the obselete statements in ecc6 which were ok for 4.6c then .
Dont worry about the dumps as this will not take much time on a single program once the UCC is over ..
Br,
vijay. -
Hi Guru's,
I have two doubts regarding upgrade work.
1. when we are doing unicode remediation for the obslelute function modules, if in older system if they handling any exceptions how we can handle those in ECC new system. I mean to say if they are displaying some messages according to the exception how we can handle??.
2.Describe field statement with addition in CHARACTER MODE or BYTE MODE?..When to use CHARACTER MODE and when to use BYTE MODE??
Please clarify..
Thanks & Regards,
SASTRY R.Hello,
1. When replacing a obsolete function module, if any exceptions are handled, you will have to manually map those exceptions in the newer function module and handle accordingly.
2. The type of the field on which the DESCRIBE statement is used will determine if it should be a CHARACTER or BYTE mode. If the type is C,N,D,T,S go for character mode else BYTE mode.
Vikranth -
Hi,
I'm trying to get a JTextPane to display Unicode (e.g. Chinese) characters. I'm situated in Sweden so my cup of Java (or something) doesn't seem too happy about it ;).
More specifically, I want to paste a, say, Chinese character into a JTextPane and have it displayed as one and not as a square. Then I want to send it to another JTextPane and have it displayed there.
I've looked at the String and the character is properly encoded there. I've tried to exchange the font.properties file with font.properties.zh_TW but to no good. I've also tried to edit the font.properties file, using the Arial Unicode MS font (which is pre installed on my Windows 2000 OS) and the SYMBOL_CHARSET (instead of simple Arial and ANSI_CHARSET), but that haven't helped me either.
Thanks for any help you can offer,
PelleThe remedy may depend on whether the problem is specific to JTextPane or to any other TextComponent's. Does the method setText(String) work?
-
Unicode remedeation..
In the SELECTs tatement below i am getting an error as :-
"SRTFDLOW" and "SRTFD" are not mutually convertible in a Unicode program.
The data type for the two is : SRTFD is a 40 charater type field from PCL4 table....and
DATA: BEGIN OF SRTFDLOW,
TCLAS LIKE PC400-TCLAS,
KEYDT(8), "LIKE PC400-PERNR,
RESTKEY(31) TYPE X,
END OF SRTFDLOW.
The select statement is as folows:-
SELECT client
relid
srtfd
srtf2
histo
aedtm
uname
pgmid
versn
clustr INTO
(pcl4-client,
pcl4-relid,
pcl4-srtfd,
pcl4-srtf2,
pcl4-histo,
pcl4-aedtm,
pcl4-uname,
pcl4-pgmid,
pcl4-versn,
pcl4-clustr)
FROM pcl4 WHERE relid EQ relid
===> AND srtfd Between srtfdlow and srtfdhigh <=======
AND srtf2 EQ '00'
AND aedtm IN datum
AND uname IN uname.
The code is giving error once the attributes for the program are changed to UNICODE CHECK ACTIVE.
Please suggest me any remedy.....Hi Ajay,
What does SRTFDHIGH contains?
Also since SRTFDLOW is a structure containing 3 fields. And in the query we are comparing a field SRTFDLOW and HIGH aggainst a field. This will not work in UNICODE programs.
What you can do is declare another variable of type SRTFD.
then move field by field from SRTFD to the variable
You can use FIELD-SYMBOLS to acheiive this.
Then you can use that variable against the field in the select statement.
<i><b>Reward if helpful.</b></i>
Best Regards,
Ram. -
Convertir un fichier texte UNICODE en ANSI
Bonjour,
Je vous explique ma problématique.
J'ai une application qui me fournit un fichier txt. Lorsque je l'ouvre avec mon vi je le vois a peu près correctement mais il y certain charactères bizzares qui apparaissent. Deplus il me crée des espaces entre les lignes et c'est impossible de travailler dessus avec les fonction labview.
Pour remedier à cela, je suis obligé de l'ouvrir avec le bloc note et de l'enregistrer en le passant au format ANSI.
Une fois cette action faite, tous deviens normale et je peux faire fonctionner mon VI.
Ma question est:
Est il possible de le faire en automatique car j'ai beaucoup de fichier à traiter.
Je vous met en fichier joint un example de fichier .txt que j'ai en sortie de mon application,
il n'a qu'une ligne mais si vous l'importez avec Labview, vous verrez que dans la premiere case du tableau il y a un charactère bizzare et que labview creer 2 lignes supplémentaire vide.
Si vous faite la manipulation de sauvegarde au format ANSI avec le bloc note tous devient normale
Merci de votre aidre car je suis un peu coincé et mon application Labview n'à plus lieu d'être si cette convertion n'est pas faite en automatique.
Cordialement,
Résolu !
Accéder à la solution.
Pièces jointes :
P2 BTH CF toutes Gauges Ligne_41.TXT 1 KBre
Si tu veux tester. C'est une méthode... bien particulière, voir expérimentale. Pour étudier le code Unicode to ANSCII, j'ai modifié un vi du site de NI. Je transforme l’Unicode en ANSCII, en ne gardant qu'un U8 sur 2. Les 2 premiers U8 définissant que le fichier est Unicode 255 puis 254. En ne gardant qu'un U8 sur 2, si le deuxième est >0, alors c'est un caractère spéciale, donc je le supprime. Convertir est… terminé.
Luc Desruelle | Voir mon profil | LabVIEW Code & blog
Co-auteur livre LabVIEW : Programmation et applications
CLA : Certified LabVIEW Architect / Certifié Architecte LabVIEW
CLD : Certified LabVIEW Developer / Certifié Développeur LabVIEW
Pièces jointes :
File Unicode To ANSCII.vi 18 KB -
Hi All,
I am getting the following error while running a report in Answers tool.
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 46115] No Unicode translation is available for some of the input characters for MultiByteWideChar(). (HY000)
I am seeing this error on my local windows desktop. The database is oracle 10g.
The error is not very consistent. Sometime it works and then it fails because of the above error. Not sure what is causing it.
thx,
Bejoy
Edited by: bejoy.nair on Sep 1, 2009 9:00 AMI am also receiving the same error, but from within Answers. It occurs occasionally, depending on what fields I select. I am trying to narrow it down to a field and field type. I am using OBIEE 10.1.3.4.0 and Oracle 11g.
Any help would be appreciated.
Thanks,
Anne -
Unicode filename in download box
I need to upload/download files with Unicode names from a file hosting service. Every thing is going fine except one thing - internet explorer.
The problem is that IE doesn't recognize the file name i'm sending as Unicode - showing me an encoded string instead in the download box. The page displays the file name okay however the download box doesn't. The problem happens only if the unicode file name has no extension. With an ascii extension, the file displays fine. With a unicode extension, the name part appears correct but then the extension itself is garbled. Firefox works like a charm.
What I'm basically doing, is that I check for the browser. If IE, I encode the filename and set the content-disposition header and stuff. If firefox, do it the firefox way (mark the filename field in the content-disposition with a * just before the equal sign). I then send the file data into a servlet output stream.
As a temporary solution, I'm appending a .NoExtension extension to extention-less filenames. This has to do for now, unless any body here has a better idea...
please? : ]Take a look at this article:
http://java.sun.com/developer/technicalArticles/Intl/HTTPCharset/index.html -
Logical Database PNP. HR and Unicode
Hi,
currently we are checking all programs to make them unicode compliant. Using the logical database PNP a lot of macros is loaded automatically. One of them is
rp_provide_from_last (or rp_provide_from_frst) to get the last record in a specifed time-interval. The existance is stated in varaible named pnp-sw-found, it is 0 if no record was found and 1 if there is one in existance.
Checking the program (normal syntach check and extended syntax check) leads to the warning that varaibale names with a hyphen are no longer allowed in unicode programs if its not a structure (and pnp-sw-found is not). The program is doing well, and transaction UCCHECK does not mention this error/warning at all. Has someone experience with that issue and perhaps a solution?
cu
RainerThanks for the answers so far. Using PNPCE does not resolve my problem, cause we have a lot of own written reports and i just want to avoid to change them all.
And using PNPCE idoes not solve the problem, that i have to use pnp-sw-found, this one is still in existance and gives still the warning that thois is not unicode compliant.
Switching off the unicode flag is no good idea if we wanna go for unicode.
Anyone else with experience in unicode in the HR Area? -
ISE 1.2 - AV/AS Remediation missing vendors
Trying to create a remediation rule in ISE 1.2 patch 3 and the drop down list for the AV/AS Vendor Name is not scrollable so I am not able to select our AS/AV vendor. See picture below:
You're right. I just tested this and was able to scroll down using the down arrow on the keyboard.
-
Hi,
I'm working on a project to convert several hundred thousand life sciences articles into epub format, and we have run in to a problem with character entities.
Being that these are scientific articles, the characters are from a wide range of Unicode charts, and are essential to transmitting the meaning of the data.
The problem is that in my epub, the character entity inside a table data cell is rendering the @font-face correctly, but inside any other HTML element, the character renders as an empty box on our ipad2s.
I've placed pre tags in hopes that the unicode will not be rendered in your browser here. The code point in this example is x1d542 just in case.
So inside div, we see boxes, inside td, we see the character rendered properly.
<pre>
<div class="stix">Let 𝕂 be a field, which will be either the complex numbers ℂ or the finite field 𝔽</div>
<table id="t31" rules="all">
<tr>
<td>𝕂</td>
<td class="stix">𝕂</td>
<td>U+1D542 MATHEMATICAL DOUBLE-STRUCK CAPITAL K </td>
</tr>
</pre>
My CSS looks like this:
<pre>
@font-face {
font-family: 'STIX';
src: url('STIX-Regular.otf') format('opentype');
font-weight: normal;
font-style: normal;
unicode-range: U+02B0-02FF, U+07C0-07FF, U+0900-097F,U+0F00-0FD8, U+1D00-1D7F, U+1D80-1DBF, U+1D400-1D7FF, U+1E00-1EFF, U+1F00-1FFE,U+2000-206F, U+20A0-20B8, U+20D0-20F0, U+2300,23FF, U+25A0-25FF, U+2600-26FF, U+27C0-27EF, U+27F0-27FF, U+2900-297F, U+2A00-2AFF, U+2B00-2B59, U+2C60-2C7F ;
@font-face {
font-family: 'STIX-Math';
src: url('STIXMath-Regular.otf') format('opentype');
font-weight: normal;
font-style: normal;
unicode-range: U+02B0-02FF, U+07C0-07FF, U+0900-097F,U+0F00-0FD8, U+1D00-1D7F, U+1D80-1DBF, U+1D400-1D7FF, U+1E00-1EFF, U+1F00-1FFE,U+2000-206F, U+20A0-20B8, U+20D0-20F0, U+2300,23FF, U+25A0-25FF, U+2600-26FF, U+27C0-27EF, U+27F0-27FF, U+2900-297F, U+2A00-2AFF, U+2B00-2B59, U+2C60-2C7F ;
.stix {
font-family: "STIX", "STIX-Math", sans-serif;
</pre>
Is it possible that this is a rendering bug, because the character is rendering in the table cell, but not in other elements?
Have I missed something obvious?
Thanks,
AbeI assume you are including the STIX font as part of your epub files?
Perhaps the folks who do this blog might be able to help -- they have done some work with font embedding:
http://www.pigsgourdsandwikis.com/2011/04/embedding-fonts-in-epub-ipad-iphone-an d.html -
Not able to display data in different columns using Unicode encoding
Hi,
Iam using Unicode encoding in my Java appln to support Japanese characters while downloading CSV report. But using the Unicode encoding displays all data in the first column of Excel sheet.
Please let me know how to display data in different columns using Unicode encoding in Excel sheet.Hi Venkat,
After extracting data into DSO check the request whether active or not.
Check data in DSO in contents.
If is there any restrictions on info providers in Queries.
Let us know status clearly.......
Reg
Pra -
Not able to display data in separate columns using Unicode encoding
Hi,
Iam using Unicode encoding in my Java appln to support Japanese characters while downloading CSV report. But using the Unicode encoding displays all data in the first column of Excel sheet.
Please let me know how to display data in different columns using Unicode encoding in Excel sheet.
This is an urgent need. Please help me out.Hi,
I have no problem with item :P15_EV_LCL this is having a value my probem here is i am using java script to display the value in different color based on the condtion case
eg:
select
case
TRUNC((
( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
),2)
= :P15_EV_LCL
then
span style="background-color:lightgreen"
|| TRUNC((
( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
),2) || '%' || /span
else
span style="background-color:yellow"
|| TRUNC(
( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
),2) || '%' || /span
end "Effort"
from actuals Z
If i dont use this <Span style="Background-color:color"> i am able to generate data in excel sheet if i use this color coding i am not able to get data in spread sheet.
Please suggest
Thanks
Sudhir
Edited by: Sudhir_N on Mar 23, 2009 10:00 PM -
Unable to show Unicode Data in Oracle RESTful Service JSON
Hi Everyone.
I have stored unicode data in Oracle database and when i retrieve in sql query it is showing the same. But when i retrieve the data in json using oracle RESTful web service (GET), it bringing with unknown character as shown below.
next: {},$ref: "http://000.00.00.00:8085/ords/mobile/sch/loginm/?user=SURESH&pwd=123&page=1"
items: [
uri: {},$ref: "http://000.00.00.00:8085/ords/mobile/sch/loginm/41"
stud_id: 41,
stud_code: "1001",
stud_name: "அப்துல் ஜப்பார்"
My Database Setup as below:
SQL> SELECT name,value$ FROM sys.props$;
NAME VALUE$
DICT.BASE 2
DEFAULT_TEMP_TABLESPACE TEMP
DEFAULT_PERMANENT_TABLESPACE USERS
DEFAULT_EDITION ORA$BASE
Flashback Timestamp TimeZone GMT
TDE_MASTER_KEY_ID
DBTIMEZONE -07:00
DST_UPGRADE_STATE NONE
DST_PRIMARY_TT_VERSION 11
DST_SECONDARY_TT_VERSION 0
DEFAULT_TBS_TYPE SMALLFILE
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CHARACTERSET AL32UTF8
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY $
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_RDBMS_VERSION 11.2.0.1.0
GLOBAL_DB_NAME MOBILE
EXPORT_VIEWS_VERSION
SQL> select DECODE(parameter, 'NLS_CHARACTERSET', 'CHARACTER SET',
2 'NLS_LANGUAGE', 'LANGUAGE',
3 'NLS_TERRITORY', 'TERRITORY') name,
4 value from v$nls_parameters
5 WHERE parameter IN ( 'NLS_CHARACTERSET', 'NLS_LANGUAGE', 'NLS_TERRITORY');
NAME VALUE
LANGUAGE AMERICAN
TERRITORY AMERICA
CHARACTER SET AL32UTF8
8
WORKLOAD_CAPTURE_MODE
WORKLOAD_REPLAY_MODE
Awaiting you solution.
-- Abdul JabbarKumar,
Ftping the PG.xml to mds folder will not help the page to goto MDS directory
You have to import the file using xmlimporter
I understand you have done the import, but it is not success.
Could you please post what is the script you used to import the PG.xml
and once you run what was the output you have got.
May be you can refer the URL for the scripts
http://apps2fusion.com/at/61-kv/331-oa-framework-scripts
With regards,
Kali.
OSSI.
Maybe you are looking for
-
Sorry, I may not know how to describe this in the correct technical manner, but I'll explain in as simple terms as I can. I open up Crystal Reports 2013 click new document and it begins to ask for Database Expert. I select Universes and log in to my
-
AR AGING REPORT. Why 'BalDueDeb' minus 'BalDueCred' not same as Balance?
Dear All, I am trying to build SQL which mimics the AR Aging Report in SAP B1 8.8. Reason is to add additional fields needed by Management. I get the SAME TOTAL as Ageing, but when I run my query, I can't get the same no. of rows as Aging. Aging has
-
HT4664 Is the GTX680MX in the late 2012 iMacs OK?
I recently bought a new iMac with the upgrade to the GTX680MX and both FCPX and Motion are crashing MacOS entirely frequently (no error message, the whole OS stops responding and then a moment later, the mouse pointer stops responding and it remains
-
Qosmio F10-136 display drivers/video controller
I am in the middle of resintalling everything on my Qosmio F10-136 laptop. I have used the display drivers from the Toshiba website. However, in the device manager the video controller is showing an error and the drivers are not installed. The graphi
-
If I use a sound clip in the multi-track editor multiple times; is there a way to reverse the clip without change all the instances where the clip was used in the same multi-track session? I'm having to copy the clip rename it as clipreverses.wav the