在ALV表格中双击某一行记录后,显示明细记录

REPORT ZBC400_10_VBAK .
data t_vbak like table of vbak with header line.
data t_vbap like table of vbap with header line.
PARAMETERS: p_DTIME like vbak-erdat.
select * from vbak into table t_vbak where erdat > p_DTIME order by
erdat.
if sy-subrc = 0.
loop at t_vbak.
write: / t_vbak-vbeln,
t_vbak-erdat,
t_vbak-erzet,
t_vbak-ernam.
hide: t_vbak-vbeln.
endloop.
endif.
at line-selection.
select * from vbap into table t_vbap where vbeln = t_vbak-vbeln.
if sy-subrc = 0.
loop at t_vbap.
write: / t_vbap-posnr,
t_vbap-matnr.
endloop.
endif.
posted @ 2008-11-20 13:59  elegant  阅读(1206)  评论(0编辑  收藏  举报