Deletion of data using RECORDMODE

Dear Experts,
I have a scenario where I have to delete data from a DSO based on some conditions.
I have defined the condition in my end routine and set RECORDMODE as 'D'.
However, during activation of DSO, the records are not deleted.
In my new table, I can able to see that the records are set with recordmode as D. Upon activation, the records are still available in the DSO.
Any ideas on why this strange behavior is highly appreciated.
Many thanks in advance.
Br, Harish

HI,
There are so many resons why it's not being deleted..are you sure thats only reocrd available in D? was thr any other record in other packages match DSO key fields? Did you try with recordmode R ?
Please let us know your system details as well...Also the key fields of the DSO and source and your code.
Did you get semantic keys properly matching with DSO key fields? Did you additional add these records in end routine or you are changing the recordmode value for the record coming from source?
Sorry to ask so many questions..but this helps to provide us more details, so you get closer answer here..

Similar Messages

  • 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

  • How to delete large data using XML batch in chunk

    public void DeleteListItems(SPWeb web, SPList list)
    RMPExceptionManager.LogErrorInFile("--------Delete List Items from : " + list + " starts--------", true);
    try
    web.AllowUnsafeUpdates = true;
    StringBuilder builder = new StringBuilder();
    builder.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?><Batch>");
    string s = "<Method>" +
    "<SetList Scope=\"Request\">" + list.ID + "</SetList>" +
    "<SetVar Name=\"ID\">{0}</SetVar>" +
    "<SetVar Name=\"Cmd\">Delete</SetVar>" +
    "</Method>";
    foreach (SPListItem item in list.Items)
    builder.Append(string.Format(s, item.ID.ToString()));
    builder.Append("</Batch>");
    web.ProcessBatchData(builder.ToString());
    web.AllowUnsafeUpdates = false;
    RMPExceptionManager.LogErrorInFile("--------Delete List Items from : " + list + " ends--------", true);
    catch (Exception ex)
    RMPExceptionManager.LogErrorInFile("--------delete List Items exception--------", bIsLogEnabled);
    RMPExceptionManager.LogErrorInFile(ex.Message, bIsLogEnabled);
    RMPExceptionManager.LogErrorInFile(ex.Source, bIsLogEnabled);
    RMPExceptionManager.LogErrorInFile(ex.StackTrace, bIsLogEnabled);
    RMPExceptionManager.LogErrorInFile("-------------------------------------------------------", bIsLogEnabled);
    I am using the above code to delete the data from list.
    currently its not deleting properly as its executing huge xml batch.
    How can I change the above code in to chunk of 1000 so that I can delete 25000 records easily?

    I tried the below code but its not working properly.
    first time when it comes in do loop its deleting the records one by one and not using batch of 1000.
    after some time(aprox 30 min) it starts executeing batch of 1000 but not deleting whole records. out of 10,000 its deleting hardly 7000 then stops the delete process and jumps on next step.
    I am not getting why its showing this behaivour ? Is it time out after some time in xml batch? but its still executing the other code after comming out of delete function.
    web.AllowUnsafeUpdates = true;
    StringBuilder builder = new StringBuilder();
    builder.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?><Batch>");
    string s = "<Method>" +
    "<SetList Scope=\"Request\">" + list.ID + "</SetList>" +
    "<SetVar Name=\"ID\">{0}</SetVar>" +
    "<SetVar Name=\"Cmd\">Delete</SetVar>" +
    "</Method>";
    // Query to get the unprocessed items.
    SPQuery query = new SPQuery();
    query.RowLimit = 1000;
    query.Query = "<Where></Where>";
    do
    SPListItemCollection remainingItems = list.GetItems(query);
    foreach (SPListItem item in remainingItems)
    builder.Append(string.Format(s, item.ID.ToString()));
    builder.Append("</Batch>");
    web.ProcessBatchData(builder.ToString());
    query.ListItemCollectionPosition = remainingItems.ListItemCollectionPosition;
    RMPExceptionManager.LogErrorInFile("--------Delete batch remaining : " + remainingItems.ListItemCollectionPosition + " --------", true);
    } while (query.ListItemCollectionPosition != null);
    any body got this type of issue?
    is there any problem in above code?
    is there any other way to do this deletion process in better way?

  • How to delete Master data using Process Chain

    I need to delete data in respective data targets such as Infocubes, DSO’s & 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

  • Deleting PSA data  using process chain doesn't delete records from psatable

    Dear All,
    We have an issue where by the process chain runs and deletes the PSA records and upon checking that's what we thought it had done from the monitor but it didn't actually delete the records from the PSA Tables!
    Does anyone have any clues about this ?
    Thanks
    Craig

    Chetan,
    Yes you read correctly the actual table content for the PSA records are not physically removed.
    By monitor I meant the entry in the requests for PSA.
    It's a strange one for sure.
    Cheers
    Craig

  • Delete the data that is Loaded using BDC

    Hi All,
    We had loaded the data in SAP using BDC-Session Unfortunately.
    Now we want to delete all the  data which is loaded usong these sessions.
    Please can anyone know the procedure to do so.(May be using LSMW)
    It would be really great help.
    Thank you,
    Moderator message - Moved to the correct forum
    Edited by: Rob Burbank on Sep 16, 2009 3:31 PM

    can you tell me how you deleted the data using LSMW?  I'm trying to use LSMW to delete contents of telephone and fax fields in Vendor Master, using batch recording. I've tried it two ways; loading "blank" phone/fax values from text file, and just setting a a rule of constant (of null) for the telephone/fax field in the mapping step and leaving it out of the upload file. The import and convert steps look fine and display the fields as blank but the field contents are not cleared after I run batch. I used these same objects to load phone number values to these fields with no problem so I know there are no errors in mapping, etc. Is there a trick to deleting fields using LSMW processing steps to clear fields in vendor master?

  • How to delete the data in a table using function

    hi all,
    i need to delete the data in a table using four parameters in a function,
    the parameters are passed through shell script.
    How to write the function
    Thanks

    >
    But the only thing is that such function cannot be used in SQL.
    >
    Perhaps you weren't including the use of autonomous transactions?
    CREATE OR REPLACE FUNCTION remove_emp (employee_id NUMBER) RETURN NUMBER AS
    PRAGMA AUTONOMOUS_TRANSACTION;
    tot_emps NUMBER;
    BEGIN
    SELECT COUNT(*) INTO TOT_EMPS FROM EMP3;
    DELETE FROM emp3
    WHERE empno = employee_id;
    COMMIT;
    tot_emps := tot_emps - 1;
    RETURN TOT_EMPS;
    END;
    SQL> SELECT REMOVE_EMP(7499) FROM DUAL;
    REMOVE_EMP(7499)
                  12
    SQL> SELECT REMOVE_EMP(7521) FROM DUAL;
    REMOVE_EMP(7521)
                  11
    SQL> SELECT REMOVE_EMP(7566) FROM DUAL;
    REMOVE_EMP(7566)
                  10
    SQL>

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

  • I want to free up pc disk space. Can i delete app data/files from my pc now I use iCloud??

    Hi
    I have not been able to find a relevant thread, if there is one please direct me.
    Sorry if my use of jargon/process is not that clear.
    I am using iCloud.
    Can I, and how do I, delete app data from my laptop and keep all apps running normally and still on my ipad and ipod as they currently are?
    My computer is overflowing and I see iCloud as a chance to clear some hard disk space.
    If i delete the apps from my itunes browser on PC then it deletes them from my entire Itunes account. Can I just go into my itunes folder and delete the base application files?
    If I remove files/apps and I sync my devices using my pc for music/video/photos etc then will it pick up that the apps and app data is missing from my pc?
    Thanks in advance
    lach

    Im trying to get an answer to this same question. My poor pc is almost out of hard drive space bc of all the iphone backups pre icloud. I want to know if I go into the itunes file on my pc and delete all those files will they still be safe considering they are on icloud now? Its frustrating bc I cant seem to get an answer to this question. Have you come across any information on this issue since posting this question? Thanks so much!

  • Deletion of data of R/3 table using Web Dynpro

    Hi Experts,
    I have to delete some records from R/3 table CATSDB using Web Dynpro form. I am using BAPI_CATIMESHEETMGR_DELETE for this purpose. Can you please let me know the steps to accomplish this exercise.
    I have displayed the records of CATSDB using one custom made BAPI. Using this BAPI, I am able to display the data. I have created one button called "Delete Data" button on the form. I have called BAPIs using following code:
    public void onActionDeleteData(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionDeleteData(ServerEvent)
        wdThis.wdGetTimesheetCompController().executeBapi_Catimesheetmgr_Delete_Input();
        wdThis.wdGetTimesheetCompController().executeBapi_Transaction_Commit_Input();
    //@@end
    However, when I am selecting the record and trying to delete the record, record is not getting deleted. Can you please help me in resolving the issues? What is going wrong?
    Regards,
    Brian

    Hi Ashwani,
    I have checked the BAPI - BAPI_CATIMESHEETMGR_DELETE. I am unable to delete the record using even R/3 screen. For deleting the record, I have to provide following four parameters:
    PROFILE, TESTRUN, RELEASE_DATA and AGENT.
    I don't know what should be the value of TESTRUN, RELEASE_DATA and AGENT. I know only the value of PROFILE. From ABAPers, I have come to know that in order to delete the reccord I must provide the value of COUNTER. However, the BAPI,  BAPI_CATIMESHEETMGR_DELETE is not asking me to enter the COUNTER.
    Can you please let me know how to delete the record from BAPI using R/3 screen. After that I will try to delete record using Web Dynpro application.
    Regards,
    Brian

  • HT204053 I have a school ipad with iCloud using a different ID (my school email address) . I am leaving and want to buy my own ipad and transfer all my data and docs to my personal iCloud account but don't know how to do this without deleting all data and

    I have a school ipad with iCloud using a different ID (my school email address) . I am leaving and want to buy my own ipad and transfer all my data and docs to my personal iCloud account but don't know how to do this without deleting all data and photos?

    Heya Katie!!
    So, the article you have there, HT4895, is pretty good. Just look at the FAQ section of it.
    But basically, you will want to create a backup on your computer through iTunes...Just plug your current iPad into it and make sure your iPad and iTunes are logged in with the same Apple ID. At that point, just create a backup.
    When you get your new iPad, and before you plug it in or set it up, follow the directions in this link to change your Apple ID. http://support.apple.com/kb/HT5621?viewlocale=en_US
    Once you have that done, plug your new iPad into your computer to sync up with iTunes. Follow the directions for Restore from Backup and it should bring all that info back to your new iPad.
    And changing your Apple ID email info will allow you to have your own!!! This should solve all your issues and GL!!!

  • How to delete the data from KNVP without using the delete statement

    Hello friends,
    I have a requirement that I have to delete the data from KNVP table without using any delete statement. For it I have to use the Standard BAPI or any standard program.
    Can you please tell me the name of the standard program or BAPI to delete the data .
    Thanks in Advance
    Kuldeep

    Hello Raymond,
    I have use the function 'CUSTOMER_UPDATE' in which I only gives the data in T_XKNVP table only but still the data is not get deleting. Please see the code below.
    =============================================================
    REPORT  ZK_TEST2                                .
    data :
        I_KNA1     LIKE     KNA1,
        I_KNB1     LIKE     KNB1,
        I_KNVV     LIKE     KNVV,
        I_YKNA1     LIKE     KNA1,
        I_YKNB1     LIKE     KNB1.
    Data :
    T_XKNAS       LIKE     FKNAS occurs 0,
    T_XKNB5     LIKE     FKNB5 occurs 0,
    T_XKNBK     LIKE     FKNBK occurs 0,
    T_XKNVA     LIKE     FKNVA occurs 0,
    T_XKNVD     LIKE     FKNVD occurs 0,
    T_XKNVI     LIKE     FKNVI occurs 0,
    T_XKNVK     LIKE     FKNVK occurs 0,
    T_XKNVL     LIKE     FKNVL occurs 0,
    T_XKNVP     LIKE     FKNVP occurs 0 with header line,
    T_XKNVS     LIKE     FKNVS occurs 0,
    T_XKNEX     LIKE     FKNEX occurs 0,
    T_XKNZA     LIKE     FKNZA occurs 0,
    T_YKNAS     LIKE     FKNAS occurs 0,
    T_YKNB5     LIKE     FKNB5 occurs 0,
    T_YKNBK     LIKE     FKNBK occurs 0,
    T_YKNVA     LIKE     FKNVA occurs 0,
    T_YKNVD     LIKE     FKNVD occurs 0,
    T_YKNVI     LIKE     FKNVI occurs 0,
    T_YKNVK     LIKE     FKNVK occurs 0,
    T_YKNVL     LIKE     FKNVL occurs 0,
    T_YKNVP     LIKE     FKNVP  occurs 0 with header line,
    T_YKNVS     LIKE     FKNVS occurs 0,
    T_YKNEX     LIKE     FKNEX occurs 0,
    T_YKNZA     LIKE     FKNZA occurs 0.
    T_XKNVP-KUNNR     =     '7000002648'     .
    *T_XKNVP-VKORG     =     '0001'     .
    *T_XKNVP-VTWEG     =     '01'     .
    *T_XKNVP-SPART     =     '01'     .
    T_XKNVP-KZ      =     'D'     .
    append T_XKNVP to T_XKNVP.
    CALL FUNCTION 'CUSTOMER_UPDATE'
      EXPORTING
        I_KNA1        = I_KNA1
        I_KNB1        = I_KNB1
        I_KNVV        = I_KNVV
        I_YKNA1       = I_YKNA1
        I_YKNB1       = I_YKNB1
      TABLES
        T_XKNAS       = T_XKNAS
        T_XKNB5       = T_XKNB5
        T_XKNBK       = T_XKNBK
        T_XKNVA       = T_XKNVA
        T_XKNVD       = T_XKNVD
        T_XKNVI       = T_XKNVI
        T_XKNVK       = T_XKNVK
        T_XKNVL       = T_XKNVL
        T_XKNVP       = T_XKNVP
        T_XKNVS       = T_XKNVS
        T_XKNEX       = T_XKNEX
        T_XKNZA       = T_XKNZA
        T_YKNAS       = T_YKNAS
        T_YKNB5       = T_YKNB5
        T_YKNBK       = T_YKNBK
        T_YKNVA       = T_YKNVA
        T_YKNVD       = T_YKNVD
        T_YKNVI       = T_YKNVI
        T_YKNVK       = T_YKNVK
        T_YKNVL       = T_YKNVL
        T_YKNVP       = T_YKNVP
        T_YKNVS       = T_YKNVS
        T_YKNEX       = T_YKNEX
        T_YKNZA       = T_YKNZA
    =============================================================

  • On my iPad mini, it shows that there is 958 KB of data on it yet I've never used it. Is there anyway I can delete that data off my iPad mini?

    On my iPad mini, it shows that there is 958 KB of data on my photo stream it yet I've never used it. Is there anyway I can delete that data off my iPad mini?

    Hi Angela,
    I suspect it's background overhead used by TM leftover from this disk's TM days. Whatever it is, I don't know that there's a way to access it. To get rid of it, format the disk.

  • 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

  • Delete Power Query queries' custom XML data using VBA

    I have Power Query queries in an Excel 2010 file and would like to delete these queries using VBA. so far I can achieve that manually with the following steps:
    unload Power Query addin
    run Document Inspector and click to delete Custom XML data
    The Macro recorder record the following code for step 2.
    Sub Makro1()
    ' Makro1 Makro
    ActiveWorkbook.RemoveDocumentInformation (xlRDIPrinterPath)
    ActiveWorkbook.RemoveDocumentInformation (xlRDIDocumentProperties)
    ActiveWorkbook.RemoveDocumentInformation (xlRDIInactiveDataConnections)
    End Sub
    However, using this macro I do not achieve the same result (=PQ query code gone from the workbook).
    Any ideas on how to achieve the PQ query codes to be removed using VBA?

    On some cases Macro Recording is not complete, and misses to record the full set of VBA to automate the actions you record. This is probably such a case.
    We are looking into future ways to allow you automate Power Query cleanup.
    For the time being, please see if the
    Document Inspector interface can clean the custom XML data (which holds the Power Query data structures).
    thx, Gil.

Maybe you are looking for

  • How to convert class file to Java source code ?

    Hi All , Currently am working in Peoplesoft Demo project using java as Plug in.We have only the class files and jar files and we have planned to modify the code for future enhancements.We dont have any legal issues here as we are already working with

  • How do I change ownership on iTunes Match from one account to another?

    I purchased iTunes Match using one account but use another as my account for iCloud and my iPhone. How do I change ownership of my Match account?

  • IPhone 3G won't charge from USB port

    Suddenly I am getting an error sound (no message though) on my computer when I plug my iPhone into its USB port and it no longer charges the battery. I don't have iTunes on this computer (not allowed/work computer) but I have been using the USB conne

  • Failed to install Flash Player

    I have tried several times to download the most recent adobe flash player onto my computer.  However, when I click 'run' and get to the installation process at 50% installed it tells me I must close Internet Explorer to continue.  Even though I do th

  • TS3694 itunes errors when downloading to update iphone

    itunes starts to download 6.0.1 to update iphone4 but errors b4 done