on 09-16-2014 1:59 PM
I am looking into making a similar change and wanted to see what you ultimately did to accomplish this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The solution above should work to hide the button altogether, but another option is you can just disable the button so that it cannot be pressed via a simple change to BADI HRESS_PAYSLIP_BADI_IMPL directly from within SAP without having to do the floor plan manager enhancement. In order to do this go to the following area in the IMG. You can either create a new BADI implementation or adjust the code within the existing BADI via an enhancement spot in the code.
When you get into the BADI the METHOD we want to adjust is IF_HRESS_PAYSLIP_BADI~ADJUST_PRINTBUTTON_STATUS
Just change the standard code to pass the value abap_false to the ev_enabled variable.
The button should then be disabled for everyone when the salary statement is run. See the before and after image below.
A third option for hiding the button completely would be to set the default view to hide the button for everyone. Keep in mind this means that people can right click on the screen and unhide it if they wish. This needs to be done by running the application configuration HRESS_AC_PAYSLIP in admin mode from SE80
Once you run it and go into the default settings for everyone to invisible
This will need to be put on a transport and transported to your other systems - the system should prompt you when you save.
What I mean when I previously stated that someone could reactivate this button - by right clicking and selecting user settings and then invisible elements there is an option for "Restore Button "Request Print" which restores it for the user only.
Really any one of the 3 solutions could be an option.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vikram,
in case "Salery Statement" is the same as "Payslip" and you are using WebDynpro ABAP, here is the way I did it: For Application HRESS_A_PAYSLIP respectively the CC HRESS_CC_OVP_PAYSLIP for FPM Component FPM_OVP_COMPONENT I have created an Enhancement. Within the Enhancement, for Page "MAIN_SCREEN" and Schema PushButtonRow (Loosely translated from German, I hope you know what I mean :-/) I have set the Button for printing "invisible".
Pretty easy solution at that (fortunately) without any dynamic programming etc 😉
Cheers, Lukas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.