Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Changing code inside CL_HRPA_INFOTYPE_0021

Former Member
0 Likes
631

Dear Experts,

I have to change the  logic inside the method CHECK_FIELDS of CL_HRPA_INFOTYPE_0021.

What is the way to change the code inside the method "CHECK_FIELDS" ?


When I try to change the code of  the method "CHECK_FIELDS" , the system  lock the code (even if I inserted the change key).

Thanks in advance for your help.

Antonio

1 ACCEPTED SOLUTION
Read only

benedict-torres
Participant
0 Likes
588

Here's a quick and dirty way to do your change

1. copy your Class to a custom class

2. change the configuration table V_T582ITVCLAS to link the check class to your new custom class.

As I have said, it's dirty because you have to consider that this is already a custom class that might be impacted if you want to change.

On the other hand, you can try implementing BADI HRPAD00INFTYBL and add logic to MODIFY_COMPUTATIONS or something to add new customer specific checks then filter implementation to INFTY 0021.

Thanks.

2 REPLIES 2
Read only

benedict-torres
Participant
0 Likes
589

Here's a quick and dirty way to do your change

1. copy your Class to a custom class

2. change the configuration table V_T582ITVCLAS to link the check class to your new custom class.

As I have said, it's dirty because you have to consider that this is already a custom class that might be impacted if you want to change.

On the other hand, you can try implementing BADI HRPAD00INFTYBL and add logic to MODIFY_COMPUTATIONS or something to add new customer specific checks then filter implementation to INFTY 0021.

Thanks.

Read only

0 Likes
588

Hi Benedict, thank you for your reply,

As you suggest the first proposal is the dirty way but and I will use that as last option.

Regarding the implementation of the BADI HRPAD00INFTYBL, in your opinion, is it possible to disable some consistency  check of some field by implementing MODIFY_COMPUTATIONS filtering to INFTY 0021 ?

Thank you for your help .

Ciao,