on 10-30-2014 9:13 AM
Hi all,
after seeing and s presentation at the sitMuc I started to play around with BRFplus again. I'm currently trying to implement what is though was a simple requirement. However, after several days of experimenting, reading an thinking I still cant get it to run. What I'm trying to do is the following.
Key | Value |
---|---|
Key1 | Value1 |
Key2 | Value2 |
Key2 | Value3 |
What I did so far is to create Table Operation Expressions to check if only one entry with Key1 is present (expressions IS_KEY1_PRESENT) and if the optional Key2 is present (expression IS_KEY2_PRESENT). Furthermore, I created Table Operation Expressions to select and return the line containing Key1 (expression GET_KEY1_ENTRY) and Key2 (expressions GET_KEY2_ENTRY) respectively.
That is where I'm stuck now. Conceptually I'd first need to create rules or expressions to work with the results of GET_KEY1_ENTRY and GET_KEY2_ENTRY. Next I would need to combine the expressions somehow (e.g. by using a ruleset or a decision tree) in order to check my validity rules.However, I could not figure out a way of doing this.
Could somebody please suggest how to design the expressions and rules for what I'm trying to do?
Thanks,
Christian
ps.: I'm working on a 7.40 system.
Hi Christian
as far as I understand your scenario you are on track 🙂
So here is a proposal for a "design":
Now you have made the basic checks and have the corresponding table lines to do the further checks
Hope that helps
BR
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Christian,
thanks for for the help. I've one more questions. In order to store the results of the select table expressions I need some kind of variable. That means I have to add the structures to the context of the rule set. However, I haven't been able to create two variables with the same structure in the context of the rule set (one for each select table expression).
What is the best approach to do this?
Christian
Hi Christian,
to store this data I would use the (local) variables of the ruleset (not the global context).
Concerning the multiple assignement: yes this is indeed the case. So I would create two distinct dataelements (sounds a bit strange but I did not yet find a better way). If you use DDIC binding you can for sure assign the data objects to teh same DDIC type which causes a little less overhead for you.
BR
Christian
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.