How to downlaod the complete table contents
Hi,
I have got one Z table which has got around 108 columns/field ...now I need to download the contents/data of the table in a spreadsheet with all the fields and also need to download the fields of the table in the other spreadsheet.
so can you please guide me how can I do this.
Thanks,
Rajeev
hi All.
I have tried the following code but it didn't transfer anything to the file and it displays the following message:
0 bytes transmitted, code page 1160
DATA: it_data LIKE ztable_data OCCURS 0 WITH HEADER LINE.
DATA: v_fullpath TYPE string,
v_length TYPE i.
SELECT * INTO TABLE it_data
FROM ztmztable_data .
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
filename = v_fullpath
filetype = 'DAT'
APPEND = ' '
WRITE_FIELD_SEPARATOR = ' '
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
CONFIRM_OVERWRITE = ' '
NO_AUTH_CHECK = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = ' '
TRUNC_TRAILING_BLANKS_EOL = 'X'
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
IMPORTING
filelength = v_length
TABLES
data_tab = it_data.
Similar Messages
-
How to delete the complete contents of database table ? should be empty !!
Hi Guys,
I have requirement where i have delete the contents of database table..i have make it empty (no records at all) and then i have to fill it with the records from the excel sheet.
I can upload data from the excel sheet.
Please tell me how to delete the complete contents of the database table ??
Regards
Rahulhi ,
just write like this,
delete from <database table>.
commit work.
sample code, here edpar is database table.
delete from edpar." FROM TABLE g_tab_delete.
call function 'DB_COMMIT'.
loop at g_tab_edpar into g_wa_edpar.
insert into edpar values g_wa_edpar.
if sy-subrc eq 0.
move-corresponding g_wa_edpar to g_wa_edpar1.
append g_wa_edpar1 to g_tab_edpar1.
else.
move-corresponding g_wa_edpar to g_wa_edpar2.
append g_wa_edpar2 to g_tab_edpar2.
endif.
endloop.
that's all it works.
reward points if helpful.
regards,
seshu. -
How to get the complete definition of a table using SQL?
How to get the complete definition code of a table using SQL?
Something like this ?
SQL> set long 10000
SQL> set pages 200
SQL> select dbms_metadata.get_ddl('TABLE','EMP') from dual;
DBMS_METADATA.GET_DDL('TABLE','EMP')
CREATE TABLE "SCOTT"."EMP"
( "EMPNO" NUMBER(4,0),
"ENAME" VARCHAR2(10),
"JOB" VARCHAR2(9),
"MGR" NUMBER(4,0),
"HIREDATE" DATE,
"SAL" NUMBER(7,2),
"COMM" NUMBER(7,2),
"DEPTNO" NUMBER(2,0),
CONSTRAINT "PK_EMP" PRIMARY KEY ("EMPNO")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "USERS" ENABLE,
CONSTRAINT "FK_DEPTNO" FOREIGN KEY ("DEPTNO")
REFERENCES "SCOTT"."DEPT" ("DEPTNO") ENABLE
) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "USERS"
SQL>Amardeep Sidhu -
How to get the complete abap help file
hi
how to get the complete abap help file i mean F1 file.
please provide some me links to download that file.Hi Kiran,
If u want complete help for particular topic ; for that SAP has provided in built Transaction for help.
Transaction is ABAPDOCU.
I have certain link which will help u.
SAP, ABAP interview question and answers
http://www.geocities.com/sap_interviewquestions/
IMP Link for All
http://www.geocities.com/SiliconValley/Campus/6345/abapindx.htm
Common Links
http://www.sappoint.com/abap.html
http://www.sap-img.com/abap-function.htm
http://www.easymarketplace.de/online-pdfs-q-s.php
http://help.sap.com/
http://sapassist.com/groups/groups.asp?v=sap-r3-dev&m=3&y=2004
http://training.saptechies.com/sap-basis-certification-sample-questions/
http://www.geocities.com/mpioud/Abap_programs.html
http://cma.zdnet.com/book/abap/index.htm
http://www.sapdevelopment.co.uk/
http://www.sap-img.com/
http://juliet.stfx.ca/people/fac/infosys/abap.htm
http://help.sap.com
http://www.sap-img.com
http://www.thespot4sap.com
http://www.sap-basis-abap.com/
http://www.sapdevelopment.co.uk/
http://www.sap-img.com/
http://juliet.stfx.ca/people/fac/infosys/abap.htm
http://help.sap.com/saphelp_46c/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm
http://help.sap.com/saphelp_46c/helpdata/en/d6/0db357494511d182b70000e829fbfe/frameset.htm
http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
http://www.sapgenie.com/abap/example_code.htm
http://www.geocities.com/SiliconValley/Campus/6345/abapindx.htm
http://help.sap.com/printdocu/core/Print46c/en/Data/Index_en.htm
http://help.sap.com/saphelp_40b/helpdata/en/4f/991f82446d11d189700000e8322d00/applet.htm
http://www.sap-img.com/abap-function.htm
http://www.sapgenie.com/abap/code/abap19.htm
http://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htm
http://www.planetsap.com/Tips_and_Tricks.htm
http://help.sap.com/saphelp_40b/helpdata/ru/d6/0dc169494511d182b70000e829fbfe/applet.htm
http://www.henrikfrank.dk/abapexamples/SapScript/symbols.htm
http://www.henrikfrank.dk/abapexamples/index.html
http://sap.ittoolbox.com/documents/document.asp?i=752
http://members.aol.com/_ht_a/skarkada/sap/
http://sappoint.com/abap/
http://members.tripod.com/abap4/SAP_Functions.html
http://members.ozemail.com.au/~anmari/sap/index.html
http://www.planetsap.com/Userexit_List.htm
http://www.planetsap.com/Tips_and_Tricks.htm
http://www.kabai.com/abaps/q.htm
http://www.planetsap.com/Userexit_List.htm
http://help.sap.com/saphelp_bw21c/helpdata/en/c4/3a8090505211d189550000e829fbbd/frameset.htm
http://www.sapgenie.com/abap/bapi/example.htm
http://help.sap.com/saphelp_45b/helpdata/en/65/897415dc4ad111950d0060b03c6b76/content.htm
http://www.sap-basis-abap.com/index.htm
http://help.sap.com/saphelp_40b/helpdata/en/fc/eb2c46358411d1829f0000e829fbfe/frameset.htm
http://help.sap.com/saphelp_46c/helpdata/en/aa/aeb23789e95378e10000009b38f8cf/frameset.htm
http://www.geocities.com/ResearchTriangle/1635/system.html
http://www.sapdesignguild.org/resources/MiniSG/3_Managing/3_Functions_Table_Control.htm
http://help.sap.com/saphelp_45b/helpdata/en/d1/801bdf454211d189710000e8322d00/content.htm
http://www.sapfans.com/sapfans/repos/saprep.htm
http://www.planetsap.com/howdo_a.htm
http://help.sap.com/saphelp_util464/helpdata/en/69/c2516e4ba111d189750000e8322d00/content.htm
http://www.sapgenie.com/abap/smartforms_detail.htm
http://www.sap-img.com/abap.htm
http://help.sap.com/saphelp_46c/helpdata/en/fc/eb2d67358411d1829f0000e829fbfe/content.htm
http://www.geocities.com/victorav15/sapr3/abap.html
http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
http://abap4.tripod.com/Other_Useful_Tips.html
http://help.sap.com/saphelp_45b/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm
http://www.sap-basis-abap.com/sapmm.htm
http://sap.ittoolbox.com/nav/t.asp?t=303&p=448&h1=303&h2=322&h3=448
http://sapfans.com/
http://cma.zdnet.com/book/abap/ch03/ch03.htm
http://help.sap.com/saphelp_40b/helpdata/en/4f/991f82446d11d189700000e8322d00/applet.htm
http://sappoint.com/abap/
http://www.henrikfrank.dk/abapuk.html
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
http://www.sapgenie.com/abap/index.htm
http://www.sap-img.com/abap.htm
http://www.sapdevelopment.co.uk/tips/tipshome.htm
http://help.sap.com/printdocu/core/Print46c/en/Data/Index_en.htm
http://sap.ittoolbox.com/nav/t.asp?t=322&p=322&h1=322
http://sap.ittoolbox.com/nav/t.asp?t=448&p=448&h1=448
http://www.thespot4sap.com/
http://www.kabai.com/abaps/q.htm
http://www.geocities.com/mpioud/Abap_programs.html
http://www.sapgenie.com/abap/tips_and_tricks.htm
http://www.sapassist.com/code/d.asp?whichpage=1&pagesize=10&i=10&a=c&o=&t=&q=&qt=
Mark Helpfull answrs
Regards
Manoj -
How to create the custom table?
Hi, how to create the custom table and how to integrate the table with defferent R/3?
my requiremnt is i have to create the two tables and those i have to integrate with the existed R/3 and using those R/3 i have to update my custom tables .....can give me some idea?
Tks
DPkhow to create the custom table
There are two approach in creating a table.
1. Bottom-up approach
2. Top-down approach.
Both are valid and you can choose which approach is suitable for you. I always use the bottom-up approach. Here are the steps to create the tables with this approach.
1. SE11 will take you to the DDIC and enter the name of the new table to be created. Let us say Zname. Click create.
2. Enter the short discription of the table and enter the field of the table. If it is primary key and you have to check the box.
3. Enter the data element and double click it, you will be asked to save and will take you to data element discription page. Enter the short discription of the data element and enter the information of domain like the length of field and type of field.
4. If you wanted to use the existing domain then its fine, or else, you have to create one. Enter the domain name in the data element page and double click it. Page will ask to save and jump to domain creation page.
5. In the domain page, you have to save the information which you have already given in the data elements page and check it. Before going to data element page, you have to activate the domain.
6. Go to data element page and save, check and activate.
7. Go to main table page and save, check, and activate.
8. Also, you have to save the technical settings of the table.
The table is now ready for operation. You can use it in your program or you can use it to enter information.
Check table: It is the table which will have all the information about the Foreign keys which are the primary keys in the check table.
It can be created by creating the foreign key from the main table. Click foreign key in the main table and it will take you to a page which will ask for table name and field to which foreign key relation has to be associated. Enter the information and you can create the check table automatically.
SM30 is used for maintenance of the table, that is to realease the errors occured during the creation of the table.
how to integrate the table with defferent R/3
Transport the Table to the another server/client/qas/prd
Kanagaraja L -
How to read the complete path in file upload UI
Hi,
I want to know how to read the complete path in file upload UI in java web dynpro.
I have created 1 file upload UI and than when i do browse and select some file say small.jpg from my local PC, desktop , its path is coming in file upload UI like E:\small.jpg,
I want to know how to get this path in java webdynpro code.
please let me know..Hi Satyam,
In webdynpro java, first file stores in server location then it reads from server.
Create a button with upload and write this code OnAction
Resource is the attribute name in context of type com.sap.ide.webdynpro.uielementdefinitions.Resource, this attribute is for Resource property for Upload UI Element.
Then in OnAction of button
InputStream text = null;
int temp=0;
try{
File file = new File(wdContext.currentContextElement().getResource().getResourceName().toString());
String path = file.getAbsolutePath();
wdComponentAPI.getMessageManager().reportSuccess(path);
}catch(Exception e){
e.printStackTrace();
//@@end
Regards,
Pradeep
Edited by: pradeep_546 on May 11, 2011 12:22 PM -
How to download the custom Tables to xls from the system?
Hi
How to download the custom Tables to xls from the system?
VijayHi,
Goto SE11, in the table name field give Z*, and click on display. You will get the list of Z tables.
Regards,
Prabu -
How to customize the section's content in left bar?
How to customize the section's content in left bar. I hope to change create job's content, recent job's content etc. Or it is impossible?
regards
renHI Renliyuan,
you can use custom web applets (Rss feeds, Html Code or URL) to display different content in action bar.
Feel free to ask more
Regards
Nisman -
Please help : How to make the anomalistic table just like below?
Hi all,
How to make the anomalistic table just like below? Anyone can give the way detail or thoughtway ?
http://61.132.17.188/webber/table.gifThis is just a suggestion.
If you put your "JTable" in a "JScrollPane", then you can add any "java.awt.Component" to the corner of the "JScrollPane" -- using the "setCorner()" method (of "JScrollPane").
I would suggest making a custon "JPanel" and overriding its "paintComponent()" method to draw a diagonal line (and the required text) on it.
You can find out more about how to do this from the links I provided in my first reply.
Hope this helps.
Good Luck,
Avi. -
How to import the internal table into subroutine as parameter
how to import the internal table into subroutine as parameter, and its structure can be recognized inside the subroutine
Hi Yong,
try this:
parameters: p_tabnm like dd03l-tabname.
field-symbols: <fs_tabname> type standard table.
data: itab_ref type ref to data.
create data itab_ref type standard table of (p_tabnm)
with default key.
assign itab_ref->* to <fs_tabname>.
select * from (p_tabnm) into table <fs_tabname>.
perform subroutine tables <fs_tabname>
using p_tabnm.
*& Form subroutine
text
-->P_<FS_TABNAME> text
-->P_P_TABNM text
form subroutine tables p_tabname type standard table
using p_tabnm.
Here p_tabname already has the structure of the table you gave as input
parameter
endform. " subroutine -
How to decrease the dynamic table data loading time
hi
i have problem with dynamic table.
when i execute the the table with passing a query , getting lot of time for loading the table data.( it takes 30sec for every 100 rows.)
pls help me how to overcome this problem.
thanks advance.Yes, This is oracle application...
We can move into other tablespace as well. But concern is how to improve the alter table move command performance.
Is there any specific parameter apart from the nologging and parallel server..
If it is taking 8 hours , can some have experience that nologging will save how much time. or is there any risk in doing in production.
Regards -
pleae let me know how to create the fatc table by using pl/sql packages
Edited by: 792988 on Sep 6, 2010 3:34 AMPlease let us know something about your fact table.
There's no create_fact_table() procedure that could satisfy everybody. -
How to identify the psa table names in bi 7?
Hi all,
How to identify the psa table names in bi 7? i need to know the psa table name in bi 7?
as well as i need to check whether any historical data loads is there for psa for a particular period?
How to filter for a particular data in the psa in bi 7?
Thanks
PoojaHi Pooja,
A)How to identify the psa table names in bi 7? i need to know the psa table name in bi 7?
Double click on the PSA and CTRLSHIFTF5 --->in PSA properties -->PSA table ..u can find the name here ....
B)as well as i need to check whether any historical data loads is there for psa for a particular period?
usually as SAP best practise we will not keep data in PSA for not more than 30 days or at the amx 60 days..you may not find historical data here..however to find the oldest data -->Right Click >Manage>Give some old date ,say 01.01.2005 in the Request newer than ...and Refresh.....
Other way is to find out in the Data provider i.e in the Cube or DSO ...
How to filter for a particular data in the psa in bi 7?
a)Do not map it
b)in the DTP...Filter it ....i.e from PSA -->CUBE/DSO....
c)Or write a routine also in start routine ...
Rgds
SVU123 -
How to mark the physical tables as cacheable
Hi All,
Can someone please tell me how to mark the physical tables as cacheable.
Thnaks a lotHi,
by default they are cacheable...
You can see it on repository, physical layer, right clik on table, properties, on general tab, check cacheable...
You can specify peristence time...
See this article, you will find an image with table properties:
http://obieeblog.wordpress.com/2009/01/19/obiee-cache-is-enabled-but-why-is-the-query-not-cached/
Regards
Nicoale
Edited by: Nicolae Ancuta on 26.05.2010 09:15 -
How to find the Source Table in one corresponding schema?
Hi All,
How to find the Source Table in one corresponding schema?
regards,
DBDB wrote:
Hi All,
How to find the Source Table in one corresponding schema?
regards,
DBHUH?
I do not understand your question
How do I ask a question on the forums?
SQL and PL/SQL FAQ
Maybe you are looking for
-
Changing Date and Time with dng files
My camera settings for date and time were wrong. So some of my files in Lightroom 3 have the wrong dates. This morning I downloaded Photoinfo 2.0.1 but it doesn't seem to want to accept "dng" files to change the info. It will accept "jpeg" files no p
-
Error :Inbound Delivery "No item category exists (Table T184L DIG NORM V )"
Dear Guru's, When I try to create an inbound Delivery for an SA i am getting the following error "No item category exists (Table T184L DIG NORM V )" . My problem is, it suppose to look for Delivery Type: EL instead of DIG. I dont know why its look fo
-
Hi all. i wanted to learn sql so i downloaded express 10g. i installed it fine. when i go to the database homepage i only have the option to log in, i don't have the option to create an account. i try to log in with the oracle username and password b
-
CLOCK_WATCHDOG_TIMEOUT (101)
One of our clients got this mysterious "Blue Screen" bugcheck 101 error We dug out the minidump file and analyzed it using WinDBG. Here's what WinDBG shows: CLOCK_WATCHDOG_TIMEOUT (101) An expected clock interrupt was not received on a secondary proc
-
I bought a MacMini with Lion server software already installed. I activated the web page and can see it from the Safari application within the MacMini. However, if I try and access the page using my laptop, I get the following message: Unsupported Br