Skip to Content

Generic input validity check against table/field

Hello!

Is there some function or something which would enable checking of a value against ANY table/field (or domain) combination? This is tricky because there are numerous criteria types. For example, date and currency fields have specific formats, many fields have foreign key table, others have value table or fixed values list in domain...

I know that each of data types have specific functions. But I wonder is there something generic?

For example (note that this doesn't work):

DATA: l_value TYPE char132.
l_value = '20071231'.
CALL FUNCTION 'CHECK_VALUE'
  EXPORTING tablename = 'BSEG'
            fieldname = 'BLDAT'
            value     = l_value
  EXCEPTIONS invalid = 1.

Thanks in advance!

Regards,

Igor

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 01:13 PM

    Hi,

    the following function exists for domain controls : CHECK_DOMAIN_VALUES.

    You can also take a look in program /SAPDMC/SAP_LSMW_CONV_DATA_CHK to find some ideas.

    David

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.