cancel
Showing results for 
Search instead for 
Did you mean: 

How To Suprres Decimals in Output of Webdynpro ALV?.

Former Member
0 Kudos

Hi Abap's,

Am new to WDA.

I have Requirement in Webdynpro ALV,

For Suppressing the Decimals of a particular field in ALV Output?.

Better to explain with suitable example.

Thanks In advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member197475
Active Contributor
0 Kudos

Hello,

What is the data type of the attribute that you have at the ALV output???

Guess it should be of Type P. In that case, try to change the data type as I, and pass the values in trunc command.

For eg:

DATA INT TYPE I.

INT = TRUNC( ALV_INPUT ).

BR,

RAM.

Former Member
0 Kudos

Hello Ramakrishna,

It is Quantity Field am referring a custom data element of data type QUAN Leghnth 13 and Decimals 3.

My Requirement is in my ALV Output i am not interested in  Decimal and in elsewhere i need the decimals...

harsha_jalakam
Active Contributor
0 Kudos

Hi Satheesha,

Try changing the type of attribute associated to this fied to INT and check.

Regards,

Harsha

former_member197475
Active Contributor
0 Kudos

Hi Satheesha,

As you told that you are having QUAN field, of-course it takes on the decimal value along with it.

That is why I asked you to change the data type to an integer ???

Are you working in any zapplication or in standard SAP application???




BR,

RAM.