Skip to Content
0
Former Member
Dec 25, 2007 at 10:46 AM

Interactive report

10 Views

REPORT ZINTERACTIVEMM line-count 50 .

tables:eban.

data:prog_nam(8).

data:begin of pur_req occurs 0,

ekgrp like eban-ekgrp,

werks like eban-werks,

banfn like eban-banfn,

bnfpo like eban-bnfpo,

bsart like eban-bsart,

estkz like eban-estkz,

matnr like eban-matnr,

menge like eban-menge,

meins like eban-meins,

frgdt like eban-frgdt,

numb(2) type n,

end of pur_req.

prog_nam = sy-repid.

top-of-page.

*perform header_write.

start-of-selection.

pur_req-numb = 1.

select banfn bnfpo bsart ekgrp matnr werks menge meins frgdt estkz from

eban into corresponding fields of pur_req where werks = 1300.

pur_req-banfn = eban-banfn.

pur_req-matnr = eban-matnr.

pur_req-werks = eban-werks.

pur_req-ekgrp = eban-ekgrp.

pur_req-bnfpo = eban-bnfpo.

pur_req-bsart = eban-bsart.

pur_req-menge = eban-menge.

pur_req-meins = eban-meins.

pur_req-estkz = eban-estkz.

append pur_req.

pur_req-numb = pur_req-numb + 1.

endselect.

loop at pur_req.

write: /1 pur_req-numb, 9 pur_req-banfn, 21 pur_req-bnfpo, 31

pur_req-bsart, 41 pur_req-matnr,

61 pur_req-menge unit pur_req-meins, 82 pur_req-meins.

  • hide: pur_req-matnr, pur_req-werks, pur_req-banfn.

endloop.

output:

01 00000 0,000

02 00000 0,000

03 00000 0,000

04 00000 0,000

-


-


-


15 00000 0,000

I understand that pur_req-numb increments from 1 to 15,but I dont know why only 3 columns are displayed,that too only zeroes.Why?