The file extract below illustrates nested conditions using the example of the document header table:
...
<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>
...
In terms of propositional logic, the file extract shown corresponds to the following condition:
ERDAT and ERZET contain the creation time
and
VBTYP is C or V
and
((VKORG is equal to 1000 and VKBUR is equal to 0041) or (VKORG is equal to 2000 and VKBUR is not equal to 0060)).