Output Parameters | Significance |
none | - |
Return Code | Significance |
0 | no error |
1 | no record found |
Can be invoked as post_field-userexit at the foreign key field of a link.
If a record is found in the secondary table, DataView automatically enters all subsequent attributes of this table visible in the link mask.
If several records are found in the secondary table, DataView will recursively open the master list of the secondary table for selection of exactly one record in this table.
If no matching record is found, a message will appear. The user can only leave the field after he either cancels the update- or insert operation, enters nothing, or specifies a value which the userexit can find in the secondary table.
Using this userexit you can simply prevent new entries in link masks if no matching record exists in the secondary table the link is directed to. Thus you force the user to first create the records in a list of the main table, before he creates a link. At the same time you make sure that all other attributes are automatically entered if the userexit allows the new entry in the link mask.
This userexit can only be usefully applied at foreign key fields in link masks.