Code: Alles auswählen.
* Clustertabelle RFBLG beinhaltet (u.a.?) BSEG
PARAMETERS:
p_bukrs LIKE bseg-bukrs,
p_belnr LIKE bseg-belnr,
p_gjahr LIKE bseg-gjahr.
DATA:
gt_rfblg TYPE TABLE OF rfblg,
gs_rfblg LIKE LINE OF gt_rfblg.
EXEC SQL PERFORMING add_line.
select * from rfblg
into :gs_rfblg
where bukrs = :p_bukrs
and belnr = :p_belnr
and gjahr = :p_gjahr
ENDEXEC.
* Listausgabe etc.
...
*&--------------------------------------------------------------------*
*& Form add_line
*&--------------------------------------------------------------------*
* text
*---------------------------------------------------------------------*
FORM add_line.
APPEND gs_rfblg TO gt_rfblg.
ENDFORM. "add_line