Application Development 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: 

Validate screen input using Value table (domain level) only

Former Member
0 Kudos

Hi experts,

Is there a way to validate a field using only Value Table? Looking at other threads, it seems you should always have a domain with Value table then assign it as a foreign key for the check table.

Kindly advise if there is possible way to do it. My issue is the requirement wants to add check table for EQUI-HERST, and 'all' other objects/transactions that uses HERST field. If we're going to request access key for EQUI, then it should also be requested for all affected objects. Is that correct?

Thanks,

Eo

5 REPLIES 5

Former Member
0 Kudos

HERST is a free text. If you are going to replace it, you will need object key for table EQUI.

You can assign the custom data element to the field HERST, and then assign value table and check table to the same. But I would suggest you to sit with Basis guy while doing so, cause you might need to change the code in places where that field is used as well.

0 Kudos

Yes, we're going to create table (example ZZHERST_VALS) for EQUI-HERST. Sorry I forgot to mention that we think to replace the domain of HERST to a custom one. And this custom domain will use ZZHERST_VALS as value table.

Regarding the possible code changes for that field, <-- this is also the reason why we think to change at domain level. To no longer change other places/objects for that field.

0 Kudos

Great, you seem to have everything in place then.

So, to answer your question about validating entries based on value table - its not possible.

You will have to put in check table as ZZHERST_VALS.

former_member213851
Active Contributor
0 Kudos

Hi Eo,

As you want to validate screen inputs for  EQUI-HERST , You can assign the custom data element to the field HERST, and then assign value table and check table to the same

Or

If you want you can also make use of Fix Values option inside domain under Value range tab of domain.

Go to domain -> Value range tab .

From menue select  goto-->Fix value append ->Create your z Fix value append -> Add vaues .

This will not require Access keys.

Former Member
0 Kudos

Hi guys, chinmay,

Thanks, so it is really not possible for domain level validation only. I guess I have to raise this to our client that if they want all objects related to HERST to be updated, then we should update all standard SAP programs/objects.

Thanks!