on 06-19-2006 7:38 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vani,
If you know the specific order number then you dont 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.