Character output - Unix vs Windows
We generate character mode report on Unix but we want to
view the output using notepad in Windows. How do we
generate the ASCII output on Unix such that it will have
the CR/LF used by Windows?
Alex,
You would need to edit your prt file to get this.
Try doing as below
printer "dflt"
after page control(L)
return control(M)
linefeed control(J)
Thanks
The Oracle Reports Team
Similar Messages
-
Hello, How do I tell sql+ to spool output file from windows to Unix server?
Hello, How do I tell sql+ to spool output file from windows to Unix server?
I am new to SQL+ and just learned how to spool the file. But file is saved in my local windows enviroment and since it's 2GB in size...I want to spool it directly to another remote unix server.
Pls answer in detail... I have been to most of the thread and didn't see relevant answer to above question.
Am I suppose to develope some script which FTP the spool file directly to the server I want to
or
i Have to use UTL_FILE Package ?
Thanks for replyYou may not be able to...
SQL*Plus can only spool to the local machine. If you have mapped a directory on the Unix server from your Windows machine, you can specify that directory in your SPOOL command.
You could telnet to the Unix server, run SQL*Plus there, and spool the file to a local (Unix) directory.
If the Unix server is also the Oracle database server, you could use the UTL_FILE package rather than using SQL*Plus to spool a file.
If the Unix server is also an FTP server, you could also FTP the file from your local machine to the server.
Of course, I would tend to re-examine a requirement to regularly generate a 2 GB text file. It seems likely that there is a better way...
Justin -
Character output problems.
I'm currently writing a java console program that deals with european currency.
The problem comes when I try something along the lines of the following (the printing of the currency symbol being the important part):
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.util.Locale;
public class UnicodeTest {
public static void main(String[] args) {
Locale eu1 = new Locale("en", "GB", "WIN");
DecimalFormatSymbols symbols = new DecimalFormatSymbols(eu1);
DecimalFormat eu = new DecimalFormat(symbols.getCurrencySymbol() + "0.00", symbols);
double number = 3f;
System.out.println(number + " = " + eu.format(number));
}The problem is that this should output 3 = ?3.00. It does on Unix systems but not on Windows,Windows end's up outputting an accented u (? (if this shows up on the forum) instead of the ? sign.
It works in Windows when outputting to a window (i.e. TextArea, etc.) but not to the system console.
Can anyone shed some light on this?Oh dear, those first and last question marks we're supposed to show up as pound signs (uk currency symbol).
-
Currency symbol different in unix and windows
I am using NumberFormat.getCurrencyInstance() passing a bigdecimal to call format method , the output is different in unix and windows , in windows it works fine the result is $0.00 where as in unix I get this 0.00
please explain me how to resolve this ? code to format bigdecimal
NumberFormat.getCurrencyInstance().format(new BigDecimal(0));My guess is your unix doesn't have the locale set right. If you are US try this.
NumberFormat.getCurrencyInstance(Locale.US).format(new BigDecimal(0));JSG -
Difference in java compilation in unix and windows
Please tell me whether we should take some steps before compiling a file in unix which is created in windows
Make sure you tell the javac compiler the character encoding used in Windows when generating the source file. See javac -helpEdited by: sabre150 on Oct 27, 2008 5:57 PM
-
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 -
Printing Unix to Windows getting all the printers from the Windows machine
Hi,
My application prints Unix to Windows using the name of the machine and a generic virtual printer, but now I need to do some improvements, and I really don't know if it is possible to do what I've been asked to.
A browsable page (jsp, html, applet, whatever) has to show all the available desktop printers and print a document that can be a .prn or a .pcl to the chosen printer.
I've done a pilot project just to check what happens in Windows and what happens in Unix.
when the server is Windows, everything works just fine, but when the server is Unix, of course, I get the " javax.print.PrintException: Printer is not accepting job.at sun.print.UnixPrintJob.print(UnixPrintJob.java:295 )" error.
Is it possible to do something like this with only free software or I rather abandon the idea and face the users reaction? (upps!)Thanks for the answer.
I think I'm not very lucky because SAMBA is not in place in my company... -
Migrating Oracle 9i Unix to Windows 2000
Dose anyone have any information on migrating an Oracle 9.2.0 database from Unix to Windows 2000. Any information would be greatly appreciated.
Since the data files aren't compatible between the operating systems, you'll probably need to do an export and import to move the database. Other than that, it shouldn't be terribly difficult.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
How to change Syntax group and physical path in SARA from unix to windows.
Our customer migrate current current archiving server from Unix to windows
How to change Syntax group and physical path in SARA from unix to windows.http://help.sap.com/saphelp_nw70/helpdata/EN/8d/3e4ec2462a11d189000000e8323d3a/frameset.htm
you have to change
Logical Path Names
Logical file Names
Note 35992 - File name/directory for application archiving
hope this will help you
cheers
dEE -
Testing of SAP BW system after migration from OS Unix to windows
Hi Experts,
I am working on a project wherein testing of BW system is required after migration from OS Unix to Windows.
If any one has done same set of activities in past or has any idea of this, please share all major test steps required after migration.
Thanks in advance.
Regards,
NeerajHi Neeraj,
I will paste the list we used for our upgrade from 3.1 to 7.0. I removed some company specific details. Sorry for the "lay-out", it is copied from excel, this messes up the whole message.
best regards, André.
Preparation PHASE 1
Review New Functionality Review BW section on SAPNet for latest information on new release
Confirm Upgrade Timing (First Sat)
GUI Upgrade Install GUI's for Upgrade Test persons
"Check Prerequisites -Operating System
-SAP Kernel
-DBMS
-Disk space
-R/3 plugin
-BW software version and SP
Citrix.."
"Check Compatibility Reqs with other systems APO
ECC6.0"
Check Compatibility Reqs with 3rd party software ?
"Test Team 2004s Delta Training To
have idea on new functionality
not have confusion if looks different.."
"End User Communication: upgraded system and changes e.g. right vs left click
- send out communication twice"
End User Communication: several "look and feel" sessions NOTE: incorporate WISBECH !!!
Setup Portal connected to BW QA for testing once upgraded Setup Portal connected to BW DEV for testing once upgraded
Check best go live date - based on assuption 2 days needed
Determine test set - based on input BS / KU
Estimate resources Business for testing
BluePrint PHASE 2
Check/CleanUp Development Objects Check all open and not-released developments for release prior to upgrade
Prepare System Setup Prepare (if needed) flat-files for test loads
Check OSS for release notes on objects Each functional area should check out OSS for release notes on objects (for changes etcu2026, new functionality)
"Prepare (detail) list of objects to be tested Complete list of objects to be tested, special attention to custom/non-standard programs, enhancements. List of:
- extractors
- process chains
- reports"
"Setup delta mechanisms (create transaction data) BackEnd Test: Financial Extraction and load, process chains
u2022tbd
u2022
u2022 "
Verification / creation of process chains Check existence of to-be-tested process chains; if none, create 'sample' process chains
Realization PHASE 3
Prior to Upgrade: Install any necessary frontend software
Prior to Upgrade: Install any necessary frontend software (end-users)
Prior to Upgrade: Complete any extraction - suspend V3 and scheduled BW jobs
Create Sandbox
Connect Sandbox to external systems (connections/BDLS)
Pre-upgrade steps
Perform Upgrade of BW
Check connection with R/3/APO
Perform system backup
"BackEnd Test: Logistics extraction and load, process chains
u2022 Z_example_CHAIN
u2022 2lis_03_BF and 2lis_03_BX Test:
- Extractor within process chain preferably otherwise mimic behavior (drop index, load, rebuild, aggragate etc)
- Delta extraction"
"BackEnd Test: Sales Extraction and load, process chains
u2022 Z_SALES_1
u2022 all lis extractors:
u2022 12_vcitm
u2022 13_vditm
u2022 11_vaitm
u2022 11_vahdr
u2022 11_v_ssl
u2022 11_vasti
u2022 12_vcscl
u2022 selection of z-extractors
Test:
- Extractor within process chain preferably otherwise mimic behavior (drop index, load, rebuild, aggragate etc)
- Delta extraction"
"BackEnd Test: Financial Extraction and load, process chains
u2022 0FI_GL_4
u2022 NOTE: no further extractors are chosen for testing
u2022 tbd Test:
- Extractor within process chain preferably otherwise mimic behavior (drop index, load, rebuild, aggragate etc)
- Delta extraction"
"BackEnd Test: Master Data... Extraction and load, process chains Test:
- Extractor within process chain preferably otherwise mimic behavior (drop index, load, rebuild, aggragate etc)
- Delta extraction"
"BackEnd Test: Zxxx Extraction and load, process chains
u2022 Z_TRANSACTION_DATA
u2022 Zxxx
u2022 Zyyy Test:
- Extractor within process chain preferably otherwise mimic behavior (drop index, load, rebuild, aggragate etc)
- Delta extraction"
"BackEnd Test: Plant Maintenance Extraction and load, process chains Test:
- Extractor within process chain preferably otherwise mimic behavior (drop index, load, rebuild, aggragate etc)
- Delta extraction"
BackEnd Test: PP Extraction and load, process chains Test: load from Zxxx
"BackEnd Test: Purchasing Extraction and load, process chains Test:
- Extractor within process chain preferably otherwise mimic behavior (drop index, load, rebuild, aggragate etc)
- Delta extraction"
"BackEnd Test: APO Extraction and load, process chains
u2022 ZAPOxxx
u2022 ZAPOyyy
u2022 others can be tested, but were not included in de testset Test:
- Extractor within process chain preferably otherwise mimic behavior (drop index, load, rebuild, aggragate etc)
- Delta extraction"
BackEnd Test: Regular Schedule - Production
BackEnd Test: Flat file upload Test: 2 types from server and PC
BackEnd Test: Test Admin Workbench: creation of objects, change existing Test the Admin Workbench: creation of infoobjects, change infoobject, create/change hierarchy, create cube,u2026
BackEnd Test: Test Bex: creation of queries (kf etc...); change existing Creation of new query/ change query, create condition, calculated/restricted kf, variables,..
BackEnd Test: Issue handling
Development box issue fixing - on forehand apply fixes based on issues BWQ
FrontEnd Test: Run Logistics Reports (log results in Reports tab) Run reports, execute various navigation steps, make sure to execute each item of menu paths,validate no loss of functionality, report new functionality. Run few managed bookmarks
FrontEnd Test: Run Sales Reports (log results in Reports tab) Run reports, execute various navigation steps, make sure to execute each item of menu paths,validate no loss of functionality, report new functionality. Run few managed bookmarks
FrontEnd Test: Run Supply Chain Reports (log results in Reports tab) Run reports, execute various navigation steps, make sure to execute each item of menu paths,validate no loss of functionality, report new functionality. Run few managed bookmarks
FrontEnd Test: Run Financial Reports (log results in Reports tab) Run reports, execute various navigation steps, make sure to execute each item of menu paths,validate no loss of functionality, report new functionality. Run few managed bookmarks
FrontEnd Test: Run Controling Reports Run reports, execute various navigation steps, make sure to execute each item of menu paths,validate no loss of functionality, report new functionality. Run few managed bookmarks
FrontEnd Test: Run Master Data and Special Reports (log results in Reports tab) Run reports, execute various navigation steps, make sure to execute each item of menu paths,validate no loss of functionality, report new functionality. Run few managed bookmarks
FrontEnd Test: Run PM Reports (log results in Reports tab) Run reports, execute various navigation steps, make sure to execute each item of menu paths,validate no loss of functionality, report new functionality. Run few managed bookmarks
FrontEnd Test: Run Purchasing Reports (log results in Reports tab) Run reports, execute various navigation steps, make sure to execute each item of menu paths,validate no loss of functionality, report new functionality. Run few managed bookmarks
FrontEnd Test: Run APO Reports (log results in Reports tab) Run reports, execute various navigation steps, make sure to execute each item of menu paths,validate no loss of functionality, report new functionality. Run few managed bookmarks
FrontEnd Test: Issue handling
FrontEnd Test: Make before image of reports - Production Run reports; save of before image to compare once upgraded
FrontEnd Test: Run All Reports - Production Run reports, execute various navigation steps, compare with 'before image' taken in prevous step
Test Security Test security with various end-user roles/IDS other than BW developer (usually has * ALL)
Test Portal integration Test portal with various end-user roles/IDS other than BW developer (usually has * ALL)
Edited by: A. Nagelhout on Feb 12, 2010 10:50 AM
Edited by: A. Nagelhout on Feb 12, 2010 10:50 AM
Edited by: A. Nagelhout on Feb 12, 2010 10:52 AM
Edited by: A. Nagelhout on Feb 12, 2010 10:52 AM -
Database shifting from UNIX to WINDOWS
Hi,
We have a production server located at Suse UNIX.
We would like to move database from UNIX to WINDOWS.
I would like to know what are the difficulties/scenarios which occures while moving the database?
How difficult is it to import current oracle database to oracle on windows server ?
Please explain in details.
Thanks,hi what is your version of database?
are you chaging the database version also or simply operating system?
if you are only changing OS, then exp/imp is the best option. but to acheive this you need to do some groundwork like collecting all the tablespaces information and schemas and their privileges etc.
also depends on database size also you can choose come other options.
if your database version is 10g then you can best use the option of datapump exp/imp or network_link parameter of datapump. -
File permissions $OH Unix and Windows
Hi,
I am examining an Oracle audit and now looking for all the default file/directory permissions on Unix and Windows. Have searched a lot of sites now but could not find a proper list with all the permissions mentiond. Does anybody knows where to find such a list (or script) to check if my current settings are ok?
I use OEM to check for my open security policies but this permission item is very hard to find unfortunately.
So please some info on this unix/windows permissions issue.
Thanks,
Paul
btw Have found some settings for bdump, udump, adump, $OH/rdbms/log and audit (umask 0177) but want to check those other permissions for the whoe installed Oracle software en admin directories.
Edited by: Paul van Rixel on 12-mei-2009 13:30Hi,
Picked a few alerts from EM, for example:
Allowed Logon Version
Default Passwords
Default Permanent Tablespace Set to a System Tablespace
Initialization Parameter File Permission
The last few weeks I have already disabled some of the policies but these are the alerts which are left now and I want to get rid of them.
When you click in EM on "Initialization Parameter File Permission" the description of it is: Ensures that access to the initialization paramater file is restricted to the owner of the Oracle software set and the DBA group.
So, ok thats is clear to me but I want to look at the whole server/database to make it a "clean" server/db.
Paul -
Advantages of Unix over Windows
Hello all,
We r planning to move from Windows to Unix platform in OS ,can anybody give me feature list/advantages of Unix over windows .My email id is [email protected] Requested to revert at earliest as this is urgent.
Regards,
Somyamaybe you should ask the SAP on Linux forum.
This one here is probably not the best source for arguments for Linux.
Peter -
Maximum character output size limit reached
While importing data in Lumira using HANA based universes I am getting an error maximum character output size limit reached. Will appreciate any info on which server parameter controls this property. Attached the error message.
Hi everyone,
I believe Henry Banks discovered a solution for resolving this kind of error message. This is a limit which can be changed from within the "Web Intelligence Processing Server" from your CMC based on large amount of rows in your data. You can find his post about this here.
It's roughly about half way down the page and I hope it helps.
-Khuram -
Essbase system 9 -difference between the installation in UNIX and windows
Hi,
plz let me know the difference in installation in UNIX and windows, let me know the process. this is bit ugent...
advanced thanks for your help and support.
Thanks,
sudhakarHi Sudhakar,
You have 2 documents for windows_installation and unix_installatio in the following location.
http://download.oracle.com/docs/cd/E10530_01/doc/nav/portal_1.htm
Sandeep Reddy Enti
HCC
http://analytiks.blogspot.com
Maybe you are looking for
-
I got this phone today, all looks good except it wont let me send texts or some other features. I can call without problem. The error in the notes of the messages which can't be sent is: Message sending failed No network support for messages. It's re
-
Class not found on NT(Urgent, Please help)
Hi, I am using XSU for retrieving and inserting from Oracle 8i database .My application is running fine on machine with Windows 98,but when application is made to run on Windows NT server,error as shown below appears.We are using many other classes w
-
I can't view my friends' profile pictures on Facebook newsfeed-- fb okay on IE
I used to be able to see my friends profile pictures when they posted on my news feed and now no longer can. I also cannot see a profile picture for myself. Fb works fine on Internet explorer so my privacy settings with fb are still the same. I belie
-
1080P 60FPS (AVCHD 2.0) and Sony NEX-5N
I want to work with the video files I'm capturing with my new camera. I have Premiere Elements 9. When I start a new project, there are no profiles under DLSR or AVCHD that match the specs I'm shooting at. I can choose 720P 60FPS and it loads and
-
Service type redirect with long url
Hello, I need to configure a content rule on CSS11501 with redirect services. However, I need to redirect to url's like this: https://www.domain.com:4445/path1/path2/path3/path4/index.pl?username=USER&env=UAT&lang=ENG Then I found that the redirect u