Skip to Content
0
Former Member
Dec 28, 2006 at 02:09 PM

move...

43 Views

I have report Fi , dot have output.

data: begin of ls_nalog,

POZ type BUZEI, "pozicija

KUNNR type KUNNR, " Kupac

BELNR type BELNR_D, " Broj dokumenta sap-a

BLDAT type BLDAT, " Datum dokumenta

DUG type ZDUG, " Duguje

POT type ZPOT, " Potrazuje

SAL type ZSAL, " Saldo

VAL type WAERS, " Valuta

AUGBL type AUGBL, " broj dokumenta veze

BROJ type XBLNR, " Broj

end of ls_nalog.

SELECTION-SCREEN: BEGIN OF BLOCK EKR1 WITH FRAME.

parameters: p_bukrs type knb1-bukrs DEFAULT 'ZS01'.

start-of-selection.

elect * from bkpf into table lt_bkpf

where bukrs = p_bukrs

and gjahr = gjahr

and budat = budat

and blart in s_blart.

loop at lt_bkpf into ls_bkpf.

select * from bseg into table lt_bseg

where belnr = bkpf-belnr

and gjahr = bkpf-gjahr.

endloop.

loop at lt_bseg into ls_bseg.

move ls_bseg-BUZEI to ls_nalog-poz.

move ls_bseg-lifnr to ls_nalog-dug.

move ls_bkpf-bldat to ls_nalog-bldat.

endloop.

***************************don have in otput ls_nalog nothing...

loop at lt_nalog into ls_nalog. " output screen.

WRITE: / ls_nalog-poz,

...

.

..