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: 

How to fill zero in Quant data type related field.

Former Member
0 Kudos

Hi Experts,

Good Day!!

I have a requirement that I need to enter zero value in field. while i enterd zero value,Then I press enter the value dissapears automatically. That field data type is Quant. can you please help me that how i need to enter a value in that field

Best Regards,

Sravan.

1 ACCEPTED SOLUTION

TanmayVerma
Active Participant
0 Kudos

Hi Amirineni,

Using the QUANT data type field  i think it is not possible. I had a similar requirement some time back and we decided to proceed with the blank value.

Default 0.000 can only be displayed if the screen field is of text type.

I would suggest to move forward with the blank space. However if it definitely required then please explore the possibilities of using a text field and mapping it to quantity field.

Regards,

Tanmay,

7 REPLIES 7

Former Member
0 Kudos

Hi,

Please check the data you are passing to the fieldcatalog.

The below values are passed or not :

QFIELDNAME DATATYPE , this should keep the value 0 as it is.

Hope this helps.

0 Kudos

Hello Gaurav,

It is module pool programming & All the fields Data type is Quan. While i'm entering other values it is taking except 0.

Thanks in Advance,

Sravan

0 Kudos

Hi,

is the screen field type is quant in the layout window

TanmayVerma
Active Participant
0 Kudos

Hi ,

This is the default behavior of quantity related fields. If you enter 0 on the screen  it will be shown as blank because 0 signifies initial value.

If you want to specifically handle this and want to display 0 instead of blank , then map your field to character field. The drawback of doing this will be you will have to handle the validations ( number format  ) yourself in PAI of the screen. Also you will have to take care of conversion from character to decimal ( QUAN ) in the PBO and PAI.

Regards,

Tanmay.

Former Member
0 Kudos

Hi ,

Good Day!!

Instead of this can we replace that space( Quant Data typre related field) with 0.000. is it possible?.

Please help me out of this issue.

Thanks in Advance,

Amirineni Sravan.

TanmayVerma
Active Participant
0 Kudos

Hi Amirineni,

Using the QUANT data type field  i think it is not possible. I had a similar requirement some time back and we decided to proceed with the blank value.

Default 0.000 can only be displayed if the screen field is of text type.

I would suggest to move forward with the blank space. However if it definitely required then please explore the possibilities of using a text field and mapping it to quantity field.

Regards,

Tanmay,

0 Kudos

This message was moderated.