Whether or not a procedure body can update the database depends on the program type (as set in the Program Summary) and the procedure body type and other answers to questions in the Procedure Overview dialog:
.The following table shows which program and procedure body types may update the database:
| Selection | May update the database | May not update the database |
|---|---|---|
| Program Type |
Batch Update
Data Entry Library Variant Library |
Enquiry
Report |
| Procedure Body type |
Batch
Combined Menu/Entry Device select/print Interactive Sub device output |
Action bar menu
Menu Link to C* Run another program Save/Exit menu |
*A Save/Exit menu will secure or abandon changes to the database but cannot update the database otherwise. A Link to C program can call a C function that updates the database.
If your procedure body is required to update the database, you must enable both of the Database procedure and Update database options in the procedure overview.