How to fit the data in Oracle SPOOL FIle
Hi all,
Word_rapped ,Formatted etc etc dif every thing ...
Some columns data arent fitting in to the page.What I want to fit the ouput of query in to one page (A4).
is there any SPOOL command to fit
I'a affraid that you have to use more than one command to do it,
set pagesize 72 --- set how many lines will be on a page
set linesize 80 ---- set howmany character will be in one line
column columnName fromat a20 -- sets that column with columnName will be 20 character wide
set heading on | off - set heading on and off
You have to experiment a little bit , you can find more formating comands in documentation
Best Regards
Krystian Zieja / mob
Similar Messages
-
How to Transfer the Data from ORACLE APPS to SAP
Hi Gurus,
Here are my couple of quieries regarding Data Migration from Legacy(Oracle Apps) to SAP.
1. How to link between Legacy system(ORACLE APPS) and SAP ?
2. How to migrate the data from Oracle tables to SAP directly, instead of loading the flat files(.txt, .xls) ?
Please respond to my queries ASAP.
Thanks,
SAPSURE.
Edited by: sapsure on Sep 9, 2010 11:39 AM
Edited by: sapsure on Sep 10, 2010 2:32 PM1. How to link between Legacy system(ORACLE APPS) and SAP ?
If you have SAP PI in place then you can interact with oracle database tables directly from PI and then data can be posted to SAP transactions through IDocs/BAPIs.
If you did not have SAP PI still you can do JDBC connection directly from ABAP program. Not sure about the exact steps check in forum.
2. How to migrate the data from Oracle tables to SAP directly, instead of loading the flat files(.txt, .xls) ?
If you want to directly post the data SAP transactions (I hope not directly to SAP tables) then connection needs to establish through ABAP program or Via. PI.
Regards, -
How to copy the Data From Oracle Table To SAP Table
Hi Friends,
We need to copy the data from Oracle Database Table to SAP Table. The data should be updated simultaneously in both tables . Should I write a program that contains the native sql statement like EXEC SQL PERFORMING WRITE,....
I appreciate any suggestions regarding this.
Regards
CSM ReddyHi,
since you posted this question in the DB2 forum I assume that you are using a DB2 database for your SAP system.
To access a table from a legacy ORACLE database you may use the DBSL multiconnect feature. I.e. you open a secondary connecction in the SAP system to your ORALE database. You can then ready the data from the ORACLE database into an ABAP internal table and insert it afterwards into the DB2 table on the main connection.
Another way to access an ORACLE table from a DB2 database is to use the DB2 federated database feature. This requires a little bit more DB2 skill. With this feature you can make the ORACLE table visible within the DB2 database. To copy data you can then simply use a "INSERT ... SELECT" statement.
Regards
Frank -
How to store the datas in a .txt file in to a JTable in Java Swing
Hi sir,
Here i want to know how to store the data's of a .txt file
in to a JTable in java swing.
Where here the .txt file like for eg,spooler.txt is in the server and from there it will come to my client machine what i have to do is to take that .txt file and store the datas of the .txt file
in a JTable.This is what i want.So pls. do help and provide the code as well.I will be thankful.Since i am involved in a project which involves this it is Urgent.
Thanx,
m.ananthuYou can't just display data from a text file in a JTable. You have you understand the structure of the data so that you can parse the data and create a table model that can access the data in a row/column format. Here is an example of a simple program that does this:
http://forum.java.sun.com/thread.jsp?forum=57&thread=315172 -
hey guys
i installed the sqlite and sqlite-net as requested in other answers i found, changed to x86, and add the .db3 file in my project.
but the problem is how to retrive the data that already in the file( i am not creating any table or data in the app, just read)
all the answer i found is to create a table first and then read the table, i tried to skip the step of creating a table, and read from the table directly, but failed with " no such table", by the way, i set the property of the .db3 file as "content",
"copy if newer"
can anyone please help? i appreciate that !Hello,
From your description, you want to read data from available sqlite file. When you add the sqlite file into your project, you need to change the sqlite file build action to content. After deploying to device, the sqlite file is located in installation folder,
you need to copy that file into storage folder before reading data. Please try the following code snippets.
private async void Button_Click_9(object sender, RoutedEventArgs e)
//check if file exists in storage folder, and then copy to local storage
bool flag = await FileExistsAsync("Data.db3");
if (!flag)
var folder = await Package.Current.InstalledLocation.GetFileAsync("Data.db3");
await folder.CopyAsync(Windows.Storage.ApplicationData.Current.LocalFolder);
// open sqlite and read data
public async Task<bool> FileExistsAsync(string fileName)
try
await Windows.Storage.ApplicationData.Current.LocalFolder.GetFileAsync(fileName);
return true;
catch (FileNotFoundException)
return false;
Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate
the survey. -
How to export the data to a excel file from RSA3?
Hi experts,
1.I am trying to save the RSA (SRM extractor) to excel spread sheet to compare SRM data with BI data. When i run the the transaction RSA3 it just showed me 10 different data packets. How to export the data to excel spread sheet for reconciliation?
2. Does any body know if the stepup tables exist for SRM extractors?
Thank in advance
Sharat.Hello Sharat,
You have two options of saving data to excel sheet:
Step 1:
Goto RSA3, change the "Data Records / Calls" to 1000 and then execute. This way instead of 10 different packets you will get one packet.
Step2:
Click on the list button, open the packet by double clicking it. You will see all the data on your screen.
Step3:
Goto System -> List -> Save - > Local File -> Spreadsheet and give some name for your xls file.
Assign points if helpful.
Regards,
F-S -
How to export the data from an excel file to Oracle database by using macro
Hi,
I want to export data from an excel file into Oracle database.There is one method that by creating the macros through excel we are able to do this.
can anybody please send me the code to create macros?
Thanks in advance.
Regards,
Surendra.VThere are several resources on the web, but you could start analyzing if this code fits your needs --> VBA Macro for Excel 2003 Export of Text File with Comma and Quote Delimiters.
~ Madrid -
How to delete the data in archived log files
hi
how can i delete the enteries in archived log files. and what is the disadvantage of deleting archived log enteries.There is no documented way to delete data stored in archived log files: you can only remove the archived log files if needed.
-
How to read the data from an excel file into MYSQL by java language
Hi all,
I have some data in excel spread sheet and I want to put the data into MYSQL data base. I created the tables in MYSQL> How can I write a program in JAVA that puts the value from excel sheet to mysql??
I would appreciate your help
regardsBy typing code at the keyboard... but presumably you meant to ask what code you should type.
To get data out of Excel there are a few alternatives. The Google keywords I would use to find them are "java excel". I use Apache POI but there are other possibilities, I believe. As for getting the data into MySQL once you have extracted it from Excel, you would use JDBC. But you already knew that, didn't you? You did find the JDBC forum.
In general it's better to ask a specific question on a forum. If you don't have a clue (which is the way we all start out) then just telling people that isn't going to be helpful. The best you're going to get is links to tutorials, which you could perfectly well have found for yourself by simple web searches. -
How to import the data from a xml file to IDM
Hi all:
I have read the document(/people/kare.indroy/blog/2008/01/14/sap-netweaver-identity-management-how-to-maintain-xml-files) ,but
cannot get the data when I click the insert template-->data source template menu.
The xml file as follows:
<?xml version="1.0" encoding="GB2312"?>
<users>
<user>
<name>CA_admin</name>
<password>123</password>
<role>caadmin</role>
</user>
<user>
<name>CA_user1</name>
<password>123</password>
<role>caadmin</role>
</user>
</users>
The xsl file as follows:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="users">
<xsl:element name="users">
<xsl:for-each select="user">
<xsl:element name="user">
<xsl:element name="name">
<xsl:value-of select="name"/>
</xsl:element>
<xsl:element name="password">
<xsl:value-of select="password"/>
</xsl:element>
<xsl:element name="role">
<xsl:value-of select="role"/>
</xsl:element>
</xsl:element>
</xsl:for-each>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
Is there some thing wrong within my xsl file? Who can give me some points about this?
Is there some more information about this topic?
thanks in advanced.Hello Shi,
Could you please provide details about how did you solve this problem?
Thanks,
Anuj -
How to export the data to a Excel file
Hi all,
How to use the 'EXCEL_OLE_STANDARD_DAT'
to export the data from itab to EXCEL file.
REPORT ZT11.
data : begin of itab occurs 0,
t1(3) type c value 'sag',
t2(3) type c value 'ntc',
end of itab.
append itab.
write : itab-t1,itab-t2.
CALL FUNCTION 'GET_FIELDTAB'
EXPORTING
LANGU = SY-LANGU
ONLY = ' '
TABNAME = ' '
WITHTEXT = 'X'
IMPORTING
HEADER =
RC =
TABLES
FIELDTAB =
EXCEPTIONS
INTERNAL_ERROR = 1
NO_TEXTS_FOUND = 2
TABLE_HAS_NO_FIELDS = 3
TABLE_NOT_ACTIV = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'EXCEL_OLE_STANDARD_DAT'
EXPORTING
FILE_NAME =
CREATE_PIVOT = 0
DATA_SHEET_NAME = ' '
PIVOT_SHEET_NAME = ' '
PASSWORD = ' '
PASSWORD_OPTION = 0
TABLES
PIVOT_FIELD_TAB =
DATA_TAB =
FIELDNAMES =
EXCEPTIONS
FILE_NOT_EXIST = 1
FILENAME_EXPECTED = 2
COMMUNICATION_ERROR = 3
OLE_OBJECT_METHOD_ERROR = 4
OLE_OBJECT_PROPERTY_ERROR = 5
INVALID_PIVOT_FIELDS = 6
DOWNLOAD_PROBLEM = 7
OTHERS = 8
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.Hi, you can even use control technology. There are several example programs how to export data to excel. Please go to transaction SE80. Choose enviroment->examples -> control examples. Take a look at office integration.
/Ernesto -
How to read the 'date modified' of a file?
I need to read the date that a file was modified so I can see
if it has been updated. The file is just a text file in the same
directory as my swf file.
I tried using FLfile.getModificationDate, but it doesn't seem
to work. Every way I write the code, I get no response. It does not
seem to find the file. I even tried using the FLfile.write as a
test, without luck. I searched and the FLfile.dll is on my machine,
but I wonder if I have to somehow let the flash file know its
there.
I also tried using FileReference.modificationDate, but from
what I have come to understand, I need to populate the
FileReference object and that populating the FileReference object
involves uploading or downloading the file. I'm not up or
downloading the file, I just need to know if it has been updated by
other software. Otherwise, how do I populate the FileReference
object. Can it check on dates without up or downloading?
Does anyone have an idea of the best way to read the date
that the file was modified?
Thank you.quote:
Originally posted by:
Point Happy
I searched and the FLfile.dll is on my machine, but I wonder
if I have to somehow let the flash file know its there.
quite right, you need to create a Project (and a JavaScript
file)
then you can use the JavaScript that you want to use -
How to read the data in a txt file on a web site?
I want to extract the numbers located in txt files on a web site. It's a normal url. Not a ftp.
Does anyone know how to do it?Hi Tom,
What do you want to extract from the text file??
I wanted to extract an IP address from a pearl script from my FTP server and this was the vi that I used .I dont know if you are trying to do the same?
Here is the vi.It is in LV 7.1
Hope its helps .
Good luck.
ohiofudu.
Certified LabVIEW Architect
Certified TestStand Developer
Attachments:
PublicIP-Adresse.vi 31 KB -
How to compare the data in a highscore file(.txt) for a game?
As mention above,i would like to check the highscore everytime the game has finished,and updates it, what classes should be used? FileReader, FileWriter, or Properties? If so, how the codes is likely to be? Thanks a lot.
I would discourage you from using a plain old text file to save your high scores in. The obvious reason being is that your little brother can just edit the file in notepad, then run to you and taunt, "I've got the highest score, nyah nyah nyah!"
If you must do it, I would use PrintWriter and simply print out each line as needed. Reading the lines back into the game is only a tad more difficult, but you can simply read in each line as a String, and store each String in an array, or a Vector if you don't know how many high scores you will have.
In the long run, you should create a serializable object that contains either the Vector or the Array of scores and instruct the object to save itself or load itself as needed. This is essentially how Properties work except you have more control over the internal data format.
On second thought, Properties would work just fine, but you cannot guarantee that the scores will be saved in a particular order - you would have to add an additional routine to read in each Property (specifically, each name/score pair) and then sort them. Once you do that, there's no real difference between a Properties file and rolling your own Serializable array. -
SQL*Plus - how to suppress the SQL in a spool file
This is my SQL*Plus script. I thought I had solved the problem, but it is back now and I don't know what I am missing. But I don't want the query at the top of the file.
SET SERVEROUTPUT ON
SET MARKUP HTML ON -SILENT
SET ECHO OFF
SET PAGESIZE 33
SET TERMOUT OFF
Spool C:\DuaneWilson.xls
SELECT *
FROM RPT_DS1_CNT_CAT_vw
WHERE ROWNUM <=100
ORDER BY CVBI_KEY;
SET MARKUP HTML OFF
SET ECHO ON
SET PAGESIZE 20
SET TERMOUT ON
SET SERVEROUTPUT OFFIt turns out when I run the script with the @ or Start with the file name, there is no SQL put out to the file. But when I just copy the text out of the file and run it at the prompt, the SQL appears in the output file. In reference to the -SILENT, I put that in after the MARKUP statement and got an error. Maybe I don't know where that goes. And I am not sure why there is a difference if it is run as a script or just pasted to the buffer. At least it should be the same in the output file, I would think.
Maybe you are looking for
-
Files opening in unreadable code need help urgently please
When I was given my new Toshiba laptop as a gift in 2007 Microsoft Office with Word and Excel etc were already set up so I do not have any discs or keycodes. .Being a senior person, it is also possible that my son who gifted it to me may have install
-
Variable from one class to another in a game
I am making a game in which a user can enter the speed of the initial velocity of a ball. My problem is that when i run the program and enter the speed of the ball in the JTextField, it doesn't actually change the speed of the ball. The ball just use
-
IPhone 3GS Not Recognized by PC, iTunes or Device Manager
I'm hoping someone can help me out here, my laptop isn't recognizing my iPhone when I plug it in, it doesn't show in iTunes and it doesn't show in Device Manager either. I've already restored my computer back almost a week, I've reinstalled iTunes,
-
Issue Storage Location in Components details Subcontracting PO
Hi all I need to implement this process in SAP: I have to send material X, from storage location B 'broken', to my supplier for repairing. After He has repaired it I post good recipe of material X in the storage location A 'adjusted'. I plan material
-
Why won't lightroom open my raw (NEF) files? I shoot with a Nikon D5500.
I just did a photoshoot and lightroom is telling me that my files are not supported by lightroom. it says lightroom is up to date. I have a cc subscription and can't use lightroom. please tell me there is an easy fix