Application Development and Automation 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: 
Read only

Problem in OOP ALV field conversion for output

Former Member
0 Likes
1,362

Dear Gurus,

I am using dynamic internal table in a program. and I build a manual field-catalog. Now my problem is

I have 3 fields of type F , and it displays with exponential format, whereas I want these fields to be display like

normal decimal numbers with decimal places 5.

Can anyone give me any suggestion to resolve this issue.

Thanks .

Shibashis.

Dear Gurus,

I am using dynamic internal table in a program. and I build a manual field-catalog. Now my problem is

I have 3 fields of type F , and it displays with exponential format, whereas I want these fields to be display like

normal decimal numbers with decimal places 5.

Can anyone give me any suggestion to resolve this issue.

Thanks .

Shibashis.

5 REPLIES 5
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
828

>

> I have 3 fields of type F , and it displays with exponential format

Hello,

If the fields are TYPE F(float), how do you expect them to be displayed as decimals?

whereas I want these fields to be display like normal decimal numbers with decimal places 5

You have to define them as TYPE p DECIMALS 5.

If you can share the code on how the dynamic table is defined it will help us analyse the problem better.

BR,

Suhas

Read only

Former Member
0 Likes
828

Dear Subhas,

In alv grid display we have one option in ALV FIELDCATALOG. This is EXPONENT field of fieldcatalog. If we set the exponent with value '0' then the fields output display as a normal decimal number instead of exponential format. In my case it is working fine for another fields which contain data type F , but the problem is with those field which I created dynamically. Becoz in this case it is directly taking field attributes from dictionary when the dynamic internal table created. And the problem is stuck there as I also tried the same thing for those field as I did earlier for another fields with data type F, but in this particular case I am not getting success.

Problem is still there and sure I will share the code soon.

Thank you for your reply to that thread. Hope some more discussion and opinion from your side and from other viewers also on the same.

Shibashis.

Read only

Former Member
0 Likes
828

This problem is solved by me.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
828

Hello,

Please make it a point to provide some feedback on how you solved the problem for future references.

Cheers,

Suhas

Read only

0 Likes
828

Dear Suhas ,

I set the EXPONENT and DECIMALS_OUT field of fieldcatalog and this problem is solved. Thank you for your suggestion and

I will definitely explain the solution before closing the issue from next time.

Shibashis