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 F4

Former Member
0 Likes
380

Hi Guys,

How can we assign a function key to F4 in a Z GUI status?

2 REPLIES 2
Read only

Former Member
0 Likes
336

hi

by useing function module

AT SELECTION-SCREEN ON VALUE-REQUEST FOR EMP_QUA-LOW.

SELECT OBJID

SHORT

STEXT

BEGDA

ENDDA

FROM HRP1000

INTO TABLE IT_HRP1000_SH

WHERE OTYPE = 'Q'.

IF SY-SUBRC EQ 0.

  • SEARCH HELP FOR QUALIFICATION.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

  • DDIC_STRUCTURE = ' '

RETFIELD = 'OBJID'

  • PVALKEY = ' '

DYNPPROG = SY-REPID

DYNPNR = SY-DYNNR

DYNPROFIELD = 'EMP_QUA'

  • STEPL = 0

  • WINDOW_TITLE =

  • VALUE = ' '

VALUE_ORG = 'S'

  • MULTIPLE_CHOICE = ' '

  • DISPLAY = ' '

  • CALLBACK_PROGRAM = ' '

  • CALLBACK_FORM = ' '

  • MARK_TAB =

  • IMPORTING

  • USER_RESET =

TABLES

VALUE_TAB = IT_HRP1000_SH

  • FIELD_TAB =

  • RETURN_TAB = RETURN_TAB

  • DYNPFLD_MAPPING =

  • EXCEPTIONS

  • PARAMETER_ERROR = 1

  • NO_VALUES_FOUND = 2

  • OTHERS = 3

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

ENDIF.

reward if usefull

Read only

Former Member
0 Likes
336

In the Menu Painter (se41):

Select the Program name and your status number then change.

Select the Utilities-->F key consistency.

There you can assign the Function for F1 and F4.

Reward points if helpful.