Balance problem in Smartform
I'm creating a smartform report. when i'm trying to get balance like --
INTO TABLE IT2_BSID
WHERE KUNNR = WTAB-KUNNR AND ZUONR = WA_BSID-ZUONR.
LOOP AT IT2_BSID INTO WA2_BSID.
IF WA2_BSID-SHKZG EQ 'H'.
WA2_BSID-DMBTR = WA2_BSID-DMBTR * -1.
DMBTR = DMBTR + WA2_BSID-DMBTR.
i'm getting the wrong balance from this code. can someone tell me the problem of this code?
Moderator message : Duplicate post locked. Continue with [Balance error in BSID table|Balance error in BSID table].
Edited by: Vinod Kumar on May 26, 2011 10:42 AM