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

Module Pool

Former Member
0 Likes
519

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.

5 REPLIES 5
Read only

Former Member
0 Likes
490

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

Read only

0 Likes
490

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.?

Read only

Former Member
0 Likes
490

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.

Read only

Former Member
0 Likes
490

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..

Read only

Former Member
0 Likes
490

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.?