Deleting Master Data Requests in a Process Chain

Hi All,
I need to delete and reload master data in a process chain.  I created an ABAP program that uses the function module "RSDMD_DEL_MASTER_DATA" to delete the master data.  I invoke this program from my process chain, and this is working well.  My master data is being deleted nicely.
Question, however.  I noticed that this does not delete the actual data request for that InfoObject.  If I manage that attribute, I still see the request appearing, eventhough I see no records when I select the option to maintain master data.
Can anyone tell me how I can delete the requests for master data, and how this can be done through a process chain?
Your assistance would be greatly appreciated.
Thank you,
John Stabile

Hi John,
I created a program giving the name of the master data object. Using this object, I found the request entries from rsiccont
Then I check these found entries in rsbkrequest, so as to find the status is successful.
rsbkrequest-tstate eq '2'.
rsbkrequest-ustate eq '2'
see the total code below.. you can copy paste the same
*TABLES
tables: rsiccont.
*SELECTION SCREEN
selection-screen begin of block a01 with frame title text-t01.
select-options : s_icube  for  rsiccont-icube obligatory.
parameter: p_num type i obligatory.
parameter: p_test as checkbox.
selection-screen end of block a01.
*Internal Table Definition
types: begin of t_rsiccont.
        include structure rsiccont.
types: recno like sy-tabix,
       end  of t_rsiccont.
data:  i_rsiccont type standard table of t_rsiccont with header line,
       i_rsiccont_ok type standard table of t_rsiccont with header line,
       i_rsbkrequest type standard table of rsbkrequest with header line.
*Work areas
data: wa_rsiccont  type t_rsiccont.
*Variables
data: lv_rnr   type rsiccont-rnr.
*AT SELECTION SCREEN
at selection-screen on s_icube.
  select single rnr
    into lv_rnr
    from rsiccont
    where icube in s_icube.
  if sy-subrc ne 0.
    message 'InfoCube not found' type 'E'.
  endif.
*START-OF-SELECTION
start-of-selection.
  select * up to p_num rows
    into table i_rsiccont
    from rsiccont
    where icube in s_icube.
  if sy-subrc eq 0.
    select *
      into table i_rsbkrequest
      from rsbkrequest
      for all entries in i_rsiccont
      where requid eq i_rsiccont-rnsidlast.
   if sy-subrc eq 0.
      loop at i_rsiccont.
        read table i_rsbkrequest with key requid = i_rsiccont-rnsidlast.
*check if status is = 2.
        check sy-subrc eq 0.
        check i_rsbkrequest-tstate eq '2'.
        check i_rsbkrequest-ustate eq '2'.
*actual mode -> delete the recrod!
        if p_test is initial.
          call function 'RSSM_PROCESS_REQUDEL_MDT'
            exporting
              i_dta     = i_rsiccont-icube
              i_request = i_rsiccont-rnr.
        endif.
        append i_rsiccont to i_rsiccont_ok.
      endloop.
    endif.
  endif.
*display list of all request numbers deleted!
  write: 'List of delete request numbers'.
  uline.
  skip.
  loop at i_rsiccont_ok.
    write: i_rsiccont_ok-rnr.
    skip.
  endloop.
=====================================================
You may need to correct the formatting
Edited by: Shailesh Khandarkar on Nov 11, 2009 7:42 AM
Edited by: Shailesh Khandarkar on Nov 11, 2009 7:46 AM

