Regarding the Generic Selective deletion Program

Hi Gurus,
I have to create a deletion program for any target CUBES/ODS. The program should do selective deletion for ther target on the basis of the parameters provided.
e.g.:
Usually target ZXXXX_XXX is requested to load. ZXXXX_XXX  is loaded from DSO ZYYYYYY. So first we have to selectively delete data from both the target and then start loading data. Create a program that should accept the target and selection conditions and then delete the data from the target according to input conditions.
We can consider FM RSDRD_SEL_DELETION for reference.
Please help me with the details of the FM RSDRD_SEL_DELETION & its parameters. Please also suggest if any other solution.
Thanks in Advance,
Sourabh Deo

Check the following details :
Suppose selective deletion on the basis of company code
data: L_THX_SEL TYPE RSDRD_THX_SEL.
data: LN_THX_SEL like LINE OF L_THX_SEL.'' this will contain InfoObject  which is to be refered for sel deletion and the range of values for that info object .
data: L_RANGE TYPE RSDRD_S_RANGE. " used for internal calculations
data: L_T_MSG     TYPE RS_T_MSG.
data: T_TR_RELOAD TYPE ZIB_TR_RELOAD OCCURS 0 WITH HEADER LINE. "used for internal calculations
SELECT * FROM XYZ  into TABLE T_TR_RELOAD. "retrieve company codes from a database table
LN_THX_SEL-IOBJNM = '0COMP_CODE'. '' infobject for company codes .
L_RANGE-SIGN = 'I'.
L_RANGE-OPTION = 'EQ'.
L_RANGE-KEYFL = 'X'.
"affect all the company codes for  selective delete retrieved previously by a select to a DB table
Loop at T_TR_RELOAD.
  L_RANGE-LOW = T_TR_RELOAD-COMPANY.
  APPEND L_RANGE to LN_THX_SEL-T_RANGE. range of values for company code for which data is to be deleted.
endloop.
insert this selection to a table
INSERT LN_THX_SEL INTO TABLE L_THX_SEL.
"call the function for selective deletion
  CALL FUNCTION 'RSDRD_SEL_DELETION'
       EXPORTING
            I_DATATARGET      = 'Cube1 ' "InfoCube you want to do the selective deletion
            I_THX_SEL         = L_THX_SEL "table containing details abt values to be deleted for the given infoobject
            I_AUTHORITY_CHECK = 'X'
            I_THRESHOLD             = '1.0000E-01'
            I_MODE                  = 'C'
            I_NO_LOGGING            = ''
            I_PARALLEL_DEGREE       = 7
            I_NO_COMMIT             = ''
            I_WORK_ON_PARTITIONS    = ''
            I_REBUILD_BIA           = ''
            I_WRITE_APPLICATION_LOG = 'X'
       CHANGING
            C_T_MSG                     = L_T_MSG.

