Quotes convert to junk character in Generic SQL
The filter on source (GENERIC SQL logical schema) uses <%=odiRef.getPop("I_POP")%> for Iterface Id. However, the quotes in <%=odiRef.getPop("I_POP")% is getting converted to junk character.
Any inputs greatly appreciated..
Thanks,
Hi,
Let me try to help...
Can you show me the generated code from Operator?
Cezar Santos
[www.odiexperts.com]
Similar Messages
-
Problem with SQL Convert Function Junk Character
Hi All,
We have a database field that has a value of “2.020 OPERATOE’S CAB – GLASSES” on the front end of Oracle E-Business Suite. When we are spooling that column(in PLSQL) with the SQL covert function , one of the characters(’) in the string is not getting converted properly. It is displayed as a junk character in the spooled file.
We used CONVERT(p_column,'WE8ISO8859P1','UTF8') for converting the string and utl_file api for spooling the output file. Please note that converted string is passed to utl_file.fopen directly.
Following are the nls_parameters values.
NLS_CHARACTERSET ~~ UTF8
NLS_NCHAR_CHARACTERSET ~~ AL16UTF16
Any inputs are welcome.
Thanks
gt1942Hello All,
Sorry, If I am opening the blog in the wrong place as this is the first time.
my out looks as follows.
"02920Â "
but when i see in the application there is nuthing in the end.
so I used regexp_replace(p_vendor_dtl,'[^[!-~]]*',''), But this is removing spaces also. I don't want to remove space. I want to remove this character only.
Please help
Thanks. -
ECC6.0 - PDF issue - Junk Character output after Upgrade from 4.7c
Hi All,
I am working in Uprgade project(from 4.7c Non-unicode system to ECC6.0 unicode system).
We are facing PDF output issue in ECC6.0 that means we are getting junk character output(screenshot is attached for your reference).
In 4.7c , we have stroed the OTF data in table after generated from smartform as we should not get different output in future. Whenever we need output of the same then we are getting the OTF data from that table and we will generate pdf through "Convert_otf" function module.This logic is working fine in 4.7c.
In ECC6.0 ,the same logic is not working as system is unicode sytem and we are getting junk character output.
As per my old upgrade project experience , i have used the below piece of code for solve this junk character issue but still I am facing the same issue.
Kindly note that in my old upgrade project i have regenerated the OTF data in ECC6.0 and used the below piece of code then I got correct output but here I have to use the old OTF data (from table) which was generated in 4.7c.
Please any one can give solution for this issue.
Regards
Anandakumar.K
+91 9486963561.
REPORT z_display_notification_tst.
Local Vairable Declaration
TYPES: lt_pdf_table(1000) TYPE x.
Local Vairable Declaration
DATA :
lv_otf_data TYPE STRING, " OTD data in string format
lv_length TYPE i, " OTF Length
lv_lines TYPE i, " No of lines
lv_no_of_recs TYPE int4, " No of OTF Lines
lv_offset TYPE int4, " Offset
pdf_fsize TYPE i,
lv_binfile TYPE xstring,
gv_reportsize TYPE i,
l_url(80) TYPE c,
l_pdf_data TYPE STANDARD TABLE OF lt_pdf_table ,
l_pdf_line TYPE lt_pdf_table,
l_offset TYPE i,
l_len TYPE i,
lt_pdf_table TYPE rcl_bag_tline,
lt_otfdata TYPE tsfotf,
ls_otfdata TYPE itcoo. " Line type of OTF data
DATA:
g_html_container TYPE REF TO cl_gui_custom_container,
g_html_control TYPE REF TO cl_gui_html_viewer.
******************GET OTF data from Table ******************************
Primary Keys used for selection : BUSKEY,
NTFTYP,
TRNTYP,
SELECT SINGLE otf_data FROM znotif_otf
INTO lv_otf_data
WHERE buskey EQ 'LS_000000000010001470'
AND ntftyp EQ '0037'
AND trntyp EQ 'ACT'.
Get the length of the OTF data stored as stream of string************
l_len = STRLEN( lv_otf_data ).
Compute the OTF lines
lv_lines = l_len / 72.
lv_no_of_recs = lv_lines + 1.
Set the offset to initial
lv_offset = 0.
*Reconstruct the OTF data from the string
DO lv_no_of_recs TIMES.
IF sy-index NE lv_no_of_recs .
Get OFT format: command ID
ls_otfdata-tdprintcom = lv_otf_data+lv_offset(2).
lv_offset = lv_offset + 2.
Get OTF format: command parameters
ls_otfdata-tdprintpar = lv_otf_data+lv_offset(70).
lv_offset = lv_offset + 70.
ELSE.
Last line contains only the OFT format: command ID "//" (End of file)
ls_otfdata-tdprintcom = lv_otf_data+lv_offset(2).
lv_offset = lv_offset + 2.
ENDIF.
Append the OTF data to Export OTF table
APPEND ls_otfdata TO lt_otfdata.
CLEAR ls_otfdata.
ENDDO.
*************************Convert OTF to PDF**************************
IF lt_otfdata IS NOT INITIAL.
clear: lv_binfile,
pdf_fsize.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
IMPORTING
bin_filesize = pdf_fsize
bin_file = lv_binfile
TABLES
OTF = lt_otfdata
lines = lt_pdf_table
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
OTHERS = 4.
IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDIF.
Call screen***********************************
Call screen
CALL SCREEN 100.
RETURN.
*& Module STATUS_0100 OUTPUT
text
MODULE status_0100 OUTPUT.
SET PF-STATUS '100'.
SET TITLEBAR '100'.
Convert bin file
clear :l_len,
l_offset.
free l_pdf_data[].
l_len = XSTRLEN( lv_binfile ).
WHILE l_len >= 1000.
l_pdf_line = lv_binfile+l_offset(1000).
APPEND l_pdf_line TO l_pdf_data.
ADD 1000 TO l_offset.
SUBTRACT 1000 FROM l_len.
ENDWHILE.
IF l_len > 0.
l_pdf_line = lv_binfile+l_offset(l_len).
APPEND l_pdf_line TO l_pdf_data.
ENDIF.
Initialise and create the HTML container
IF NOT g_html_container IS INITIAL.
CALL METHOD g_html_container->free
EXCEPTIONS
OTHERS = 0.
CLEAR g_html_container.
ENDIF.
CREATE OBJECT g_html_container
EXPORTING
container_name = 'HTML_CONTAINER'.
Initialise and create the HTML control that will display the
PDF output as URL
IF NOT g_html_control IS INITIAL.
CALL METHOD g_html_control->free
EXCEPTIONS
OTHERS = 0.
CLEAR g_html_control.
ENDIF.
CREATE OBJECT g_html_control
EXPORTING
parent = g_html_container
saphtmlp = 'X'.
Load the pdf data and obtain the URL
CALL METHOD g_html_control->load_data
EXPORTING
size = pdf_fsize
type = 'application'
subtype = 'pdf'
IMPORTING
assigned_url = l_url
CHANGING
data_table = l_pdf_data
EXCEPTIONS
OTHERS = 1.
IF sy-subrc NE 0.
raise cntl_error.
ENDIF.
CALL METHOD cl_gui_cfw=>flush.
Show the URL
CALL METHOD g_html_control->show_url
EXPORTING
url = l_url.
ENDMODULE. " STATUS_0100 OUTPUT
Edited by: Anandakumar.K on Oct 25, 2011 12:47 PM
Edited by: Anandakumar.K on Oct 25, 2011 12:54 PMHi,
as you can see in SAP notes 842767 and 1349413, spool data cannot be converted properly for all types in a Unicode conversion.
This might be possible if you have English (US7ASCII) characters only, but with Chinese characters I do not think that a small piece of code can do it ...
Hence I think you need to recreate the data on the Unicode system ...
Best regards,
Nils Buerckel
Edited by: Nils Buerckel on Nov 3, 2011 1:51 PM -
How to convert epoch time to datetime in sql*loader Oracle
Hello,
I wan't to question how to convert epoch time to datetime in sql*loader Oracle. I try this script for convert epoch time to datetime in sql*loader, but error:
Record 1: Rejected - Error on table TEMP_TEST_LANGY, column DATADATA.
ORA-01722: invalid number
Record 2: Rejected - Error on table TEMP_TEST_LANGY, column DATADATA.
ORA-01722: invalid number
Record 3: Rejected - Error on table TEMP_TEST_LANGY, column DATADATA.
ORA-01722: invalid number
This is my loader:
LOAD DATA INFILE 'C:\Documents and Settings\Administrator\My Documents\XL_EXTRACT_211\load.csv'
into table TEMP_TEST_LANGY append
FIELDS TERMINATED BY ','
TRAILING NULLCOLS
DATADATA CHAR "TO_DATE('01-JAN-1970','DD-MON-YYYY')+:datadata/86400"
This is my csv file:
79314313.7066667
79314336.2933333
79314214.3466667
This is my table:
CREATE TABLE TEMP_TEST_LANGY
DATADATA DATE
Thanks
Edited by: xoops on Sep 21, 2011 8:56 AM
Edited by: xoops on Sep 21, 2011 8:58 AMthanks for your answer, but I asked to use sql loader instead of the external table, which so my question is why can not the epochtime converted to datetime, if there is no way to convert a datetime epochtime using sql loader, so I'm required to use the external table. thank you.
This is my error log:
Column Name Position Len Term Encl Datatype
DATADATA FIRST * , CHARACTER
SQL string for column : "TO_DATE('1-Jan-1970 00:00:00','dd-MM-YYYY hh24:mi:ss') + (:DATADATA/60/60/24)"
Record 1: Rejected - Error on table TEMP_TEST_LANGY, column DATADATA.
ORA-01722: invalid number
Record 2: Rejected - Error on table TEMP_TEST_LANGY, column DATADATA.
ORA-01722: invalid number
Record 3: Rejected - Error on table TEMP_TEST_LANGY, column DATADATA.
ORA-01722: invalid number
Edited by: xoops on Sep 21, 2011 12:33 PM -
Logo in Smartform output to pdf format is coming as Junk Character
Hi All,
I have a requirement to generate the Smartform output in PDF file. But when i am doing that i am getting the LOGO as Junk character in the PDF file. Can any one help me to resolve this issue?.
Thanks,
Muruganand.KYes check the spool and the output displayed correctly in the spool it means there is a problem when you convert OTF to PDF. Check that part of the code and try different options.
-
Tool -- copy display arabic letter as junk character
Dear All.
Our env 12.1.3 on Solaris 5.10 this is fresh installation.
We are running some finance report, Its completing normally as well output files display character properly ie in english and arabic.
While opening log file from tool --> copy option Arabic character showing as junk character.Below are the detail of our nls characterset.
SQL> SELECT * from NLS_DATABASE_PARAMETERS;
PARAMETER VALUE
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CHARACTERSET AR8ISO8859P6
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
PARAMETER VALUE
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_RDBMS_VERSION 11.1.0.7.0
20 rows selected.
Please let us know is there any work around to over come this issue.
With Regards
T.KWe are running some finance report, Its completing normally as well output files display character properly ie in english and arabic.What if you download the log file from the server and open it from the client, would you be able to view Arabic font correctly?
While opening log file from tool --> copy option Arabic character showing as junk character.Below are the detail of our nls characterset.This looks like a browser issue. What is your browser? Can you view Arabic correctly from your browser (View > Encoding)?
Thanks,
Hussein -
How can i convert an ascii character to a number?
where can I find the function?
A string will be converted to an array of U8.
Unless you convert a single character.
RayR
Message Edited by JoeLabView on 06-27-2008 05:39 PM
Attachments:
Str2Num.vi 7 KB
String2Number.PNG 7 KB -
How to convert string to an integer in SQL Server 2008
Hi All,
How to convert string to an integer in sql server,
Input : string str="1,2,3,5"
Output would be : 1,2,3,5
Thanks in advance.
Regards,
SunilNo, you cannot convert to INT and get 1,2,3 BUT you can get
1
2
3
Is it ok?
CREATE FUNCTION [dbo].[SplitString]
@str VARCHAR(MAX)
RETURNS @ret TABLE (token VARCHAR(MAX))
AS
BEGIN
DECLARE @x XML
SET @x = '<t>' + REPLACE(@str, ',', '</t><t>') + '</t>'
INSERT INTO @ret
SELECT x.i.value('.', 'VARCHAR(MAX)') AS token
FROM @x.nodes('//t') x(i)
RETURN
END
----Usage
SELECT * FROM SplitString ('1,2,3')
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
The FIM team is pleased to announce the availability of some additional Connectors for FIM2010R2.
General Availability of PowerShell Connector
The PowerShell Connector can be used to communicate with a system through PowerShell scripts. This allows an easy and flexible way to communicate with other systems but also to pre-/post-process data and files before handed over to the FIM Synchronization
Service. We believe the community will help providing scripts for this Connector for various systems and will open a place where scripts can be published for reuse.
TechNet docs:
http://go.microsoft.com/fwlink/?LinkID=393057
Download:
http://go.microsoft.com/fwlink/?LinkID=393056
Release Candidate of Generic SQL Connector
The Generic SQL Connector will allow you to connect to any database where you have an ODBC driver available. It enables new features compared to the built-in MA such as support for Stored Procedures, running SQL scripts, built-in delta import support, import
multiple object types, connect to multiple tables, and much more. This Connector is built on ECMA2.3 which allows schema discoverability to be customized in the Sync Engine UI. A pre-release of the next Sync Engine hotfix is included with the Connector download
and is required for the Connector to work.
Download:
https://connect.microsoft.com/site433/Downloads/DownloadDetails.aspx?DownloadID=52652
Release Candidate of SAP Users and Roles/Groups
The updated SAP templates for Users and Roles/Groups allows you to manage Users, Roles, and Groups in SAP. This also include password sync for Users to SAP. The Connector will make sure roles are represented as groups to make it possible to manage these
with bhold. This template will require the previously published WebService Connector:
http://go.microsoft.com/fwlink/?LinkID=235883.
Download:
https://connect.microsoft.com/site433/Downloads/DownloadDetails.aspx?DownloadID=52651
If you have participated in any other Connector preview program you will have access to the Release Candidate downloads. If you have not participated before then to get access to the preview programs on Connect either join the program “Identity and Access
Management”, “FIM Synchronization Service Connectors Pre-release” on
http://connect.microsoft.com/directory or follow this link
http://connect.microsoft.com/site433/SelfNomination.aspx?ProgramID=6709&pageType=1
We have also published an update to the Generic LDAP Connector adding support for some additional LDAP directories, see
http://support.microsoft.com/kb/2936070/. If you have additional LDAP directories you think we should support, please feel free to contact me.
On behalf of the FIM Sync team,
/Andreas KjellmanOn Tue, 18 Mar 2014 08:09:43 +0000, David Burghgraeve wrote:
We've been using the OpenLDAPXMA to be able to connect to ACF2 CA-LDAP (from Computer Associates) running on a IBM Z-OS Mainframe System. We've been using it for password synchronization since 2004 on MIIS. Today it's still used via the
OpenLDAPXMA (64bit) on FIM 2010 R2.
We had to tweak the password management component in the OpenLDAPXMA to support the error messages we get from the ACF2 System, as we support a multi-master password setup between Mainframe and Active Directory (one can change the password on
MF and/or on Windows). by example "LDP0406E ACF2 error modifying lid(ACF00155 NEW PASSWORD CANNOT BE THE SAME AS CURRENT PASSWORD)".
Additionally, we cannot get the delta import to work with the CA-LDAP, there's no capability in it and we tried to use the time attribute to use in the query for recent changes, but it does not work. (I think we need it in a large integer format
or unix time integer).
Would be great to have Microsofts' support in this :)
In a case like this where your follow-up has nothing to do with the
original post you should create a new thread.
Having said that, neither of the MAs to which you refer are official
Microsoft MAs and as such there is no support from Microsoft available.
Also, keep in mind that the ECMA1/XMA extensibility framework has been
deprecated and replaced by the ECMA 2.0. You should plan on replacing
existing ECMA1 management agents with ECMA2.0 connectors.
Paul Adare - FIM CM MVP
"It's 106 light-years to Chicago, we've got a full chamber of anti-matter,
a half a pack of cigarettes, it's dark, and we're wearing visors."
"Hotsync." -- Paul Tomblin & Peter da Silva -
New Line Character of pl/sql in Insert Query
Iam in need of New Line Character in pl/sql.
In forms at the time of concatenation of two text box values into a single text box and a new line inbetween the two text box values and it is inserted into the database.
(ie) Name :
(We need a new line Character in between Name and Designation)
Designation :
ThankyouHi,
You could use something like this.
insert into <table>....... :name||chr(10)||:designation;
HTH.
Regards,
Arun -
DateNavigator in Safari Brower shows junk character
Dear All,
In Safari browers (all versions), DateNavigator UI element is shows junk character. To reproduce this error, please follow the below steps.
1. Click on the date picker.
2. Try to change the month from u201CJuly to Augustu201D or u201CJuly to Juneu201D and try to choose a date either from June or August.
3. Some junk characters u201CNaN.NaN.NaNu201D are displayed.
Please advice,
Regards,
Ramki.Ramakrishnan Subramaniam wrote:
We are in NW 7.01....Thanks for info.
>
> I got confirmation from SAP that, it will support NW 7.02 or NW 7.01 SP4 onwards.
>
> Rgds,
> Ramki.
Who did you receive that information from? The Safari path in the renderer was only added in 7.02. You can confirm with the Platform Availability Matrix on the Service Marketplace the offically supported browser/release combinations. http://service.sap.com/pam
According to the July 2011 version of the PAM Safari 4 on MacOS 10.5/6 is supported as of 7.02 SP4 and Safari 5 on MacOS 10.5/6 is supported as of 7.02 SP5. There are no additional listings for Safari on any other releases or operating systems. -
E-Mails preview shows junk character
Hello All,
I could successfully install 10.3.1.-1565 on my Z3 handset and it is working fine except that it shows junk character in mail if it has PDF, DOC or any attachment.
Can anybody advise take this issue at right level of BB official support.
Thanks,I have done following steps but no changes have the same issue.
1. Navigate to OAM->Workflow Manager->Notification Mailer->View details in this page
2. Look for parameter called RESET_NLS change this value from 'YES' to 'NO'.
3. Bounce Notification Mailer.
Regards
Musaddak. -
Converting enumerations to lists with generics
hello...
i want to list off system properties and sort them.
how can you convert enumerations to lists with generics?
i tried the following in eclipse, but it fails...
Properties properties = System.getProperties( ) ;
Enumeration<?> enumeration = properties.propertyNames( ) ;
ArrayList<String> arrayListEnum = Collections.list( enumeration ) ;
Collections.sort( arrayListEnum ) ;Because the type parameter of Enumeration (<?>) is not compatible with the type parameter of ArrayList (<String>).
You'll have to do some manual casting yourself.
Unfortunately, there's nothing to guarantee that system property keys or values are strings (hence why Enumeration<?> and no Enumeration<String>) so you'll need to cope if you find one that isn't. -
Arabic letters are displayed as junk character in PDF preview
When we try to view (HFR Financial reports in PDF preview Arabic letters are displayed as junk character. While the same is shown correctly in HTML view.
Oracle EPMA version we are using 11.1.1.3, please provide some solution on this issueThis could help if you are connecting to essbase or planning:
1.Set the ESSLANG environment variable on the Essbase server to
ESSLANG= Arabic - Saudi Arabia (ISO)@Binary
2. In Financial Reporting, you must use the Essbase APS ADM driver rather then the Essbase Native ADM driver. Set the driver in \Hyperion\products\biplus\lib\fr_global.properties by setting the parameter
UseEssbaseEDS=1
3. In \Hyperion\products\biplus\lib\fr.env, set the ESSLANG environment variable as follows:
ESSLANG= Arabic - Saudi Arabia (ISO)@Binary
4. Re-start the Essbase and Financial Reporting services. -
Language Conversion : Getting junk character in excel file
Hi Experts,
I am getting one issue while sending data in form of email. I have certain data in ALV output & I am sending that data through email using one custom function module.
This function module is sending data as ZIPPED file. If we open the ZIPPED file it is displaying file as .XLS file.
Now the issue is that material description is maintained DE language & in output that description is coming proper i.e. whatever maintained in DE language.
But when ever I am receiving email, the DE text gets converted to zunk character. While debugging I found that data is properly populated in internal table prior to using Custom FM.
Can anybody will suggest how I can resolve it?
Thanks,
NehaHi,
The problem might be in zipping. The sender(zipper) and the receiver(unzipper) must use the same codepage.
/Simo
Maybe you are looking for
-
ERROR 27 :: iPhone 5 16GB Won't Restore, Stuck in DFU mode
I continue to recieve error msg when trying to restore my iphone... (end of the loading iPhone firmware) As you show my itunes updater logs ======================================== 2014-02-14 14:46:09.341 [21904:15f8]: restore library built Jan 7 20
-
How do I create a new folder in the standard e mail app
HHow do you create a new folder in the e mail app,
-
Hi, recently I have been making a list of songs and now that I have all of the songs that I want my iTunes is telling me to answer security questions that I forget the answers to, is it possible to get rid if this?
-
Finder prefs for Guest Account
I'm trying to ensure that anyone who uses the guest account on my MacBook cannot see my external drives when they are connected. However, while I can set the Finder prefs to do that in that account, these prefs don't "stick" when I log out -- which i
-
Can't do printer alignment test
I changed out the ink in my printer and went to do a printer alignment test and I am not able to perform the test. A message comes up that says my printer is in an error state and it has to be fixed before I can do the test. I am not sure what the