06-19-2006 12:16 PM
Hi,
Is it possible to display 0 in a screen? I'm using the NUMC format. i can get 0 internally but i want it to be displayed to the user.
thanks a lot!
06-19-2006 12:20 PM
Hi winnie,
1. when we use write , it will automatically write.
2. if u have defined the field using
TABLE-FIELDNAME,
then probably it won't write.
3. If we defined directly using NUMC,
it will write.
4. just copy paste
REPORT ABC NO STANDARD PAGE HEADING.
data : a(10) type n.
a = '10'.
break-point.
write a.
regards,
amit m.
06-19-2006 12:26 PM
PARAMETERS: p_str(13) DEFAULT '0.00'.
DATA g_dmbtr LIKE bseg-dmbtr.
START-OF-SELECTION.
g_dmbtr = p_str.
06-19-2006 12:21 PM
change the screen field type to character.
and you will be able to display 0.
Regards,
Wasim Ahmed
06-19-2006 12:22 PM
06-19-2006 12:22 PM
06-19-2006 12:22 PM
06-19-2006 12:23 PM
06-19-2006 12:23 PM
06-19-2006 12:23 PM
USE LIKE THAT....
PARAMETERS: p_str(13) DEFAULT '0.00'.
DATA g_dmbtr LIKE bseg-dmbtr.
START-OF-SELECTION.
g_dmbtr = p_str.
06-19-2006 12:24 PM
06-19-2006 12:26 PM
Hi,
i tried changing the field type to character but i'm getting the error 'Entry is too long for the field'.
What am i missing here? Need your immediate feedback. Thanks!
06-19-2006 12:26 PM
Hi,
i tried changing the field type to character but i'm getting the error 'Entry is too long for the field'.
What am i missing here? Need your immediate feedback. Thanks!
06-19-2006 12:26 PM
06-19-2006 12:26 PM
Hi,
i tried changing the field type to character but i'm getting the error 'Entry is too long for the field'.
What am i missing here? Need your immediate feedback. Thanks!
06-19-2006 12:27 PM
Hi,
i tried changing the field type to character but i'm getting the error 'Entry is too long for the field'.
What am i missing here? Need your immediate feedback. Thanks!
06-19-2006 12:30 PM
Hi,
i tried changing the field type to character but i'm getting the error 'Entry is too long for the field'.
What am i missing here? Need your immediate feedback. Thanks!
06-19-2006 12:44 PM
Hi,
Increase the length of your field in the screen and copy the numc field into it in your program code. like.
screen_field = numc_field.
Regards,
Wasim Ahmed
06-19-2006 12:48 PM
06-19-2006 12:49 PM
Hi,
Give fieldlength for the character type variable you are defining. This error will come if you are assigning a 3 character value to a field of 2 character.......
Data: p_char(4) type c value '0.00'.
Hope this helps
Anirban