Skip to Content
0
Former Member
Apr 07, 2011 at 04:24 AM

Decimal points should be removed based on condition

55 Views

Hi All The ABAP Gurus,

In alv output I have to remove deimal points based on condition ie in internal table if there is a column say NAME and it had values A,B,C,D ..... so on .Now I want to remove decimal points based on the NAME from another field say AMOUNT.

I have tried this in if else loop.

IF ITAB-NAME = 'A'.

LS_FIELDCAT-DECIMALS_OUT = 0.

ELSE.

" in other fields it should display the output with decimals

ENDIF.

But it is not working.

Kindly guide me in this matter.

Thanks & Regards,

Bharti Jain