‎2008 Jan 11 6:26 AM
Hi,
I have created a table control using wizard. The following is the code.
loop at GT_NEW_ABAN
into GT_NEW_ABAN_WA
with control TAB_FAC_ABAND
cursor TAB_FAC_ABAND-current_line.
module TAB_FAC_ABAND_get_lines.
When filling the work area GT_NEW_ABAN_WA, the value from database table is 0. But it is displayed in the output field as blank and not zero.
I require the field to be displaying 0 and not blank.
Please help.
‎2008 Jan 11 6:29 AM
Hi,
In the work area GT_NEW_ABAN_WA change the type of the particular field to N.
Regards,
Shafi
Edited by: shafivullah mohammad on Jan 11, 2008 12:00 PM
‎2008 Jan 11 7:10 AM
Hi all...
The declaration of the work area is
DATA:
GT_NEW_ABAN LIKE ZTABANDON OCCURS 0 WITH HEADER LINE,
GT_NEW_ABAN_WA LIKE ZTABANDON ,
and in this structure ZTABANDON, the field type is CURR.
Is this the problem. If yes, then the database field being a currency field, how can I bring the zero to the output.?
‎2008 Jan 11 6:32 AM
Hi,
The value will be displayed according to your type only. May be in your case it is taken as numeric.
Also for your information, you can use the program RSDEMO02 to learn coding table control without wizard.
Regards,
Renjith Michael.
‎2008 Jan 11 6:37 AM
Hi John,
We have change that particular filed to NUMC.Bcz the default value of the NUMC is ZERO.OK.
Award points if helpful.
Kiran Kumar.G.A
Have a Nice Day..
‎2008 Jan 11 6:47 AM
Hi all...
The declaration of the work area is
DATA:
GT_NEW_ABAN LIKE ZTABANDON OCCURS 0 WITH HEADER LINE,
GT_NEW_ABAN_WA LIKE ZTABANDON ,
and in this structure ZTABANDON, the field type is CURR.
Is this the problem. If yes, then the database field being a currency field, how can I bring the zero to the output.?