cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding/Changing ui objects for Appraisal Documents on EHP5

brunoambrozio
Participant
0 Kudos

Hi,

Our customer would like to hide some columns and buttons in the appraisal documents table on EHP5. I could perform it for these buttons through application and component configuration, but I haven´t found a way to choose which columns I want to display for the users.

I found the object of this table in the component configuration. The object name is POWL_DATA, but I can only make it visible or invisible.

I know that if I open the funcionality, I can choose the table columns, but he wants that when the user calls the appraisal document the columns be already configured for every users.

Is there a way to reach this requirement?

Thanks.

Bruno

Accepted Solutions (1)

Accepted Solutions (1)

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

have you tried using the badi BADI HRHAP00_COL_ACCESS?

To fulfill your requirement, you could develop a customer

implementation of BADI HRHAP00_BUT_ACCESS (but first of all, you need

note 1421150 applied in your system).

In addition, there is another choice, you could use BADI

HRHAP00_ENHANCE_FREE, method CHECK_EXECUTABILITY. This is the badi

that puts the button in the document, and that allows to enter up to

seven elements (according to customer customizing). You use the

standard badi, but you can also create a customer implementation

similar to the standard one, and in the method CHECK_EXECUTABILITY

you can enter your own coding to disable the button if the user id the

employee.

brunoambrozio
Participant
0 Kudos

Hi Siddharth,

Thanks for your prompt reply. Just remembering, I´m asking to configure the appraisal documents table list accessed by

http://:8000/sap/bc/webdynpro/sap/hap_start_page_powl_ui_mss?sap-language=PT&sap-wd-configId=HAP_START_PG_POW_MSS_AC

In summary, so is not possible to configure it by component or application configuration? Only by code?

Regards,

Bruno

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

Please can you advise on what you afre trying to change?? cause we have columns and then we have buttons on top of it?

Probably this can help

Regarding the buttons in MSS POWL-List ->Performance Management you can

use your own feeder class ZCL_HRHAP00_STARTPG_POWL. Just copy the

standard and do your own modification in order to fulfill your

requirements. For example buttons

Method IF_POWL_FEEDER~GET_ACTIONS

...

actionid = 'DELETE'.

...

You can create your own type (or just use the standard one) eg.

via transaction POWL_TYPE (see the standard entries)

type ZOSA_POWL_MSS_STAT_OV ->

Feeder class ZCL_HRHAP00_STARTPG_POWL

Then using the transaction POWL_TYPER assign this type to the role.

application OSA-POWL-MSS

Then use the transaction POWL_QUERY to create own new queries.

eg. QueryID ZOSA_MSS_OVERVIEW_QUERY

Type ZOSA_POWL_MSS_STAT_OV

You may use also the transaction POWL_QUERYR

OSA-POWL-MSS ZOSA_MSS_OVERVIEW_QUERY

where you may change and decide the sequence number of the Tab/Query

Through your own feeder class you can have your own selections criteria

your own actions and your own way of data retrieving using the

method 'get_object'

brunoambrozio
Participant
0 Kudos

Hi Siddharth,

Your tips were really helpful. At the moment I found a way to customize the table columns without create a copy. I acessed POWL_QUERY tcode and selected the query OSA_MSS_STATUS_OVERVIEW.

After that, I chose the option "Layout Variant" and a browser opened with the table and I customized as the user requirements. I tested and performed the same for OSA_ESS_STATUS_OVERVIEW.

Now, what is missing is to disable the buttons "Create" and "Create Multiple" for MSS table list which I couldn´t do it on query OSA_MSS_STATUS_OVERVIEW.

Do you think there is a way to configure that as I made with the columns or i really have to create a Z?

Thanks for your attention.

Bruno

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

Good to learn you are able to do this via configuration!

it is not possible to hide the buttons via configuration. Buttons are added

during runtime in class CL_HRHAP00_STARTPG_POWL method

IF_POWL_FEEDER~GET_ACTIONS so it cannot be done via configuration,

but as a modification, in this code!

Sorry about that!

brunoambrozio
Participant
0 Kudos

Hi Siddharth,

I will pass your information to the abap team to make this development and I will let you know about the result.

Thank you again for your tips. I´m closing this thread.

Regards,

Bruno

brunoambrozio
Participant
0 Kudos

Hi folks,

For whom needs to achieve the same requirements as mine, follow the solution to disable the buttons.

1 - Create an enhancement point in CL_HRHAP00_STARTPG_POWL method IF_POWL_FEEDER~GET_ACTIONS

How to: http://wiki.sdn.sap.com/wiki/display/ABAP/EnhancementFramework-ImplicitEnhancement-EnhancingstandardtransactionPA30forinfotype0618-Academic+Qualifications

2 - Add the code:

IF i_applid = 'OSA-POWL-MSS'.

    ls_action_def-ENABLED = ''.

    MODIFY c_action_defs from ls_action_def TRANSPORTING enabled
      WHERE ACTIONID = 'CREATE' or ACTIONID = 'MASS_CR'.

  ENDIF.

That´s it!

Bruno

Answers (0)