How to delete master data of materials from sap tables
how to delete master data of materials from sap tables...its needed now.
i know its not recommended but still we need to do this. give me the best possible approach.
regards,
suneetha
Hi,
I would suggest you not to write your own code to delete the entries.
BAPI_MATERIAL_DELETE, this would mark all materials selected for deletion. But still the material would exist in SAP.
Another solution: Delete a material manually and in another session execute the transaction SM04. This would display the tables which get locked when you do the operation, Then you can write your own code to delete the material numbers from all the related tables.
Regards
Subramanian
Similar Messages
-
How to load master data and hierarchies from R/3 systems
HI all,
how to load master data and hierarchies from R/3 systems.
Please explain the steps.
Thanks,
cheta.HI,
Its normally done following: Transferring the master datasources in RSA5 to RSA6 and then replicating the DS into BW and assignment of DS to Infosource and cretaion of Infopackage and load it into the master tables.
Generally, the control parameters for data transfer from a source system are maintained in extractor
customizing. In extractor customizing, you can access the corresponding source system in the source
system tree of the SAP BW Administrator Workbench by using the context menu.
To display or change the settings for data transfer at source system level, choose Business
Information Warehouse → General Settings → Maintaining Control Parameters for Data Transfer.
Note: The values for the data transfer are not hard limitations. It depends on the DataSource if these
limits can be followed.
In the SAP BW Scheduler, you can determine the control parameters for data transfer for individual
DataSources. You can determine the size of the data packet, the number of parallel processes for
data transfer and the frequency with which the status IDocs are sent, for every possible update
method for a DataSource.
To do so, choose Scheduler → DataSource → Default Settings for Data transfer.
In this way you can, for example, update transaction data in larger data packets in the PSA. If you
want to update master data in dialog mode, smaller packets ensure faster processing.
Hope this info helps.
Thanks,Ramoji. -
How to delete master data via process chain
Hi All,
I have to delete master data before loading it again via a process chain.
In the process chain I chose the process " complete deletion of the data target content" but here I did not find infoobject as the data target option to delete the data.
Please suggest how to solve this.
Thanks,
HariniHi Harini,
P_CHABNM - It is for the reference characteristic.
I think if you dont have a ref characteristic then give the info-object name.
This is what I fetched fom help.
Reference characteristic
The reference characteristic has the technical properties of a characteristic such as data type and length, as well as the master data (attributes, texts and hierarchies). The characteristic itself also has buinesses semantics. Several characteristics can refer to the same reference characteristic. Such characteristics automatically have the same technical properties and master data.
Example:
The characteristics sender cost center and receiver cost center use the reference characteristiccost center and with it the same values and the same texts.
Bye
Dinesh -
If I want to delete Master Data that has already loaded ,Do I need to select delete with SIDs / without SIDs ?
Please let me know the reason as well...
thanksHi,
the best way is to delete with SIDs.
Anyway, you can only delete master data if you have no data into the transactional data target (ODS or CUBE) where this master data is contained.
Rgs
Antonino -
How to delete the data loaded into MySQL target table using Scripts
Hi Experts
I created a Job with a validation transformation. If the Validation was failed the data passed the validation will be loaded into Pass table and the data failed will be loaded into failed table.
My requirement was if the data was loaded into Failed database table then i have to delete the data loaded into the Passed table using Script.
But in the script i have written the code as
sql('database','delete from <tablename>');
but as it is an SQL Query execution it is rising exception for the query.
How can i delete the data loaded into MySQL Target table using scripts.
Please guide me for this error
Thanks in Advance
PrasannaKumarHi Dirk Venken
I got the Solution, the mistake i did was the query is not correct regarding MySQL.
sql('MySQL', 'truncate world.customer_salesfact_details')
error query
sql('MySQL', 'delete table world.customer_salesfact_details')
Thanks for your concern
PrasannaKumar -
How to get the list of materials from Sap r/3
Hi Experts,
I have one doubt, here iam implementing
HTTP TO RFC scenario.
My doubts are------
1. Should we create DT MT MI and all (OR) not
2.In Request DT how the message structure wil be to get the list of materials from sap r/3 system as Response(Ex: Fields in the source structure).
3.Or the second thing is how to get the list of materials start with some alphabate.
Please reply me for each and every questions mentioned above. Please clarify me.
Helpful answers wil be rewarded.
Reagards
khannaHi Khanna,
<i> 1. Should we create DT MT MI and all (OR) not</i>
Yes U need to create for HTTP site...for RFC U need to import..
<i>2.In Request DT how the message structure wil be to get the list of materials from sap r/3 system as Response(Ex: Fields in the source structure).</i>
You create your own structres for Request and respoce.. and Map it with RFC..
<i>3.Or the second thing is how to get the list of materials start with some alphabate.</i>
I think it will come with acending order....
for more help go through this link
/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit - File to RFC
regards,
Ansar. -
How to delete master data from InfoObject
Hello,
Can anyone give me an advice for the following problem :
160 employees have been deleted from R/3 but still exist in BW.
I am searching a way to delete them in BW but I have the following problem :
- selective deletion in InfoCubes and ODS is OK
- when I try to delete them in 0EMPLOYEE , I received the message
"master data xxxxxxxx (SID xxxxxxxx) is used in BI0/QPERSON and therefore can't be deleted.
The reason is that 0PERSON is an attribute of 0EMPLOYEE and vice versa.
No records in R/3 exist for those employee.
Any idea how can I delete them in BW in 0EMPLOYEE and 0PERSON ?
Thanks for your help,
IEHi Ingrid,
1. delete the data from all infocubes and ODS's, where the infoobject is available.
then the masterdata isn't in use. all SID's should be deleted from the dimension tables.
Now you can delete the masterdata with the AdminWorkbench.
2. delete the employees from 0EMPLOYEE.
3. delete the employees from 0PERSON.
you can also try the function: archive.
Sven -
How to delete Master Data transferred from ECC to APO via CIF
Hi, all
I'm connecting SCM 5.1 with ECC 6.0 via CIF.
When activating Integration Model in ECC, the following error occurred;
"Location 0001 of type 1001 (BSG 592BUSGP) already exists in APO"
This is because Location 0001 was already transferred from different ECC client via CIF, and not cleared.
I'm now trying to initialise master data transferred from ECC to APO via CIF, but in vain.
I suppose I have to first delete all master data CIFed from ECC in APO, or have to execute initialisation of APO master data with ECC data in ECC.
Please tell me how to do this.
For details, please read the followings;
I connected APO client with ECC client 590.
I transferred Plant and Material Master from ECC to APO via CIF.
After that, I wanted to change ECC client from 590 to the other.
I created the other client (592) by client-copying from 590 with SAP_ALL copy profile.
I deactivated Integration Model in ECC 590, and activated the same in ECC 592.
Here, I faced the problem.
The initial data transfer failed due to the duplicate of data.
Now I'm wondering how I can initialise master data in APO and transfer initial data from ECC.
Due to testing purposes, I have to change ECC clients from one to the other this time, but I cannot initialise master data in APO and cannot tansfer initial data from different ECC client.
thanks in advance,
HozyHi all,
Thank you very much indeed for lots of your replies.
Thanks to all of your advices, I'm getting to understand what to do.
Well, I'll say I have to create one more client for testing with other ECC clients or I have to rebuild the client by client-copying from 001 and implementing all transportation requests, for marking del flags to each master data and running del programme sound like tough work, and sound like odd ..
Then, I've got next issue here.
In SCM-APO, I use BI objects, and , if I have to create several clients for testing, I have to set up clients where you can use both BI objects and CIFed master data.
I suppose I have to change 'BWMANDT' in RSADMINA and make RSA1 accessable in other SCM clients and implement tests.
Also, I have to register BI System for newly created SCM clients in RSA1-SourceSystem.
Well, if you have any experiences on this kind of use, and if you have any advice on it, please give me any tips.
Particulary, I'd appreciate very much if you give me advice on which way you have chosen; creating several clients or rebuilding the one client in SCM-APO when you use both BI objects, CIFed master data and Demand Planning.
Thanks in advance.
Hozy -
How to delete master data in bi 7? through process chain
Hi all,
I can see millons of records for master data is getting loaded daily. Can anyone pls advise me how to delete the master data through the process chain?
Thanks
poojaHi,
If Cube/DSO then we can choose the option Delete the Contente of the DataTarget in Process Type in PC. But for Mater data you can see any FM is available and keep that FM in Program and Insert that Program in PC's
RSDMDD_DELETE_MASTER_DATA
RSDPW_MASTERDATA_DELETE
See the above TWO FMs in SE37 and if it is working then keep in in one simple program and then call that Propgram in Process Chain
Thanks
Reddy
Edited by: Surendra Reddy on Jun 30, 2010 7:19 AM -
How to load master data hierarchy load from BI to BPC 7.5 NW
Hi,
I am testing master data hierarchy data upload from BI to BPC. However when i run master data hierarchy mport package, it's always displaying a warning message saying that no records are returned from "Z_PFT_CTR" which is my info object name.
My transformation is as below.
0BUS_AREA=BUS_AREA
0COMP_CODE=COMP_CODE
0CO_AREA=CO_AREA
0LOGSYS=LOGSYS
0OBJ_CURR=OBJ_CURR
0PROFIT_CTR=PROFIT_CTR
0RESP_PERS=RESP_PERS
0RESP_USER=RESP_USER
Conversion is as below
ID=ID_CONVERT.xls
PARENTH1=HARI.xls
Hierarchy i have mapped in conversion file from Source Inforobject 1000PCDUMMY-1 to BPC PARENTH1 Destination.
Any suggestions plz?Hi,
Just follow the docs in "How Tou2026 Automate BPC 7.0, version for the NetWeaver Platform Master Data Loads from BW to BPC"
where you will get detail step-by-step procedure to load data.
Check the url:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00380440-010b-2c10-70a1-e0b431255827
Before that you have to transport into BPC system the load to work fine.
Thanks
Debasisha -
How to delete Master data using Process Chain
I need to delete data in respective data targets such as Infocubes, DSOs & Master data Infoobjects. It was fine with Infocubes & DSOs using respective process type. But the issue is with Master data Infoobjects.
Is there any process type by using which I can delete data in Master data Infoobjects using process chain?Murali,
Master data object process type is not there because in BW, master data is conformed or is shared by other infoproviders. Due to this dependency, master data loading is a bit more complex. You need to drop all the data from all the infproviders which are using the master data you want to delete.
-Saket -
How to extract meta data of documents from SAP R/3
dear all,
i`am working in aproject where we connect the documents for SAP R/3 applications.we maintain our own repository for that purpose.it may be in bound or out bound according to customer needs.the meata data related to the documents is stored in SAP.our requirement now is to have that metadata available in our repository .can any one guide me how to write ABAP code for extracting meata data from SAP and enable even nonSAP users to have the access for the documents.
thanks in advance
raviHi,
One way to do this is probably set a connection between SAP Database and an external database and store the meta data into external database from where a non-sap user will have an eccess to the data.
Steps required are :
1. we have to involve basis team also in that.
2. they will make one entry
in DBCON table
(that entry will point to secondary database/external database)
(suppose the name of this secondary connection is HRCON)
3. Also they will make connection string
in application server.
4. After that,
we should have
the table definition in SAP dd dictionary
and also
the same defintion
in the external database.
5. now in abap code,
we have to use like this.
DATA: mydbcon(30) TYPE c.
mydbcon = 'HRCON'.
INSERT ydev_msg_cur CONNECTION (mydbcon)
FROM msg_cur .
<b>Hope this helps.
Please mark helpful answer.</b>
Regards,
Amit Mishra -
How to delete all the crystal reports from SAP B1 ?
Dear Experts,
I have one problem and I need to Delete all the Crystal PLD's and Crystal Reports from SAP B1.
I can delete a PLD or Report using delete option from Report and layout manager or layout designer.
But I need to select delete option for each PLD and It makes very time.I have some 200 Reports and I need to delete fully.
Is there any possible to multi delete option in SAP B1?
I have searched many but i will not receive proper solution. Any one can explain how to do This?
Thanks ,
Karthikeyan.P
MSBI Developer-ChennaiDear Karthikeyan,
Manual deletion is actually the most safe way to delete them. If you try update B1 tables directly, you are against SAP support rule.
Thanks,
Gordon -
Downloaded data in Excel from SAP table data to have the macro and control?
We know that in SE16 screen to display SAP table data, there is a menu item or button to download the table data to excel sheet, but in the excel sheet, the data is for display only and some calculation functions (e.g. sum) are not be able to be downloaded to the excel sheet as macro.
Our customers would like us to see if there is a way that in the excel sheet with the download SAP table data, only some certain rows/columns of data are allowed to be changed by customers or in other words, other areas in the excel sheet should be frozen and users can not even insert a column and do the copy/paste rows/columns. And also the original calculated column in SAP table (e.g., sum) would be in the corresponding column in the excel sheet, but with macro to do the same function (e.g., sum). After the customers perform some changes in some allowed certain rows/columns in the excel file, then the changed data can be uploaded back to SAP.
Wonder if there are such ABAP program to fullfill the above task to download SAP table data to an excel file and to make the downloaded data in the excel with only some certain row/columns to be changeable and all other areas frozen?
Thanks and we will give you reward points for valuable answers!Hi,
This scenario can be met with the FM : RH_START_EXCEL_WITH_DATA
This is available in Older versions. Starts Excel with a macro.
I have never tried using this FM.
However, I came across : http://www.jt77.com/development1/programming-23850.html
Showing the use of it.
To get useful hints, also refer :
1) Transaction : DWDM
2) MS EXCEL as OLE Client :
http://help.sap.com/saphelp_nw04/helpdata/en/40/b297f3c32711d194ac00a0c94260a5/frameset.htm
3) Read the content at any table + Defined Macros used to call Function Modules
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c043d836-166c-2910-b99e-ae3633dec547
Once you get a solution, would appreciate a mail to me @ <REMOVED BY MODERATOR>
Cheers,
Remi
Edited by: Alvaro Tejada Galindo on Feb 29, 2008 5:41 PM -
How to delete duplicate data that generated from csv file??
The thing i have done is that i red all the data in the csv file without removing the duplicate data and display it.. For where i should have a known number of index (about 13), my main file should have 13 records no duplicate values. and how can my Java program update the corresponding record in the main file each time an index is updated??
Hope somebody can assist me on this..it would be really helpful for me...
Thank you.
-Rao-
Edited by: reemarao on Apr 1, 2010 3:58 AMHi Sudhir,
In case you have edit access in your system carry out the following procedure:
1. Create an export datasource on your cube.
2. Now create the update rules to your cube using the datamart Infosource.
3. In the update rules multiply all the key figures by
-1.
4. Now create an infopackage and give the request id of the duplicate request as selection.
5. Load the datamart request and do the data validation.
If you do not ahve edit access there is no other alternative you would have to delete all the data and reconstruct the requests that you need.
Bye
Dinesh
Maybe you are looking for
-
ORA-29275: partial multibyte character with 11.1.0.7
Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production SQL> create table test_char(c1 varchar2(100)); Table created. SQL> insert into test_char values (chr(200)); 1 row created. SQL> select from test_char;* ERROR:
-
Trace back item category in service order
Hi all a few days ago I came across an issue which I presume is PP related. the issue is , while doing 'dp90'(intially gets created with 'iw31') , I got an error message saying combination of zdr leis sein and l2w does not define an item category. I
-
Problem with MIN MDX Function on ASO
Hello I have an aggregate measure in a cube ASO, aggregating to a minimum, I tried to use the MIN function but have not worked out as expected in the first Essbase is the sum of the data and then calculates the minimum. This is the function used: IIF
-
Does iTunes 1101.3 work with OS 10.6.8
Do I need to upgrade to OS 7 to use the new iTunes 11.1.3? It did not run properly on my older iMac the iMac5.2 I uninstalled it and replaced it with iTunes 11.0.3 I have multiple Macs but use iTunes only on two of the iMacs iMac8.1 with Intel Core
-
Maximum number of index per entity in BDB JE
Can any one tell me the maximum number of index per entity in BDB JE implementation?