cancel
Showing results for 
Search instead for 
Did you mean: 

BSP HAP_DOCUMENT validate appraisal info

former_member220448
Participant
0 Kudos
94

Hello,

I´ve copied HAP_DOCUMENT BSP aplication to a Z one,

When I change the appraisal status from "In preparation" to "In review", I need to check that my Z weight column totalities a hundred.

Should I do this on my aplication by modifying my aplication code? do you know where should I do tihs?

Or should I use a badi and link it to my template?, do you know which badi and how should I link it?

I guess it could be better the first option but I'm all ears to any suggest.

Thank you very much.

Nico.-

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Nicolas,

For your requirement, you need to create a Badi implementation for the Business check Badi HRHAP00_DOC_BC method DO_BUSINESS_CHECK.

Once you create a new implementation for this with a Z filetr value, you have to add that to the template of the underlying appraisal document. You can code inside the Badi for all business related checks ( weight column totalities a hundred).

I suggest you to post HR related queries in the [ERP HCM(HR)|; forum.

Hope this helps you.

Regards,

Subbu

former_member220448
Participant
0 Kudos

Hi Subbu

Thanks for answer, but I can't find the Badi you named, could it be because of my SAP version?, I'm using SAP ECC 6.0.

I found HRHAP00_BC_ELEMENT with this methods

BUSINESS_CHECK_VA

BUSINESS_CHECK_VB

BUSINESS_CHECK_VC

BUSINESS_CHECK_VX

but I can't tell if it is the one I need.

Any idea?

Thanks again.

Nico.-

Former Member
0 Kudos

Hi Nicolas,

Its very well availabe in ECC6.0. Did you look at SE18? Because its a Badi definition(classical badi).

This is the Badi of rwhich you need to create the implementation. Once you select this in the SE18, goto "Filter value" in the menu and then click on create. Then you can go ahead in the implementation.

Hope this helps you.

Regards,

Subbu

former_member220448
Participant
0 Kudos

I found it and I already create my implementation with a filter.

Now, where do I have to link it in the PHAP_CATALOG_PA transaction?

Do I have to add it to the OOHAP_BASIC first?, where?

Sorry for asking everything but I'm not very familiar with appraisals.

Thanks.

former_member220448
Participant
0 Kudos

Hi, I already added my implementation to OOHAP_BASIC into the BC enhancement and also added into the Further Template Behavior, but it doesn't seems to be working.

I put an insert into a Z table (just for test) in the DO_BUSINESS_CHECK method but nothing happend.

I need to do the check when I press the review button.

What I'm doing wrong?

Thanks,

Nico.-

former_member220448
Participant
0 Kudos

Hi Subbu,

I' ve solved my problem of execute the Badi, It is now been executed properly,

but now I'm having problems to show a message when the validation fails.

Could you show me how should I fill T_RETURN?

Thank you very much.

Nico.-

Former Member
0 Kudos

Hi Nicolas,

A sample code could be like this.

data : lw_return TYPE bal_s_msg.

IF sy-subrc NE 0.

*-- Condition faliled here -> Error thrown

lw_return-msgty = 'E' . " Error Message

lw_return-msgno = '23'. " Your message number from custom message class

lw_return-msgid = 'YOSAMSG' . " Messsage class name

lw_return-msgv1 = l_text . " l_text -> explain briefly on the error

APPEND lw_return TO t_return.

CLEAR: lw_return.

Endif.

Hope this helps you.

Regards,

Subbu

former_member220448
Participant
0 Kudos

Thanks to every one who helped me. I'm really thankful your tips and time.

I finally solved my problem with the no shown messages, the problem wasn't the BAdI or the aplication, it was my browser that didn't allow popup, so I enable that option and problem fix!

Thanks again

Nico.-

Edited by: Nicolas Giuffrida on Jan 29, 2009 2:54 PM

Answers (0)