‎2006 Dec 11 9:19 PM
Hi all,
I AM HAVING A QUANTITY FIELD IN TABLE CONTROL OF MODULE POOL PROGRAM.
I WANT THE QUANTITY FIELD TO HOLD A QUANTITY OF 0.000
WHEN I GIVE A VALUE OF 0 , ITS NOT HOLDING .
CAN ANYONE SUGGEST ME AS TO WHAT I NEED TO DO.
I AM USING MENGE_D STANDARD DATA ELEMENT.
THANKS
‎2006 Dec 11 9:22 PM
I dont see a reason why it should not hold the value. At the begining the field is initialised and so it will hold a 0.000 in there. And later if you are modifying it, it should also have a 0.00 in it unless you have not cleared the work area before and making this change. Please check that.
- Guru
Reward points for helpful answer
‎2006 Dec 11 10:01 PM
Hi,
while debug it has a vlue of 0.000 but for some reason its not displayed on the screen.
LET ME KNOW
THANKS
‎2006 Dec 11 10:04 PM
OK..the reason it is not being displayed is because it is initial. You can do one thing. Declare this field as NUMC in the output table. Then this value will be displayed.
- Guru
Reward points for helpful answer
‎2006 Dec 11 10:09 PM
‎2006 Dec 11 10:12 PM
‎2006 Dec 11 10:19 PM
Hi,even the numc value is not displayed in the table control.
Thanks
‎2006 Dec 12 9:48 AM
Try setting the checkbox "Leading zeroes" in the attributes of the field of your TControl (you can do that using transaction SE51 - Screen Painter).
‎2006 Dec 12 10:00 AM
Set the field as character.
move the value to another variable while processing and check for decimal places in case a value other than 0 is input.
Regards,
Deepa