Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to display amount as blank when its zero in ALV using FACTORY Method

Hi all,

I am using FACTORY method to display ALV.

My problem is with amount field.

Its displaying 0.0 also. In case amount is zero i want to display it as blank.

Please let me know how to achieve this.

Thanka and Regards

Taranam

Tags:
Former Member
Former Member replied

Hi taranem,

try this:

TRY.

*

...

  • Menge is the field of the ITAB where you want to do the settings

LR_COLUMN ?= LR_COLUMNS->GET_COLUMN( 'MENGE' ).

LR_COLUMN->SET_VISIBLE( ABAP_TRUE ).

LR_COLUMN->SET_ZERO( ABAP_FALSE ).

...

*

CATCH CX_SALV_NOT_FOUND.

*

ENDTRY.

Hope it helps.

Regards, Dieter

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question