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

how to validate the Currency & Quantity fields

Former Member
0 Likes
827

Hi all,

In my dialogue program,i have screen which has has currency field and quantity fields.

how can i write a code so that user can not enter the alpha chars in those field.

Thanks in advance.

Hi all,

In my dialogue program,i have screen which has has currency field and quantity fields.

how can i write a code so that user can not enter the alpha chars in those field.

Thanks in advance.

5 REPLIES 5
Read only

Former Member
0 Likes
784

Hi,

If you have use the field which has got the currency and quantity data types..Then it will be automatically be taken care..

Thanks,

Naren

Read only

0 Likes
784

Thnx for reply...

But this field is in my table control.

And while creating the table control through wizard,i have taken the reference of an internal table of my program.

And data type of this field in the internal table was CHAR.

Now if i have to change it to currency data type means what i have to do?

Read only

0 Likes
784

I got it resolved....

thnx for ur help.

Read only

Former Member
0 Likes
784

Hi,

If you are giving the column name give a name which is of currency data type..

Example.

-


DATA: BEGN OF S_SCREEN,

CURRENCY_FIELD TYPE NETPR,

END OF S_SCREEN.

Then give the screen field name as S_SCREEN-CURRENCY_FIELD..

Basically in the attributes of the field..In the "Format" text box it should be CURR.

Thanks,

Naren

Read only

Former Member
0 Likes
784

Hi,

Please reward points for helpful answers..

Thanks,

naren