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: 

Remove 0.0 display for QUAN fields.

Former Member
0 Kudos

Hello Everybody,

The ALV has some fields of data type QUAN.

I am summing up values in some of these QUAN fields while other QUAN fields are not to be summed.

When ALV is displayed, the QUAN fields that were not summed show 0.0 value instead of a blank.

I have tried clearing and shifting the leading zeroes to left. This doesn't work and 0.0 is always dispalyed.

I cannot use a structure of different type too.

Please let me know how to remove the 0.0 from final display.

Thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Try setting lvc_s_fcat-no_zero = 'X' for that particualr field.

6 REPLIES 6

Former Member
0 Kudos

it can be only removed if u change the type of ur field from Quan(Numeric) to the character type.

By default any NUMC or P type will take the value 0.0 if its blank. Only character data type is able to take the value as blank.

Former Member
0 Kudos

Try setting lvc_s_fcat-no_zero = 'X' for that particualr field.

Former Member
0 Kudos

HI,

This is only as per data format as per SAP standards.

Replace all the QUAN type fields in your internals as TYPE C wherever you need not to display 0.0 values.

System will automatically convert them as blanks.

Regds,

Anil

Former Member
0 Kudos

Hello,

Try options like NO_ZERO or NO_OUT based on your condition.

Cheers,

Balaji

Former Member
0 Kudos

Hello

Use

 
LS_FCAT-NO_ZERO = 'X'.

g_srivastava
Active Contributor
0 Kudos

Hi Shalaxy,

Please check the way to get the display from the quantity field according to you.Please chek this help document to get the details.

Link:[Currency Field|http://help.sap.com/saphelp_46c/helpdata/en/bf/1d4642bf3211d296000000e82de14a/frameset.htm]

Have a great day ahead.