Deleting old/unsued/junk Master Data in Production
Hi Gurus:
Please let me know the most efficient way to clean up old/unused/junk Master Data.
My client has a master data that is virtually used in all the cubes & has 8 million records in it.
What would you suggest - the best method to clean up
I have an idea - what we craete a new Master Data object & then in update rules we mention what can go into the object, and then do full load from R/3 to the new info object. Will this approach be good?
Please let me know...Thanks & Regards
Hello,
> If the values of the InfoObject are a part of transaction data in any data target, the system will not let you delete it.
> You can reload the master data and then run the attribute change run. This will over write all the old data with new data from Production.
> You can do this in RSA1 > Tools > Apply Hier/Attr change. Click on InfoObject List and see if you char is there.
> If there is no new master data then there is nothing for the system to activate. As for the old records: If they are stored as transactional data in a data target, the system will not let you delete the entries.
Hope the above points help to solve your problem
Thanks
VArun
Similar Messages
-
What is the process to copy Master Data in Production to Development?
Hi,
we have an outdated master data in our BW development environment and we would like to bring it to the same level as our BW production environment.
What is the process to copy Master Data in Production to Development?
ThanksHi,
You can try system copy for this.
Pls chk this document , might be useful
Activity to be performed after client copy :
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/bff13df2-0c01-0010-6ba7-bc50346a6fd8
BW system Copy :
System Copy BW
Re: bw system copy
BDLS :
Re: After R/3 Refresh
BDLS on BW Q/A
Check following OSS notes.
Note 543715 - Projects for BW Migrations and System Copies
Note 886102 - System Landscape Copy for SAP BW 2.X, 3.X and NW2004s BI
Note 325525 - Copying and renaming systems in a BW environment
Note 184754 - Procedure after BW database copy
client copy
http://help.sap.com/saphelp_nw04/helpdata/en/c2/17e73a86e99c77e10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/69/c24cc34ba111d189750000e8322d00/frameset.htm
Client Copy
http://help.sap.com/saphelp_nw04/helpdata/en/ff/9be1817d811c41985662da25061f98/frameset.htm
Thanks,
JituK -
Strategies for synchronizing master data in production to test environments
I play a role in facilitating business end user testing. The business expects master data in the test enviornment to be failry representative, if not identical, to what's in our production environment. Whether it be a customer (XD03), a material (MM03), output determination(VV33), or pricing condition records (VK13), the business expects it to be there. Does SAP have any automated mechanism for refreshing a R/3 test system with master data from another R/3 system like production? The quality of testing is very reliant on the quality of master data, and it's not uncommon to be investing time troubleshooting problems triggered by a trivial difference in master data rather than troubleshooting true problems relating to what is really being tested. Does anybody know what's SAP's take on this is?
Not sure what master data in production order you want to change. Anyway if it is at header level, then evaluate BAPI - BAPI_PRODORD_CHANGE.
Alternatively evaluate the usage of Order Change Management if it is feasible in your solution. Do a search in this forum you will find many threads on it, also read SAP help & do a test a test in your sandbox. If you face a specific issue then do revert -
Deleted and adjusted the Master data table, sid table and text table
Deleted and adjusted the master data table, sid table and text table of an zinfoobject after removing and adding attributes to that zinfoobject and was trying to activate it and system was giving me messages that cannot activate infoobject something like this.
So, i deleted and adjusted the master data table, sid table and text table. Since then getting messages right after executing the query because in that query that infoobject is getting used.
So the messages i am getting is:
SID 9 for characteristic Zinfoobject could not be converted CL_RSDM_READ_MASTER_DATA->_SIDVAL_DIRECT_READ2
System error in program SAPLRRK0 and form MEGA_SORT_M_02-02- (see long text)
Please help me in fixing this whole thing.
Thanks
SAPBWSAP BW,
After adjusting your Master Data IOBJ and deleting and reloading the data - run a change run to adjust the references to the SIDs and then see if your query runs - run program RSDDS_AGGREGATES_MAINTAIN from se38 and select your IOBJ in the next screen..
Arun
Assign points if useful
P.S I did notice that in your earlier post for the same topic - you have had 12 answers / suggestions Please maintain only one thread as previously suggested..
My 0.02
Message was edited by:
Arun Varadarajan -
How to collective read PP master data in Production order?
Hi: Guys
Please tell me how to collective read PP master data in production orders. in COHV, I can find out some collective functions but read PP master data.
Thanks
HenryRead PP master data is only to update routing and BOM in production order if it is already created to effect the changesmade in routing and BOM. I think in that collective option is not possible.
Regards
KrishnamurthyDSS -
Bapi for update Master Data in Production order
Dear All ,
I am working in a car manufacturing company here production order is made month wise planning qty , but every day its Bom is get changed by Autocad/PLM interface and all changes are being recorded through ECN .
I have to generate daily reservation for assemblies for a perticular finish vehical ,so I need to update the Masterdata in production order no through the PLM( VB platform) interface .
So please suggest me any BAPI so that I can update the master data regular basis in monthly production order or if you have any better way to map this process into SAP please suggest .
Thanks in advance .
regards ,
Pralay ..Not sure what master data in production order you want to change. Anyway if it is at header level, then evaluate BAPI - BAPI_PRODORD_CHANGE.
Alternatively evaluate the usage of Order Change Management if it is feasible in your solution. Do a search in this forum you will find many threads on it, also read SAP help & do a test a test in your sandbox. If you face a specific issue then do revert -
Loading data from one master data attr.to another master data in production
Hi all,
I have two two masterdata attr info objects A and B( have time dependent attr.).
according to businees requirement i have included 8 objects of A TO B to make them as time dependent.
all reports are designed on infosets only having these A and B ,some other ods objects.
I have done mapping in infosets and made changes in queries according to changes.i when moved from dev to quality and checked all infosets and queries all changes are reflecting in infosets and queries in quality.
*QUETIONS * :
1. while executing queries i am getting 'no data' in the reult of query output.
2. How can get 8 fields data from A to B, because A has lot of data for that 8 fields in A in production
Regards,
Chinna.Hi chinna
first of all maintain the master data to attributes and these attribute converted into Navigational Attributes
in this way u can get master data at query output
thanks
Muralidhar Reddy.P
Edited by: Muralidhar Reddy P on Dec 24, 2008 9:31 PM -
Deleting a record from Master data
Hi all,
I need some help with deleting a record from the master data.I did go to the master dta maintenance screen and selected the record to be deleted. I saved it. I received the message, "master Data record cannot be deleted".
I then went into transaction slg1 to check for the details of the record. A message stating " Master data record XXX is being used in the cube /BIC/Dzzzyyy312.
This record is no longer needed by the end user and was requested to be deleted. Could some one tell me if there is a possibility to delete this unused masterdata record. Your suggestions are appreciated.
Regards!Hi Sumana,
Check this...Similar Post..
MAster data deletion throws a dump
Hope it helps
Srini -
Master data in PRODUCTION Server
Hi,
Can someone please share the checklist/document having the details of the Master Data that needs to be maintained in PRODUCTION server at the time of GO-LIVE from FI perspective.
Thanks in advance.
SanjayThe following FI Master Data needs to maintained in Production Server before Go-Live.
1. GL Master Data
2. Customer Master
3. Vendor Master
4. Bank Master(bank Keys)
5. Asset master data
6. Excise Data (J1ID - if CIN is applicable)
7. needs to check Material Master Data (valuation classes)
br,
Ganesh Lokam -
Want to delete 0BPARTNER and 0PRODUCT master data
Dear friends / Experts
i want to delete the whole master data which is availabe in 0BPARTNER and 0PRODUCT , while deleting the master data using right click and deleting --> am getting the message like some of the master data can not be deleted but using se11 i came to know that still 3 million records are available in database.
so am kindly requesting you to help me out to delete those master data ..
even i have tried using 'RSDMD_DEL_MASTER_DATA' functional module too.
but same result i got i.e. some master data can not be deleted.
please help me friends....
thanks in advance...
regrds
anandHi,
As mentioned earlier, you need to delete all the transaction data wherever this master data is being used. One option is to use to the where used list from the master data and the other and more effective way to do the same is to first right click and delete the master data, it will give u a message that all the master data cannot be deleted. After that goto t-code SLG1 and check the log for deletion, it will tell u the exact objects where this master data is being used and then you can go ahead and delete the same.
You can also use t-code SE14 to delete the data but keep it as the last option.
Regards,
Arminder singh -
Export Master Data from Production to DEV
Hi Gurus,
I need to export All the Master Data and Configuration files from Production to Development System. If anyone can Advise me to know the step by step for exporting and importing. Our PRD server is on HP-UX/Oracle and ECC6.
Eg Master Data like Customer Master, Vendor Master, Material Master...Etc.,
Please Advice.Hi,
I need to export All the Master Data and Configuration files from Production to Development System.
I think you can have a option to do simple Remote Client copy with SAP_CUST or SAP_APPL client copy profile from your PRD system to DEV system.
You can create a New Client in DEV system by performing Remote Client Copy as mentioned above from PRD system to ease the activity.
You can get all the information in below mentioned Web Links.
[Copying Clients Between Systems|http://help.sap.com/saphelp_nw04/helpdata/en/69/c24c684ba111d189750000e8322d00/content.htm]
[SAP Client Copy Profiles|http://help.sap.com/saphelp_nw04/helpdata/en/99/0a2a887e2511d2a6250000e82deaaa/content.htm]
[SAP Client Copy Data Types|http://help.sap.com/saphelp_nw04/helpdata/en/ff/9be1817d811c41985662da25061f98/content.htm]
Regards,
Bhavik G. Shroff -
Regarding the activation of Master data in production
Hi All,
When we activate master data info objects in production system , why the transport request appear . And what is the purpose of that transport request.
Regards,
AdityaAsk ur basis team to lock the system as its there in open right now...
When ever the system is open it try to capture the all the changes thru the req.. which is why u are getting this....
So contact the basis team for the same..
Thanks
Vishnu -
"master data deletion for requisition" before master data loading
Hello Gurus,
in our bw syetem , for process chains for loading master infoobjects, all include "u201C master data deletion for requisition" ABAP
process except for one process chain. my question is:
why that process chain for master data loading is different from others as for lacking "master data deletion for requisition" in it?
so it does not matter if you include " master data deletion for requisition" ABAP process in process chain for master data loading ?
Many thank.Hi,
ABAP Process means some ABAP program is being executed in this particular step.
It's possible that for all of your process chains except for that one requirement was to do some ABAP program processing.
You can check which program is executed by following below process:
Open your process chain in planning view -> Double click on that particular ABAP process -> Here you can see program name as well as program variant.
Hope this helps!
Regards,
Nilima -
Hi,
I am using Master Data Service for couple of months now. I can load, update, merge and soft delete data in MDS. Occasionally we even have to hard delete data from MDS. If we keep on soft deleting records in a MDS table eventually there will be huge number
of soft deleted records.
Is there an easy way to hard delete all the soft deleted records from all MDS tables in a specific Model.
Regards,
RehanWe did develop a Transact SQL procedure for this using the staging interface. It works and can be used freely :)
God Luck!
Jan Isacsson
USE [MDS]
GO
/****** Object: StoredProcedure [dbo].[AutoPurge] Script Date: 4/21/2015 10:39:21 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- To be used without warranty but it works even for collections
-- Jan Isacsson (www.independent.se) 2015-04-21
CREATE PROCEDURE [dbo].[AutoPurge]
@modelName nvarchar(200) = 'PDWmReferenceData',
@versionName nvarchar(200) = 'VERSION_1',
@entityName nvarchar(200) = NULL
AS
DECLARE @name nvarchar(200)
DECLARE @tableName nvarchar(200)
DECLARE @stagingName nvarchar(200)
DECLARE @collectionTable nvarchar(200)
DECLARE @collectionMemberTable nvarchar(200)
DECLARE @isFlat INT
DECLARE @sqlIsFlat NVARCHAR(512)
DECLARE @sqlGetEntityTable NVARCHAR(512)
DECLARE @sqlGetCollectionTable NVARCHAR(512)
DECLARE @sqlGetCollectionMemberTable NVARCHAR(512)
DECLARE @sqlGetStagingBaseTable NVARCHAR(512)
DECLARE @sqlLoadPurgeConsolidated NVARCHAR(512)
DECLARE @sqlLoadPurgeLeaf NVARCHAR(512)
DECLARE @sqlRinseStaging NVARCHAR(512)
DECLARE @sqlPurgeCollections NVARCHAR(512)
DECLARE @sqlCheckErrorStaging NVARCHAR(512)
DECLARE @batchTagName NVARCHAR(512)
DECLARE @executePurge NVARCHAR(512)
DECLARE @errorMsg NVARCHAR(512)
DECLARE @i INT
DECLARE @id INT
DECLARE leaf_entity_cursor CURSOR FOR
select e.ID, e.Name from
mdm.tblModel m,
mdm.tblEntity e
where
e.Model_ID = m.ID
and m.Name = @modelName
DECLARE noleaf_entity_cursor CURSOR FOR
select e.ID, e.Name from
mdm.tblModel m,
mdm.tblEntity e
where
e.Model_ID = m.ID
and m.Name = @modelName
and e.IsFlat = 0
-- Leaf purge
SET @batchTagName = '''AutoPurge'''
OPEN leaf_entity_cursor
FETCH NEXT FROM leaf_entity_cursor INTO @id, @name
WHILE @@FETCH_STATUS = 0
BEGIN TRY
if @name = @entityName or @entityName is null
BEGIN
SET @sqlGetEntityTable = N'select @tableName = EntityTable from mdm.tblEntity where ID = ' + CONVERT(nvarchar,@id)
EXEC sp_executesql
@query = @sqlGetEntityTable,
@params = N'@tableName NVARCHAR(100) OUTPUT',
@tableName = @tableName OUTPUT
SET @sqlGetStagingBaseTable = N'select @stagingName = StagingBase from mdm.tblEntity where ID = ' + CONVERT(nvarchar,@id)
EXEC sp_executesql
@query = @sqlGetStagingBaseTable,
@params = N'@stagingName NVARCHAR(100) OUTPUT',
@stagingName = @stagingName OUTPUT
SET @sqlRinseStaging = N'delete from stg.' + @stagingName + '_Leaf where BatchTag = ' + @batchTagName
EXEC sp_executesql @query = @sqlRinseStaging
SET @i = @@RowCount
SET @sqlLoadPurgeLeaf = N'insert into stg.' + @stagingName + '_Leaf (ImportType, ImportStatus_ID, BatchTag, Code) select 6, 0, ''AutoPurge'', Code from mdm.' + @tableName + ' where Status_ID = 2'
EXEC sp_executesql @query = @sqlLoadPurgeLeaf
SET @i = @@RowCount
if @i != 0
BEGIN
SET @executePurge = N'EXEC stg.udp_' + @stagingName + '_Leaf @VersionName = ''' + @versionName + ''', @LogFlag = 1, @BatchTag = ' + @batchTagName
EXEC sp_executesql @query = @executePurge
SET @i = @@RowCount
SET @sqlCheckErrorStaging = N'select ErrorCode from stg.' + @stagingName + '_Leaf where BatchTag = ' + @batchTagName + ' and ErrorCode != 0'
EXEC sp_executesql @query = @sqlCheckErrorStaging
SET @i = @@RowCount
if @i != 0
BEGIN
SET @errorMsg = 'Error in purging leaf entity: ' + CONVERT(nvarchar,@id)
RAISERROR (@errorMsg, 16, 1 )
END
END
END
FETCH NEXT FROM leaf_entity_cursor INTO @id, @name
END TRY
BEGIN CATCH
SET @errorMsg = ERROR_MESSAGE()
PRINT @errorMsg
BREAK
END CATCH
-- Consolidated purge
OPEN noleaf_entity_cursor
FETCH NEXT FROM noleaf_entity_cursor INTO @id, @name
WHILE @@FETCH_STATUS = 0
BEGIN TRY
if @name = @entityName or @entityName is null
BEGIN
SET @sqlGetEntityTable = N'select @tableName = HierarchyParentTable from mdm.tblEntity where ID = ' + CONVERT(nvarchar,@id)
EXEC sp_executesql
@query = @sqlGetEntityTable,
@params = N'@tableName NVARCHAR(100) OUTPUT',
@tableName = @tableName OUTPUT
SET @sqlGetStagingBaseTable = N'select @stagingName = StagingBase from mdm.tblEntity where ID = ' + CONVERT(nvarchar,@id)
EXEC sp_executesql
@query = @sqlGetStagingBaseTable,
@params = N'@stagingName NVARCHAR(100) OUTPUT',
@stagingName = @stagingName OUTPUT
SET @sqlRinseStaging = N'delete from stg.' + @stagingName + '_Consolidated where BatchTag = ' + @batchTagName
EXEC sp_executesql @query = @sqlRinseStaging
SET @i = @@RowCount
SET @sqlLoadPurgeLeaf = N'insert into stg.' + @stagingName + '_Consolidated (ImportType, ImportStatus_ID, BatchTag, HierarchyName, Code) select 4, 0, ''AutoPurge'', ''' +@entityName + ''', Code from mdm.' + @tableName + ' where Status_ID = 2'
EXEC sp_executesql @query = @sqlLoadPurgeLeaf
SET @i = @@RowCount
if @i != 0
BEGIN
SET @executePurge = N'EXEC stg.udp_' + @stagingName + '_Consolidated @VersionName = ''' + @versionName + ''', @LogFlag = 1, @BatchTag = ' + @batchTagName
EXEC sp_executesql @query = @executePurge
SET @i = @@RowCount
SET @sqlCheckErrorStaging = N'select ErrorCode from stg.' + @stagingName + '_Consolidated where BatchTag = ' + @batchTagName + ' and ErrorCode != 0'
EXEC sp_executesql @query = @sqlCheckErrorStaging
SET @i = @@RowCount
if @i != 0
BEGIN
SET @errorMsg = 'Error in purging consolidated entity: ' + CONVERT(nvarchar,@id)
RAISERROR (@errorMsg, 16, 1 )
END
END
SET @sqlGetCollectionTable = N'select @collectionTable = CollectionTable from mdm.tblEntity where ID = ' + CONVERT(nvarchar,@id)
EXEC sp_executesql
@query = @sqlGetCollectionTable,
@params = N'@collectionTable NVARCHAR(100) OUTPUT',
@collectionTable = @collectionTable OUTPUT
SET @sqlGetCollectionMemberTable = N'select @collectionMemberTable = CollectionMemberTable from mdm.tblEntity where ID = ' + CONVERT(nvarchar,@id)
EXEC sp_executesql
@query = @sqlGetCollectionMemberTable,
@params = N'@collectionMemberTable NVARCHAR(100) OUTPUT',
@collectionMemberTable = @collectionMemberTable OUTPUT
SET @sqlPurgeCollections = N'delete mdm.' + @collectionMemberTable + ' from mdm.' + @collectionTable + ' cn inner join mdm.' + @collectionMemberTable +
' cm on cm.Parent_CN_ID = cn.ID where cn.Status_ID = 2'
EXEC sp_executesql @query = @sqlPurgeCollections
SET @i = @@RowCount
if @i != 0
BEGIN
SET @sqlPurgeCollections = N'delete from mdm.' + @collectionTable + ' where Status_ID = 2'
EXEC sp_executesql @query = @sqlPurgeCollections
SET @i = @@RowCount
END
END
FETCH NEXT FROM noleaf_entity_cursor INTO @id, @name
END TRY
BEGIN CATCH
SET @errorMsg = ERROR_MESSAGE()
PRINT @errorMsg
BREAK
END CATCH
CLOSE noleaf_entity_cursor
DEALLOCATE noleaf_entity_cursor
GO
JAIS -
Delete SID & Text/Master Data in Production
Hi,
I need to delete the SID (/BI0/SREGION) , Text/Master (/BI0/TREGION) data directly in production. Could anyone assist me..?
Thanks in advance.Hi,
use program RSDMD_DEL_BACKGROUND (SE38)
enter the following paramters in the selection screen and schedule it in the background.
P_IOBJNM 0REGION
P_CHABNM 0REGION
P_DELSID (checked if you want to delete SIDs)
P_DELTXT (checked if you want to delete texts)
P_OBJ RSDMD
P_SUB MD_DEL
P_EXT 0REGION
P_NOPROT (unchecked)
This program will delete all values (MDIDs, SIDs, TEXTs) not used (no posted in any other BW object).
You can analyze the correponding log (in particular why a certain ID wasn't used and where used) with transaction SLG1 (RSDMD, MD_DEL. 0REGION as entered above).
The program could run a while since it will scan all the objects using 0REGION.
hope this helps...
Olivier.
Maybe you are looking for
-
When I slide to Power off, the spinning progress wheel is very dim almost not visible. Is this normal?
-
ISE 1.1.1 login not working after install on VMWare on ESX 5.0
I did an ISE 1.1.1 installation on a VMWare with ESX 5.0. After installation I am not able to login with my credentials(username admin, password XXXX) I can ping my ISE server after initial installation but I can not ping my ISE s
-
Reoccurring Quicktime permission errors in Disk Utility?
Hi all. I have this Mac tower: http://www.everymac.com/systems/apple/powermac_g5/specs/powermac_g5_1.8_dp_2.htm l Running 10.5.8 I ran Disk Utility to verify and then repair permissions recently, but when I reopen the utility again the very next day
-
I have just started using iPhone 4s and cannot find how to delete photos. Have used iPhone 3 GS for last 2 years and not had this problem. I have iCloud for my Apple family and don't know if this is causing problem. Help please.
-
InDesign/Illustrator CS3 - Kreisförmige mehrzeilige Textcontainer wie?
hallo alle zusamen, ich habe ein problem in indesign. hat jemand für die folgende problematik einen lösungsansatz? es soll eine drehscheibe erstellt werden. die scheibe muss in 8 stücke geteilt werden. in die stücke möchte ich mehrzeiligen text schre