on 11-10-2010 7:21 AM
Hi,
How to check whether entry is present in decision table or not in rule script?
Say I have only condition as A (Type string) and one action as B(Type boolean). Now if i want to check whether an entry exist in DT by using Evaluate Decision table by filling value of 'A', then value of 'B' would be false if either A is found in table with B value as 'false' or A is not at all found in table. How can i distinguish these two?
Regards,
Dhana
Hi Dhana,
I am not clear on your request. If i understand it correctly, your rules are something like this - If DT does not contain a particular condition value of A, then B is false. Else B is true. Am I right?
Or are you asking if the condition types and action types used in a DT can be retrieved and compared at run time during rule evaluation? i.e to check whether or not A is used in the DT as a condition value?
If it is the first case - you can make use of the special character (*) asterix which indicates "any value" to do this comparison. For the second case mentioned above, retreival of such information at run time is not possible.
Best Regards,
Arti
Edited by: Arti Gopalan on Nov 11, 2010 11:00 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Arti,
Thanks for reply.
Yes I need something like first case only. I tried using special character ( * ) . But decision table is not returning any record in this case. Will this special character work? I didnt see any documentation about passing special character for DT evaluation.
Regards,
Dhana
Hi Dhana,
Yes, the special character works.
Check out this help document - http://help.sap.com/saphelp_nwce72/helpdata/en/60/9edb034ebc40fc80ebe57d4c8dc166/frameset.htm
Here, in the example the use of the special character can be observed.
Best Regards,
Arti
User | Count |
---|---|
76 | |
10 | |
8 | |
6 | |
6 | |
5 | |
5 | |
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.