Application Development 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: 

Function key assignment to push-button on screen

sushant_singh
Participant
0 Kudos
335

hi all,

I need to asssign a function key F8 to push buttion on the subscreen .

how can i do it?

thanks.

5 REPLIES 5

Former Member
0 Kudos
106

Hai,

Give funtion code 'CRET' for that pushbutton.

Regards,

Padmam.

0 Kudos
106

Hi padmam,

Is there any other way if I give it my own function code eg. 'EXE'.

by the way thanks for replying.

0 Kudos
106

Hai,

U can't give ur own Function Code.Function Code 'CRET ' is Meant for F8.

Regards,

Padmam.

former_member219399
Active Participant
0 Kudos
106

Hi,

I think u have to use the following code

PUSHBUTTON 12(30) but2 USER-COMMAND ONLI

becoz, the Fcode of execute button is ONLI.

with regards,

Vamsi

REPORT ZVMTEST_SDN.

SELECTION-SCREEN:

PUSHBUTTON 2(10) but1 USER-COMMAND cli1,

PUSHBUTTON 12(30) but2 USER-COMMAND ONLI

VISIBLE LENGTH 10.

parameters matnr like mara-matnr.

parameters maktx like mara-ERNAM.

write 'Hi'.

MarcelloUrbani
Active Contributor
0 Kudos
106

More generally, look up for the fcode assigned to F8 in the current gui status.

The default is ONLI, you may change it if you define your own gui status.

Message was edited by:

Marcello Urbani