Hi,
If I understand correctly, what you want is the folowing:
IF
(
DET_LEVEL( 'ZMATNR' ) = 1
OR
DET_LEVEL( 'ZSOMATNR' ) = 1
)
OR
(
DET_LEVEL( 'ZMATNR' ) = 1
AND
DET_LEVEL( 'ZSOMATNR' ) = 1
AND
DET_LEVEL( 'ZDISCHNL' ) = 1
)
[...]
ENDIF
Please note the four parenthesis. The first two parenthesis contain the original question (either product or sales organization at detailed level), the third and four parenthesis contain the new question, where the three conditions must hold simultaneously (product, sales organization and distribution channel) in order to continue.
Thanks,
J.