‎2009 Dec 02 10:14 PM
Hi all,
Im need to sum the amount for same company, account, document number and posting key. and my select query is as below;
SELECT bukrs
hkont
gjahr
belnr
* buzei
bschl
sum( dmbtr ) as amount
into CORRESPONDING FIELDS OF TABLE t_recs1
from BSIS
where bukrs = bukrs
and hkont = saknr
and ( bschl = lc_debit_asset or
bschl = lc_credit_asset )
GROUP BY bukrs hkont gjahr belnr bschl
order BY bukrs hkont gjahr belnr bschl.But the amount (DMBTR) is displaying as 0.00 though the amount exist in table BSIS.
Can someone hlep mein this?
Thanks,
Amal
‎2009 Dec 02 10:37 PM
‎2009 Dec 03 12:35 AM
Yes.
SY-SUBRC = 0 and also Im getting all other fields as expected except DMBTR.
Thanks,
Amal
‎2009 Dec 03 1:08 AM
‎2009 Dec 03 1:41 AM
I checked in table and its having some value (other than zero ) for DMBTR.
Thanks,
Amal
‎2009 Dec 03 2:38 AM
Hi Amal,
you fetch it AS amount, so the data are stored in field amount of your internal table t_recs1. Hope this field exists.
Regards,
Clemens
‎2009 Dec 03 6:24 AM
hi amal,
have you checked that amount field is present in t_recs1 table
also check the data type you have defined the amount field as.Is it integer or is it TYPE dmbtr.
i think it should be integer.
hope this will help you
thanks
Tanmaya
‎2009 Dec 03 12:03 PM