cancel
Showing results for 
Search instead for 
Did you mean: 

Check for entry existence in Decision table

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

artigopalan
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

Former Member
0 Kudos

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

artigopalan
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

Former Member
0 Kudos

Thanks for the link

Answers (0)