How to delete entire data in the hierarchy table,?
hi friends
i need to delete entire data in the hierarchy table which contains parent child relationship,when i am selecting entire records and choose the option delete from the context menu, it is not deleting, and i have to delete one by one or i have delete first the child items and later parents items, it is time consuming process.
Is there any other option to delete entire records in the hierachy table , irrespective of parent and child relationship?
if any one have solution for my issue, please provide to me
thanks in advance
bharat.chinthapatla
Hi Bharat,
Unload the Repository and Delete the Table and fields in Hierarchy table and Recreate and reload the data.OIther wise you have to lot of manual work.
Thanks
Ganesh Kotti
Similar Messages
-
Deletion of data within the database tables
The user is trying to clean up the 2014 data within the database tables. He is running a delete function which keeps causing the log files
to exceed their limit. The tables are large and he is unable to delete the data in one command due to available size and logging. What is the best way to approach this?
Thanks,Hi venkatesh1985,
According to your description, the user fails to delete data in tables due to the limited space of log file. Based on my research, this issue could occur when you use the delete statement(DELETE FROM ExampleTable) in a single transaction and consume all
available space on your transaction log disk.
To avoid this issue, you could use the two methods below to delete the data.
1. Use a loop combined with TOP and delete rows in smaller transactions as the following example. This method requires you to delete all the tables one by one.
SELECT 1
WHILE @@ROWCOUNT > 0
BEGIN
DELETE TOP (1000)
FROM LargeTable
END
For more information about the process, please refer to the article:
http://dbadiaries.com/how-to-delete-millions-of-rows-using-t-sql-with-reduced-impact
2. If you want to delete all the data from all tables in the specific database, you could script the entire database and all database objects. Then drop the database and recreate it using the script as the steps below.
a. In Object Explorer, expand the node for the instance containing the database to be scripted.
b. Point to Tasks, and then click Generate Scripts and click Next.
c. Select the option of 'Script the entire database and all database objects'.
d. Specify how scripts should be saved. You could save the script to a file or new query window. Click Next, then click ok.
e. Drop the database, and run the script in the query window to recreate it. For more information, please refer to the article:
http://msdn.microsoft.com/en-us/library/bb895179.aspx#Introduction
In addition, if possible, please increase the size of the log file or move the log file to a different disk with more disk space.
Regards,
Michelle Li -
Can I restore the deleted statistical data from the database tables?
Hi all,
I have deleted the statistical data from the database tables like(Ex: RSDDSTAT, RSDDSTATWHM,..) by mistake through RSA1> Tools> BW Statistics for Infoproviders--> Delete.
Is there any way to restore the deleted data back? Thanks in advance.Now I'm really confused-
Your first post said
"<b>I have deleted the statistical data from the database tables like(Ex: RSDDSTAT, RSDDSTATWHM</b>,..) by mistake through RSA1> Tools> BW Statistics for Infoproviders--> Delete."
but your last respsonse said
"I have deleted the BW Statistics data, <b>not the actual data in RSDDSTAT tables</b> through
RSA1 -> Tools -> BW Statistics for InfoProviders -> clicked 'Delete' bin to delete data."
If you used the RSA1 -> Tools -> BW Statistics for InfoProviders -> clicked 'Delete' - <b>then you deleted the data from the RSDDSTAT tables</b>. This assumes you accepted the default date range that would have popped up after the clicking on the Delete button which specified to delete thru the current date. If this is what you did, the data is gone. Your only hope is be to recover from a DB backup.
The data in the RSDDSTAT tables is what is used to feed the BW Statistics cubes, generally on a daily basis. -
How to hide committed data in the adf table
Hi,
I want to hide the existing data or committed data from the ADF Table when it loads.
When I press the create button the new record only should show.
How to do this?
Any suggestions please.
Thanks in advance,
SundarYou can use VO.setQueryMode(ViewObjectImp.QUERY_MODE_SCAN_UNPOSTED_ENTITY_ROWS) followed by VO.executeQuery() in this case.
http://docs.oracle.com/cd/E23549_01/apirefs.1111/e10653/oracle/jbo/ViewObject.html#QUERY_MODE_SCAN_UNPOSTED_ENTITY_ROWS
alternatively you can also iterate over the rowset and check the entity state of the current row to be STATUS_NEW else remove the row from the collection. -
How to delete select data in the table control
this problem makes me headache.
I am new to labview, when a table shows some data. many rows and column. how can delete on row which I selected. the other rows are remain no change.
I really need help.thanks in advance. It is better to attach the program.my labview is 2009
Solved!
Go to Solution.Hi,
You can do it with a table control as well. Check out the attached VI. To delete a row, Run the VI, just right click the row and click "Delete Row". To get back the default values, click reinitialize.
Reards,
NitZ
(Give Kudos to Good Answers, Mark it as a Solution if your problem is Solved)
Attachments:
Untitled 3.vi 8 KB -
How to delete entity-Data in the Database?
Hello!
Problem:
I want to change the the Datatype of an attribute of an Entity-Service. Doing so and deploying the Application afterwards I get an deployment error, because of the changed Datatype.
Undeploying the application doesn´t delete the Data of the Entities and doesn´t solve my Problem.
Where can I manipulate or delete the Data-Tables of my Entity-Services? I´ve applied local peristency.
Thank you for your effort in advance.
JörgHi Ju00F6rg ,
Two possible ways to solve this:
1. Check deployment exception and understand that is the cause. Typically, that's clear from exception which db table can not be updated. You can remove those entries which restrict table updating or remove whole table from DB at all.
2. Open your CAF dictionary project and check all tables names. Then connect to your DB and execute statement
like this for all of the tables:
DELETE FROM <YOUR_TABLE>
DB name you can find by openening config tool:
\usr\sap\<instance>\JC<id>\j2ee\configtool\configtool.bat
Click "Yes" for "Do you want to use the default DB setting?" message box. Select the "secure store" entry under "cluster-data" entry. Check the "databasename" property for
"jdbc/pool/<instnace>/Url" entry.
So, after that connect to this DB using according DB client and access your tables.
Best regards,
Aliaksei -
How to show grouped data in the same table?
Hi,
I am using JDev 11.1.1.2.0 with ADF 11g.
I have a below requirement
I have a tbl as below
Columns -==> RC TL Code
Data ==> 0 0 Prof
0 1 Prin
0 2 Tech
1 0 Prin
1 2 Prof
I prepared a query with a grouping on TL so that I can show my data as below
TL - 0
RC Code
0 Prof
1 Prin
TL - 1
RC Code
1 Prin
TL - 2
RC Code
0 Tech
2 Prof
Really confused on to what type of component should I use and how can the component be repeated once dragged and dropped onto the canvas. Is this possible using ADF? If not what is the alternative?
Thanks in advance.Hi Bharat,
Unload the Repository and Delete the Table and fields in Hierarchy table and Recreate and reload the data.OIther wise you have to lot of manual work.
Thanks
Ganesh Kotti -
How to delete a date in the calendar
I received a request and added to my calendar. Now I need to delete it and can't find the way to do it
Tap on it which will open a box. On it you'll see an 'edit' box, tap on that and one of the choices in editing is to delete.
-
How to delete entire data from MDS UI using SQL query or Using SSIS
Hi All,
Using SSIS i loaded data in MDS UI(Subcription view),I want when i execute my package next time and load data in MDS it should be blank or data should not be in UI.Hi
please checked following url to insert data in your MDM
http://msdn.microsoft.com/en-us/library/jj819772.aspx -
Delete duplicate entriess from the internal table its urgent pls help.
Hi friends,
Hope everybody is doing good,Here is m query on delete duplicate data from the intenal table.
I have an internal table which contain data in the following format.
Doc No Comp Cod Vendor Assignment
1500000009 JM11 00000000
1500000008 JM11 20070212(Repeating)
1500000007 JM11 20070212
1500000006 JM11 00000000
1500000005 JM11 00000000
1500000004 JM11 00000000(Repeating)
1500000003 JM11 00000000 (Repeating)
1500000002 JM11 00000000
1500000001 JM11 20050302
1500000000 JM11 00000000
1500000003 JM11 10000088
1500000001 JM11 10000088
1500000030 JM11 10006260
1500000010 JM11 10006269
1500000008 JM11 10006269
1500000006 JM11 10006269
1500000004 JM11 10006269
if you see the document numbers,there are some document number which are repeating here,there are some document numer which contain vendor number but not the assignments,some of the document numbers contain the assignments but not the vendors.
If my internal table contain this kind of data with repeted document numbers than i want the document number which contains only the vendor number.
Pls help me with the appropriate logic,its urgent.
Thanks a lot
mrutyun^Hi,
<u><b>Deleting Adjacent Duplicate Entries</b></u>
To delete adjacent duplicate entries use the following statement:
DELETE ADJACENT DUPLICATE ENTRIES FROM <itab>
[COMPARING <f1> <f2> ...
|ALL FIELDS].
The system deletes all adjacent duplicate entries from the internal table <itab>. Entries are
duplicate if they fulfill one of the following compare criteria:
Without the COMPARING addition, the contents of the key fields of the table must be
identical in both lines.
If you use the addition COMPARING <f1> <f2> ... the contents of the specified fields <f1>
<f2> ... must be identical in both lines. You can also specify a field <fi> dynamically as
the contents of a field <ni> in the form (<ni>). If <ni> is empty when the statement is
executed, it is ignored. You can restrict the search to partial fields by
specifying offset and length.
If you use the addition COMPARING ALL FIELDS the contents of all fields of both lines
must be identical.
You can use this statement to delete all duplicate entries from an internal table if the table is
sorted by the specified compare criterion.
If at least one line is deleted, the system sets SY-SUBRC to 0, otherwise to 4.
Examples
DATA: BEGIN OF LINE,
COL1 TYPE I,
COL2 TYPE I,
END OF LINE.
DATA ITAB LIKE HASHED TABLE OF LINE WITH UNIQUE KEY COL1.
DO 4 TIMES.
LINE-COL1 = SY-INDEX.
LINE-COL2 = SY-INDEX ** 2.
INSERT LINE INTO TABLE ITAB.
ENDDO.
LINE-COL1 = 1.
DELETE TABLE ITAB: FROM LINE,
WITH TABLE KEY COL1 = 3.
LOOP AT ITAB INTO LINE.
WRITE: / LINE-COL1, LINE-COL2.
ENDLOOP.
The output is:
2 4
4 16
The program fills a hashed table with a list of square numbers. The DELETE
statement delete the lines from the table where the key field COL1 has the contents 1 or 3.
Regards,
Bhaskar -
How do i put tv programmes and videos from itunes to another iphone, without having to delete all data on the phone and replacing it with my library? i switched the 'sync only ticked songs and videos' yet it still wont let me transfer videos from my itunes onto my new phone, any ideas??
Copy the entire itunes folder from the old computer to the new computer.
-
How to delete aggreagetd data in a cube without deleting the Aggregates?
Hi Experts,
How to delete aggreagetd data in a cube without deleting the Aggregates?
Regards
Alok KashyapHi,
You can deactivate the aggregate. The data will be deleted but structure will remain.
If you switch off the aggregates it wont be identified by the OLAP processor. report will fetch the data directly from the cube. Switching off the aggreagte won't delete any data,but temporarly the aggregate will not be availbale as if it is not built on the info cube. No reporting is not possible on swtiched off aggregates. The definition of the aggregate is not deleted.
You can temporarily switch off an aggregate to check if you need to use it. An aggregate that is switched off is not used when a query is executed.This aggregate will be having data from the previous load's. If the aggregate is switched off means it wont be available for reporting but data can be rolled up into it.
If u deactivate the aggregates the data will be deleted from the aggregates and the aggregate structure will remain the same.
The system deletes all the data and database tables of an aggregate. The definition of the aggregate is not deleted.
Later when you need those aggregate once again you have to create it from scratch.
Hope this helps.
Thanks,
JituK -
How to read the hierarchy data from the same table using loop in AMDP method
Hi All,
We have a requirement to get the top partner from BUT050 table.
Here the Top parent is nothing but the top most in the hierarchy of the partners from BUT050.
Example:
For partner 1234 (BUT050-PARTNER1) there is partner 3523(BUT050-PARTNER2) one level above
For partner 3523(BUT050-PARTNER1) there is partner 4544 (BUT050-PARTNER2) last level .
so in this case for the partner 1234 the Top parent is 4544 .
I have created AMDP Procedure method to get the top-parnet and below given is the logic implemented in AMDP method.
Here i have implemented a recursive logic with the WHILE loop to get the top most hierarchy partner from the same table BUT050
IV_Parent is the input partner and ev_top_parent is the output value.
AMDP Procedure Method:
DECLARE lv_date VARCHAR(8) := TO_VARCHAR (current_date, 'YYYYMMDD');
DECLARE found INT := 1;
iv_partner1 = SELECT partner1 FROM but050
WHERE partner2 = iv_partner
AND reltyp = :iv_hierarchy
AND date_to >= :lv_date
AND date_from <= :lv_date;
WHILE found <> 0 do
select partner1 into ev_top_parent from :iv_partner1;
iv_partner1 = SELECT partner1 FROM but050
WHERE partner2 in ( select partner1 from :iv_partner1 where partner1 is not null)
AND reltyp = 'ZBP004'
AND date_to >= :lv_date
AND date_from <= :lv_date;
select COUNT ( partner1 ) INTO found FROM :IV_PARTNER1;
END WHILE;
This method is working fine, but here it is only taking one single partner and getting the top parent as output.
Now i would like to convert this mehtod so as to accept n number of partners (not one single partner) as input and should process each partner to get the top parent.
Could anyone guide me how can i handle the given AMDP method further so as to work some how it is within another loop from other AMDP method.
Thanks.
Regards,
Laxman.PHi
Go to SE11 and enter the hierarchy table name.
/BIC/H....(infoobject name)...and execute the table and select table entry and delete all....
Thanks
TG -
How to delete or Update the data in the MEAN table
Hello Gurus,
I would like to delete or update the data in the MEAN table...how to do it.
Precisely I would like to change the status of Main EAN Indicator (field HPEAN).
Kindly let me know ??
Rehards
Senthilllprogrammatically, you may use [BAPI_MATERIAL_SAVEDATA|https://www.sdn.sap.com/irj/scn/advancedsearch?query=bapi_material_savedata&cat=sdn_all] [EAN|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=bapi_material_savedata+ean&adv=false&sortby=cm_rnd_rankvalue]
Regards,
Raymond -
To Delete the Entire Data from the Tables
Requirement ::
To use select Options for table name and based on the table names we want to delete the data from the tables...
conditions :
we have to first check if the tables having mandat and the configuration tables if this tables then dnt delete the data from this tables. if the table other than mandat n config tables the data will be deleted from other tables.
Input On Selection Screen :::
Name of the tables : : we want to select multiple table names using select options.
Type of Update : : Synchronous / Asynchronous
Test Run : : /* if test run is selected the tables will be validated based on the condition and the data is not
deleted from the SAP tables or the status is not updated . untill u run Actual run.
Actual Run : : /* Here finally the data will be deleted from the SAP tables . the changes finally will be reflected in
Actual run...to the SAP Tables
Output Required :::
srno | Table name | No.of Records deleted | Date | Time
Please provide me the sample code for the above Requirement ...
Thanks in Advance....
Moderator message : Spec dumping is not allowed. Thread locked.
Edited by: Vinod Kumar on Sep 30, 2011 4:54 PMVenkat,
I belive in LBWQ you can only see one entry for an application. You'll see only one entry MC*18 for all your datasources.
Do one thing. Do not delete from there. Run your "Job Control" job which moves all the data from LBWQ queue to RSA7 queue, making your LBWQ queue empty. Now go to RSA7 and delete your data for the specified datasource...
Been a while since I looked at those screens, but I believe I am right.
Good Luck
Gova
Maybe you are looking for
-
I keep getting a pop up window labled Software Update saying, "To open 'MLBNexDefAutobahn,' you need a Java SE 6 runtime. Would you like to install one now?" I click on "Not Now" and it pops open again a second later. It is not going away! Is this a
-
"No bootable devices" screen after Windows 7 Boot Camp failure.
As a lifetime Windows user, I thought that it would not be such a bad idea to install Windows 7 via Boot Camp Assistant. The process went smoothly until I reached the 3rd and final section of the procedure titled "Install Windows 7 or Later Version.
-
I am frequently getting this freeze on my MacBook Pro 10.6.8 - 2.66GHz i7 - any thoughts? ---> panic(cpu 2 caller 0xa80c9b): NVRM[0/1:0:0]: Read Error 0x00000100: CFG 0xffffffff 0xffffffff 0xffffffff, BAR0 0xc0000000 0x80194000 0x0a5480a2, D0, P2/4
-
Any advice on what to do about these two items? Should I just trash the current versions until the fixes are available rather than risk hacker problems? Are there viable alternatives to these two products?
-
Assigning digital Spidf in / out put in logic LE using TC KONNEKT 24 D
hi there.. i know LE doesnt support digital in/out puts but ive been told i have to configure is manually through my KONNECT 24d audio interface.. that i have no clue how to configure and assign these in/out puts... if any one knws how to do that ..