Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

update table

Former Member
0 Likes
359

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.

2 REPLIES 2
Read only

Former Member
0 Likes
333

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

Read only

Former Member
0 Likes
333

solved