Application Development 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: 

Display 0 in screen

Former Member
0 Kudos

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!

19 REPLIES 19

Former Member
0 Kudos

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.

0 Kudos

PARAMETERS: p_str(13) DEFAULT '0.00'.

DATA g_dmbtr LIKE bseg-dmbtr.

START-OF-SELECTION.

g_dmbtr = p_str.

dani_mn
Active Contributor
0 Kudos

change the screen field type to character.

and you will be able to display 0.

Regards,

Wasim Ahmed

Former Member
0 Kudos

SORRY

Former Member
0 Kudos

sorry

Former Member
0 Kudos

sorry

Former Member
0 Kudos

sorry

Former Member
0 Kudos

sorry

Former Member
0 Kudos

USE LIKE THAT....

PARAMETERS: p_str(13) DEFAULT '0.00'.

DATA g_dmbtr LIKE bseg-dmbtr.

START-OF-SELECTION.

g_dmbtr = p_str.

Former Member
0 Kudos

soory

i think there is some system error

Former Member
0 Kudos

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!

Former Member
0 Kudos

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!

Former Member
0 Kudos

sorry

Former Member
0 Kudos

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!

Former Member
0 Kudos

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!

Former Member
0 Kudos

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!

dani_mn
Active Contributor
0 Kudos

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

dani_mn
Active Contributor
0 Kudos

<deleted>

former_member480923
Active Contributor
0 Kudos

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