on 03-26-2007 4:59 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.