Abap Code to Delete the Duplicate Entries in Datasource

hI Friends I have a code that I am writing to delete the duplicate entries from CRM Custom Datasource  but it is throwing me error that INVERNO The specified type has no structure and therefore no component called INVERNO Should i define the structure please correct my code below so that it will work to delete the duplicate entries          
Please help
Data: l_s_ZOXD530051 like ZOXD530051. ***Extract Structure of Data source
Case i_DATASOURCE.
when 'ZZ_DS_CUSTOM_CRM_VALUES'.
Sort C_T_DATA by INVERNO ZMKT_TYP.
*write this Statement.
DELETE ADJACENT DUPLICATES FROM C_T_DATA COMPARING INVERNO ZMKT_TYP.
endcase.
Thanks
Soniya
null

Hi
It means there's no field called INVERNO:
Data: l_s_ZOXD530051 like ZOXD530051. ***Extract Structure of Data source
Case i_DATASOURCE.
when 'ZZ_DS_CUSTOM_CRM_VALUES'.
<b>*Sort C_T_DATA by INVERNO ZMKT_TYP. <------</b>
Sort C_T_DATA by INTRENO ZINS_TYP.
*write this Statement.
DELETE ADJACENT DUPLICATES FROM C_T_DATA COMPARING INTRENO ZINS_TYP.
endcase.
Max

