07-18-2016 8:57 AM
Hi panel, wish this message finds you in good health,
Expert, there are some links which I have searched about this issue:
http://scn.sap.com/thread/1480331
http://soundofabap.blogspot.com/2015/01/enable-or-disable-hide-function-keys-on_17.html
http://scn.sap.com/message/1179580#1179580
https://scn.sap.com/thread/1071303
but the problem is not yet solved.
I have an interface INS or GUI status, in MP900200 standard program, where icons- EPRV (ICON_PREVIOUS_OBJECT) and ENXT (ICON_NEXT_OBJECT) are created visible but disabled, I would like to see them visible and enable, as well as to add some code below them. All of icons are Display all value in Displaying Inactive Function option. I'm using this GUI status in Z transaction.
could you tell me how can I do that?
Kind regars
07-18-2016 10:27 AM
I guess you want to do a modification of the standard. If you're sure of what you're doing, okay.
There are three ways to disable a function code:
To enable it, just do the reverse operation.
07-18-2016 10:40 AM
Perform some debug, start with form DYNAMIC_PFSTATUS of include FP50MF20 (SAPFP50M).
Regards,
Raymond
07-19-2016 10:54 AM
Thank you panel,
Yes Raymond I have just find the line where that icon are "excluded":
Include FP50MF20 , form SET_PFSTATUS, below is the code:
FORM SET_PFSTATUS USING VALUE(PF_STATUS) LIKE SY-PFKEY.
SET PF-STATUS PF_STATUS EXCLUDING FUNEXCL.
ENDFORM.
and the icons,EPRV and ENXT which I would like to enable are in the itab FUNEXCL referenced in SET PF-STATUS......since it is a standard code, what should I do....
kind regards.
elina
07-19-2016 12:26 PM
Go back to PM01, some parameters are to be changed to allow those functions?
Cordialement,
Raymond
07-21-2016 7:40 AM
hi panel,
Thank you Raymond
I will go forward by your suggestion, I wish this solution won't cause an error in many HR transactions where these infotypes are used.
Kind regards
( Cordialmente in PT)
12-23-2020 4:54 AM
I have solved like this.
DATA: BEGIN OF funexcl OCCURS 2,
funkt LIKE sy-ucomm,
END OF funexcl.
funexcl-funkt = 'SAMD'. " name of functions key which are wanted to disbale .
APPEND funexcl.
SET PF-STATUS '0100' EXCLUDING funexcl.