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

Issue while entering amount

Former Member
0 Likes
564

Dear experts,

Suppose I have a screen where I can enter amount of max 3 numbers ( ex 999 ) . If I give 1000 then it will show error message that too long entry.But in the database where the amount will store , its length is say numc 10.

I just wanted to know is there any way to enter 1000 in the amount fld through screen ?

Thanks in adv.

A Miter.

4 REPLIES 4
Read only

Former Member
0 Likes
532

What's the length of the field being displayed on screen? is it the same as in Dictionary ( 10 NUMC)?

Read only

Former Member
0 Likes
532

i wouldnt even try to do that.

If there is a validation of the field that makes sure you dont enter 1000 or more, then it is there for a reason normally.

Read only

Former Member
0 Likes
532

Hi,

which data elements are used for the screen field and for the database field?

Regards,

Klaus

Read only

0 Likes
532

You declare properly:

For Example

types: BEGIN OF ITAB,

KUNNR TYPE KUNNR,

NAME1 TYPE NAME1,

END OF ITAB.

Here kunnr(name of the field) type kunnr(data element).

So when you declare explicitly data element of that particular field its domain technical characteristics will be automatically acquired by the locally declared field.

For amount for example you are using field DMBTR TYPE DMBTR, make sure you have declared Quantity/currency fields in table... as reference table->t001 and reference field->waers....

Kindly let me know if you are facing the same problem again.