Step 1: create data elements, structures, and database table
A foreign key relationship using field TEXT_KEY in database table YCUST_SATISF_TT, as this shared by tables YCUST_SATISF_T and YCUST_SATISF_TT.
Step 2: Generate the lockobject for tables YCUST_SATISF_T and YCUST_SATISF_TT
Create a new lock object named EZ_SURVEY for primary table YCUST_SATISF_T.in the Lock Mode field, she choose E_WRITE_LOCK. Because there’s a foreign keyrelationship between those two tables, I decides to specify a secondary tableand thus generate only one set of function modules to set and unset the requireddatabase write locks.