Similar Messages

  • Set Variant attributes  in  selective deletion program

    Dear all,
    I have some problem about set variant attributes  in  selective deletion program (se38)
    I want to set field fiscal year  for current year.
    Field fiscal year have selection type = "S" and i choose  selection variable. It only have Type of variable is "T"
    so i go to table TVARVC and create new variable  I've set value as below
    Selection type     S
    Number     4
    Selection value     SY-datum
    And it didn't work .
    Fiscal year still dispaly  "0".
    any suggestion?
    Many thanks,
    Big Tree

    Hi MLS,
    You can create this program using the program RSDRD_DELETE_FACTS (in SE38). You just need to provide the selections and generate the ABAP program. Ten you can use this in the process chain, with process type ABAP program.
    Hope this helps...

  • I have a comment.  I am very upset with Photoshop and all your tutorials regarding the quick select tool.  I have watched many tutorials and read instructions until I am blue in the face.  This tool does not work.  It is all over the place and all of your

    I have a comment.  I am very upset with Photoshop and all your tutorials regarding the quick select tool.  I have watched many tutorials and read instructions until I am blue in the face.  This tool does not work.  It is all over the place and all of your tutorials make it look so simple.  How can you advertise this as a viable tool when it just doesn't work?

    It is all over the place and all of your tutorials make it look so simple.
    This is a user to user Forum, so you are not really addressing Adobe here, even though some Adobe employees thankfully have been dropping by.
    How can you advertise this as a viable tool when it just doesn't work?
    Concluding something does not work because you fail at using it is not necessarily always justified.
    The Quick Selection Tool certainly has limitations, but your post seems to be more about venting than trouble-shooting – otherwise you might have posted an image where you failed to get an expected result.

  • Regarding the generic datasource fields

    Hi Masters,
           I've created one generic datasource(Master data source), which contains exactly 8 fields. Afterwards that datasource is replicated in BW. According to that datasource, fields are created in RSA1. But those fields name and lengths are not name in BW.Is it problem or not? And another one thing is those fields are not belongs to one Master data source. Is it ok?
    Pl let me know.
    Thanks in advance
    Raja.S

    Hello Raja,
    In BW side you have to map the fields with infoobject in transfer structure. The definition of (Properties) infoobjects which you are mapping must be in sync with the fields you are mapping.
    Hope it solves your problem.
    Cheers
    SRS

  • How can we automate the process of selective deletion in process chain

    Hi,
    I got to delete data from ODS and InfoCube selectively every Tuesday. So I am aware that there is an ABAP program through which we can automate the process of selective deletion in Process chain. So plz let me know the proceedure to automate this process.

    Hi,
    Try this.
    Need to genrate the deletion program using tcode Delete_Facts.
    steps : 1 run the Delete_Facts tcode and give your cube name in the input parameter
    step2 . select deletion program and execute . you will get the system genarated program
    step 3 copy this prg and save as zprg.
    step4 : run the program with selection
    step 5. if your selection is date then you need to create dynamic varient needs to be populate the value for the date fields
    step 6: you need to maintain the date values in the TVAR table if necessary
    step 7. you need to use this custom prg in your process chain after completion of test
    source : SDN.
    Thanks,
    JituK

  • HT4191 How do I get to "When prompted, select Delete Notes to remove the duplicates from the device."?  I can't get to this!

    I have duplicate Notes on my iphone 4 (upgraded to iOS 5.1.1)  I have followed your instructions to remove the duplicates.  How do I get "select Detete Notes" to appear on my Mac?  I have connected my phone to my Mac and selected it in iTunes.  I clicked the Info pane and deselected the option to Sync Notes.  THEN WHAT should I do?  How do I get the prompt "Select Delete Notes to remove the duplicates from the device.  (I do want to sync them using the over-the-air feature.)

    I would try the following:
    First sync your phone with iTunes to create a new backup (just in case).  When done, disconnect your phone from your computer.
    Next be sure that all of your Notes are on your mac (Don't proceed any further if they aren't).  If so, turn off iCloud syncing for Notes on your phone go to Settings>iCloud and turning Notes to Off.  When prompted choose to delete the notes from your phone.
    Next, without connecting your phone to your computer, open iTunes and go to iTunes>Preferences, on the Devices tab check "Prevent...from syncing automatically".
    Now connect your phone to your computer, click on the name of your phone when it appears in iTunes on the left sidebar.
    Go to the Info tab and under Other check Sync Notes, then further down under Advanced: Replace information on this iPhone, check Notes.
    Click Apply at the bottom right to sync your phone.  This should sync the Notes from your mac to your phone and you should no longer have duplicate Notes.
    Next, on the Info tab uncheck Sync Notes and click Apply, when prompted select to keep the Notes on your phone (haven't tested this step but I believe you will be given the option to keep them on your phone).
    Now disconnect your phone from your computer and check the Notes on your phone to confirm that they are still there and that you don't have any duplicates.
    Next turn on iCloud syncing on your phone again by going to Settings>iCloud and turning Notes to On.
    On your computer, without connecting your phone, go back to iTunes>Preferences>Devices and uncheck "Prevent…from syncing automatically" to re-enable automatic syncing.
    That should do it.

  • Selective deletion of a row from a cube

    Hi Friends,
    I need to delete a row from a cube through selective deletion from manage tab. I had struck while giving selecting the criteria for that deletion.
    My Quesion is;
    1) What criteria i need to give to delete the row apart from business related information?
    2) What is data packet SID ? what i have to mention in that column?
    3) What is Request id SID? what i have to mention in that column?
      Please help me on the above issue.
    regards,
    Mahesh

    Hallo
    Of xourse you do it for example from Infoprovider, right click maanage, Content (first tab) Selective deletion.
    Then you get a tab where you can schedule the job according to the selections in the tab Selective Deletion where you can set a filter for the characteristics included in the Cube.
    You can select single Characteristics vlue oder range or multiple.
    If you want to dlete a record than you have to know the key of this records. For example if you have
    customer
    company
    month
    if you select only month, then you delete all month but if you restrict to month and cusotmer than you delete the combination of them.
    Reuest sid is the identifier of the request which you see on the tab manage of the cube. you select on that and in this case you will delete all request it means all records loaded with the request.
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
    Mike
    Best Regards
    Mike

  • I cannot download a working version of Firefox at all. Downloads seem normal but No Program in "Add or Delete programs"and NO ICON

    I kept getting a mssg "update did not download. make sure there are no other copys of Firefox on your computer". That was on the user account I use strictly for the internet. I keep 3 user accounts, One is the administrator for security, a sort of 3 card monty for security purposes. The one I use for the internet kept repeating that mssg (I sure do miss the firefox spellcheck. I dont like Internet Explorer at all).
    In frustration I deleted firefox from all three user accounts and attempted to download a fresh browser. All things seemed to download as normal but after the restart there was no Firefox Icon or any evidence of the program in the "Add or Delete Programs". It simply seems to disappear.
    I tried downloading on the administrator account and the other two to the same effect.
    I tried to do over and began to notice on the File Download-Security Warning Dialox Box that there were several different addresses beside "From;" from several different countrys, including halifax which didnt appear in the following examples
    For exampl the dialog box I have up now says
    File Download-Security Warning
    Name: Firefox setup 6.0. exe
    Type: Application, 13.3MB
    From: mirror.informatik.uni-mannheim.de
    Now I am going to delete this one and click the download from Firefox homepage again and it should be another;
    It is. Same Dialog Box but
    FROM: mirror.team-cymru.org
    I delete and do that again...and also a different
    FROM: mozilla.mirror.ac.za
    try again..and yes it is different too;
    FROM: mirror.metrocast.net
    try again...the same result
    FROM: mirror.Istn.net
    try again...
    FROM: www.mirrorservice.org
    try again...
    and for the first time this session I get a repeat of the last result.
    My intuition tells me this cant be normal in conjunction with the fact that after going through a normal download process any of these possibilities needs to restart and then after rebooting there is no firefox icon or any evidence the program downloaded at all.
    Perhaps I could do a check of the math on remaing MB space, but there has to be something wrong here.

    Using "System Restore" can cause your Firefox installation to get corrupted because not all files are restored (only files in a white-list), so be cautious with using System Restore.<br />
    You need to (re)install software that was affected.<br />
    Remove the Firefox program folder (C:\Program Files\Mozilla Firefox\) before reinstalling a freshly downloaded Firefox copy to do a clean install.
    You can find the latest Firefox release in all languages and for all Operating Systems here:
    *Firefox 11.0.x: http://www.mozilla.org/en-US/firefox/all.html
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls

  • RSEXARCD: Idoc archiving deletion program issues

    Hi,
    I have two queries:
    1. The Idoc archive deletion program, RSEXARCD, when executed in background, terminates when there are no archive files to process (as seen in SARA). How can we prevent this? Our deletion jobs are scheduled weekly, but sometimes there are no archive files created from the archive write program RSEXARCA.
    2. Secondly, how can we process multiple archive files using this program RSEXARCD in background? Currently, it processes only one archive file at a time and takes up the oldest unprocessed archive file. Also, would like to know how it gets this information of the oldest unprocessed archive file?
    Thanks.

    if a program terminates, then you should look into the dump to see the root cause and follow the instructions. e.g. search for OSS notes with the metioned terms
    I just searched with the terms "archiving idocs termination" and found 12 notes with program fixes.
    Further, the program names you mentioned are not the most recent programs.
    Have a look into OSS note Note 582828 - IDoc archiving: Standardization
    maybe you will not have your problems anymore if you use the new programs

  • Selective Deletion of the Cube contents in Abap Program of the PChain

    Dear Experts
    I need to selectively delete the contents in Basic Infocube using Process Type - ABAP Program in the Process Chain in BW 3.5
    For this I have to give the Variant and Program name in the Process Type - ABAP Program in the Process Chain
    The ABAP Program for this purpose can be generated automatically by the system in the the below navigation
    info cube> Manage>contents > system menu(in the Top)> Status
    but this abap program is changing dynamically every time and hence in the Process chain ABAP Program node is failing with error saying that that program is not available
    I have tried the same way  in the selective deletin navigation path also in the cube manage
    Please let me know how to get the system generated program to use in the Process type-ABAP Program in Process Chain
    Thanks for all in advance
    KSR

    Hi KSR,
    Try this.. start a selective deletion on the cube. you will get a background job running. Get the job name from SM37.
    Now write a ABAP program with the below code.
    parameter: p_Job_Name type sysuuid_c.
    CALL METHOD cl_rscrmbw_bapi=>exec_rep_in_batch
    EXPORTING i_barepid = l_jobnam.
    Execute the above program. Pass the job name which you got from SM37.
    Create a variant with that job name.
    Now schedule this newly created program. This should solve your issue.
    Note : The job name might vary from one server to another (Dev / Qual / Prod). So if you are planning to move your process chain from Dev, then pass the Job name (in prod) as the variant in yr Dev system and then transport it.
    Cheer,
    Balaji Venugopal

  • Automate the selection delete in infoprovider

    Hi All,
    Can we automate the process of selective deletion in infoprovider. I mean I need to do the selective delete every week from info provider and data may or may not overlap in different request.  So can we do this through process chain or some other way.
    Thanks
    Vishal

    Hi
    data can be deleted Selectively and keep that as part of process chain, creata process variant as ABAP progam and when this process is triggered it will call the program T-code SE38 mentioned and in that program use
    program RSDRD_DELETE_FACTS . You just need to provide the selections and generate the ABAP program.
    Regards
    Daya Sagar

  • How can I select a radio button in a table regarding the data in the cells?

    Hi everyone
    This is the issue: I need to select the RadioButton which is in a table with data related to transfers in the cells next to it, so I need to select the correct radio regarding the data next to it.
    This is the whole process: First I go to the Add Recurring Transfer section and select the parameters of the transfer (Accounts, date, amount, months etc), then with VB code I capture those parameters from the page and store them into Global variables for further usage on my E-tester script.
    Right after that I need to select the radiobutton regarding the data of the transfer that I already created in order to delete it or modify it (Please see Attachment selectradio1.jpg)
    So How can I move along the table and compare each cell with the variables that I created with the transfer information, so when I finish comparing a row cell by cell and if all the comparison match well in that row, I could select the radiobutton of the row.
    Note: Second Attachment selectradio2.jpg shows the source code of the table...If you need more info please let me know
    Could you please help me with this problem?? I'm Kind of frustrated with this issue jejeje

    Here is an example. I uploaded mock html so that you can actually try this code. I think this does exactly what you are asking.
    Private Sub RSWVBAPage_afterPlay()
    Dim tbl As HTMLTable
    Dim tblRow As HTMLTableRow
    Dim tblCell As HTMLTableCell
    Dim strValue As String
    Dim rButton As HTMLInputElement
    ' ******** This would be your global variable. I put this so that values are seperated by a semicolin you can use what ever format works for you.
    strValue = "03/22/2008;03/22/2008;*************1977;*************1977;$25.25;Jan, Jun, Jul, Dec"
    ' Strip out the ; for inner text comparison
    strValue = Replace(strValue, ";", "")
    ' This will get the table but can be modifoed to be more specific
    Set tbl = RSWApp.om.FindElement(, "TABLE")
    ' This loops through all the rows in the table until a match to the strValue is found
    ' then clicks the radio button. Findelements allows you to specify a root element
    ' once the correct root row is found, FindElemets can get the correct radio button
    For Each tblRow In tbl.rows
      If tblRow.innerText = strValue Then
        Set rButton = RSWApp.om.FindElement("account", "INPUT", "NAME", , , tblRow)
         rButton.click
       End If
    Next
    End Sub
    I also uploaded the script I created. You should be able to run it and see how it works.
    This should get you going.

  • How to do selective delete of the GL a/c, BA and Co Code from the BWrequest

    Hi,
    How to do selective delete of the GL a/c, BA and Co Code from the BW request ??
    Regards,
    Vivek

    Cube or DSO?
    Cube - manage - notedown the req number - selective deletion - enter req number at REQ ID and give the selection parameters as you need(GL a/c, BA and Co Code ) and execute.
    For DSo you can't do selective deletion on request id basis

  • "Command-i" which was so useful in being able to selectively delete messages from the servers no longer works. Is their a replacement? Will it be fixed? Or should I change my mail application?

    "Command-i" which was so useful for selectively deleting messages from servers has disappeared in  Maverick. I wonder if it has been replaced by something else or should I look into other mail applications.

    Hmmm.  Which Mail program are you referring to?
    in Mac Mail command -i used to bring up the Account info pane on the server  (10.8.5)
    Now it seems you have to use the gear at the bottom in "Mail Activity" to get the drop down (10.9) :

  • How to go for selective deletion if the request is rolled up???.. URGENT!!!

    hi all,
    we a have a data target which was compressed and rolled up...
    please do suggest us how to go for selective deletion  if the data target was rolled up???
    on what basis we need to do the selective deletion ??
    thanks for ur understanding...
    suggestions would be highly rewarded
    regards
    Prince

    Hi,
    in the subsequent datatargets of your ODS:
    if the requests are only rolled up, then you can delete those requests; now if your aggregates are collapsed then you'll have to dactivate them and reactivate them after. If not you can simply delete them.
    then delete all the requests from your ODS up to the request right after the missing one. This will deactivate you ODS delta init. This is not a problem since when you'll have finished with the above your ODS and subsequent targets will have a consistent status in terms of data.
    Reinit your ODS delta without datatransfer, reconstruct your missing request and the subsequent requests in your ODS.
    Reactivate them (not all together as a single activation, but separately).
    Then load the delta into your subsequent targets.
    Now if the subsequent datatargets are collapsed then you'll have to either reinit with full load or selective delete them. the missing request in your ODS still must be reloaded before!
    If you go for selective deletion you'll have to find the right selection criteria based on the data of your ODS. For instance if you can ensure that only a selected period is incorrect (all the ODS requests from the missing one to the last only contain data for JAN08) then you can selectively delete JAN08 from your subseq targets and perform a FULL load selecting JAN08 from your ODS.
    Then perform an INIT without data transfer... you can then continue your deltas as usual....
    hope this helps....
    Olivier.

Maybe you are looking for

  • Touchpad does not work even after format - x220t

    Hi there, I've had my X220 tablet for about 10 months and it has been great.  For the last month however, the touchpad and touchpoint have become flaky.  When rebooted or coming out of standby, the touchpoint/touchpad often did not work; after resett

  • HT4946 How do I know what is using my iCloud space?

    I see that 1.9g of my iCloud I'd being used. How do I know what it represents and how can I manage it?

  • Print-Fax icon

    My Print/Fax Icon is missing in the system preferences under hardware. How do I get that back?

  • Adapter configuration in Partner Connectivity Kit

    I used sap sample adapter as sender and File Adapter in partner connectivity kit as receiver, I configured both sender agreement and receiver agreement,both adapters just do the file processing, it is very simple, but still do not function, are there

  • Study material for TAW11_70

    Hi, Please provide the study material for TAW11_70 or provide with any related links. Thanks.