Application Development 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: 

how to change the sign in ALV

Former Member
0 Kudos
199

Hi in my ALV output the negative numbers are displayed with sign on the right side of the numbers.

Need your help to get this sign on the left side.

1 ACCEPTED SOLUTION

jayanthi_jayaraman
Active Contributor
0 Kudos
134

Hi,

Declare the field as character in output table,and use

cloi_put_sign_in_front fm to make the sign on left side.

4 REPLIES 4

jayanthi_jayaraman
Active Contributor
0 Kudos
135

Hi,

Declare the field as character in output table,and use

cloi_put_sign_in_front fm to make the sign on left side.

Former Member
0 Kudos
134

Hi,

Try FM - CLOI_PUT_SIGN_IN_FRONT for the field.

Reward points if this helps.

Manish

jayanthi_jayaraman
Active Contributor
0 Kudos
134

Hi,

This is from SDN thread.

When you define the fieldcatalog..

Give the rollname..

Example..

DATA: S_FIELDCATALOG TYPE slis_fieldcat_alv.

s_fieldcatalog-col_pos = '2'.

s_fieldcatalog-fieldname = 'NETPR'.

s_fieldcatalog-tabname = 'ITAB1'.

<b>s_fieldcatalog-rollname = 'WERTV6'.</b>

APPEND s_fieldcatalog to t_fieldcatalog.

Former Member
0 Kudos
134

by using Function Module 'CLOI_PUT_SIGN_IN_FRONT' for evry record u can change the sign to left.

just try it...

Ramesh.