Similar Messages

  • How to find unassigned master data text objects in process chain in bi

    Hi
    Please let me know how to find the unassigned master data text objects in process chain.

    hi,
    actually if u want to find that , is ur Unassigned Infoobject in present in process chain or not, , that u can find out just by right
    click on your DTP (master data Txt datasource--> Master data text ), if this is present in Process chain, then on ryt click, the process chain option will be active. by clicking over that u can find the name in which this exists.
    thanks.

  • Steps for master data loading by using process chain

    Hi
    I want to load the Master data by using the process chain . Can anyone tell me the step-by-step method for loading the master data .
    I means what are the processes should i need to include in the process chain . Pls tell me in sequenece .
    i ll assing the points
    kumar

    Hi,
    The process os loading master data is similar to transaction data in terms of using the infopackages.
    First you have to load Attr followed by texts and hierarchy.For master data you have to include the process type called as Attribute change run.This can be included as a separate process type or using the AND process.
    Hope this helps.
    Assign points if useful.
    Regards,
    Venkat

  • Master data loading by using process chain

    hi
    I want to load the master data by using the process chain in BI7.0 . How can i do this one .
    Can anyone tell me the step-by-step method for loading the master data.
    kumar

    Hi Kumar,
    check this link to load the master data by using the process chain
    Re: Process Chain : Master Data
    cheers
    Sunil

  • BPC:: Master data load from BI Process chain

    Hi,
    we are trying to automatize the master data load from BI.
    Now we are using a package with:
    PROMPT(INFILES,,"Import file:",)
    PROMPT(TRANSFORMATION,%TRANSFORMATION%,"Transformation file:",,,Import.xls)
    PROMPT(DIMENSIONNAME,%DIMNAME%,"Dimension name:",,,%DIMS%)
    PROMPT(RADIOBUTTON,%WRITEMODE%,"Write Mode",2,{"Overwirte","Update"},{"1","2"})
    INFO(%TEMPNO1%,%INCREASENO%)
    INFO(%TEMPNO2%,%INCREASENO%)
    TASK(/CPMB/MASTER_CONVERT,OUTPUTNO,%TEMPNO1%)
    TASK(/CPMB/MASTER_CONVERT,FORMULA_FILE_NO,%TEMPNO2%)
    TASK(/CPMB/MASTER_CONVERT,TRANSFORMATIONFILEPATH,%TRANSFORMATION%)
    TASK(/CPMB/MASTER_CONVERT,SUSER,%USER%)
    TASK(/CPMB/MASTER_CONVERT,SAPPSET,%APPSET%)
    TASK(/CPMB/MASTER_CONVERT,SAPP,%APP%)
    TASK(/CPMB/MASTER_CONVERT,FILE,%FILE%)
    TASK(/CPMB/MASTER_CONVERT,DIMNAME,%DIMNAME%)
    TASK(/CPMB/MASTER_LOAD,INPUTNO,%TEMPNO1%)
    TASK(/CPMB/MASTER_LOAD,FORMULA_FILE_NO,%TEMPNO2%)
    TASK(/CPMB/MASTER_LOAD,DIMNAME,%DIMNAME%)
    TASK(/CPMB/MASTER_LOAD,WRITEMODE,%WRITEMODE%)
    But we need to include these tasks into a BI process chain.
    How can we add the INFO statement into a process chain?
    And how can we declare the variables?
    Regards,
    EZ.

    Hi,
    i have followed your recomendation, but when i try to use the process /CPMB/MASTER_CONVERT, with the parameter TRANSFORMATIONFILEPATH and the root of the transformation file as value, i have a new problem. The value only have 60 char, and my root is longer:
    \ROOT\WEBFOLDERS\APPXX\PLANNING\DATAMANAGER\TRANSFORMATIONFILES\trans.xls
    How can we put this root???
    Regards,
    EZ.

  • Master Data attributes failed in Process chain

    Hi All,
    Master data load has failed at vendor attributes DELTA load, and error message is "'Update mode R is not supported by the extraction API".
    Actually in the last PC delta run it was failed at same vendor attributes delta run, due to special characters, we allowed those special characters in RSKC transaction and technically made PSA red request to RED after that In order to Run the PC, We selected that Red request in PSA (Which has the records) and updated with Scheduler. PC ran well after that.
    and today PC got failed at same place showing he message as "'Update mode R is not supported by the extraction API".
    There are no red requests in data source (Info course), and No delta's missed.
    Can anyone please let us know the why it is happening ? (solution is we can re-init it or got options to run it) but we are looking for why this issue is happening ?
    All inputs are much appreciated.
    Thanks in advance,
    Teena

    Hi Teena,
    You get this type of error when the data source does not support repeat of delta
    or
    init flag might have corrupted some times so that it wont allow the delta load to run.
    it happens because the DS does not support R or Repeat of delta.
    For more information on Update mode:
    Go to SE12, write data type as "RODMUPDMOD". Read the documentation given there.
    You can try multiple options to resolve this.
    Simply set the QM status of the last failed delta to GREEN and reload your master data with Full Repair. Your deltas will follow.
    the best way for this situation would be to re-init.
    Regards
    Kp

  • Regarding Master Data Loading by using Process Chain

    hai
    can anyone tell me 'step-by-step process and what are processes , process types' are used for loading the Master Data , Transaction into ODS and into Infocube.
    i ll assing maximum points
    bye
    rizwan

    HI Mohammand,
    1. Master Data loading:
    http://help.sap.com/saphelp_nw04/helpdata/en/3d/320e3d89195c59e10000000a114084/content.htm
    2. Transactional data to ODS:
    http://help.sap.com/saphelp_nw04/helpdata/en/ce/dc87c1d711f846b34e0e42ede5ebb7/content.htm
    3. Transactional data to CUBE:
    http://help.sap.com/saphelp_nw04/helpdata/en/d5/e80d3dbd82f72ce10000000a114084/content.htm
    Hope it Helps
    Srini

  • Deleting master data in a process chain via ABAP "RSDMD_DEL_BACKGROUND" ?

    I need to delete master data attributes in a process chain.
    Since there seems to be no predefined process type for this, I looked for an existing ABAP in the dictionary and found the ABAP report "RSDMD_DEL_BACKGROUND". I plan to call this ABAP in an ABAP-process-step in my process chain.
    Unfortunately, I'm not shure how to set the input parameters:
    report rsdmd_del_background .
    type-pools: rsd, rrsi, rsenq.
    parameters: p_iobjnm like rsdiobj-iobjnm obligatory,
                p_chabnm type rsd_s_cha_bas-chabasnm obligatory,
                p_delsid type rs_bool default 'X',
                p_deltxt type rs_bool,
                p_obj    like balhdri-object,
                p_sub    like balhdri-subobject,
                p_ext    like balhdri-extnumber,
                p_noprot type rs_bool.
    Can anybody help me, with the settings needed or point out another way to achieve the deletion of master data attributes in a process chain?
    Thanks in advance, Frank.

    Hi Frank,
    as I already suggested in a previous thread, 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 !
    Hope it helps.
    Bye,
    Roberto

  • Deleting Master Data

    Hi All,
    I am trying to delete master data in a process chain.
    But its not working , the chin is executing but the function module RSDMD_DEL_MASTER_DATA is retuning the message " No master Data was Deleted".
    Please suggest how to fix this.
    Appreciate help,
    Deepthi

    Hi Deepthi
      Before deleting the master data.have look at transaction data like any dependency  data is there r not.If the the trans action data is present then u can just delete that thing then only u have the option of deleting the master data in case of process chains.if any let me know.If my answer is useful dont for get to assign points.
    Best regards
    RK
    Assigning is the only way of saying thanx in SDN*****

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

    Hi 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

  • Delete Master Data using Process Chain?

    Hi Friends,
    How do I delete Master Data using Process Chain?
    Thanks,
    Pradeep

    Hi Bhanu,
    I am not sure why we would want to delete MD. But that is the task given to me. I actually know it is not possible. But is there a way to delete MD using chains?
    Thanks,
    Pradeep

  • Deleting Master Data via Process Chain

    I am in the midst of creating a process chain and am able to create process for deleting ODS Contents, but am not able to do the same for Master Data. Is this possible?

    Firstly, why do you want to delete master data.
    You cannot delete master if the same is used across other transaction and master ( attr )data.
    You may use :
    Prg - > RSDMD_DEL_BACKGROUND
    FM - >RSDMD_DEL_MASTER_ DATA.
    To my knwldge you cannot delete MD using process chains.
    You can delete data in PSA periodically..is that you are looking for ?

  • Data Load Requirement through Process Chain

    Hello All,
    I have implemented an area through a custom data source and following is my data load requirement through Process Chain. Request you to kindly help me for the same.
    1. The design is an InfoCube and updated using a Transformation through the custom data source.
    2. For the entire year 2008 I want a single request to be loaded. So it gets loaded into the PSA and then into the Infocube through a (Delta) DTP.
    3. Now, I have created an InfoPackage (Full Update) with year as 2009 in the selection. Tht is I want tht hencforth the data load should be for the year 2009.
    4. Hence, the Infopackage will run to bring the 2009 data into PSA and I run the (Delta) DTP to update the same in the Cube.
    5. Now, what i require is everyday the InfoPackage (Full Update) with 2009 should run and bring data into PSA. and the same should be updated in the InfoCube after deleting the 2009 request already present keeping 2008 request loaded previously intact.
    I hope the above is nt confusing.
    Please let me know if i can elaborate the same.
    Thank you.
    Regards,
    Kunal Gandhi

    Hi,
    Please go through the links.
    http://help.sap.com/saphelp_nw04/Helpdata/EN/21/15843b74f7be0fe10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/Helpdata/EN/f8/e5603801be792de10000009b38f842/frameset.htm
    http://help.sap.com/saphelp_nw04/Helpdata/EN/b0/078f3b0e8d4762e10000000a11402f/frameset.htm
    These may help you in designing the process chain as required.
    Regards,
    Sunil
    Edited by: sunil kumar on Apr 17, 2009 6:20 PM

  • Delete Master Data - with or without sids

    Hi
    i am working on 0customer_attr
    now when i right click and see master data it has 100 records
    the same in r3 has 85 records.
    so i thought i will try to delete master data and then load again.
    so i right cick on 0customer and choose Delete master data.
    now if i go back and see data for 0customer it still exists.
    q1. what is the approach to delete and reload master data so between r3 and bw synchronization exists ???
    q2. should i select with SIDS or without SIDS ???
    how to rectify this error.
    thank

    Hi,
    Q1..how can i find which transaction data is using those records ?
    Doubleclick on the Master data IO. In the right pane you will find "Where-Used List" option. Click on that. It will give you the entire list of BW objects(DSO, Cube etc) in which your Master data IO is used.
    q2. How can i delete transaction data
    Right click on the Data targets(DSO, Cube etc) in which your master data IO is used, select the option Delete Data.
    (or) Right click on the Data targets(DSO, Cube)>Manage>Select the Request-->Delete
    q3. i dont see anything in psa,, it is master data so is that why there is no psa ??
    Though it is a Master data, you should have loaded the data via DS so PSA will be there. It is possible that you might have deleted the PSA data.
    Do one thing, delete all the Transactional Data(follow Q2 ans), then delete Master Data contents. Then do the loading again.
    Hope it helps!
    Regards,
    Pavan

  • Deleting master data after loading transactional data using flat file

    Dear All,
    I have loaded transaction data  into an infocube using a flat file . While loading DTP i have checked the  option "load  transactional data with out master data exists" . So transactional data is loaded even if no master data is there in BW.
    While loading the flat file, I made a mistake for DIVISION Characteristic  where original master data value is '04000' , but i loaded the transactional data with value '4000' .Then i later realized after seeing the data from the infocube and deleted the request. then i reloaded data with value '04000'. Till now every thing is fine.
    But when I see the master data for DIVISION , i can see a new entry  with value '4000'.
    My question is how to delete the entry value '4000' from DIVISION. I tried deleting manually this entry from 'maintaining masterdata' , but it is not allowing me to do so .
    I have also checked if any transactional data exists for that value '4000' , as i said earlier I have deleted the transactional data with that values. even tried to delete the entries from the master data table, but i donot see a option to delete entries there.
    Please suggest me on this.
    Regards,
    Veera

    Hi,
    Goto RSA1 right click on the Info object and select Delete Master data. This will delete the master data unused existing in the table.
    If this master data is not used any where else just delete the master data completely with SID option.
    If even this doesnt work you can delete the complete table entire in SE14. But this will wipe out the entire table. Be sure if you wanna do this.
    Hope this helps
    Akhan.

