Code: Alles auswählen.
SELECT * INTO TABLE i_konp
FROM konp
FOR ALL ENTRIES IN i_a006
WHERE knumh = i_a006-knumh
AND konwa = 'EUR'
AND loevm_ko = ''
and kbetr = ''.
Code: Alles auswählen.
SELECT * INTO TABLE i_konp
FROM konp
FOR ALL ENTRIES IN i_a006
WHERE knumh = i_a006-knumh
AND konwa = 'EUR'
AND loevm_ko = ''
and kbetr NE ''.
Code: Alles auswählen.
SELECT * INTO TABLE i_konp
FROM konp
FOR ALL ENTRIES IN i_a006
WHERE knumh = i_a006-knumh
AND konwa = 'EUR'
AND loevm_ko = ''
and NOT ( kbetr EQ '' ). "<<< Bedingung umdrehen
Code: Alles auswählen.
loop at i_konp.
delete i_konp where kbetr NE ''.
endloop.
Code: Alles auswählen.
SELECT * INTO TABLE i_konp
FROM konp
FOR ALL ENTRIES IN i_a006
WHERE knumh = i_a006-knumh
AND konwa = 'EUR'
AND loevm_ko = ''
and kbetr NE 0. "sorgt für eine Typumwandlung ??
Code: Alles auswählen.
...........
and kbetr IS NOT NULL.
Code: Alles auswählen.
...........
and kbetr in seltab.
Code: Alles auswählen.
CHECK i_konp-kbetr NE ''.