04-25-2006 3:02 PM
Hello everybody!
Is it possible to deactivate a button on the application toolbar from standard transaction like PA40?
I'd want to do it using an user-exit.
Thanks in advance.
Cristian
04-25-2006 3:34 PM
Why don't you try to create a Transaction Variant for PA40 using SHD0?
Regards,
Suresh Datti
04-25-2006 3:10 PM
check out these user exits for PA40
HRPBAS01 User Exit for HR Master Data
HRPC0001 HR: PC download authorization
HRRPAI01 User exit for FB HR_ENTRY_DATE and HR_LEAVING_DATE
PARA0001 Enhancement for Determining the Number of Periods
PARA0002 Enhancement for Calculating Annual Salary; IT0008,14,15
PBAS0001 PA: Pers.Admin./Recruitment: Default values and checks
PBAS0002 PA: Enhancements for Personnel Administration - Menu
PBASRP01 PA: User exit distributed reporting
04-25-2006 3:34 PM
Why don't you try to create a Transaction Variant for PA40 using SHD0?
Regards,
Suresh Datti
04-25-2006 5:01 PM
04-25-2006 5:21 PM
Hi Cristian,
it is possible with SHD0(Zero) Transaction and Screen Variants.
you can hide or deactivate. check it.
Regards
vijay
04-25-2006 5:47 PM
there is a push button on the std tool bar of pf-status 'Function code'.using that u can activate and deactivate teh function codes
or
Check this FM : RS_SET_SELSCREEN_STATUS
sample code :
DATA: BEGIN OF i_exc OCCURS 0,
code LIKE sy-ucomm,
END OF i_exc.
DATA: ws_repid like sy-repid.
CLEAR i_exc.
i_exc-code = 'ONLI'.
APPEND i_exc.
MOVE: sy-repid TO ws_repid .
CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
EXPORTING
p_status = ' '
p_program = ws_repid
TABLES
p_exclude = i_exc.
04-25-2006 7:35 PM