Komplexe Bedingungen

Der folgende Dateiauszug veranschaulicht verschachtelte Bedingungen am Beispiel der Belegkopftabelle:

...

<docreftable tablename="VBAK">

<booleancondition logicaloperator="AND">

<condition fieldname="ERDAT#-#ERZET"

logicaloperator="creationtimestamp">

<value>yyyyMMdd</value>

<value>HHmmss</value>

</condition>

<condition fieldname="VBTYP" logicaloperator="in">

<value>C</value>

<value>K</value>

</condition>

<booleancondition logicaloperator="OR">

<booleancondition logicaloperator="AND">

<condition fieldname="VKORG" logicaloperator="eq">

<value>1000</value>

</condition>

<condition fieldname="VKBUR" logicaloperator="eq">

<value>0041</value>

</condition>

</booleancondition>

<booleancondition logicaloperator="AND">

<condition fieldname="VKORG" logicaloperator="eq">

<value>2000</value>

</condition>

<condition fieldname="VKBUR" logicaloperator="neq">

<value>0060</value>

</condition>

</booleancondition>

</booleancondition>

</booleancondition>

...

</docreftable>

...

Aussagenlogisch entspricht der gezeigte Dateiauszug der folgenden Bedingung:

ERDAT und ERZET enthalten den Erstellzeitpunkt
und
VBTYP ist C oder V
und
((VKORG ist gleich 1000 und VKBUR ist gleich 0041) oder (VKORG ist gleich 2000 und VKBUR ist ungleich 0060))