Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Nagtive Amount

Former Member
0 Likes
643

Hi Frds

Im Displaying the amount of the project in my report.For some of the project the amount will be in negative..But in my report output the negative sign is not coming.

Kindly tell me how to bring negative sign in the output and give some sample coding of its.

Thanks

Pari

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
600

Hi,

multiply the amount by -1.

Probabaly you may get -ve sign.

Thanks,

Sriram Ponna.

Hi Frds

Im Displaying the amount of the project in my report.For some of the project the amount will be in negative..But in my report output the negative sign is not coming.

Kindly tell me how to bring negative sign in the output and give some sample coding of its.

Thanks

Pari

3 REPLIES 3
Read only

Former Member
0 Likes
601

Hi,

multiply the amount by -1.

Probabaly you may get -ve sign.

Thanks,

Sriram Ponna.

Read only

Former Member
0 Likes
600

do this way ...


data : v_amount like bseg-dmbtr value '400.00'.

 v_amount = v_amount * -1.

 write : v_amount. 

Read only

Former Member
0 Likes
600

Hello,

Not sure exactly what the details of your problem are but in SAP/FI

line item amounts will be stored without a sign. If an amount is a debit or

credit will be indicated by a field called debit/credit indicator eg BSEG-SHKZG.

You may then check the value of the debit credit indicator and make your amounts

negative by multiplying them by -1 before writing them in your report.

Hope this helps a bit

Regards

Greg Kern