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

a problem of alv

Former Member
0 Likes
489

HI,experts,

there is a problem as this:

the minus display in the alv is in the back of the field (205-).

how can I move the minus in the front of the field(-205)?

thanks!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
440

Hi

CLOI_PUT_SIGN_IN_FRONT : Displays the negative sign in front of the numeral

Use FM

CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'

CHANGING

VALUE = I_SUMMARY_INS1-COUNT.

WRITE : I_SUMMARY_INS1-COUNT

3 REPLIES 3
Read only

Former Member
0 Likes
441

Hi

CLOI_PUT_SIGN_IN_FRONT : Displays the negative sign in front of the numeral

Use FM

CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'

CHANGING

VALUE = I_SUMMARY_INS1-COUNT.

WRITE : I_SUMMARY_INS1-COUNT

Read only

Former Member
0 Likes
440

Hi niuniu ,

There is one function module to shift the sign to front from back. I dont remember but I can give u the pattern. Just check that and pass the value each time to the function module take the changed value to put in the output.

closignfront

This should definitely work..

Reward if useful.

Venkata Raju Duggirala.

Read only

p291102
Active Contributor
0 Likes
440

Hi,

first u have to define that quantity field into character format.

after that like this,

SHIFT IT_MAIN-BAL_QTY RIGHT DELETING TRAILING '-'.
       SHIFT IT_MAIN-BAL_QTY LEFT DELETING LEADING ' '.
       CONCATENATE '-' IT_MAIN-BAL_QTY INTO IT_MAIN-BAL_QTY.

Thanks,

Sankar M