‎2006 Oct 24 12:40 PM
Hello,
I have a screen field that should be checked using a check table. This works if I enter any value.
However, if the field is left blank then the check does not happen.
Is there a way to 'force' the foreign key check even if no value has been entered? (There may or may not be a blank entry in the check table.)
thanks in advance
Roland
‎2006 Oct 24 12:44 PM
Hi,
YOu can do that manually.
Write a validation in the PAI when value entered inthe screen field.
EG: FIELD V_SCREEN_FIELD MODULE VALIDATE_FIELD ON INPUT.
The module is only processed if the corresponding field does not have an initial value(if user enter some thing).
Thanks,
Ramakrishna
‎2006 Oct 24 12:46 PM
Hi,
Yes, I could, but the field is a customer enhancement of VBAK and I don't want to change transaction VA0x if possible.
Roland
‎2006 Oct 24 12:53 PM
If edit mode of your foreign key relation you can check one checkbox (do not remember exactly its name, but you will find it in SE11 transaction).
‎2006 Oct 24 12:55 PM
Hi,
You're probably referring to 'check required'. This checkbox is already checked.
Roland
‎2006 Oct 24 12:46 PM
Hi Roland,
If it is your own program,
Then in the PAI event of the screen,
Validate that field yourself.
IN Pai.
field field1 module check .
module check.
if field1 is initial.
message e001(zz) with 'Invalid Value'.
endif.
endmodule.
Regards,
ravi