Export score to a table
I want to post a quiz on our intranet but would want to
simply export the score to a table to make a calculation of average
scores by users completing the test.
How could this be done
Hi Ashgall and welcome to our community
You might find the following Developer Center Article to be
of use to you.
Click
here to read it
Cheers... Rick
Similar Messages
-
Exporting and importing just table definitions
Hi,
I have this production database that has a huge amount of data in it. I was asked to set up a test database based on the exact same schema as the live database. When I tried to do an export (from live) and import (to test), with the parameters rows=N and compress=y, the target (test database) data file will still grow enormously, presumably because of the huge number of extents already allocated to the table in the live database. My test database of course, has a limited hard-disk space.
Is there a way to export and import the table definitions without having the target database experiencing a huge growth in the size of the tablespace?
Thanks,
Chris.If an export with compress=n is still creating initial extents that a too large, you can still build with the import file but it will take a little work.
run imp with indexfile=somefile.sql
when imp is finished, edit somefile.sql by:
1. remove all the REM statements.
2. remove all the storage clauses (tables and indexes)
Make sure your tablespaces have a small (say 1k) default initial extent.
run imp again with rows=n
All your tables and indexes will be created with the default tablespace initial extent. -
How to export the data from table to excel sheet
hi experts i have some problem am trying to export the data fro table to Excel sheet in the view controller i have created one button wit public void onActionCLEAR(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionCLEAR(ServerEvent)
//wdContext.nodeBapi_Salesorder_Getlist_Input().
//wdContext.nodeBapi_Salesorder_Getlist_Input().invalidate();
//@@end
//@@begin javadoc:onActionExporToExcel(ServerEvent)
/** Declared validating event handler. */
//@@end
public void onActionExporToExcel(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionExporToExcel(ServerEvent)
try{
FileOutputStream fos=new FileOutputStream("Test.xls");
PrintStream ps=new PrintStream(fos);
ps.println("<html><body><table border=1>");
int size=wdContext.nodeBapi_Salesorder_Getlist_Input().size();
Iterator attributes=wdContext.getNodeInfo().iterateAttributes();
ps.println("<tr>");
while(attributes.hasNext()){
ps.println("<th>");
DataAttributeInfo attrName=(DataAttributeInfo)attributes.next();
ps.println(attrName.getName());
ps.println("</th>");
ps.println("</tr>");
for(int i=0; i<wdContext.nodeBapi_Salesorder_Getlist_Input().size();i++)
attributes=wdContext.getNodeInfo().iterateAttributes();
ps.println("<tr>");
IWDNodeElement ele=wdContext.getElementAt(i);
while(attributes.hasNext()){
ps.println("<td>");
DataAttributeInfo attrName=(DataAttributeInfo)attributes.next();
ps.println(""+ele.getAttributeAsText(attrName.getName()));
ps.println("</td>");
ps.println("</tr>");
ps.println("</table></body></html>");
ps.flush();
ps.close();
fos.close();
catch(Exception e){
wdComponentAPI.getMessageManager().reportException(e.getMessage(), false);
finally{
//return("Test.xls") ;
//@@end
}h action and i have return the code
its running sucessfully but am not able to perform the action plz help meHi,
You shouldn't use DataAttributeInfo as it is an internal object, if I'm correct.
Use IWDAttributeInfo instead of DataAttributeInfo and it should work
(See also API doc of IWDNodeInfo.iterateAttributes() at http://help.sap.com/javadocs/nwce/ce711sp02/wdr/com.sap.wdr/com/sap/tc/webdynpro/progmodel/api/IWDNodeInfo.html#iterateAttributes())
Cheers,
Robin -
How to Export Data from a table in database directly to Excel.
Hi,
I have some sqls that i need to run on a daily basis.My client wants them to be scheduled through a job and the result output of the query should be in the form of Excel.
Now i am no sure how to do this.Is there any in-built function in the DBMS package that can export data drectly from table to Excel. ?
Please Help me !!SQL> spool exlfile.cvs
SQL> set colsep ','
SQL> set lines 300
SQL> set pages 9999
SQL> set trimspool on
SQL>
SQL> select * from DEPARTMENTS
2 /
DEPARTMENT_ID,DEPARTMENT_NAME ,MANAGER_ID,LOCATION_ID
10,Administration , 200, 1700
20,Marketing , 201, 1800
30,Purchasing , 114, 1700
40,Human Resources , 203, 2400
50,Shipping , 121, 1500
60,IT , 103, 1400
70,Public Relations , 204, 2700
80,Sales , 145, 2500
90,Executive , 100, 1700
100,Finance , 108, 1700
110,Accounting , 205, 1700
120,Treasury , , 1700
130,Corporate Tax , , 1700
140,Control And Credit , , 1700
150,Shareholder Services , , 1700
160,Benefits , , 1700
170,Manufacturing , , 1700
180,Construction , , 1700
190,Contracting , , 1700
200,Operations , , 1700
210,IT Support , , 1700
220,NOC , , 1700
230,IT Helpdesk , , 1700
240,Government Sales , , 1700
250,Retail Sales , , 1700
260,Recruiting , , 1700
270,Payroll , , 1700 -
How to Export data from a Table to Excel using PL/SQL Code
Hi,
I need to export data from a table to the excel sheet using PL/SQL script.
could you pls provide with custom codes or sample procedures.
Bobbyhttp://asktom.oracle.com/pls/ask/f?p=4950:8:7947129213057862756::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:728625409049
-
[b]export data from a table to a csv or .txt file[/b]
hi plz i need help in how to export data from a table to a csv or .txt file
If you are using TOAD, then you can execute the statement like SELECT * FROM TABLE1
Then, you can go to Output Grid and you can say save as and you can save it as you want, excel, tab delimited or whatever.
Thanx,
Cheers, -
Export data from a table to text file using srcipt task
Hi
i am new to SSIS
i have to export data from a table and append it into a existing file through SSIS script task
please help
Thanks
UmeshHi Umesh,
The data structure of the source table and the structure of the destination file are the same, right? Is the destination file a flat file? Do you have to do it through Script Task? If the destination file is a flat file, this can be done easily by using
the stock tasks/components other than .NET code. In the Data Flow Task, we choose the appropriate source adapter (such as OLE DB Source or ADO.NET Source) to extract data from the source table, perform transformation if necessary, and then load to the destination
file via a Flat File Destination. When setting up the Flat File Destination, uncheck the “Overwrite data in the file” option so that the extracted data will be appended to the existing file.
If you need to implement it through Script Task/Component indeed, you may benefit from the following code examples:
http://stackoverflow.com/questions/8070163/how-to-add-custom-footer-to-an-ssis-flat-file-seperate-component-or-script-tas
http://stackoverflow.com/questions/8467326/add-header-and-footer-row-flat-file-ssis
If you need further help about the script, I suggest that you ask a new question in .NET forums where you can get more dedicated support:
http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=netdevelopment
Regards,
Mike Yin
TechNet Community Support -
How to export and import dependent tables from 2 different schema
I have a setup where schema1 has table 1 and schema 2 has table2. And table 1 from schema1 depends upon table 2 from schema 2.
I would like to export and import these tables only and not any other tables from these 2 schemas with all information like grants,constraints.
Also will there be same method for Oracle 10g R1,R2 and Oracle 11G.
http://download.oracle.com/docs/cd/B12037_01/server.101/b10825/dp_export.htm#i1007514
Looking at this For table mode it says
Also, as in schema exports, cross-schema references are not exported
Not sure what this means.
As I am interested in only 2 tables I think I need to use table mode. But if I try to run export with both tables names, it says table mode support only one schema at a time. Not sure then How would the constraints would get exported in that case.
-Rohitworked for my 1st time I tried
exp file=table2.dmp tables="dbadmin.temp1,scott.emp"
Export: Release 10.2.0.1.0 - Production on Mon Mar 1 16:32:07 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Username: / as sysdba
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
Export done in US7ASCII character set and AL16UTF16 NCHAR character set
server uses WE8ISO8859P1 character set (possible charset conversion)
About to export specified tables via Conventional Path ...
Current user changed to DBADMIN
. . exporting table TEMP1 10 rows exported
EXP-00091: Exporting questionable statistics.
Current user changed to SCOTT
. . exporting table EMP 14 rows exported
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.
Export terminated successfully with warnings. -
ABAP for Super Dumps: Import- & Export-Parameter for a Table in a FM
Hello ABAP Profs,
sorry I am BW.
<b>Import- & Export-Parameter for a Table in and out of an Function Modul.</b>
I want to import a table into a Function Module, change it and export it again.
How do I have to define the Import- and Export- Parameters in the FM ?
The table looks looks this:
DATA: zvpshub_tab TYPE SORTED TABLE OF /bic/pzvpshub WITH UNIQUE KEY
/bic/zvpshub objvers /bic/zvpsoursy INITIAL SIZE 0.
Thanks a lot
Martin SautterHi Clemens,
<u>in SE11</u> I defined a datatype of Type Structure: ZVPSHUB_ROW.
<u>in SE11</u> I defiend a datatype of Type Tabletype: ZVPSHUB_TAB,
bases on Rowtype ZVPSHUB_ROW.
<u>in SE 80</u> I creates an FM with a CHANGEING Parameter referencing ZVPSHUB_TAB:
FUNCTION ZVP_SHUB_TAB_LOAD.
""Lokale Schnittstelle:
*" CHANGING
*" VALUE(SHUB_TAB) TYPE ZVPSHUB_TAB
<u>in RSA1</u> in BW in the Startroutine of the Upload Rules in defined the table:
DATA:shub_tab TYPE zvpshub_tab.
<u>in RSA1</u> in BW in the Startroutine of the Upload Rules in defined the table:
DATA:shub_tab TYPE zvpshub_tab.
<u>in RSA1</u> in BW in the Startroutine i called the FM
CALL FUNCTION 'ZVP_SHUB_TAB_LOAD'
CHANGING
shub_tab = shub_tab.
and it works ..
Thank You
Martin Sautter -
Dears,
I need to export two tables from PRD and import to QAS.
Size of table is 1 GB and 3 GB.
Please confirm:
1--Do i need any downtime for export and import of table
2- How much time will it take in this export process.
Please suggest.
ShivamI cannot tell you how much time it will take. are you still using Pentium 3 processors? are you on 4 quad-core CPU? are you on IDE disk? SATA disks? on a fast and big powerful SAN?
This being said, I would say roughly 10 minutes. but as you understand, this is just a wild guess.
for downtime, you did not tell us the table names. This being said, try to export on a low usage period. -
Uregent Requirement, related with export & import of internal table values
Hello All,
According to my requirement
I created a copy program(ZRSEIDOC2) which is copy program of RSEIDOC2attached in T Code WE02.
and I created another program ZXXXXXX.
Now what I am trying to do is
1. I am trying to export the final output table/internal table to program ZXXXXXX.
Export I_listedidc to memory id SID.
2. In Program ZXXXXXX, I used to submit statement & import statement for output table/internal table.
Submit ZRSEIDOC2 using selection-screen 1000.
Import I_Listedidc to memory id SID.
Which give the automated way to find out the output i.e. status,process, .
My Question is..
Is I_listedidc right table/itab, which I am using my statement?
Do I am writing the code in a right way?use:
Export I_listedidc to memory id 'SID'.
Submit ZRSEIDOC2 using selection-screen 1000.
Import I_Listedidc from memory id 'SID'.
A. -
Using expdp to export a mix of tables with data and tables without data
Hi,
I would like to create a .dmp file using expdp, exporting a set of tables with data and another set without data. Is there a way to do this in a single .dmp file? For example, I want all the tables in a schema with data, but for the fact tables in that schema, I only want the fact table objects, not the data. I thought it might be easier to create two separate .dmp files, one for each scenario, but would be nice to have one .dmp file that satisfies my requirement. Any help is appreciated.
Thanks,
-Rodolfo
Edited by: user6902559 on May 11, 2010 12:05 PMYou could do this with where clauses. Let's say you have 10 tables to export, 5 with data and 5 without data. I would do it like this
tab1_w_data
tab2_w_data
tab3_w_data
tab4_w_data
tab5_w_data
tab1_wo_data
tab2_wo_data
tab3_wo_data
tab4_wo_data
tab5_wo_data
I would make one generic query
query="where rownum = 0"
and I would make 5 specific queries
query=tab1_w_data:"where rownum > 0"
query=tab2_w_data:"where rownum > 0"
query=tab3_w_data:"where rownum > 0"
query=tab4_w_data:"where rownum > 0"
query=tab5_w_data:"where rownum > 0"
The first query will be applied to all tables that don't have their own specific query and it will export no rows, the next 5 will apply to each of the corresponding table.
Dean -
Export invoice details of tables
hi experts ,
plz tell the export invoice details of tables.
thanks
RahulHi,
All the Invoice details are stored in VBRK and VBRP table only,.
Only thing is that for Export Invoice the Doc Type is different.
Ask your functional Guy what's the Billing doc type for that Export Invocie
Check the fields FKART and VBTYP in VBRK table and choose that type and get the details from tha above tables.
reward points if useful
regards,
ANJI -
Import data from few tables and export into the same tables on different db
I want to import data from few tables and export into the same tables on different database. But on the target database, additional columns have been added
to the same tables. how can i do the import?
Its urgent can anyone please help me do this?
Thanks.Hello Junior DBA,
maybe try it with the "copy command".
http://download.oracle.com/docs/cd/B14117_01/server.101/b12170/apb.htm
Have a look at the section "Understanding COPY Command Syntax".
Here is an example of a COPY command that copies only two columns from the source table, and copies only those rows in which the value of DEPARTMENT_ID is 30:Regards
Stefan -
How can we use IMPORT-EXPORT as structure and TABLES parameters?
Hello Sir,
I have used SAPRFC with single IMPORT and EXPORT parameter.
Could anybody give me an example in I can use IMPORT/EXPORT as structure and TABLE parameter as input?
of course from/to PHP.
Regards,
RHThanks
Maybe you are looking for
-
I need help with resetting my ichat. When i try to login now it wont let me... it says "AOL Instant Messenger password" and then "iChat can't log in to ... because your login ID or password is incorrect. How do I reset this if I cant log in? When I t
-
Blank Page prints even though "Suppress Printing If No Records" option is t
Blank Page prints even though "Suppress Printing If No Records" option is thicked. My environment: Crystal Report Developer Full version 11.5.11.1470 Windows Server 2003 SP2 32-bit. We have a third party vendor application written in Java -let's call
-
How to update payment method,once generated payment doc through F-58.
Hi Experts, I want to update payment method,once generated payment doc through F-58. 1)Maintained payment method in XK01 2)Maintained the same in Invoice Number But, i am not able to generate payment method in payment doc through f-58. It can possble
-
Hi , this is Surya. can we use idoc adapter at receiver side (i.e receiver- sap Ecc6.0 ) like that normal sap system (4.7) with regrads, surya
-
Where-used-list for APD-Routines (similar to rsaabap)
Hi, I'm looking for a "where-used-list" for abap coding in APD-Routines. The table rsaabap contains BI-Transformations but not APD-Routines. Is there a similar table for APD-routines that holds the ABAP coding? Thanks, Joerg