ABAP 7.40 added the line_exists( ... )
predicate function to analyse internal tables. But is there any way I can check for the presence of a line where a particular column is initial or different from a target value?
For instance, how can I check for a line with an initial Material column like the third line in this table?
Document Country Material
9001287 US 198572111
9001296 FR 160023941
9001297 EG
9001299 DK 873001102
I could check for Danish entries with line_exists( lt_itab[ Country = 'DK' ] )
and line_exists( lt_itab[ Material = '' ] )
is valid but neither <>
nor NE
seem to be accepted. There also seems to be no way to check for lines where the country isn't 'FR' for instance?
If there's no way to do this with line_exists
, what would be the most condensed alternative approach?