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: 

Deactivate Domain Check in editable ALV grid

fabiankegel
Employee
Employee
0 Kudos

Hi,

I use the editable ALV Grid. When one of the fields in the grid has a domain with fix values, the ALV Grid always checks, if the input fits to these values.

Is it poosible to deactivate this domain check for the ALV Grid?

I would be very glad if you could help me.

Best regards,

Fabian

1 ACCEPTED SOLUTION

fabiankegel
Employee
Employee

Hi,

we found a solution. Now we set the field VALEXI to '!'. This deactivates the domain check. You can have a look at the corresponding code in the ALV Grid method formal_field_check_ddic.

Thank you for your help.

Best regards,

Fabian

10 REPLIES 10

former_member181962
Active Contributor
0 Kudos

Hi fabian,

One way is not to refer that Domain when declaring that field.

REgards,

Ravi

Eg: intead of matnr like mara-matnr, declare matnr(18).

hymavathi_oruganti
Active Contributor
0 Kudos

U can do one thing,instead of declaring variable of type domain,

declare with the no of characters exactly equal to that of the domain length

Former Member
0 Kudos

Hi,

Take out the REF_TABLE field data from the field catalog for that specific field.

Regards,

Ravi

fabiankegel
Employee
Employee
0 Kudos

Hi,

I would like to use a data element with a domain that contains fix values.

Is there any possibility to deactivate the check when a domain with fix values is used?

Best regards,

Fabian

0 Kudos

then u have to go to domain and remove the fix values there if possible.

fabiankegel
Employee
Employee
0 Kudos

Hi,

I would like to use a domain that contains fix values. I do not want to remove them.

My question is, if I can deactivate the check.

Best regards,

Fabian

0 Kudos

Hi fabian,

YOu can tamper with these two field catalog parameters

fieldname

tabname

GIve some other table name and field name to refer at runtime, which doesn't refer the same domain.

Regards,

Ravi

fabiankegel
Employee
Employee

Hi,

we found a solution. Now we set the field VALEXI to '!'. This deactivates the domain check. You can have a look at the corresponding code in the ALV Grid method formal_field_check_ddic.

Thank you for your help.

Best regards,

Fabian

0 Kudos

This is the exactly right solution!!!

0 Kudos

Hi Fabian Kegel,

your solution will work for grid fields, but if i want to remove domain checks to a screen field then how can i do that, in my case i want to avoid domain checks to a screen field can u tell me a proper solution,

Waiting for reply,

Thanks,

Nishanth