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

ALV grid

Former Member
0 Likes
619

Hi,

Again a question on ALV grid!!!

In the ALV grid display, the records that hold null values are displayed as blank.

For example, i have a field VERSION (of NUMC datatype) with data "0.1,0.2 and so on..in my ALV Grid display it is displaying as ".1,.2 and so on..

My requirement is like that it should be displayed as "0.1,0.2 ....".

Can anyone suggest on this..

Thanks and Regards,

Hema

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
589

change the datatypes in the fieldcatalog and checkout

wa_fieldcatalog-datatype = 'CHAR'.

4 REPLIES 4
Read only

Former Member
0 Likes
589

Give the reference type as CHAR in the field catalog.

Regards,

Ravi

Read only

Former Member
0 Likes
589

Hello Hema,

Try this technique.

Have a field in your final internal table type c or type string.

Just before you call the ALV FM, move the numc field to the type c field.

In the ALV just hide the numc field.

I guess that should solve your problem.

Regards,

Ravi Bhatnagar

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
589

Hi,

Try using data type as CHAR in the fieldcatalog .

The NUMC data type truncates the zeros .

Read only

Former Member
0 Likes
590

change the datatypes in the fieldcatalog and checkout

wa_fieldcatalog-datatype = 'CHAR'.