Hi all!
I am currently working on building a framework to calculate and set characteristics of the customer order with the object dependencies.
A good summary, introduction and example of the existing possibilites with variant functions you can find here:
Variant Functions with an example
Thats quite useful when you need some extended functionality like string concatenation, nevertheless it is not very generic.
In the example you can concatenate strings and write the result into a specific characteristic, you cannot use this function for another characteristic. In my current project some further requirements are necessary:
- on a new characteristic, the user needs not to implement another ABAP function coding or variant function, the ideal solution is that he has only to write the generic variant function in the object dependencies
- in a configuration table the user can use and combine the existing customer order characteristics
- this configuration allows to define different formulas depending on the customer order characteristics
- ...
Does anybody know of an existing solution which fulfills this or some of this requirements?
Therefore I was thinking about:
- a generic variant function which allows to define the key of the result characteristic which enables the user to define it directly in the object dependencies (already done)
- a configuration mechanism where the user can define a string evaluation formula (combination of the input characteristic) depending on the input characteristics.
The result from the user point of view will be a table like this where he can ajust and expand the values to his needs (ie. in a dynpro).
Id | Result characteristic | Match-Condition | Result-Formula |
---|---|---|---|
1 | LABEL | PRODUCT = 'Workstation' | PROCESSOR & ' | ' HARD_DISK & ' | ' RAM |
2 | LABEL | PRODUCT = 'CPU' | PROCESSOR & ' | ' RAM |
3 | DELIVERY_NOTE | PRODUCT = 'Workstation' OR 'CPU' | 'This product contains a harddisk with ' & HARD_DISK & ' GB' |
4 | DELIVERY_NOTE | PRODUCT = NOT('Workstation' OR 'CPU') | 'General info - RAM included ' & RAM & ' GB' |
5 | ... | ... | ... |
I am thankful if you could share any experience of similar projects or recommendations in this area.
Thanks, Andreas