2008 Jan 23 7:16 PM
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
2008 Jan 23 7:59 PM
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
2008 Jan 23 7:59 PM
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
2008 Jan 23 9:22 PM
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
2008 Jan 23 9:40 PM
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
2008 Jan 24 7:02 AM
Hi Farhana,
By default numc shows 0 in the display mode.
thanks
kiran
2008 Jan 24 3:47 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |