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

regarding domains and data elements

Former Member
0 Likes
1,388

hi friends,

how can we restrict the entering of data for field in Table?????

Example is user has to enter the data only between values between 0 to 6.

how to do it?????????

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,330

Hi,

good question, u can restrict the values for a partcular field as follows:

In the DOMAIN for that field. Slecet VALUE RANGE TAB, then in the INTERVALS,

give LOWER LIMIT = 0 and UPPER = 6, provide some short text,

Then that particular field will be restricted between 0 & 6.

Revert back if any issues,

Reward with points if helpful.

Regards,

Naveen

11 REPLIES 11
Read only

Former Member
0 Likes
1,330

Hi Subash,

In the domain under the value range tab you can give this interval (0-6).

Regards,

Vidya.

Read only

Former Member
0 Likes
1,331

Hi,

good question, u can restrict the values for a partcular field as follows:

In the DOMAIN for that field. Slecet VALUE RANGE TAB, then in the INTERVALS,

give LOWER LIMIT = 0 and UPPER = 6, provide some short text,

Then that particular field will be restricted between 0 & 6.

Revert back if any issues,

Reward with points if helpful.

Regards,

Naveen

Read only

Former Member
0 Likes
1,330

Hi,

You can try to maintain value table (0 to 6) at domain level.

Regards,

Ferry Lianto

Read only

0 Likes
1,330

even i given lower limit = 0 and upper limit = 6 but system is accepting all values.

how to solve these problem?????????

Read only

Former Member
0 Likes
1,330

Hi

The Data type of that field should be NUMC.

Regards

Haritha.

Read only

0 Likes
1,330

even i tried with NUMC but it is accepting all values???????????

Read only

Former Member
0 Likes
1,330

1) Have you re-activated both the domain and data element since you made the change? (It is easy to forget!)

2) This check only works on a screen field based on the data element, not when the field is set internally by ABAP code.

Read only

0 Likes
1,330

i done activation in both domain and in data element???

am entering the data at database table level......

it is taking all the values?????????

Read only

0 Likes
1,330

Hi Subash,

How are you entering data at the Database Table Level?

Via a dialog screen - you will find that you see a drop down list of values and you can't enter a value not in the list.

Via ABAP code direct - is your code something like...?

<i>WorkArea-Field</i> = 7.

...

INSERT <i>Table</i> FROM <i>Workarea</i>. "This command doesn't check the possible values

Read only

Former Member
0 Likes
1,330

hi experts

what t code can help me to find pending i/r report ?

regards

subhendu chatterjee

Read only

Former Member
0 Likes
1,330

hi subhash ...

i had gone thorugh the full conversation of this question ...see

i think you did not unerstood the domain value and value of limits.

it should be of char type ...and you can given the limit as

example

dataelement : sex

domain : sex type CHAR 1.

<b>

0 fish

1 chicken

2 muttom

3 frog

4 dog

5 men

6 women</b>

so that the sex is of type c the vaule range to user is 0 - 6 ... and the range gets it text .

Reward points if it is usefull ...

Girish