cancel
Showing results for 
Search instead for 
Did you mean: 

HAP_DOCUMENT appraisal filter appraise

former_member220448
Participant
0 Kudos

Hi to every one!

I need to filter the appraises I'm showing at "In planification" status, when I press on the link that shows me the employees I need to be shown some ones and some others no.

My question is, can I do this by using a Badi o how?

Thanks.

Nico.-

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

The BSP application works basically by pulling all the appraisal documents where the userid-mapped appraiser is assigned as the final approver/part appraiser in the appraisal document.

If you need to filter out the documents, then you would end up changing the class CL_BSP_HAP_DOCUMENT_UI and method DOCUMENT_GET_LIST_TODO.

Try for an implicit enhancement to this class method to filter out the appraisal docuemnts. May be you can call another Zmethod inside DOCUMENT_GET_LIST_TODO which you can add to the class to filter your data.

Hope this helps you.

Regards,

Subbu

former_member220448
Participant
0 Kudos

Hi Subbu,

What I'm trying to do is not to filter the documents that are show in the document_todo.htm but to filter the employees that are shown at the header level when I press on the link next to the input parameter "appraise".

When I press this link a list with all the employees of the company shows up, but I need to restrict this search.

I hope I had explain myself better this time.

Thanks,

Nico.-

Former Member
0 Kudos

Hi,

Yes. Now i am more clear on your requirement.

Ok. Here is the deal. There is a page fragment "document_header_appraisee.htm" in the BSP application HAP_DOCUMENT. I hope you would have either customized this BSP or cloned into a Z BSP now.

In this page fragment, you get the code "application->doc_h-t_selected_appraisee" in line 78.

This is where the employees are returned back.

So what i would be doing is enhance the application class CL_BSP_HAP_DOCUMENT_UI->HEADER_EVENT_APPRAISEE with the enhancement framework to filter out the employees and in my prev post i suggested to create a z moethod to filter.

Use the implicit enhancement option for the same. There is one spot just before the ENDMETHOD.

Hope this helps you.

Regards,

Subbu

Answers (0)