Similar Messages

  • TS4118 My calendar entries are not duplicated in either iCloud, or iPad - but are duplicated on my iPhone.  How do I stop this, and also how do I delete the duplicates???

    My calendar entries are not duplicated in either iCloud, or iPad - but are duplicated on my iPhone.  How do I stop this, and also how do I delete the duplicates???

    mervrich,
    Use the "Troubleshooting iOS devices" link in iCloud: Troubleshooting iCloud Calendar.

  • After restoring my 3Gs I now have duplicate--sometimes triplicate calendar entries. How can I delete the duplicates from the phone?

    On the info tab I'm told that my calendar is being synced through MobileMe and directly with the computer resulting in duplicated data. How do I prevent that? And how do I now delete the duplicates from the phone?
    I notice that the entries from the computer show "Busy" in the status while the others--probably from MobileMe-- do not.
    Ron

    Solved the problem...I think. In the Calendar app I clicked on the Calendars button. There I found, under Show All Calendars "From My Mac." There I found not only the calendars as they appear in iCal and MobileMe, but the same items with brackets containing my MobileMe address plus other info that isn't visible enough to see what it is (looks like "@calendar).
    Ron

  • Deleting the duplicate records

    Hi all,
    I have some duplicate records in the PSA . and i want to delete the duplicate records before the data is entered into the data target. Can anybody tell me how to achieve this.
    Actually i need to achieve this  by using the ABAP code.
    Thanx & Regards,
    RaviChandra
    Edited by: Ravichandra.bi on Mar 5, 2012 3:37 PM

    Hi Ravi,
    If its a full load to the PSA and because of it you are getting duplicate records and you want to eliminate them,
    you can do what  Anshul and Durgesh suggested.
    Write the code in the start routine of the transformation to your target
    SORT SOURCE_PACKAGE BY KEY1 KEY2 KEY3. "(The key will be the key of your target)
    DELETE ADJACENT DUPLICATES FROM SOURCE_PACKAGE
          COMPARING KEY1 KEY2 KEY3.
    Hope this helps
    Regards,
    Joe

  • To eliminate the duplicate entries while looping into final internal table

    Hi friends,
    IAam facing the follwoing problem.
    Get Shipment for the Delivery number
          SELECT tknum
                 vbeln
                 INTO TABLE lt_vttp
                 FROM vttp
                 FOR ALL ENTRIES IN lt_vbfa
                 WHERE vbeln = lt_vbfa-vbelv.
        IF sy-subrc EQ 0.
          SELECT vbeln kunnr
                 FROM likp
                 INTO TABLE lt_likp
                 FOR ALL ENTRIES IN lt_vttp
                 WHERE vbeln = lt_vttp-vbeln.
      endif.
    now iam my internal table lt_vttp i have following values
       shipment             delivery
          1000                  2000
          1000                 2001
    in my internal table lt_likp i have the follwoing values
          delivery              shipto
           2000                  ABC
           2001                  ABC
    now iam looping those values in a final internal table.
      LOOP AT lt_likp INTO ls_likp.
        CHECK sy-subrc EQ 0.
         READ TABLE lt_vttp INTO ls_vttp WITH KEY vbeln = ls_likp-vbeln BINARY SEARCH.
        CHECK sy-subrc EQ 0.
             SELECT SINGLE * FROM vttk INTO ls_vttk
                    WHERE tknum = ls_vttp-tknum.
                  CHECK sy-subrc EQ 0.
                APPEND ls_vttk TO lt_vttk.
       endloop.
    Now my problem is if the shipment is same and the shipto is same then need to eliminate the duplicate records.
            in internal table iam getting 2records with same shipment and shipto combination.
           but instead if both the shipment and shipto are same then i should elimate the duplicate entries.
    and for the same shipment if i have differnt shipto then i neeed those 2 value.
    can any body tell me how can i get that.
    Regards
    Priyanka.

    Hi Priyanka,
    In your code you are using seelct statement inside the loop which will affect the performance.
    So, declare a another internal table which contains your both shipment and shipto elements with other required fields, say the name is lt_new.
    sort lt_new by shipment shipto.
    delete adjacent duplicates from lt_new comparing shipment shipto.
    "then use for all entries to choose values from VTTK.
    Hope this helps you.
    Regards,
    Manoj Kumar P

  • How to delete the duplicate data  from PSA Table

    Dear All,
    How to delete the duplicate data  from PSA Table, I have the purchase cube and I am getting the data from Item data source.
    In PSA table, I found the some cancellation records for that particular records quantity  would be negative for the same record value would be positive.
    Due to this reason the quantity is updated to target but the values would summarized and got  the summarized value  of all normal and cancellation .
    Please let me know the solution how to delete the data while updating to the target.
    Thanks
    Regards,
    Sai

    Hi,
    in deleting the records in PSA table difficult and how many you will the delete.
    you can achieve the different ways.
    1. creating the DSO maintain the some key fields it will overwrite the based on key fields.
    2. you can write the ABAP logic deleting the duplicate records at info package level check with the your ABAPer.
    3.you can restrict the cancellation records at query level.
    Thanks,
    Phani.

  • How to delete the total entries in ztable

    Hi ,
    How to delete the total entries in ztable...
    code pls.
    regards,

    Hi Venkat,
    pls see below records,
    Plant  Material                       Alternate material
    3770  00000000000126875          2020202
    3770  000000000005999335        2020202
    3770  117196                           2020202
    3780  00000000000126875           2020202
    3784  00000000000126875         2020202
    3784  000000000002809336       2020202
    3784  000000000005999335        2 020202
    3789  00000000000126875            2020202
    if  i write below syntax ,
    delete from ztable where matkl = '2020202'.
    all records contains  matkl = '2020202' will be deleted ??
    pls. reply.

  • How can we Delete the Duplicate AUC or reverse AUC Valueswith out hiting GL

    Hi,
    we have the Dulicate AUC which are having  Duplicate AUC asset balances.
      We have been excluding the AUC assets when we run reports ever since in order to tie out to GL.  It would be best if we can either reverse them out or load some offsetting balances without making any postings to GL.  
    I'd like to clear it up though, so we don't need to modify the reports to agree with GL.
    Thanks and Regards,
    T.Harish Kumar

    Harish,
    As others said, its not possible to reverse/Delete the duplicate AUC postings. But I can suggest you a way to get your subledger tie-out to your Ledger balance.
    First, reverse your duplicate AUC postings. The entry posted will be Debit Gain/loss account and Credit AUC asset account
    Secondly, using OAMK set the AUC GL account to blank and post entries to the GL account alone. The entry should be Debit AUC GL account (not the asset account) and Credit Gain/loss account.
    Finally, again go to OAMK and reset the AUC GL account. Then check the ledger balances to the subledger. It should tie-out.
    Also, please be careful if you have to make any settings in your system before posting the 2nd entry.
    Regards,
    Vinod

  • HT2905 Most all of my 1700 songs have been duplicated in iTunes. I have downloaded the instructions how to delete the duplicates but it says "sort by the date you added" and i have no column that says that. I am running windows xp.

    Most all of my 1700 songs have been duplicated in iTunes. I have downloaded the instructions how to delete the duplicates but it says "sort by the date you added" and i have no column that says that. I am running windows xp.

    Apple's official advice is here... HT2905 - How to find and remove duplicate items in your iTunes library. It is a manual process and the article fails to explain some of the potential pitfalls.
    Use Shift > View > Show Exact Duplicate Items to display duplicates as this is normally a more useful selection. You need to manually select all but one of each group to remove. Sorting the list by Date Added may make it easier to select the appropriate tracks, however this works best when performed immediately after the dupes have been created.  If you have multiple entries in iTunes connected to the same file on the hard drive then don't send to the recycle bin.
    Use my DeDuper script if you're not sure, don't want to do it by hand, or want to preserve ratings, play counts and playlist membership. See this thread for background and please take note of the warning to backup your library before deduping.
    (If you don't see the menu bar press ALT to show it temporarily or CTRL+B to keep it displayed)
    tt2

  • Counting the duplicate entries without looping itab.

    Hi ,
    I want to count the duplicate entries in  itab without looping
    the itab.
    can any one help me....

    If you just want to know the number of duplicate entries:
    DATA:
      zlt_itab1 TYPE ....
      zlt_itab2 LIKE itab1,
      zlv_lines TYPE i,
    *-Copy table
    zlt_itab2 = zlt_itab1
    *-Sort on field to count duplicates:
    SORT zlt_itab2 BY <field for counting duplicates>
    *-Total number of lines:
    zlv_lines = LINES( zlt_itab2).
    *-Remove duplicates:
    DELETE ADJACENT DUPLICATES FROM zlt_itab2.
    *-Calculate number of duplicates:
    zlv_lines = zlv_lines - LINES(zlt_itab1).
    Regards,
    John.

  • HT4915 When i did my itunes match, there were some duplicated albums and songs.  I have gone into my library and deleted the duplicates, but they still show up on my iphone as duplicates.  What can i do to get rid of them?

    When I did my itunes match, there were some duplicated albums and songs in my library.  I have gone back into my library from my computer, and deleted the duplicates.  When I did so, itunes did not ask me if I wanted to delete them from the cloud.  They are still showing up on my iphone as duplicates in the cloud.  What can I do to get them from showing up in my iphone?

    They are not on the iphone in the first place.  It is just a setting that allows you to see the songs that are available in icloud, but not on your iphone.  If you turn the setting to off, then you no longer see the songs that are in icloud, but NOT on your iphone.

  • How to delete the duplicate email address in BP master data

    Hi,
    When  you get an email ids from the third party vendor and you are loading into CRM BP master data.  how to delete the duplicate email address already exits in the system.  In CRM you can create the same BP with different id.   I would like to know how to delete the email address during importing email addresses from the third party tool.
    During the campaign you are sending email to all your customers, when the customer want to unsubscibe the email address from your list, how to unsubcribe the email address and how to updat the BP master data. 
    If you are sending the email to customer, you are using html or simple text, if the customer wants only html or simple text, how you to specify in the system?
    thanks,
    arul

    Hello Arul,
    welcome to the SDN CRM Development forum.
    1. I think you should clear the data with duplicate E-Mail adresses in the external tool.
    2. Unsubscription could be done by a Marketing Attribute which could be set by using a Target Group which is created by Campaign Automation. Have a look at this Toppic. There is also a Best Practice avaliable at http://help.sap.com/bp_crmv340/CRM_DE/index.htm.
    3. Also HTML or Simple text can be mained in a Marketing Attribute. You have to use different Mail Forms to which are sent to different Target groups.
    Regards
    Gregor

  • I just upgraded to the latest version of iTunes and it duplicated virtually every track in my music library. I need a quick way to delete the duplicates. Sorting by "Date Added" will not help because they are all listed as added on 12/12/2011.

    Library Duplicated
    I just updated to the latest version of iTunes and it duplicated virtually every track in my library. I need a quick way to delete the duplicates. Sorting by "Date Added" will not work, because every track is listed as added on 12/12/2011 even though this happened today 12/19/2011.

    I've written a script called DeDuper which can help remove unwanted duplicates. See this  thread for background.
    tt2

  • How to delete the duplicate records in a table without promary key

    I have a table that contains around 1 million records and there is no promary key or auto number coulums. I need to delete the duplicate records from this table. what is the simple effective way to do this.

    Please see this link:
    Remove duplicate records ...
    sqldevelop.wordpress.com

  • How to delete the duplicate requests in a cube after compression.

    Hi experts,
        1. How to delete the duplicate requests in a cube after compression.?
        2. How to show a charaterstics and a keyfigure side by side in a bex query output?
    Regards,
    Nishuv.

    Hi,
    You cannot delete the request as its compressed as all the data would have been moved to E table ..
    If you have the double records you may use the selective deletion .
    Check this thread ..
    How to delete duplicate data from compressed requests?
    Regards,
    shikha

Maybe you are looking for

  • Error Message: JBO-25009: Cannot create an object of type:oracle.jbo.domain

    Hi, When im giving a default value to a date column in the attribute settings i get this error when im running my jsp page (bc4j web application): Error Message: JBO-25009: Cannot create an object of type:oracle.jbo.domain.Date with value: 31-dic-209

  • Having issues with WRT350n - "No internet Access"

    I am having issues with the WRT350n where I am getting an "No internet access" message. When I look at the wireless network connection I can see the wireless router and it says "connected" but when I scroll my mouse over the icon, it reads "No intern

  • Can I get back up discs for adobe software that is pre-installed on a computer?

    I am thinking of buying a used Mac, with Master Collection pre-installed on it. Trouble is, it doesn't come with the discs. Can I get a back-up disc of the Adobe software if I have the license? I have bought used Adobe software before and had the lic

  • Bit rate preference

    Do you prefer keeping your music at a specific bit rate? I use to keep all mine at 128kbps so I could fit more onto my iPod, but I soon found out that when I played those files on my stereo (loudly, of course) that there was a fair bit of distortion.

  • Run 10g report (RDF) as a portlet ???

    i have a report RDF on 10g developer i want to publish it in portal as a portlet, how can i make it? thanx a lot in advance