cancel
Showing results for 
Search instead for 
Did you mean: 

How to disable default value for input field of type NUMC

Former Member
0 Kudos

Hi Folks,

Iam creating a new web dynpro component.In that component iam using NUMC(40) data type for one of input field.By default value for that field is coming 0000000000000000000.How can i disable default value for that field?

Accepted Solutions (0)

Answers (3)

Answers (3)

sahai
Contributor
0 Kudos

Hi,

you will need to use char field for achieving your aim.

kindly choose a char attribute for binding your input field on screen.

FYI : you can even remove the leading zeros from the char 
SHIFT A LEFT DELETING LEADING '0'.

Regards,

Sahai.s

Former Member
0 Kudos

Hello,

I think that using integer will also have a default value of single '0'.

If you to want the initial value to be Blank you will have to use Char.

Warm regards

Upendra Agrawal

ChandraMahajan
Active Contributor
0 Kudos

Hi,

as your value is of type NUMC, the intial value will be displayed as 0(in your case 40 zeros). for type NUMC blank value means the number of zero specified in lenght specification.

Better you use integer type attibute and bind it to you inputfield so that when it is intial, blank value will be displayed.

Thanks,

Chandra