Skip to Content

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

minus sign

Dear all,

The code below contains one field v_dis(kwert) which i am using for discount...

but the problem i am facing is that in table the value is in minus..

eg. total_amount = v_netwr - v_dis + v_tax.

v_netwr = 120.

v_dis = 5.

v_tax = 8.

ishould get the result 120 - 5 + 8 = 123..

but i am geting 133..

because kwert(v_dis) is minus in the table....

120 - - 5 + 8 = 133..

i want to get the rid of this minus sign please help me

SELECT SINGLE kschl kwert FROM konv INTO (v_kschl, v_dis)

WHERE knumv = v_knumv

*AND kschl = 'ZCMD' "zcmd

AND ( kschl = 'ZCMD' OR kschl = 'ZFMD' OR kschl = 'ZMDC' )

AND kposn = gs_it_gen-itm_number.

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