2006 Nov 29 10:58 AM
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
2006 Nov 29 11:05 AM
change the datatypes in the fieldcatalog and checkout
wa_fieldcatalog-datatype = 'CHAR'.
2006 Nov 29 11:02 AM
Give the reference type as CHAR in the field catalog.
Regards,
Ravi
2006 Nov 29 11:04 AM
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
2006 Nov 29 11:04 AM
Hi,
Try using data type as CHAR in the fieldcatalog .
The NUMC data type truncates the zeros .
2006 Nov 29 11:05 AM
change the datatypes in the fieldcatalog and checkout
wa_fieldcatalog-datatype = 'CHAR'.