Skip to Content
Mar 03, 2014 at 07:17 AM

GL a/c opening and closing balances


Hi All,

Below is my selection screen:

select-options : s_bukrs for bkpf-bukrs obligatory.

parameter : p_gjahr like bkpf-gjahr obligatory.

select-options : s_budat for bkpf-budat,

s_monat for bkpf-monat,

s_hkont for bseg-hkont.

I am displaying the data from tables BKPF, BSEG, KNA1-NAME1, LFA1-NAME1, SKAT-TXT50. I have to fetch Opening and Closing balances for GL a/c's. I am fetching data from table GLT0-HSLVT(opening balance). But unable to get the data for closing balance based on the period given on the selection screen. In my report I am looping on table it_bseg to populate the final internal table. How to get the closing balances's total based on the input.

Please help me.