‎2009 Sep 15 10:17 AM
Hi all,
I have table ztable defined in DDIC,
I created screen 2000 ( this will be input screen for my table)
Is there any sample how to create control for this table ( preview, delete, update, modify)
I need to create icons for this functionality.
Table control function with generator not permissive.
‎2009 Sep 15 10:28 AM
You can create fields on the screen by referring to the DDIC ztable. This way, you will get the lables and relevant fields. Make all fields read-only.
Now provide two buttons for navigating records Previous < and Next > record. Use SELECT SINGLE to read the record based on variable w_index (increment or decrement it when user presses < or >)
Now provide a button to change record. When this button is pressed, change all fields to editable (except key fields). Also, activate a Save button if user enters change mode.
When save button is pressed, save the field contents to table at w_index.
Similarly, give Delete button.
For New entries, clear contents of all fields and make even the key fields editable. When user presses save, append the contents to ztable.
Edited by: Sandeep Poddar on Sep 15, 2009 2:58 PM
‎2009 Sep 24 10:54 AM