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

Similar Messages

  • Master Data Deletion

    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,
    Madhav

    Hi 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

  • 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
    Ioan

    Hi 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

  • IIs it possible to retrive deleted Function Module

    Hi all,
    i just want to know is it possible to retrive deleted Function Module .
      the request is not released yet.

    Hi Sai,
    Its not possible. (Confirm by contacting ur Basis people, if they can help).
    But the following is valid only if your function module is(or was) a transportable object.
    Go to SE37, enter your function module name and create. Assign it to the same function group and have the same interface and description. Save it, activate it.
    Now go back to SE37, enter the function module name, in the menu, 'Utilities>Versions>Version Management'. Now you should see all your previous versions. Select the most recent past version. Do a retrieve and then activate it as the latest version.
    Not sure if it works. But still give it a try.
    Best Regards,
    Anjali
    Message was edited by: Anjali Devi

  • URGENT : Error: Please create data processing function module

    Hi
    I am getting the folloiwng error
    "Please create data processing function module" in table maintainence.
    It is working fine in dev environment but not in QA and production.
    Pleae help.
    Regards
    Kalpesh

    Hi Kalpesh,
       I see it is something to do with the naming convention used in the quality and production system. These must have been setup differently compared to ur development system. So check with different naming conventions.
    Reward points if helpful.
    Cheers
    Shafiq

  • Deleted function module--urgent

    Hi all,
    By mistake i deleted a z* function module. From version management when i cannot get the function module back. when i press the retrieve button i got an error message saying " deleted function module cannot be recovered".
    So please help me in recovering the function module.
    Thanks in advance
    Regards
    Sree

    Hi Srinivas,
    I am checking old programs that are going to be copied to new upgrade version... one of them calls a FM that no longer exist, I guess that it was deleted...
    I am looking for a way to find a deleted FM (if it was deleted), I just have the FM name, but I don't have the function group.
    I guess that without it, it isn't possible to retrieve any old version, if there is one, is it?
    Maybe looking in a table? looking for any change request (by the way, my user do not have authorization for SE03).
    Regards.
    José Gabriel.

  • Error : J_2IRG1BAL, Create data processing Function module

    Sap Experts,
    when i go to se11 in which have given table name: J_2IRG1BAL, than i gone menu bar click on utilities select the table contents
    click on create entries button.
    1) Error Message : Create data processing function module
    2) This table Relevant to RG1 Updation
    3) Due to this error I am not able to upload the opening stock of finished material manuaaly
    4) What are the actions need to be done to rectify the above error.
    Regards,
    Prabhakar

    Hi
    Ask your ABAPER to create the maintainence view of the table
    regards
    Sanil Bhandari

  • Sql queries for retrieving setups data for functional modules

    Hi,
    Can anyone give me the sql queries for retrieving setups data for functional modules (GL, AP, AR, FA, and CM) from Database.

    Hi,
    Can anyone give me the sql queries for retrieving setups data for functional modules (GL, AP, AR, FA, and CM) from Database.

  • 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,
    Tapish

    Dbl 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

  • "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

  • 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,
    SS

    Hi,
    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

  • Diplay data in function module

    Hi
    I am extracting data for PLANT MAINTAINENCE application, it is in master data. Data contains in 8 tables .and display 12 fields in the report and i have to extract data in BW side.
    So i am using function module to extract the data from R/3 to
    BW side, I am not using appropriate function module.
    Here how to link all the tables. Here we are using EQUNR key,based on this one we are diplaying the data.
    Filed names Table names
    EQUNR-euipment no.           J_3GSTLKOPF
    LTEXT-Catalog text                /SAPCEM/KATTEXT
    ATWRT-Capacity                AUSP
    ATINN-Inetnal carecter no           AUSP
    ANSDT-Purchase order date           EQUI
    ANSWT-Purchase cost           EQUI
    EQPCATLIFE-life in years           J_3GSTLKOPF
    CDIFF-Working hours           IMRG
    NAME1-Name                KNA1
    J_3GEINEND -Date of relaese       J_3GBELP
    J_3GPACHT -Leased           EQUZ
    If display the LTEXT filed we want use two tables. in /SAPCEM/KATTEXT table take KATNR and if u want KATNR take EQUNR in J_3GSTLKOPF table.
    If display CDIFF field's here condition is consider only measuring documents(MDOCM). and we want deletion records also. How should i specify this one.
    Please tell me the code.
    Thanks

    go to se37 & give d fm name VC_I_GET_CONFIGURATION_IBASE
    display
    note: from EQUI table take 'CUOBJ' value  EX '9825'
    DISPLAY THE FM GIVE UR CUOBJ NO IN INSTANCE  value textbox
    in the end including zero 9825 press execute u can see in the bottom table
    CONFIGURATION RESULT 53entries or whatever double click on that
    unow u can see the all field name .
    I HAVE DONE LIKE THIS IN SAMRT FORMS FOR PS
    FOR that i written this code
    *& FOR POLE , KW , CONST FIELDS
    *break : abapdev.
    SELECT SINGLE * FROM vbap INTO wa_vbap
             WHERE vbeln = wa_vbrp-aubel AND posnr = wa_vbrp-posnr .
    IF sy-subrc = 0.
      CALL FUNCTION 'VC_I_GET_CONFIGURATION_IBASE'
      EXPORTING
        instance                  = wa_vbap-cuobj
      BUSINESS_OBJECT           =
         language                  = sy-langu
      IV_INVALID_POSSIBLE       = ' '
      IV_NEUTRAL                = ' '
       TABLES
         configuration             = gt_data
      ET_CONF_WITH_AUTHOR       =
       EXCEPTIONS
         instance_not_found        = 1
         OTHERS                    = 2.
    ENDIF.          .
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *& FOR POLARITY FRAMESIZE & KW
    LOOP AT gt_data INTO wa_data.
      IF wa_data-atnam = 'KW1'.
        lv_kw1 = wa_data-atwrt.
      ENDIF.
    if wa_data-atnam = 'KW2'.
      lv_kw2 = wa_data-atwrt.
      ENDIF.
      IF wa_data-atnam = 'POLARITY'.
        lv_polarity = wa_data-atwrt.
      ENDIF.
      IF wa_data-atnam = 'FRAMESIZE'.
        lv_framesize = wa_data-atwrt.
      ENDIF.
    ENDLOOP.
    *& FOR MACHINE NUMBER
    *break : abapdev.
    SELECT SINGLE * FROM ser01 INTO wa_ser01
           WHERE lief_nr = wa_likp-vbeln.
    IF sy-subrc = 0.
      SELECT SINGLE * FROM objk INTO wa_objk
             WHERE obknr = wa_ser01-obknr.
    ENDIF.
    regrads
    aniruddh singh

  • Master data deletion (Yellow request)

    Hi,
    I am in BI 7.0. Need to delete a yellow request from master data, well it's not allowing to change it to green or red while deleting manualy.
    Is there any functional module or any back groud process which can delete data by request?

    I experienced the same recently..Following worked for me..Try
    This procedure makes yellow request to RED:
    Use SE37, to execute the function module RSBM_GUI_CHANGE_USTATE
    From the next screen, for I_REQUID enter that request ID and execute.
    From the next screen, select 'Status Erroneous' radiobutton and continue.
    This Function Module, change the status of request from Green / Yellow to RED.
    Once it is RED, you can manually delete that request.

  • Employee master data without HR module

    Hi All,
    I need ur Help.
    We are implementing ECC 6.0 to our client; Client is not using HR Module. But I have to maintain employee master data.
    Kindly help me how can we create employee master data without using HR Module?
    My clients' sales hierarchy is like below,
    -In India they are having 4 zones,
    1) East, 2) West, 3) North, 4) South
    -Each zone has a sales manager, he report to 'Sales Head'.
    -Each zone is further divided in to sub zones
    -Each zone has an ASM with sales officers, Sales officer report to ASM,
    Sales head ->SM->ASM->SO
    So i have to maintain this hierarchy without using HR,
    Kindly help me on this.
    Thanks and regards
    Sridhar

    Hi,
    To Create Sales employee master data in SAP use the T. Code: VPE1/PAL1.
    You have to Maintain Parner Determination in SPRO:
    SPRO --> IMG --> SD --> Basic Functions --> PArtner Determination -->Set up Partner Determination
    -->Set Up Partner Determination for Customer.
    Now, From Left-hand side tree, click on:
    Partner determination procedure assignment.
    Here maintain these partners to your customer.
    Account groups - Function Assignment
    Here, Link all Customer Acct Grps to PE/ VE
    Now check in XD03 in partners tab.
    Check Report: MCTI (Sales Employee-wise Booking/ Billing).
    Regards,
    Krishna.

  • Not able to enter data in Function module

    Hi,
    I have created a function module with import parameter as a table.
    I have executed the function module from SE37 and tried to enter the data in the table.
    If I click the table...its not showing new line...its displaying a message that "THE OBJECT CAN ONLY BE DISPLAYED"
    I dont thinkso taht I have done a setting like this...
    please help me what might be the problem...

    Hi All,
    the issue has been resolved.
    data can be changed only if the internal table creation is not in the form of SORTED table.
    the internal table entries should not refer dataelement of type STRING.
    because of these two things, I was not able to edit the internal table in the function modul.
    thanks for ur replies.
    Sumithra

Maybe you are looking for

  • JDev 10.1.3 : Error running my first ADF application.

    I compiled and runned my first JDev application and I cound the following error during the connection : java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1 ORA-12705: invalid or unknown NLS parameter value specified I found the

  • Call workbook from ABAP

    Hello, I have a requirement of calling a workbook in ABAP program.  I need to call the workbook in a loop wherein I have to run the workbook for individual cost center.  For example, I have 10 cost centers in an internal table and I need to call the

  • Scaleability with Functions in SQL queries

    Hi, In one of our applications we have many views that use a packaged function in the where clause to filter data. This function uses a SYS_CONTEXT() to set and get values. There are couple of issues while using this approach: 1/ The deterministic fu

  • Facebook log out

    How do I log out from Facebook on an N97? I'd like to sign in as another user but I can't seem to figure out how to log out. Solved! Go to Solution.

  • Airport turns off after restart. Any way to change this preference?

    I recently upgraded to 10.4.4 from 10.3.9. Whenever I restart my computer the airport by default is switched off and i have to manually select the network i want to join. Its a small detail, but previously in 10.3.9 the airport would stay on if it wa