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: 

Is it possible to deactivate a button on the application toolbar?

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

suresh_datti
Active Contributor
0 Kudos

Why don't you try to create a Transaction Variant for PA40 using SHD0?

Regards,

Suresh Datti

6 REPLIES 6

Former Member
0 Kudos
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                      

suresh_datti
Active Contributor
0 Kudos

Why don't you try to create a Transaction Variant for PA40 using SHD0?

Regards,

Suresh Datti

0 Kudos

hi,

Check this out

Hope it Helps,

Regards,

Santosh

former_member188685
Active Contributor
0 Kudos

Hi Cristian,

it is possible with SHD0(Zero) Transaction and Screen Variants.

you can hide or deactivate. check it.

Regards

vijay

Former Member
0 Kudos

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.

Former Member
0 Kudos

Thanks for the replies!!!!

Cristian