Switching Update Type in Update Rule Routine

Question: Hi, anyone has any ideas whether there's any abap syntax we can use in update rules routine to switch the Update Type (i.e. overwrite, addition, no update, minimum)?

Our scenario requires a flexibility in changing the update type manually during loading, depending on conditions passed.

Any clue?

Thanks

Answer:
Can't you manage this in the datasource or in a start routine ?
_________________
When my car stops, I first look at the gasoline's level before dismounting the engine.


Tuly Idiot's fan club active member.

Answer:
You can simulate it :
put overwrite everywhere ,

if you need "addition" first read the value in the ods, then add up the value you upload, and overwrite
if you need "no update" first read the value in the ods, then pass it to overwrite the current value with the same value,
...

Ch

Answer:
Hi
better have different update rules depending upon conditions.

Answer:
Hi CHC,

Thanks for your reply. So, you mean that we have to do a SELECT statment to the target infoprofider first then do calculation in the start routine. Is there any other way to just change the Update Type without having to read from the targeting ODS? Thanks.

Answer:
I don't think (which usually means I am 98% sure) you can change this setting "on the fly" :
when you change the chek box from "overwrite" to "addition", for instance, you are changing the whole update program that is generated when you activate the update rule.
What you are speaking about is using one generated routine or another, depending on a flag, while in fact only one of the routine is generated at a time.

Ch
Copyright ?2007 - 2008 www.jt77.com