2007 Aug 27 8:55 AM
Hi guys...
I have this problem where I can't display Zero on my ALV grid
The field is actually type NUMC.
I've tried setting the field catalog:
V_FIELDCAT-NO_ZERO = SPACE.
V_FIELDCAT-LZERO = C_X.
But on the ALV is still displaying blank.
Any ideas? All help greatly appreciated.
2007 Aug 27 8:56 AM
No need to do any changes in Fieldcatalog.
In the output internal table which you are passing to ALV, add the following:
LOOP AT I_OUTPUT into wa_output.
If wa_output-MATNR is initial.
wa_output-MATNR = '0'.
MODIFY i_OUTPUT from wa_output transporting MATNR.
endif.
ENDLOOP.
Hi guys...
I have this problem where I can't display Zero on my ALV grid
The field is actually type NUMC.
I've tried setting the field catalog:
V_FIELDCAT-NO_ZERO = SPACE.
V_FIELDCAT-LZERO = C_X.
But on the ALV is still displaying blank.
Any ideas? All help greatly appreciated.
2007 Aug 27 8:56 AM
No need to do any changes in Fieldcatalog.
In the output internal table which you are passing to ALV, add the following:
LOOP AT I_OUTPUT into wa_output.
If wa_output-MATNR is initial.
wa_output-MATNR = '0'.
MODIFY i_OUTPUT from wa_output transporting MATNR.
endif.
ENDLOOP.
2007 Aug 27 8:58 AM
Hi,
wherever u wanna display zero
check whether the field is initial and assign '0' to that field if it is initial.
Regards,
Ravi G
2007 Aug 27 9:05 AM
Hi
You have taken NUMC type. This has default value as space. Take numerice type type like I, P,F. Without doing anything, if it is dones not contain any value then it will display Zeros
Regards
Nagaraju<b></b>
2007 Aug 27 9:13 AM
Hi everyone,
I have assigned 0 to the field already. its just not showing up on my ALV.
2007 Aug 27 9:43 AM
2007 Aug 27 10:18 AM
In the output internal table which you are passing to ALV, add the following:
LOOP AT I_OUTPUT into wa_output.
If wa_output-MATNR is initial.
<b>CONCATENATE ''' '0' into wa_output-matnr.</b>
MODIFY i_OUTPUT from wa_output transporting MATNR.
endif.
ENDLOOP.