How to copy data only
Hi,
I'm wondering what is the way to copy schema table data only (no definitions) between 2 databases?
(the schema names are the same)
What happens if tables are not identical (by definition).
Thx,
Dobby
I'm wondering what is the way to copy schema table
data only (no definitions) between 2 databases?
(the schema names are the same)
What happens if tables are not identical (by
definition).I am curious why you wanted to do like that.
You also can use following method(a little complex):
1. in sqlplus,
set head off feedback off lines 300 pages 0
1.1 spool /tmp/abc.txt
1.2 select * from table1 where ...
1.3 spool off
2. in other database, use sqlloader or external table to get data.
Similar Messages
-
How to copy data from one column to other column
hi,
can any one tell me how to copy data of one column to other column for some specific data
example
productno ocalyear actualsales prevplansales currentplansales
p001 2007 100 120
p002 2007 90 100
p003 2007 120 130
p004 2007 140 120
p005 2007 150 150
i want to copy data of p001 and p002 from prevplansales to current plansales
productno ocalyear actualsales prevplansales currentplansales
p001 2007 100 120 120
p002 2007 90 100 100
p003 2007 120 130
p004 2007 140 120
p005 2007 150 150
is it possible to do?
please suggest me.
i will assign pointsHi,
I think the needed techniques are already described in the documentation, e.g. in
http://help.sap.com/saphelp_nw70/helpdata/en/45/e641e4c61256dee10000000a114a6b/frameset.htm
or
http://help.sap.com/saphelp_nw70/helpdata/en/45/e641e4c61256dee10000000a114a6b/frameset.htm
The main techiques used in the above example to bind the filter of the planning function to selected (marked) objects in the analysis item or to drop down boxes (or both). These techniques are used in the above examples.
Regards,
Gregor -
How to copy data in ASO cube across two scenario's?
How to copy data in ASO cube across two scenario's?
There are multiple ways to do it.
How is the source scenario sourced? If it is populated using load rules, then why don't change it in the rule itself?
Regards
Celvin -
How to copy data from mac to external hard
how to copy data from mac to external hard
ok - since you'll be sharing it with a PC - connect it to your windows pc - then format from there - instead of NTFS format - choose exFAT.
or, you can read the link below on how to do it in dos mode.
http://answers.microsoft.com/en-us/windows/forum/windows_7-files/how-can-i-forma t-external-drive-in-exfat-not-in/0f6bf19a-19d6-4470-ae05-53ddf26bb476?msgId=1860 eae3-3488-4eea-8326-f87b89d9851b
once you've formatted it - you can now use it in both your macbook and windows computer. -
How to copy data from transparent table to our own ceated z table?
How to copy data from transparent table to our own ceated z table?
Plz tell me different methods and which one is best?
Is get data from sflight into table z* is correct?Hi Ajay,
let us consider you have to copy EKKO table to ZEKKO table
1. In ABAP program define internal table based on EKKO
<b> eg: i_ekko</b>
2. Select the data from EKKO to i_ekko
<b> eg: select * from ekko into table i_ekko.</b>
3. insert into Z-TABLE from the internal table
<b> eg: INSERT EKKO FROM TABLE I_EKKO.
COMMIT WORK.</b>
<u>To insert in internal table you can use the following:</u>
1. INSERT [wa INTO|INITIAL LINE INTO] itab [INDEX idx].
2. INSERT [wa INTO|INITIAL LINE INTO] TABLE itab.
3. INSERT LINES OF itab1 [FROM idx1] [TO idx2] INTO itab2 [INDEX idx3].
4. INSERT LINES OF itab1 [FROM idx1] [TO idx2] INTO TABLE itab2.
<u>To inert in database table, use the following:</u>
1. INSERT INTO <dbtabname> [CLIENT SPECIFIED] VALUES wa.
2. INSERT <dbtabname> [CLIENT SPECIFIED] FROM TABLE itab.
3. INSERT <dbtab> [CLIENT SPECIFIED]. oder
4. INSERT <dbtabname> [CLIENT SPECIFIED] ... .
<b>Reward points.. if helpful.
Cheers !
Moqeeth.</b> -
How to copy data in text file into two-dimensional arrays?
Greeting. Can somebody teach me how to copy the input file into two-dimensional arrays? I'm stuck in making a matrix with number ROWS and COLUMNS according to the data in "input.txt"
import java.io.*;
import java.util.*;
public class array
public static void main (String[] args) throws FileNotFoundException
{ Scanner sc = new Scanner (new FileReader("input.txt"));
PrintWriter outfile = new PrintWriter("output.txt");
int[][]matrix = new int[ROWS][COLUMNS];
}my input.txt :
a,b,c
2,2,1
1,1,1
2,2,1
3,3,1
4,4,1
5,5,1
1,6,2
2,7,2
3,8,2
4,9,2
5,10,2import java.io.*;
import java.util.*;
public class array {
public static void main(String[] args) throws IOException {
FileInputStream in = null;
FileOutputStream out = null;
try {
in = new FileInputStream("input.txt");
BufferedReader reader = new BufferedReader(new InputStreamReader(in));
String line = null;
while ((line = reader.readLine()) != null) {
String split[]=line.split(",");
catch (IOException x) {
System.err.println(x);
} finally {
if (in != null) in.close();
}}}What after this? -
How to copy data for certain member from one dimension to another dimension
Dear ,
I want to copy data for certain member ("511102") from one dimension to another combinations of dimensions ,
I have the following combinations for "511102" :
_("Budget2012","FY12","Working.V01","SAR","BegBalance","1011","G_10","custom Grades")_
I want to copy "511102" to "salary"
-salary have the following dimensions :
_("Budget2012","FY12","Working.V01","SAR","BegBalance","General group","All grades","General Employees")_
, I don't know if I could do it by datacopy of cross dimensional , But I don't HOW >>>
Thanks in advanceFIX("Budget2012","FY12","Working.V01","SAR","BegBalance","General group","All grades","General Employees")
"salary"="511102"->"1011"->"G_10"->"custom Grades";
ENDFIX
or
FIX("Budget2012","FY12","Working.V01","SAR","BegBalance")
DATACOPY "511102"->"1011"->"G_10"->"custom Grades" to "salary"->"General group"->"All grades"->"General Employees";
ENDFIX
Key thing in datacopy is to place the dimensions in cross dimension in the same order. Both sides (before and after "TO") should have equal number of dimension members specified.
Cheers,
Alp -
How to copy data from mac book to seagate hard disk
i cannot seem tp copy data on my external hard disk.how do i copy data from my mac book pro to seagate harddisk
See > Disk Formats
drpriyamahale wrote:
i cannot seem tp copy data on my external hard disk.
First... Make sure the EHD is Formatted Mac OS Extended (journaled)..
See > http://pondini.org/OSX/DU1.html
From here > http://pondini.org/OSX/DU.html -
How to copy data from mac to external HD Drive
How do i copy data from mac book to an external hard disk drive?
Click on the Desktop area (the area where there are no open windows or Dock)
Look at the menu at the top next to the small Apple, it should say Finder
Click on the File men and select New Finder Window
Click on the File men and select New Finder Window (or stick in a disk, a USB, connect a hard drive and double click on the icon that appears on the Desktop)
Grab the Window by the top area by clicking and holding the mouse button down so both are side by side.
Click on the sidebar or open folders on the first window to get to where your files are
Click on the sidebar or open folders on the second window to get to where your destination is going to be
Click and drag the files or folder from one window to the other
If this occurs between volumes, it will copy
If this occurs on the same volume, it will move them
If you want to copy on the same volume, use the Finder > File > Duplicate and move the copy -
How to copy data from one BB to another via Desktop Manager
I've got two BBs (8900 and 9300), both actively in use and with different data (contacts, memos, etc.) on them.
I need to copy my tasks, memos and contacts from 8900 to 9300. I tried "switch phones" option, but it substitutes data, while I need to syncronize it, so that data from 8900 is added to what is currently is on the 9300.
Is it possible to do it via Desktop Manager? It seems there was somewhere an option "copy data from another BB", but I can't find it in the latest Desktop Manager version.You would need to use Desktop Mangaer to sync BB1 with a local PIM program (such as Outlook or Lotus Notes) to get the information off BB1. Then use Desktop Manager to sync BB2 with the same PIM program.
-
How to copy data from one planning area to other planning area
Hi ,
I need to copy data from one planning area to other planning area, the MPOS for two planning areas are differant and here my scenario is one planning area having extra key figures.
First i need to release forecast data to CIP planning area and then, i load the data from infocube to MPS planning area and copy the data from CIP planning area. here both MPS and CIP planning areas having different MPOS .
Please help me in this. Please give me the stepls i need to follow.
Thanks in advance.
Regards,
ChanduHi,
You can use the transaction /sapapo/tscopy.
In this you can configure your source plng area and destination plng area. You also have an option to map your KF. There is no problem if the MPOS are different as long as you are able to map the characteristics between the 2 MPOS.
Alternatively, you can create an Infocube which shares common ground between the 2 planning areas and extract data from CIP plng area into the infocube and then copy teh data from infocube to MPS plng area using the the transaction /sapapo/tscube.
Hope this helps.
Thanks
Mani Suresh -
How to load data only at the upper level in ASO
We are loading the Days member with values 31/30/29/28 for the top level combinations in Block storage cube using a rule file.<BR>Now we need to carry out the same thing in ASO but ASO has a constraint that we can load data only at zero level.<BR>If we do that, then data at higher levels, after aggregation is incorrect. What can be done ?
Also possible but a little more complicated is to create a separate cube with a DayCount account and only accounts and time dimensions. The time dimension goes down to day. You load it with 1 record per day. Then, you use this cube and your original cube as source, transparent partitions to a BSO cube. <BR><BR>This way, you have no bogus "input" members anywhere. Formulas that combine DayCount with other things would be written as outline formulas in BSO, since it doesn't support MDX. If you need those to be in MDX, then this wouldn't work for you.
-
How to Copy data from field symbol to Dynamic Internal Table
Hi,
I want to copy the data between two dynamic Internal tables . Following is the code were I have data in the field symbol wanted to transfer it to the other Internal table :
REPORT ztest.
DATA:
gd_dref TYPE REF TO data,
gd_dref1 TYPE REF TO data.
FIELD-SYMBOLS: <fs1> TYPE any,
<fs_wa> TYPE any,
<field> TYPE any,
<fs_wa1> TYPE ANY TABLE. * Contains data from p_src
*Copy data from p_src to p_dest*
PARAMETERS: p_src LIKE dd02l-tabname . * Name of Dynamic Internal table *
p_dest LIKE dd02l-tabname . * Name of Dynamic Internal table*
*DATA : lt_csks LIKE p_dest WITH HEADER LINE.
START-OF-SELECTION.
CREATE DATA gd_dref TYPE (p_src).
CREATE DATA gd_dref1 TYPE TABLE OF (p_src).
ASSIGN gd_dref->* TO <fs_wa>.
ASSIGN gd_dref1->* TO <fs_wa1>.
SELECT * FROM (p_src) INTO TABLE <fs_wa1>.
*Write out data from FIELD SYMBOLS TO Table.
loop at <fs_wa1> into <fs_wa>.
do.
assign component sy-index
of structure <fs_wa> to <field>.
if sy-subrc <> 0.
exit.
endif.
if sy-index = 1.
write:/ <field>.
else.
write: / <field>.
endif.
enddo.
endloop.
*Need Logic To Copy the Data to p_dest table from <fs_wa1>.
*p_dest is a table having a similar structure to table p_src .
*Need Logic To Copy the Data to p_dest table from <fs_wa1>.
EXIT.
Thanks in Advance.try this...
I have extended your source code and just used vbak/vbap as an example as they have some common fields like vbeln/erdat etc which corresponds with your requirement of 'similar structure' i.e. shared/common fields in both.
Cheers...
report ztest.
data:
gd_dref type ref to data,
gd_dref1 type ref to data,
gd_dref_str type ref to data,
gd_dref_tab type ref to data.
field-symbols:
<fs1> type any,
<fs_wa> type any,
<fs1_dest_str> type any,
<fs_dest_tab> type any table,
<field> type any,
<fs_wa1> type any table.
* contains data from p_src
*Copy data from p_src to p_dest*
parameters: p_src like dd02l-tabname default 'vbak',
* name of dynamic internal table *
p_dest like dd02l-tabname default 'vbap'.
* name of dynamic internal table*
*data : lt_csks like p_dest with header line.
start-of-selection.
create data gd_dref type (p_src).
create data gd_dref1 type table of (p_src).
assign gd_dref->* to <fs_wa>.
assign gd_dref1->* to <fs_wa1>.
select * from (p_src) into corresponding fields of table <fs_wa1>
up to 3 rows
where vbeln ne space.
create data gd_dref_str type (p_dest).
create data gd_dref_tab type standard table of (p_dest).
assign gd_dref_str->* to <fs1_dest_str>.
assign gd_dref_tab->* to <fs_dest_tab>.
*write out data from field symbols to table.
loop at <fs_wa1> into <fs_wa>.
" break-point here - can see vbeln/waers/create date/ etc move over to new structure
" the 'common' fields of your structures - the same will happen. if they not the same name you will have to do an
" explicit move i.e. if fieldname = xyz ....move fieldxyz to new field123....after the move-corre
break-point.
move-corresponding <fs_wa> to <fs1_dest_str>.
insert <fs1_dest_str> into table <fs_dest_tab>.
** do.
** assign component sy-index
** of structure <fs_wa> to <field>.
** if sy-subrc <> 0.
** exit.
** endif.
** if sy-index = 1.
** write:/ <field>.
** else.
** write: / <field>.
** endif.
** enddo.
endloop.
" write out some dest data from the dest table build from previous loop
loop at <fs_dest_tab> assigning <fs1_dest_str>.
do.
assign component sy-index of structure <fs_wa> to <field>.
if sy-subrc <> 0.
exit.
endif.
if sy-index = 1.
write:/ <field>.
else.
write: / <field>.
endif.
enddo.
endloop. -
How to copy data between two tables row by row
Hi All,
I have three tables TableA and TableB and TableC
I wanted to write a stored procedure to copy data row by row from TableA to TableB and then update TableC by replacing any record that has the old id (before copying) to the new id after copying the data.
here is the steps
iterate throw all the rows in tableA ( probably with a foreach)
in each iteration we will do the following:
Get current ID (identity) for each record in TableA ( will call it @oldID)
Insert the row in TableB
Get the new ID for the row from TableB will call it (@NewID)
find rows in tableC that has the (@oldID)
replace all ids in tableC with @oldID to @NewID
Thanks in advance0
TableA and TableB are identical they should have the same columns
TableC columns will be ( ID, TableA_ID , Notes) -
How to copy data from one transaction to the next (F-43)
All,
I have a situation where it appears the due date of an invoice is being copied from a previous invoice entry. Can anyone tell me is there a process where the user can have data default from one invoice to the next and if so is the due date (planning date) one of those fields?
Thanks
SandraI understand how it is supposed to work. However, I have production examples of that not happening and I'm trying to figure out how. The only way I have been able to replicate the issue is when I manually enter the due date when entering the invoice the calculation of baseline date + #of days does not happen. Users say they are not manually entering a date so I'm trying to find a way the date could be entered without the users knowledge.
Regards
Sandra
Maybe you are looking for
-
How do I get a crisp, pixely finish to graphics when reducing them?
Hi all, I often see graphics on websites where you can tell there is a slight cripsy/pixelly finish / antialising to them compared with something that looks too smooth if anything. I tend to find that I would like this crips/pixelly finish on my grap
-
Storing and displaying web sites
Hi, I'm writing an RSS Aggregator and I want to be able to download an HTML web site and present it to the user in a nice way. I know there are some very nice existing browsers out there, but the problem is they all take a URL. Therefore, they requir
-
I have upgraded my iphone and have given it to my partner. How does she clear the phone and start from scratch with an itunes account. Thank you.
-
Cannot find javax.servlet in J2EE
I am learning about servlet programming. I am using JBuilder-student edition. I downloaded J2EE. I changed the project properties in JBuilder to use the java.exe in J2EE, but when I try importing javax.servlet or the like, it does not show that javax
-
Hi All, I have one question w.r.t. risk analysis of user while raising a request in ARQ. I have noticed that, when a user is assigned 2 conflicting roles in a request (with "Valid From" and "Valid To" fields being the same), ARQ shows risk violations