on 07-29-2014 10:11 AM
How can I implement a table with a unique key property in BRF+ or make a table compliant to some unique key constraint?
Use case:
Normally I would use a HASHED or SORTED TABLE WITH UNIQUE KEY name for this, but BRF+ tables are STANDARD TABLE internally, even when bound to a DDIC table.
Right now I and INSERT only if not.
Since I do not need the table during the intermediate steps, an easier approach could be to SORT the table and then DELETE ADJACENT DUPLICATES. Table operations can sort, but the Table Operations expression does not seem to offer the duplicate deletions.
Hi Jürgen,
you are right. Within BRF+ there is operation like „delete adjacent duplicates“ nor in the table operation expression neither in any other expression (leaving out an procedure call expression that calls ABAP coding).
I am not 100% sure if I understand your use-case completely, but I give it a try how I would solve the requirement: I guess each expression corresponds to a rule within a ruleset. In order to check which rule has to be executed the “IF”-statement of the rule is used. The condition checks if the input parameters meet the condition for the rule execution.
In addition you need a control table (CT1) which contains the information entity name (as unique identifier), expression ID (I would guess that this is an expressive ID like “Derive xyz”, not the GUID) executed for entity (yes/no) and a second control table (CT2) where the information is stored if the entity has to be persisted or not.
The flow would then be:
Hope that helps (and also that I did not get you completely wrong)
BR
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Christian,
that's pretty much my requirement and my current solution. (Have you been on my system?! ).
Anyways, important thing is you said that DELETE DUPLICATES is not in BRF+ right now, thus sparing me the embarrassment of having overlooked yet another feature.
I'll consider doing an OSS on this one.
Thx a lot
Jürgen
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.