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

output

Former Member
0 Likes
1,016

how 2 get -12 in the output?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,000

use FM

CLOI_PUT_SIGN_IN_FRONT

but u need to move the value to char field and then pass to above FM

7 REPLIES 7
Read only

Former Member
0 Likes
1,000

Hi

Use the fun module

CLOI_PUT_SIGN_IN_FRONT

Reward points for useful Answers

Regards

Anji

Read only

Former Member
0 Likes
1,001

use FM

CLOI_PUT_SIGN_IN_FRONT

but u need to move the value to char field and then pass to above FM

Read only

0 Likes
1,000

Hi tanq ..wat r the parameters we hav 2 pass in that function module?

Read only

0 Likes
1,000
REPORT YCHATEST.

DATA : V_VAL(5) VALUE '12-'.
CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
  CHANGING
    VALUE = V_VAL.

WRITE : V_VAL.
Read only

0 Likes
1,000

HI,

so many records having the -ve value.....how can i do it(for ex 10 records having -ve value)?

Plz send me how to do?

Read only

0 Likes
1,000

Take a look at the help for the WRITE statement with addition EDIT MASK ON.

write: l_val USING EDIT MASK 'V__.__'.

Read only

0 Likes
1,000
loop at itab.

if itab-val LT 0.

CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
  CHANGING
    VALUE = ITAB-VAL.
modify itab index sy-tabix.
endif.
endloop.