Copy update rules from one InfoSource to another one
I have a DataTarget "A" connected to InfoSource "X" through Update rules. I also have another InfoSource "Y". "X" and "Y" have IDENTICAL Communication structures. I know how to copy the Update rules between "X" and "A" to a new DataTarget "B", but this is not what I want to do. I want to copy the Update rules between "A" and "X" to create Update rules between "A" and "Y". Any idea how to do that? If there is no way to do it in the Warehouse Management I am pretty sure it can be done in ABAP (the "copy" method of the cl_rsau_updr class seems to support it...). Has anybody successfully written something to do it?
For those that are curious about why I want do to that, here is the story. I added an ODS between an InfoSource and a Cube. I just want to move the Update rules between the InfoSource and the Cube one level up, between the ODS and the cube. And no, I do not want the processing in the Update rules to happen between the InfoSource and the ODS (in which case I would copy the Update rules as I already know how to do), I want it between the ODS and the cube...