cancel
Showing results for 
Search instead for 
Did you mean: 

How transfer routine are processed in transformation?

former_member285493
Participant
0 Kudos

Hi all,

in a transformation, how can i change the order in which the routine are executed?

Thanks

Stefano

Accepted Solutions (1)

Accepted Solutions (1)

former_member200211
Active Participant
0 Kudos

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

former_member285493
Participant
0 Kudos

Hi,

yes i know how to look at the order, it's just i don't know exactly how to change it without deleting the rules.

Regards

Stefano

former_member200211
Active Participant
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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$

former_member285493
Participant
0 Kudos

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