Skip to Content
author's profile photo Former Member
Former Member

Delete Duplicate rows in Data Package based on selection

Hello experts,

I have the data coming from Oracle using DB_Connect. The data has duplicate order no. I need to delete the duplicate rows in the data package based selection before updating the data target.

I am thinking of writing this in updaterule start routine. I would greatly appreciate any sample code on selective deletion of data package rows.

Thanks a lot!

Sri

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Jun 19, 2006 at 08:29 PM

    Hi:

    Since you are not assigning an InfoObject and for performance, you should write this code in the Start Routine of "Transfer Rules", NOT Update Rules.

    So, you should use 'DATAPAK' instead of DATA_Package.

    DELETE ADJACENT DUPLICATES FROM DATAPAK COMPARING PROCESSID.

    Here, PROCESSID is the Technical FIELD name from your DB COnnect View.

    Hope this helps.

    Ram Chamarthy

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2006 at 06:42 PM

    Sri Vani,

    Create a Start Routine for this.

    use <b>DELETE DUPLICATES FROM DATA_PACKAGE COMPARING <ORDER NUMBER TECHNICAL NAME>.</b>

    include soem more fields if you want to compare.

    all the best.

    Regards,

    Nagesh Ganisetti.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2006 at 06:48 PM

    Hi Vani,

    If you know the specific order number then you don’t need to write a routine and you could do this with selective deletion option either in ODS or cube. This is what you are look for?

    Hope this helps you,

    Bye,

    Naga.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Nagesh,

      Thanks for your reply.

      Do I need write this in Update Start routine?

      Another thing the order number field is coming from source system. Currently we are not mapping/assingning to InfoObject. In other words we are not seding order no to data target.

      In my query can I write something like this...

      DELETE ADJACENT DUPLICATES FROM DATA_PACKAGE COMPARING DATA_Package-OrderNo

      Thanks a lot!

      Sri

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.