Hi,
We have a select statement in our program, which picks up a bunch of pricing line items from DBERCHZ3.
Data : c_1001 type e_preis value '0000001001'.
SELECT belnr nettobtr preisbtr INTO TABLE i_price
FROM dberchz3
FOR ALL ENTRIES in i_erch
WHERE
belnr = i_Erch-belnr and
preis = c_1001.
But in some cases, it is not returning all entries.
For example,
We have two billing documents, with the same kind of line items. (two records that meet the conditions)
For the first document it is working fine and fetching both the records.
For another document, it is picking up just one record.
When we check the SQL trace, it shows '2 Hits' in both cases.
But the internal table i_price has just one entry filled into it for the second case.
Any idea what could be causing this problem.
Cheers,
Pavan.