on 05-22-2009 11:16 AM
Hi all,
in a transformation, how can i change the order in which the routine are executed?
Thanks
Stefano
Hi,
In the transformation, when you have update routines and start routines written, those are executed in some order. The order is displayed in the "Display generated program" under Extras in the menu bar.
Hope it helps!!!
Thanks
Lavanya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
As you know how to look at the order given in the "Display generated program", you cannot change the order of the field here in this program.
But, you can change the field level routine.
Suppose you have select statement in the start routine and you are trying to read values from the internal table which is declared at the global level in the start routine.
Now you will read the table only once ie in the field and you will populate the other fields but no need to read the table again and again for each field. So when you have read that table at the field level you will choose that field according to the field order in the " Display generated program". This will help you to change the order of the fields,
Hope it helps!!!
Thanks
Lavanya
Try this.
Use "Display generated program" to generate the code.
Copy and change the code so it is in the order you want and then create an expert routine and paste what you got into the expert routine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The routines in a transformation are processed in the order of the target fields (say the objects in DSO). Can u give us more insight on the objective u wanna acheive?
R$
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rupesh,
in one of my routines (Routine A) i populate the values of some variables, then in routine B i use the same variables to make some other calculation, now if routine B is executed before routine A then the update process won't give the desired result, so i need to make sure that routine B is alwais executed last.
Regards
Stefano
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
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.