Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Balance problem in Smartform

Hi guys,

I'm creating a smartform report. when i'm trying to get balance like --

SELECT *

FROM BSID

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.

ENDIF.

DMBTR = DMBTR + WA2_BSID-DMBTR.

ENDLOOP.

i'm getting the wrong balance from this code. can someone tell me the problem of this code?

Thanks.

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

Former Member
Not what you were looking for? View more on this topic or Ask a question