Master data deleted dispite it is used in other Cubes
Hello everybody,
I deleted master data by the classic way: right-click on the characteristic --> delete master data --> with sid.
(not with other ways!!!)
Thinking that the system will not delete the master data that is used in Cubes.
I reloaded new master data.
After a complaint from a power user that he cannot make a drill down with this characteristic in one report, i begin to investigate.
Firstly, i tested all the reports where this characteristic is used and all the reports did the same error.
After i went is to display data of one of the infocube where this characteristic is used and when i select this characteristic for the output, nothing returns as result.
After that i checked the values of the characteristic sid's in the cubes and i see that the range of the char sid's in the cube do not correspond to the range of the sid's in the sid table of the characteristic.
In fact, none of the characteristic sid of the cube where present in the sid table of the characteristic.
Why? probably because when i deleted the master data, the system deleted all the records, but why also those that are present in the cube?
When i go to SLG1 and select the correct Object, as message for this deletion: "All entered data was deleted"
Any suggestion, advise is welcome.
Thanks
Regards,
Hi,
The way you have used, I would expect that it will not delete the used master data in other cube. If possible reload your master data but I think this will not resolve your issue as new SID values will get created. Just give a try.
Regards,
Durgesh.
Similar Messages
-
Cannot delete master data because it is in use by a query
Hi, all.
I am trying to delete some master data and it is in use by a query according to SLG1. Is there a good way to delete the master data content without deleting the query?
Thanks,
Jonathan.Hi, Pavan.
The master data is not used anywhere else since I have already cleared all the cubes and DSO. The only thing the SLG1 is complaining is the query.
Actually, the reason I am doing this is because the data on the system is kind of old. After we refresh the source system with production data, we are trying to repopulate all the cubes again. I am wondering if we actually need to delete all the master data. Doesn't re-initializing the master data will do the job? If that is the case, is there any reason to delete the master data?
Thanks,
Jonathan. -
Master Data Deletion - Data used in query
Hi all,
I work with BI 7. I noticed a strange thing. I wanted to delete data from a master data object, but the operation is not allowed. If I see the logs for "where used list", I see a query. I deleted data from DSO objects and infocubes, and I thought it was enough.
Any idea?
Thanks a lot.Hello Gianluca,
To be able to delete master data, no transaction data must exist for this master data, the master data must no longer be used as attribute value, hierarchies to this master data must not exist, and it must not be used in a query.
If you look at a record in the SID table, you can check the usage flag DATAFL. If the value is X, it is used or has been used by another BW oject.
But to answer your question, do delete the master data, it must no longer be used in a query.
Best Regards,
Vincent -
Master Data Deletion using ABAP
Does anybody have an idea of which function is called when master data is deleted?
I would like to automate master data deletion
Any suggestion is welcome!
Thanks
IoanHi Ioan !
Try to look at the FM 'RSDMD_DEL_MASTER_DATA'(in the pgm LRSDMDU12)...but pay attention to the other elements that the system certainly checks in order to complete this type of process !
Bye,
Roberto -
Master Data Deletion in SAP BW
Hi,
We are having HR Master Data in BW - 0EMPLOYEE. User has deleted some of the personel numbers in the source system (SAP HR system) as the contract of the employee was ended.
My problem here is that the Personnel numbers are still existing in SAP BW - 0EMPLOYEE master data. Eventhough when i am trying to delete these un wanted personel numbers in maintain masterdata screen, that are not allowing me to delete as they have used some other placess in Transaction data.
Can you please suggest me, how to delete this specific Master Data in SAP-BW?
Best regards,
Venkata Challapalli.Hi,
Why do you want to delete ?
No need to delete any Master Data
If you want to really delete ,you can do one thing
Right click on Master data Info Object 0EMPLOYEE
select Delete master data
And reload Master data for employee with full load
if delta Initilize delta with data transfer
Regards
Hari -
Issue with master data deletion
Hi,
In one of our report, there is a filter option on country.The help values on this filters shows some country codes along with country Text values.These codes were once used before the codes with text were maintained.We dont want these codes to appear in the selection options.
Filter looks like this :
AE
AZ
Austria
Australia
B
Belgium
Now, once the texts were maintained, we deleted the data from cube and reloaded it however, the filter option still shows those codes.
I checked in the cube entries and these codes are no where used.
These codes are however, still lying in the dimension table.
how can we get rid of these country codes in the selection option.
Query already have option of having only posted values in Infoprovider as selection input.
I hav tried RSRV elementary test "Entries not used in dimension table" n this didnt work.
Any clue ?
Regards,
TapishDbl click 0COUNTRY infoobject, under 'Business Explorer' tab, select Only Values in InfoProvider' for 'Query Def Filter Value selection' & 'Query Execution Filter Value selection'. See whether this works.
ELSE
Delecion of the master data
Deleting Master data -
Hello Experts,
I know this is not a new topic to be posted in forum as we can find lots of threads on the same. But i tried different ways and could not succeed and so there is no other way except to post what i did and get suggestions from you all. Any help will be greatly appreciated and rewarded.
Now coming to the scenario where i am in: There are two invalid master data values in SID table (no attributes for this, => SID and value). I tried deleting the two values
1. using functional module RSDDCVER_USAGE_MDATA_BY_SID. But this resulted in short dumps with messsage INVALID TAB NAME
2. using program RSDMD_DEL_MASTER_DATA: Though i could delete values in development in few seconds, this program took more than 3hrs and did not complete. When i checked the process in SM66, it was deleting unused dimension Ids in other dimension of infocube in which this object is being used.
3. i could not try "maintain master data" of infoobject from RSA1 since i dont have authorization to do it.
i think the only way is to delete using a custom program. Any thoughts, any experiences please share and do let me know in case of any details.
thanks,
MadhavHi Madhav,
I don't have a specific answer for you, but I had a similar problem with master data deletion. It was with 0Vendor and I just wanted to delete all the unused entries, but running the RSDMD_DEL_MASTER_DATA program would always give a short dump. Same think if I tried to delete using the Delete Master Data button on InfoObject.
Applying the latest SPs worked for me. We are on BW 3.5 (NW2004), SP 18.
Good Luck.
Dave -
Issue with import master data from BW info object using DM
Hi All,
We have master data loads on weekly basis.
One of them, product master data is loaded from 0material using DM package.
While loading the attributes we exclude couple of Products based on the attributes (say Product sub family)
ex - Having conversion file which excludes product sub family - ML. so all the products under that sub family are excluded from the load.
Hierarchy load - How can we skip the products which are excluded during attribute run?
For the first hierarchy load, we copied all the product ID which are part of product sub family - ML and entered in conversion file "NODENAME" and "PARENT" to skip.
But during the subsequent runs, whenever we have a new product under Family ML the hierarchy job fails. Attached the error. we then manually enter that product to be excluded in the hierarchy load and the job runs fine.
Is there a way to automate this process.
Version - BPC 10 SP 17 .NET 3.5
Appreciate any thoughts on this.
Thanks in advance/
RaghuThanks for your response.
We are currently using the first option you have mentioned. But the problem is when we have new product coming in BW (which is part of attribute we skip while loading attributes from BW to BPC) we manually need to add that product to skip in hierarchy conversion file also.
As i can see, the selection option to skip is available only while loading the attributes but not for hierarchy load.
Please correct me if am wrong.
Regards,
Raghu -
"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 -
Delta enabled master data - Deletion of data sets
Hello,
is it possible to automatically delete a certain data set of a master data bearing InfoObject which is delta enabled ? Does a delta load for master data InfoObjects allow to fully delete a certain data set?
Example:
Delta Master InfoObject: Z_Test
Attributes: Z_Name, Z_Region, ....
Data sets:
(1) 12345, Name1, Region1, ....
(2) 23456, Name2, Region2, .... (this data set should be completely deleted)
(3) 34567, Name3, Region3, ...
Expected result:
(1) 12345
(2) 34567
I just want to know whether the deletion can be performed through a delta data load or not?
Thanks in Advance.
MarcoHi Marco,
Welcome to SDN!!
You can goto RSA1 -> Info-object -> maintain master data and delete the unwanted records and loads the ones you need. If the no. of records are more then you may need to write an ABAP program. But before all this deletion make sure the master data is not used in any other Data target.
Bye
Dinesh -
Master data deletion - text with compounding
HI All,
I have " 0PYMT_METH" Info object which is having "0PYMT_METH_TEXT" Data source. " 0PYMT_METH" Info object is having text and 0country with compounding attribute.
- First , I did not load this master data , I loaded transactional data. so some values for key are loaded without text and country in master data.
- Later i came to know we need text for paymnt method, then i loaded again master data. but i am not able to delete previous entries which have blank text.
-i deleted data with SIDS and deleted all the transactional data , still i am getting that entries with blanks.Because of this in report output i am getting # value for the text.
How to solve this? Is it because of compounding attribute ? If so can u please suggest regarding this ASAP?
Thanks in advance,
JoHi,
Please check the data load for the text as you must be loading
MAster Data CHAR , Country , LANGUAGE and TEXT as fields in your data source.
As the Text can be over written so if the porper key fields are matched the text should be modifyed everytime.
SO please check what combination you r loading .
ANyway if that is one time , and very less data you can manually maintain th text for master data .
In order to delete teh data you use SE14 use the text table there to delete the data. PS : This is not recommended solution . -
Master Data deletion and data load
Hi,
In a process chain, Master data of my InfoObject are deleted then reloaded.
My InfoObject is used in cubes and ODS that are loaded later in full or delta.
My question is: what happens if thoses cubes and ODS are loaded when Master data of my InfoObject are blank (=Process chain failure / Master Data of my InfoObject are deleted but not loaded) ?
Thanks for your answers.hi eric
you cant delete the master data , till the time it exits in any of the data target ( cube or ODS).
Now lets say you have new record for master data coming in say , example new material being introduced.
The cube or ODS will take that new mateiral from the transactional data , and to maintain the corresponding the master data when ever it is loaded successfully it will reflect in your reports provided you have maintain/hierarchy attribute change job scheduled.
Thanks & Regards,
Monika -
BPC Master Data Deletion through ABAP code
Hi All,
I have a requirement of deleting the orphan nodes for one of the dimension in BPC using ABAP code.
Please let me know any standard program or classes for deleting the master data from dimension.
Regards
Pratibha BiradarHi Pratibha,
Here is the code to add master data, you can change the flag to 'D' to delete, i have not checked it for delete, it is working for adding.
DATA: ls_message TYPE uj0_s_message,
lt_messages TYPE uj0_t_message,
l_success TYPE uj_flg,
l_appset_id TYPE uj_appset_id,
l_dimension_id TYPE uj_dim_name,
lo_member_mgr TYPE REF TO if_uja_member_manager,
lo_dimension TYPE REF TO if_uja_dimension_manager,
lo_master_data_store TYPE REF TO if_ujam_master_data_store,
lo_context TYPE REF TO if_uj_context,
ls_dimension TYPE uja_s_dimension,
lt_errors TYPE uja_t_members_error,
lr_members TYPE REF TO data,
lr_data TYPE REF TO data.
FIELD-SYMBOLS:
<lt_member_data> TYPE STANDARD TABLE,
<ls_member_data> TYPE any,
<lv_field> TYPE any.
TRY.
lo_context = cl_uj_context=>get_cur_context( ).
cl_uj_context=>set_cur_context(
i_appset_id = l_appset_id
i_module_name = lo_context->d_calling_module
is_user = lo_context->ds_user
lo_dimension = cl_uja_bpc_admin_factory=>get_dimension_manager(
i_appset_id = l_appset_id
i_dimension_id = l_dimension_id
lo_dimension->get(
EXPORTING
if_with_hier_maxlevel = abap_false
IMPORTING
es_dimension = ls_dimension
CREATE OBJECT lo_master_data_store TYPE cl_ujam_master_data_store.
* creating masterdata table
lr_members = lo_master_data_store->get_table_buffer( ls_dimension ).
ASSIGN lr_members->* TO <lt_member_data>.
* Add members to <LT_MEMBER_DATA>, these are the member that will be saved.
CREATE DATA lr_data LIKE LINE OF <lt_member_data>.
ASSIGN lr_data->* TO <ls_member_data>.
* Fill each field, such as ID, and EVDESCRIPTION, update other fields here as well as
* any properties that need to be updated.
ASSIGN COMPONENT 'ID' OF STRUCTURE <ls_member_data> TO <lv_field>.
IF sy-subrc = 0.
<lv_field> = 'ProductD'.
ENDIF.
ASSIGN COMPONENT 'MBR_NAME' OF STRUCTURE <ls_member_data> TO <lv_field>.
IF sy-subrc = 0.
<lv_field> = 'ProductD'.
ENDIF.
ASSIGN COMPONENT 'EVDESCRIPTION' OF STRUCTURE <ls_member_data> TO <lv_field>.
IF sy-subrc = 0.
<lv_field> = 'Product D Update'.
ENDIF.
ASSIGN COMPONENT 'PARENTH1' OF STRUCTURE <ls_member_data> TO <lv_field>.
IF sy-subrc = 0.
<lv_field> = 'TotalProduct'.
ENDIF.
ASSIGN COMPONENT 'OBJVERS' OF STRUCTURE <ls_member_data> TO <lv_field>.
IF sy-subrc = 0.
<lv_field> = 'A'. "Version flag, should be "A" for Active
ENDIF.
ASSIGN COMPONENT 'ROWFLAG' OF STRUCTURE <ls_member_data> TO <lv_field>.
IF sy-subrc = 0.
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""Here you can change it to 'D' for Deleting """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
<lv_field> = 'I'. " This is an action flag, I=Insert, M=Modify """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
ENDIF.
APPEND <ls_member_data> TO <lt_member_data>. " Add to the table.
* Create member manager
lo_member_mgr = cl_uja_bpc_admin_factory=>get_member_manager(
i_appset_id = l_appset_id
i_dimension_id = l_dimension_id ).
* Save the members UNCOMMENT ONLY when you want to write the data!!!!!
* lo_member_mgr->save(
* EXPORTING
* ir_members = lr_members " List of members to save
* IMPORTING
* et_errors = lt_errors
* NOW PROCESS THE DIMENSION
DATA: ls_dimensions TYPE uja_s_dim_name,
lt_dimensions TYPE uja_t_dim_name.
CLEAR ls_dimensions. REFRESH lt_dimensions.
ls_dimensions-dimension = l_dimension_id. " Add dimensions to the list
APPEND ls_dimensions TO lt_dimensions.
lo_member_mgr->process(
EXPORTING
it_dim_list = lt_dimensions
if_set_offline = abap_false
if_validate = abap_true
IMPORTING
ef_success = l_success
et_message_lines = lt_messages ).
CATCH cx_uj_no_auth .
ENDTRY.
hope this will help,
thanks,
Rishi -
MAster data deletion throws a dump
hi,
I am trying to delete the records for a Master info object but when i click on the thrash button , the records are not seen but when i try to move on -it asks me to save and then i tried with Sid and with out but whatever i do , it throws out the following dump .
I am eagerly looking forward for a solution to this.
Thanks a lot in advance,
DUMP ERROR When trying to DELETE MASTER DATA
Runtime Errors UNCAUGHT_EXCEPTION
Exceptn CX_RSRV_METADATA_ERROR
ShrtText
An exception that could not be caught occurred.
What happened?
The exception 'CX_RSRV_METADATA_ERROR' was raised but was not caught at any
stage in the
call hierarchy.
Since exceptions represent error situations, and since the system could
not react adequately to this error, the current program, 'SAPLRSDDCVER4', had
to
be terminated.
Error analysis
An exception occurred. This exception is dealt with in more detail below
. The exception, which is assigned to the class 'CX_RSRV_METADATA_ERROR', was
neither
caught nor passed along using a RAISING clause, in the procedure
"GET_ODS_METADATA" "(FORM)"
Since the caller of the procedure could not have expected this exception
to occur, the running program was terminated.
The reason for the exception is:
An exception occurred
Missing RAISING Clause in Interface
Program SAPLRSDDCVER4
Include LRSDDCVER4F04
Row 473
Module type (FORM)
Module Name GET_ODS_METADATA
Trigger Location of Exception
Program SAPLRSDDCVER4
Include LRSDDCVER4F04
Row 498
Module type (FORM)
Module Name GET_ODS_METADATA
Source Code Extract
Line SourceCde
468 ----
469 * -->I_ODSOBJECT ODS object
470 * <--C_ODS_SID SID of Infoprov ODS object
471 * <--c_atab_name name of active data table
472 ----
473 FORM get_ods_metadata
474 USING i_odsobject TYPE rsdodsobject
475 CHANGING c_bexfl TYPE rs_bool
476 c_ods_sid TYPE rsd_sid
477 c_atab_name TYPE tabname
478 RAISING cx_rsrv_sid_creation_error.
479
480 DATA:
481 l_s_odso TYPE rsd_s_odso.
482 * l_ods_sid TYPE rsd_sid,
483 * l_atabname TYPE tabname,
484 * l_o_odso TYPE REF TO cl_rsd_odso.
485
486 CALL METHOD cl_rsd_odso=>get_info_static
487 EXPORTING
488 i_odsobject = i_odsobject
489 i_objvers = 'A'
490 IMPORTING
491 e_s_odso = l_s_odso
492 EXCEPTIONS
493 odso_not_found = 1
494 iobj_not_found = 2
495 internal_error = 3
496 OTHERS = 4.
497 IF sy-subrc <> 0.
>>>> RAISE EXCEPTION TYPE cx_rsrv_metadata_error
499 EXPORTING
500 msgty = sy-msgty
501 msgid = sy-msgid
502 msgno = sy-msgno
503 msgv1 = sy-msgv1
504 msgv2 = sy-msgv2
505 msgv3 = sy-msgv3
506 msgv4 = sy-msgv4.
507 * RAISE metadata_error.
508 ENDIF.
509
510 c_bexfl = l_s_odso-bexfl.
511
512 IF c_bexfl = rs_c_true.
513
514 *for ODS objects no SID is evaluated
515 *get sid of ODS object
516 CALL FUNCTION 'RRSI_VAL_SID_SINGLE_CONVERT'
517 EXPORTING
Thanks,
SSHi,
Make Sure that the Master data ur deleting must not be used by any transaction data
there is function module can be used RSDMD_DEL_MASTER_DATA, we have create a program for this,
check thread
Master data Where-used
search 'delete master data' and 'sdn forum', you may see some discussion about this topic
Cleanup of Master Data
How to see where all the master data is being used
Deleting Master Data at Single Record Level
http://help.sap.com/saphelp_nw04/helpdata/en/3b/f817385bf3be74e10000009b38f842/content.htm
Deleting Master Data and Texts for a Characteristic
http://help.sap.com/saphelp_nw04/helpdata/en/80/1a6365e07211d2acb80000e829fbfe/content.htm
-Shreya
-Shreya -
Master Data Deletion / Function Module RSDMD_DEL_MASTER_DATA
I need to develop an automated way of deleting some data from 0employee master data InfoObject. The data we need to delete from the InfoObject is held in a separate ODS.
I believe the only automated way is to create an ABAP program which uses the function module RSDMD_DEL_MASTER_DATA.
Can anyone please advise what FM RSDMD_DEL_MASTER_DATA is designed to do.
I'm also not an ABAP'er so I'm unsure how to code what I need. Can anyone help me with this?
Many thanks,
Mark.Hi,
if you need to delete master data selectively, then use the mentionned function module: RSDMD_DEL_MASTER_DATA
check this thread:
Re: delete master data
from which you'll get the code:
TYPES: ly_CHAVL type RSCHAVL.
DATA: gt_CHAVL_DEL type table of ly_CHAVL.
DATA: lv_chavl LIKE RSGENERAL-CHAVL.
SELECT DISTINCT <IOBJ_ID>
INTO TABLE gt_chavl_del
FROM /BIC/Z<ODSNAME>
WHERE .....
"the above will fill your inttable.
CALL FUNCTION 'RSDMD_DEL_MASTER_DATA'
EXPORTING
I_IOBJNM = 'IOBJ'
* I_FLG_DELETE_ALL = ' '
I_FLG_DELETE_SIDS = 'X'
* I_FLG_DELETE_SIDS_ASK = ' '
I_FLG_DELETE_TEXTS = 'X'
I_T_CHAVL = gt_CHAVL_DEL
I_FLG_DIALOG = ' '.
* I_FLG_FORCE_DELETE = ' '
* I_FLG_SIMULATION = ' '
* I_WITHOUT_PROTOCOL = ' '
* IMPORTING
* E_RESULT =
* E_T_SIDVAL_USED =
* E_T_PROTOCOL =
* E_T_ULIST_DIM =
* E_T_ULIST_ATR_NAV =
* E_T_ULIST_HIE =
* E_T_ULIST_HIE_NODE =
* E_T_ULIST_QUERY =
* E_PROT_OBJECT =
* E_PROT_SUBOBJECT =
* E_PROT_EXTNUM =
* EXCEPTIONS
* ILLEGAL_INPUT = 1
* IOBJ_ERROR = 2
* SID_ERROR = 3
* PROGRAM_ERROR = 4
* ENQUEUED = 5
* QUEUE_ERROR = 6
* NO_CHKTAB = 7
* CHKTAB_NOT_GENERATED = 8
* NO_AUTHORITY = 9
* RSDPW_ERROR = 10
* OTHERS = 11
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
let me know should you need further assistance...
hope this helps...
Olivier.
Message was edited by:
Olivier Cora
Maybe you are looking for
-
Error using presentation variable in SQL Expression
Hi all, I'm receiving an error - '...Error getting drill information...' due to a presentation variable being used in a SQL Expression. It probably has something to do with a data type issue. I've narrowed the error to the use of the presentation var
-
Xsan 3 not authenticating StorNext FX 2.2 client
I have Xsan MDC running on OSX Server 10.8.2 .... have four Mac Pro clients that are all running OK ... tried to add a Win 7 PC this weekend using StorNext FX2.2 client software .... all seemed to be going well ... the PC can see the LUNS and the Sto
-
Enhancement on read text fields of VL01N
Hi Friends, I need to check the value entered in a text field of header in VL01N and check it with the net weight field..and based on some conditions need to throw an error. How to get the value entered in the text field? As in VL02N it would be eas
-
Content aware move tool and recompose do not work.
Content aware move tool and recompose do not work. Nothing happens...What can I possible do wrong?
-
Depreciation posting for two different Cost Centers
Hello everybody, My client has an asset that was assigned to Cost Center #1 from the 1st of january to the 20th. Then it was reassigned to Cost Center #2. (Cost Center is configured to be a time dependent field). We were expecting the system to split