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

Screen field values gets vanished

Former Member
0 Likes
928

Hi,

I`m in the process of creating custom info types and I have a NUMC field on my screen. When I enter a 0 in that field in create or change mode and press "Enter", I find the 0 gets vanished. While in display mode of the same screen, I get the values on the screen field.

The value is getting updated at the backend, whereas does not show up on the screen.

Can any one let me know if I`ve got to handle some logic in PBO event to show '0' on the screen or is this the normal behaviour with the NUMC fields.

This does not happen if I enter anything other than 0.

Regards,

Farhana.

Edited by: Farhana Sheriff on Jan 23, 2008 8:42 PM

Edited by: Farhana Sheriff on Jan 23, 2008 8:54 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
882

if field data type is NUMC then screen will have space if you enter 0 in edit mode ,if it is dipaly mode then it will display

you can change into charcter data type if you need.

Thanks

Seshu

Hi,

I`m in the process of creating custom info types and I have a NUMC field on my screen. When I enter a 0 in that field in create or change mode and press "Enter", I find the 0 gets vanished. While in display mode of the same screen, I get the values on the screen field.

The value is getting updated at the backend, whereas does not show up on the screen.

Can any one let me know if I`ve got to handle some logic in PBO event to show '0' on the screen or is this the normal behaviour with the NUMC fields.

This does not happen if I enter anything other than 0.

Regards,

Farhana.

Edited by: Farhana Sheriff on Jan 23, 2008 8:42 PM

Edited by: Farhana Sheriff on Jan 23, 2008 8:54 PM

5 REPLIES 5
Read only

Former Member
0 Likes
883

if field data type is NUMC then screen will have space if you enter 0 in edit mode ,if it is dipaly mode then it will display

you can change into charcter data type if you need.

Thanks

Seshu

Read only

0 Likes
882

Hi Seshu,

Thanks. I searched on net, but could not find relevant information on this. If u have some info, could you please provide me with the link for the same.It might be helpful for others too.

Regards,

Farhana

Read only

0 Likes
882

Hello Farhana,

I have written two programs

first program ( Numeric)

data v_num(2) type n.

parameters p_num like v_num.

parameters p_edit as checkbox default 'X'.

at selection-screen output.

if p_edit ne 'X'.

loop at screen.

if screen-name = 'P_NUM'.

screen-input = '0'.

modify screen.

endif.

endloop.

endif.

initialization.

p_num = '00'.

if p_edit = 'X' then when you enter 00 then 00 will be disapper because this is numc field,if you go display mod p_edit ne 'X'

then 0 will be appear.

the same thing you could do using charcter field

Second program ( Charcter)

data v_num(2) type c.

parameters p_num like v_num.

parameters p_edit as checkbox default 'X'.

at selection-screen output.

if p_edit ne 'X'.

loop at screen.

if screen-name = 'P_NUM'.

screen-input = '0'.

modify screen.

endif.

endloop.

endif.

initialization.

p_num = '00'.

Hope you got it.

Thanks

Seshu

Read only

Former Member
0 Likes
882

Hi Farhana,

By default numc shows 0 in the display mode.

thanks

kiran

Read only

0 Likes
882

Thanks Seshu & Kumar.

Regards,

Farhana