on 2009 Jan 28 11:46 AM
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.-
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.-
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
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.-
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
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
User | Count |
---|---|
101 | |
8 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.