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

Enter - save in database - dialog program

Former Member
0 Likes
707

Hi,

In module pool i had created a screen , and i have two button SAVE and CANCEL.

When i am using the save button data is getting updated in the database. but now i wanted to save the data by pressing enter on the key board.Help me on this.

Regards,

Dev

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
668

hi,

in user_command module of PAI,

in CASE ENDCASE,

instead of when 'SAVE' write

when '' (space - ok code for enter)

reward if usefull....

4 REPLIES 4
Read only

Former Member
0 Likes
669

hi,

in user_command module of PAI,

in CASE ENDCASE,

instead of when 'SAVE' write

when '' (space - ok code for enter)

reward if usefull....

Read only

Former Member
0 Likes
668

use insert statement in the under "save"

case sy-ucomm,

when "save"

insert into

endcase.

Read only

Former Member
0 Likes
668

if you are using a standard PF_STATUS, the green check is your enter key and the FCTCode/OK_CODE for it is 'ENTER'.

Read only

Former Member
0 Likes
668

Hi Devendran,

Create ENTER( FUNCTION CODE - ENTE ) pushbutton at Application toolbar in PF Status .

instead of calling the SAVE

case sy-ucomm.

when 'ENTE'.

insert ztable from gt_table.

endcase.

Regards,

Madhavi