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: 

Enter - save in database - dialog program

Former Member
0 Kudos
217

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

Former Member
0 Kudos
178

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

Former Member
0 Kudos
179

hi,

in user_command module of PAI,

in CASE ENDCASE,

instead of when 'SAVE' write

when '' (space - ok code for enter)

reward if usefull....

Former Member
0 Kudos
178

use insert statement in the under "save"

case sy-ucomm,

when "save"

insert into

endcase.

Former Member
0 Kudos
178

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

Former Member
0 Kudos
178

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