Code: Alles auswählen.
select * from bsad appending table gt_bsid
where ...
and augdt > p_stida
and budat <= p_stida.
EDIT: Nicht vergessen! Die Haben-Posten ins minus drehen.
if bsid-shkzg = 'H'.
bsid-dmbtr = 0 - bsid-dmbtr.
endif.