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

Value Check for a given data element

Former Member
0 Likes
1,740

Hi,

does anyone know a standard method/function which checks if a given value(type string) is valid for a given data element.

Thank you and best regards, Edgar

6 REPLIES 6
Read only

Former Member
0 Likes
1,210

Hi,

Filed consists of DataElement consists of Domain.

DataElement holds the semantic properties of the field, that is field description.

Domain holds the technical properties of the field, that is Type&Size.

As per my knowledge, Value check can be done at Field level (under the event At Selection-Screen)

or

Domain ('coz Domain may contain fixed values).

Bye,

KC

Read only

0 Likes
1,210

Hi,

sorry perhaps I Have given not enough explanations.

One example:

I have following field value: 1aaa

I have a data element which is defined as integer.

Question: Is this field value an integer?

Answer: No

There could be much more questions.

Now I am searching for a generic standard method/function where I can pass the field value and a data element. As a result I get an info if this combination is a valid combination.

Best Regards, Edgar

Read only

0 Likes
1,210

Hi,

Please, be specific,

Can you give the name of the data element, domain, field name, table of which your question has framed?

Bye,

KC

Read only

0 Likes
1,210

Hi KC,

this is a generic task. I can't tell you a specific data element. As input I have pairs of value and data element.

Best Regards, Edgar

Read only

0 Likes
1,210

Use CHECK_DOMAIN_VALUES function module by passing domain name and the value, it will validate the input.

We cannot do by data element you need to pass the domain name.

Read only

0 Likes
1,210

Hi Manahor,

good point, but I want to check if e.g. the defined domain data type corresponds to the field value, e.g. is the value AAA of data type int1(of course not).

Best Regards, Edgar