Skip to Content
0
Former Member
Jan 08, 2008 at 08:20 PM

Complex rules in HR forms (transaction PE51)

669 Views

Hi there. I am trying to create a rule in our rem statement form so that the following conditions will apply to a field:

- if the value of the field is non-zero, it will always be displayed

- if the value of the field is zero, it will only be displayed if the value of three other fields is also zero

I know that you can link lines of a rule together, but I don't think I have mine set up correctly yet. Here is what I have:

Rule No Cont. Table Field Type Cond. Value1

ZC 1 TAX NBREX N NE '0

ZC 2 * TAX ADEXN N EQ '0

ZC 3 * TAX DEPEX N EQ '0

ZC 4 * TAX PEREX N EQ '0

ZC 5 TAX NBREX N EQ '0

The field NBREX is the one that I'm trying to control the display of. I have applied the rule to the correct field on my line layout, but the value is always displaying - even if the value of NBREX is zero and one or more of the other fields is non-zero. Any ideas on what I need to do to fix this? I checked the documentation, and it doesn't help. The example it provides is a simple one-line rule. Thanks in advance for your help.

- April King