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

Function key assignment to push-button on screen

sushant_singh
Participant
0 Likes
851

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
Read only

Former Member
0 Likes
622

Hai,

Give funtion code 'CRET' for that pushbutton.

Regards,

Padmam.

Read only

0 Likes
622

Hi padmam,

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

by the way thanks for replying.

Read only

0 Likes
622

Hai,

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

Regards,

Padmam.

Read only

former_member219399
Active Participant
0 Likes
622

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'.

Read only

MarcelloUrbani
Active Contributor
0 Likes
622

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