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: 

no_zero attribute in ALV

Former Member
0 Kudos

Is there a way to set the no_zero attribute just for a particular row?

The requirement is just to display blank when the value of the field is zero but just for the first two rows. How can I do this? Thanks.

7 REPLIES 7

abdul_hakim
Active Contributor
0 Kudos

hi rous,

welcome to sdn.

you could use the field ROW_POS of the strucuture LVC_S_FCAT while building the field catalog..

Cheers,

Abdul Hakim

Mark all useful answers..

0 Kudos

I believe that the values that you specify for the columns in your field catalog are for the entire grid. I don't think that you can pick and choose by ROW like that. The only thing that I know that you can control by row is color.

Regards,

Rich Heilman

0 Kudos

I tried to use ROW_POS to specify rows 1 and 2 should not display zeros (NO_ZERO = 'X') but it did not work. If you have other ideas kindly let me know. Thanks a lot.

venkat_o
Active Contributor
0 Kudos

Hi Giscard Rous ,

<b>1</b>.

NO_ZERO attribute is there.If u set that for Column,that is applicable for Entire COLUMN not for ROW.

<b>2</b>.

Better to set W_FIELDCATALOG-NO_ZERO = 'X' for all Columns while Fieldcatalog table is being built.So that If entire has ZERO values ,It does not display ZERO's.

<b>3</b>.

If u r using REUSE_ALV_FIELDCATALOG_MERGE to build Fieldcatalog table ,Modify that table by setting

W_FIELDCATALOG-NO_ZERO = 'X' .

I think that u can solve like that

<b>Thanks,

Venkat.O</b>

former_member188685
Active Contributor
0 Kudos

Hi,

are you using ALV list/Grid fm or OO ALV.

Regards

vijay

0 Kudos

Hi Vijay,

I'm using ALV list FM. How do you do it in OO ALV? Thanks.

Regards,

Giscard

0 Kudos

hi rous,

you cannot use for individual rows.

you can only control the entire grid/list.

Cheers,

Abdul Hakim

Mark all useful answers..