Deletion of Standard tables
Dear Experts,
We are planing to delete data in standard tables to improve the system performance.
Standard tables are :
RSREQDONE - Monitor: Saving of the QM entries
RSPCLOGCHAIN - Cross-Table Log ID / Chain ID
TBTCO - Job Status Overview Table
RSPCCHAIN - Process chain
RSDIOBJT - InfoObject texts
RSDIOBJ - Directory of all InfoObjects
I need some information like
1. Is there any impact by deleting above tables?
2. If we can delete how much data we can delete?
3. And the frequency of deletion.
If already threads are available please share it.
Thank You in advance!
Hari
Do not delete RSPCCHAIN, RSDIOBJT and RSDIOBJ.
The others are log tables, but the above three are critical. Deleting the content of the above three tables can corrupt your entire system.
Similar Messages
-
How to find out who deleted the standard table enteries
Hi,
Somebody has deleted entire KNA1 in one of our systems. Is there any way to find out who deleted the entries?
Thanks & Regards,
Kumaran Duraiswamy.Hi
Look for help from an ABAPer. Go to SE11 for KNA1, use 'where-used list (ctrlshiftF3) and search for report that begin with Z* or Y* (perhaps LZ* or LY*, ie: function modules). See the ABAP coding if there is any instructions type:
DELETE kna1 FROM xxx.
Check too if the option &SAP_EDIT in tcode SE16N works in your system (see SAP Note 1420281 - CO-OM tools: SE16N: Deactivating &SAP_EDIT for instance)
I hope this helps you
Regards
Eduardo
PD: I forgot it, if option &SAP_EDIT works in SE16N, check the tables SE16N_CD_DATA and SE16N_CD_KEY.
Edited by: E_Hinojosa on Jun 24, 2011 11:04 AM -
Regarding creation of a standard table
Hi,
In my landscape, somebody deleted a standard table in one of my systems. when i am trying to access this table it is throwing an error message stating that table does not exist. check name.
Now i want to know how to create this standard table and how to get the structure of that table.
kindly help me regarding this issue.
thanks & regards,
eeswarHi
Well the solution you are thinking for this problem, doesn't seem to be a right way to me. Although recreation is no where possible for standard table, you can carry out transport.
As the table is standdard one, and deleted you should rather think of restoring your backup. Because even if you transport it from one system to other, the data missing from your active server cannot be recovered and system can become inconsistent.
So think about it once. Before applying transport.
Regards
Rahul -
How to Delete the Standard Database table KONV which is Related to ME47
Hi Experts,
i am having the Query that i want to delete some condition types in ME47 Transaction which is related to MM in my requirement. that i have checked that all data is storing in KONV Cluster table but deleting data for standard table we should not delete it directly.so i searched for BAPI and Functional Module i did not get it . can you prefer and BAPI OR Functional Module through that we can delete Record in the KONV Table for this Issuse.WHY would you want to do that directly with a function? Why don't you just fix the pricing issue in the RFQ's in question?
-
Hi Friends,
I want to Change The Field name (Standard Table) and i want to delete Some fields (Standard Table) is it possible.
if can Please help me.
Regards,
Nehru.sHi Nehru,
Check this link for changing standard field descriptions:
http://www.renet-web.net/2005/09/01/changing-standard-sap-field-descriptions/
For deleting, the following link might help you:
http://www.*******************/2007/06/lesson-16-changes-to-database-tables.html
Hope this helps you.
Regards,
Chandra Sekhar -
Query regarding Standard table vs Z-table in SAP about deletion of data?
Dear Experts,
Can we delete the data form the standard table in SAP. If yes than will it ask for the request to make them effective itself, because when we delete the data from any ztable, it will not ask for the request to make them effective at the produstion server ? If possible plz update me with yr elaborate and detailed concerneds.
Regards,
AkgSorry to intervene here Dhina but that is just halfways correct.
If delivery class NOT = C then it is NOT a customizing table and therefore you wont get any transport request updating or deleting data from it.
But if it is a customizing table then you got to look for the recording routine. You can see this by viewing your table in SE11, then using the menu like following:
utilities->table maintainance generator.
Then look at the info in the bottowm frame. if "standard recording routine" is tagged, then you get a transport request.
If the other option is tagged you wont get it. What again means you can customize this table directly in the system where you need those entries.
why is that?
well assume there is a customizing for e.G. materials, depending on materialnumber. If that table would have a standard recording routine you would need ALL your materials in your development system which would be quite unusual.
Edited by: Florian Kemmer on Jun 9, 2011 2:00 PM
some typos corrected, left some for sure -
How to delete the database table
hi all
i want to delete the data from the custrmize table so if u can heilp me to do that....not the internal table ..i write the code but that using that code i can delete only one raw.. but i want to delete all raw in my table..
ZLAB_SUBMIT-SHADE = '1'.
ZLAB_SUBMIT-SUBMIT = '1'.
ZLAB_SUBMIT-RM = 'RINGS'.
ZLAB_SUBMIT-REMARKS = 'Approved'.
ZLAB_SUBMIT-AP = ''.
ZLAB_SUBMIT-USNAM = 'INDIKAF'.
ZLAB_SUBMIT-CPUDT = '05.10.2006'.
ZLAB_SUBMIT-CDATE = '05.10.2006'.
ZLAB_SUBMIT-CPUTM = '21:29:19'.
DELETE ZLAB_SUBMIT.
regard
nawa
this is my code....Hi,
data itab type standard table of zlab_submit.
select * from zlab_summit into table itab.
delete zlab_summit from table itab.
Kindly reward points by clicking the star on the left of reply,if it helps. -
How to Edit Key Fields or Delete Lines from Table Entries
Hi Experts
While releasing Transport Request Number we are getting an error during release. This seems to be as a result of improper data feed while running of eCATT's . The dates in the all these fields have been entered as " . .0101" which is in the wrong format ( eg. Table T811F u2013u201CSDATEu201D field). "SDATE" seems to the key field of the table . Can you please guide on how we may delete these lines or edit the field in the table.
Regards
AnandaHello,
I dont think its a good idea to delete the records from those standard tables. You rather re-run your ecatt and edit/update the existing records and try.
regds,
Kiran -
Dynamic record deletion from database table
Hi,
I need to delete selected records from database table(dynamic names). Table names are being passed from main program with some of their field names. The record to be deleted from the database table is being decided based on the fields passed for the table and their contains passed from the main program.
It is not possible to write dynamic where clause for DELETE statement directly.
So, I created a dynamic internal table and i am trying to fetch all records using SELECT statement(for which we can write dynamic where condition, something like...SELECT...WHERE (itab). ) which need to be deleted in the iternal table.
Piece of code :
CONCATENATE c_im v_tablefield1 INTO v_imprtfield1.
CONCATENATE v_tablefield1 c_in v_imprtfield1
into s_condition separated by space.
APPEND s_condition TO t_condition.
PERFORM GET_DYNAMIC_ITAB USING s_flds_agtab-tabname
changing t_itab.
ASSIGN t_itab->* TO <itab>.
*Select the data (to be deleted) from the database table
SELECT * FROM (s_flds_agtab-tabname) INTO TABLE <itab>
WHERE (t_condition).
*Delete the records from the table
IF SY-SUBRC = 0.
DELETE (s_flds_agtab-tabname) FROM TABLE <itab>.
ENDIF.
Here t_condition is of standard table of WHERETXT.
t_condition at the run time before giving dump was:
SPART IN IM_SPART
AND KUNNR IN IM_KUNNR
Here IM_SPART is renge type of SPART and IM_KUNNR is renge of KUNNR.
I am getting a DUMP:
The WHERE condition has an unexpected format.
Error analysis
The current ABAP/4 program attempted to execute an ABAP/4 Open SQL
statement containing a WHERE condition of the form WHERE (itab) or
WHERE ... AND (itab). The part of the WHERE condition specified at
runtime in the internal table itab contains the operator
IN (v1, ..., vn)
in incomplete form.
How to correct the error
If the error occurred in a non-modified SAP program, you may be
able to find a solution in the SAP note system.
If you have access to the note system yourself, use the following
search criteria:
"SAPSQL_IN_ILLEGAL_LIST"
"SAPLZSD_TAB_REFRESH " or "LZSD_TAB_REFRESHU01 "
"Z_SD_REFRESH_AGTABLES"
If you cannot solve the problem yourself, please send the
following documents to SAP:
I would like to know whether "IN" operator is allowed in (itab) of WHERE clause. While testing I changed the "IN" to "=" specifying a suitable value there. It worked. So please let me know if i can give "IN" operator using renge table in the dynamic where clause.
Thanking you,
SuryaHi again, so if you can not use the IN in a dynamic where clause you might be forced to dynamically build the entire select statement, Here is a sample program which may give you some ideas, notice that we are writing the select statement code, putting it in another program and generating the subroutine at runtime, then call this routine. I'm sure that this will help you see what you need to do.
report zrich_0003 .
tables: kna1.
types: t_source(72).
data: routine(32) value 'DYNAMIC_SELECT',
program(8),
message(128),
line type i.
data: isource type table of t_source,
xsource type t_source.
ranges:
r_kunnr for kna1-kunnr.
data: ikna1 type table of kna1.
data: xkna1 type kna1.
r_kunnr-sign = 'I'.
r_kunnr-option = 'EQ'.
r_kunnr-low = '0001000500'.
append r_kunnr.
xsource = 'REPORT ZTEMP.'.
insert xsource into isource index 1.
xsource = 'FORM dynamic_select'.
insert xsource into isource index 2.
xsource = 'Tables r_kunnr ikna1.'.
append xsource to isource.
xsource = 'select * into table ikna1 from kna1'.
append xsource to isource.
xsource = 'where kunnr in r_kunnr.'.
append xsource to isource.
xsource = 'ENDFORM.'.
append xsource to isource.
generate subroutine pool isource name program
message message
line line.
if sy-subrc = 0.
perform (routine) in program (program) tables r_kunnr
ikna1.
else.
write:/ message.
endif.
loop at ikna1 into xkna1.
write:/ xkna1-kunnr.
endloop.
Regards,
Rich Heilman -
Short dumop in J2I5 (provide duplicate entry in Standard table)
Hello Expert ,
We have a problem in T.Code J2I5 ( Excise Register Extraction) input entry is lelect Excise group 20 . and a date from 04.08.09 onwards. and select the register RG23D . it shows the run time error ( Eg The ABAP/4 Open SQL array insert results in duplicate database record ) . but in the standard Tcode is there possible to provide duplicate entry in Standard table
Thaks & regards
Aditya Kr TripathiRuntime Errors SAPSQL_ARRAY_INSERT_DUPREC
Except. CX_SY_OPEN_SQL_DB
Date and Time 29.01.2010 10:57:09
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
problem occurs in this code :
assign I_RG23D_TAB-I_RG23D_TYP to <x_rg23dtyp> casting.
<x_extrctdata> = <x_rg23dtyp>.
class CL_ABAP_CONTAINER_UTILITIES definition load.
call method CL_ABAP_CONTAINER_UTILITIES=>FILL_CONTAINER_C
EXPORTING
IM_VALUE = i_rg23d_tab-i_rg23d_typ
IMPORTING
EX_CONTAINER = i_report_tab-extrctdata
EXCEPTIONS
ILLEGAL_PARAMETER_TYPE = 1
others = 2.
I_REPORT_TAB-EXTRCTDATA = I_RG23D_TAB-I_RG23D_TYP.
COMPUTE I_REPORT_TAB-EXTRCTLNGT = STRLEN( I_REPORT_TAB-EXTRCTDATA ).
APPEND I_REPORT_TAB.
ENDLOOP.
IF M_EXTRACTED = 'X'.
LOOP AT I_RG23D_KEY.
DELETE
FROM J_2IEXTRCT
WHERE BUDAT = I_RG23D_KEY-BUDAT
AND SERIALNO = I_RG23D_KEY-SERIALNO
AND REGISTER = I_RG23D_KEY-REGISTER
AND EXGRP = I_RG23D_KEY-EXGRP.
ENDLOOP.
ENDIF.
Control table check here for data Extraction
INSERT J_2IEXTRCT FROM TABLE I_REPORT_TAB.
If the insertion of the extract table is successfull then the table
for Extraction is Inserted
IF SY-SUBRC EQ 0.
PERFORM FILL_EXTDT USING C_RG23D M_EXTRACTED.
ENDIF.
ENDFORM. " RG23D
*& Form RG23CPART1
Purpose : RG23C Part I extraction logic
FORM RG23CPART1.
DATA: $PART1 TYPE PART1_TYP,
$LINCNT LIKE SY-LINCT,
M_EXTRACTED VALUE '',
$RC LIKE SY-SUBRC.
*********************************************************************************************8 -
Changing The record in a Standard Table
Hi,
I need to change the record which i had entered in the standard table.I can able to delete it by going in to the debugging mode but my question is how to change the record.
Regards,
Vijaya LakshmiTo update the data of any table, go to transaction SE16N, type u201C&SAP_EDITu201D. It will activate SAP editing function.
Esle.
Opern any record in SE16.Double click on the record so that all the fileds will be displayed in vertical format.
start debugging by /H
change the value of "code" to "DELE" and execute.
Moreover if you want to do this in PROD environment, I would NOT use the SE16n way, due to dependencies, which can have unwanted effects (database inconsistencies). Although in this case (only Name of customer), it might not be as bad as it normally would be. -
hi gurus,
i am new to abap.
i am create a report using
select-options: apoid,
material,
location to.
parameters: days .
user want to delete entries from the DB table
from system date to behind 5 days left entries
for ex. as today is 25.06.2008 he wants data in DB table
of only 20.06.2008 to 25.06.2008
if other data from left these dates are deleted.
and also in output shows the
2. Report output should contain :
a) Number of entries selected for deleting from table
b) Number of entries deleted from the table table
c) Number of entries remaining in the table table
i am do some coding
plz help me in this case
TABLES: zapolp22.
INTERNAL TABLE *
TYPES: BEGIN OF it_output,
ordid TYPE ZAPOLP22-ordid, "APO order id
schedid TYPE zapolp22-schedid, "APO schedule line id
matnr TYPE zapolp22-matnr, "Material Number
locto TYPE zapolp22-locto, "APO Destination location
lfmng TYPE zapolp22-lfmng, "Delivery quantity
lfdat TYPE zapolp22-lfdat, "Shipping date
locfr TYPE zapolp22-locfr, "APO Supplying location
rqmng TYPE zapolp22-rqmng, "Required quantity
rqdat TYPE zapolp22-rqdat, "Delivery date
prckz TYPE zapolp22-prckz, "Data element processing
blkstk TYPE zapolp22-blkstk, "Blocked Quantity
oppdelqty TYPE zapolp22-oppdelqty, "Cumulative order qty
zzapologmod TYPE zapolp22-zzapologmod, "Logistic Model
zzflagurgent TYPE zapolp22-zzflagurgent, "APO Urgency Flag
zzapottype TYPE zapolp22-zzapottype, "APO Transport Means
zzndays_l_time TYPE zapolp22-zzndays_l_time,"Lead Time Transport
END OF it_output.
DATA : itab1 TYPE STANDARD TABLE OF it_output." WITH HEADER LINE.
DATA : itab LIKE LINE OF itab1.
SELECTION SCREEN / PARAMETERS *
SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME.
SELECT-OPTIONS: s_ordid FOR zapolp22-ordid,
s_matnr FOR zapolp22-matnr,
s_locto FOR zapolp22-locto.
SELECTION-SCREEN END OF BLOCK a1.
PARAMETERS: p_days LIKE sy-datum.
DATA
DATA: days TYPE i.
START OF SELECTION *
SELECT mandt
ordid
schedid
matnr
locto
lfmng
lfdat
locfr
rqmng
rqdat
prckz
blkstk
oppdelqty
zzapologmod
zzflagurgent
zzapottype
zzndays_l_time
FROM zapolp22 INTO itab
WHERE ordid IN s_ordid AND
matnr IN s_matnr AND
locto IN s_locto.
ENDSELECT.
p_days = sy-datum - days.
DELETE zapolp22 FROM itab.
IF sy-subrc = 0.
WRITE:/ 'DEleted'.
ENDIF.
gururs plz help me its urgent.
thanks
jayantHis employer may be aware he's a newbie. He should of course be looking to his colleagues to help. But at least he's made an attempt. Martin is right though - this isn't a problem that requires a guru - it's a beginner task.
For starters try FROM zapolp22 INTO TABLE itab and remove the ENDSELECT.
Then LOOP AT itab...ENDLOOP.
READ the ABAP help for any keywords you don't understand. And DON'T use itab as a name for your internal table. Use a MEANINGFUL name. like t_apo_data.
matt -
Adding a field to Standard table through Structure
Hi everybody,
I need to add a field to standard table, I am using one append structure in that i am adding my field , But whenever I am activating the structure, I am not able to activate, It is getting as "PARTLY/ACTIVE" status for structure, so please help me in activating the structure.
ThankZ
siddivinesh.go to the standard table it ll also be partially active
goto se14
give the std table name
adjust and activate...
if the problem is not solved.......
see if the field is repeating twice in that Std table.....
if so delete the repeating fields.... -
Need Dynamic Table instead of Standard Table in FM INFO_SICHERN_S001
Hi Guys,
I have copied standard FM INFO_SICHERN_S001 into Zdefined FM.
My requirement is instead of
Updating or Modifying or Deleting standard table I need to do all these things for entered table.
How to do this.
Thanks in Advance.
Prasad.I solved Myself.
-
Memory and performance when copying a sorted table to a standard table
Hello,
As you all probably know, it's not possible to use a sorted table as a tables parameter of a function module, but sometimes you want to use a sorted table in your function module for performance reasons, and at the end of the function module, you just copy it to a standard table to return to the calling program.
The problem with this is that at that moment, the contents of the table is in memory twice, which could result in the well known STORAGE_PARAMETERS_WRONG_SET runtime exception.
I've been looking for ways to do this without using an excessive amount of memory and still being performant. I tried four methods, all have their advantages and disadvantages, so I was hoping someone here could help me come up with the best way to do this. Both memory and performance are an issue.
Requirements :
- Memory usage must be as low as possible
- Performance must be as high as possible
- Method must work on all SAP versions from 4.6c and up
So far I have tried 3 methods.
I included a test report to this message, the output of this on my dev system is :
Test report for memory usage of copying tables
table1[] = table2[]
Memory : 192,751 Kb
Runtime: 436,842
Loop using workarea (with delete from original table)
Memory : 196,797 Kb
Runtime: 1,312,839
Loop using field symbol (with delete from original table)
Memory : 196,766 Kb
Runtime: 1,295,009
The code of the program :
I had some problems pasting the code here, so it can be found at [http://pastebin.com/f5e2848b5|http://pastebin.com/f5e2848b5]
Thanks in advance for the help.
Edited by: Dries Horions on Jun 19, 2009 1:23 PM
Edited by: Dries Horions on Jun 19, 2009 1:39 PM
Edited by: Dries Horions on Jun 19, 2009 1:40 PM
Edited by: Dries Horions on Jun 19, 2009 1:40 PMI've had another idea:
Create a RFC function like this (replace SOLI_TAB with your table types):
FUNCTION Z_COPY_TABLE .
*"*"Lokale Schnittstelle:
*" IMPORTING
*" VALUE(IT_IN) TYPE SOLI_TAB
*" EXPORTING
*" VALUE(ET_OUT) TYPE SOLI_TAB
et_out[] = it_in[].
ENDFUNCTION.
and then try something like this in your program:
DATA: gd_copy_done TYPE c LENGTH 1.
DATA: gt_one TYPE soli_tab.
DATA: gt_two TYPE soli_tab.
PERFORM move_tables.
FORM move_tables.
CLEAR gd_copy_done.
CALL FUNCTION 'Z_COPY_TABLE'
STARTING NEW TASK 'ztest'
PERFORMING copy_done ON END OF TASK
EXPORTING
it_in = gt_one[].
CLEAR gt_one[].
WAIT UNTIL gd_copy_done IS NOT INITIAL.
ENDFORM.
FORM copy_done USING ld_task TYPE clike.
RECEIVE RESULTS FROM FUNCTION 'Z_COPY_TABLE'
IMPORTING
et_out = gt_two[].
gd_copy_done = 'X'.
ENDFORM.
Maybe this is a little bit faster than the Memory-Export?
Edited by: Carsten Grafflage on Jul 20, 2009 11:06 AM
Maybe you are looking for
-
Error while creating the Multiprovider
Hi all, I am creating a Multiprovider by using 3 cubes. while i am activating the multiprovider its throwing Error as "Assignments for InfoObject "xyz" have not yet been maintained -> Long text" for all the infoobjects which r present in the multipr
-
After having had my iMac's hard drive replaced (had a defect 1 TB Seagate) and the 10.8.2 reinstalled, I no longer can make security backups from my iPhone 4S. iTunes simply tells me that the backup cannot be saved on my computer (which it has done n
-
install itunes on my pc windows xp. got message: itunes library itl cannot be read because created by newer version of itunes. should i go to add/remove programs & uninstall then reinstall?
-
When will a Lightning update that works with Thunderbird v31.0 beta be released?
I was using Thunderbird v 30 beta with Lightning 3.2b1 and it worked great. Thunderbird v31 was issued, and automatically updated. Add-ons are set for "automatic update". Everything in calendar is now grayed-out, and nothing works. I searched the Lig
-
My InDesign will auto quit when export PDF
Process: Adobe InDesign CS5.5 [707] Path: /Applications/Adobe InDesign CS5.5/Adobe InDesign CS5.5.app/Contents/MacOS/Adobe InDesign CS5.5 Identifier: com.adobe.InDesign Version: 7.5.3.333 (7530) Code Type: X86 (N