I get a internal table from a Function Module call that returns ~ 100 rows. About 40% of the rows are not relevant to me because I only need the entries with PAR1 = "XYZ"
.
On SQL tables (transparent tables), I can use a
select count(*) from tab where PAR1 = "XYZ"
to get the number of valid entries.
Looking at the documentation, all I could find was the READ Table syntax to iterate through the table. My current approach is to basically have a loop and increase if the row contains the value I want. But this seems very inefficient.
Is there a better approach for my requirement?
IF REDUCE...
) so you don't need to declare any variables. Though be careful: technically this declares bothx
andwa
, though only once meaning that you can have multipleREDUCE
expressions using the same result and work area variable names. – Clotilde