Maybe you are looking for

  • VB Script not working correctly the first attempt

    I have a VB script that loads the active channels data into a Report.  The weird thing is that upon first run (pressing F5) of the script it does not update my Graph Data on either page of my 3 page Report (1st page has a table and the 2/3 pages have

  • Duplicate photos now in Photo from iPhoto

    Hi, I uploaded photos from my Mac to my iPad(3) using Photosync. The album appears nicely under Albums in the Photo app along with the pics in Camera Roll. I then make my edits in iPhoto (latest relase). So then, in iPhoto, i have the pics with the l

  • I downloaded premiere and i can't open it?

    i downloaded premiere and i can't open it can i get help it shows up but i can't open it?

  • Satisfied with the Online/Web Gallery? (Elements 8)

    Hi there, most of the templates are unuseable bells and whistles Slide-Shows and the Slide-Show itself can not be deactivated. Futher there is no possibility to create a initial index site with an overview to all my albums, instead of, I have to prov

  • 1252 AP wont stay associated 5508 wlc

    Hi, I have a newly configured 5508 and a test 1252 ap. The ap connects to the controller and then drops off repeatedly. I have pasted the errors that I am seeing on the ap below. *Sep 17 17:22:01.807: %CAPWAP-3-ERRORLOG: Go join a capwap controller *