cancel
Showing results for 
Search instead for 
Did you mean: 

Sequence of execution of routines in a Transformation

Former Member
0 Kudos

I have created a transformation with a number of ABAP routines and need to be able to pass data between these in global variables. This requires that the routines are executed in a specific order. In update rules it was always from top to bottom routine, however in the transformation it appears that they are executed in the sequence they were created.

Can anyone confirm this and let me know it there is a way to change this sequence without deleting the routines and recreating in the correct sequence??

Obviously if not I can derive everything a one routine, but this will become a bit unwieldy, so keeping the seperate routines would definately be best.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

I hope, we can use the endroutine for this pupose. We complete the necessary mapings for source fields of endroutine in transformations. And then we use Endroutine for calculating the remianing target fields from the mapped(though the transformations) target fields.

With rgds,

Anil Kumar Sharma .P

Former Member
0 Kudos

Agreed

The graphical stuff in the transformation is so slow to use and inflexible. This sequencing issue is a big pain too.

I have been considering forgetting the rules and just doing things in end-routines & expert routines. The few that I have written have been so much faster to work with.

Expert routines in particular are excellent because all you have to do is map Source_package fields to result_package info objects with conversions on the way.

There are two downsides with Expert Routines though: a small annoyance is you need to code your own time characteristic mappings and a bigger one is monitor entries which have to be done in a new OO way rather than append monitor_rec to monitor.

GB

Former Member
0 Kudos

Hello,

You can check the sequence of the execution by looking at the Generated Program. You can find that program when you open Transformation on the "Extra" menu.

Try to modify your program there.

Regards,

Pradeep

Former Member
0 Kudos

Pradeep,

Yes I can see the sequence of execution of the routines, but even if I change the program, the original sequence is restored if I activate the transformation again.

I need a way to permanently change the sequence.

Regards,

Mark.

Former Member
0 Kudos

Hi Mark

This is a pain in NW2004s and I remember battling with it in version 3.x.

I experimented with the process putting them in, taking them out, reactivating etc and looked at the generated program to see how it behaves.

Routines are executed after other types of rule but the order of the routines themselves depends upon the order which you created them. In other words, if you create 3 then activate the transformation, they will be ordered together. If you add another 3 later they will follow in a block after the first 3 and so on.

Thus to get it right first time you need to put them in in the correct order...

After learning this I've just "repaired" a ill-sequenced transformation by laboriously deleting the routines, reactivating it and then putting them back in the order I want them and reactivating again.

It would be nice to have a sequencing feature.

Let me know if you find out anything different.

GB