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

assign negative sign

former_member630092
Participant
0 Likes
830

Hi all,

I have to attatch a negative sign againgt amount. like - 345.00

i am doing like this.

{ write ibsak-WRBTR to itab_main-amount.

concatenate '-' gamount into itab_main-amount .

condense itab_main-amount no-gaps . }

Debugger shows amount and also '-' sign but in printout only '-' sign is comming not amount.

Can u rectify me.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
789

Hi,

Try using this FM to put the negative sign and check the print preview

CLOI_PUT_SIGN_IN_FRONT

Regards,

Vik

Hi all,

I have to attatch a negative sign againgt amount. like - 345.00

i am doing like this.

{ write ibsak-WRBTR to itab_main-amount.

concatenate '-' gamount into itab_main-amount .

condense itab_main-amount no-gaps . }

Debugger shows amount and also '-' sign but in printout only '-' sign is comming not amount.

Can u rectify me.

5 REPLIES 5
Read only

Former Member
0 Likes
790

Hi,

Try using this FM to put the negative sign and check the print preview

CLOI_PUT_SIGN_IN_FRONT

Regards,

Vik

Read only

Former Member
0 Likes
789

Try like this

ibsak-WRBTR  * (-1)

Hope this solves ur problem

Read only

Former Member
0 Likes
789

Hi Ravi,

use this FM

CLOI_PUT_SIGN_IN_FRONT

also try

amount = -1 * amount.

Regards,

Vijay

Read only

Former Member
0 Likes
789

Hi Ravi ,

Can u Check the Final output field in which data type.

Regards ,

Shankar GJ

Read only

former_member630092
Participant
0 Likes
789

Answered