cancel
Showing results for 
Search instead for 
Did you mean: 

HRP1001 & HRP1005 --- USER_EXIT implemnet for IT0008 OR 0001

former_member181966
Active Contributor
0 Kudos

HI

I have come across a requirement. We have additional filed in IT0001 as ‘ Job position key “ which is coming from table HRP1005 (DB Table for Infotype 1005 (Planned Compensation) on the object type = ‘9C’ ( Detail job ) . In user_exit of IT0008 it gets updated on the basis of Pay Scale Type,Pay Scale Area,Pay Scale Group-low,Pay Scale Level-low in infotype 0001 extended field. Our PA/PD update switch is on ( I really don’t what its means , I juts heard and posting : ) .

They ask me to introduce another extra field in it0001 like detail job , and called it object_id category and they create new object type as ‘9E’ ( object category ) .they want to see if some how job detail get changed , I have to read the job detail from HRP1005 and then object id category from HRp1001 and have to update it in IT0001.

Now my question is that whether I changed the user exit and make this change in IT0001 or made the change as it already in place in the code of IT0008.

I am in dilemma that what is the best place to make this change , user_exit for IT0008 ( when it saved ) or user_exit for it0001.

What this batch program does? what its role in this scenario? (RPISTLVP) .

Thanks

Message was edited by: Saquib Khan

Accepted Solutions (1)

Accepted Solutions (1)

suresh_datti
Active Contributor
0 Kudos

>>>user_exit for IT0008 ( when it saved ) or user_exit for it0001.

Saquib,

What exit are you using? ZXPADU02? then its the same for 0001 & 0008..

Regards,

Suresh Datti

former_member181966
Active Contributor
0 Kudos

Yes I’m using ZXPADU02. Yes you’re right and I should’ve mentioned it in my question. but right now we `re handling the logic in IT0008 When '0008'.

But for the new requirement I am on cross roads...

Thanks

suresh_datti
Active Contributor
0 Kudos

for 0001 stuff, you should use when '0001' simply because, you would like the code to be triggered when saving a 0001 record and not a 0008 record..

Also, it is better to start using the BAdI HRPAD00INFTY in place of the User exit.. I heard SAP would migrate to BAdIs down the line.. may not be anytime soon.. but who knows..

Regards,

Suresh Datti

former_member181966
Active Contributor
0 Kudos

But from OM side when position get changed and I have to read Object Type ( 9C :detail job) and then trigger the new object ID in IT0001 by using the EXIT and populating the code in IT0008 , as it read the detail job from HRP1005 on the basis of Pay Scale Type ,Pay Scale Area, Pay Scale Group-low and Pay Scale Level-low of IT0008.

after that I update the IT0001. this is the practice I am following right now , and code is in place and working !!!

Looks like I am not able to explain the exact business process to you . as its creating doubts

The other question do u have any example/code how to use this BADI HRPAD00INFTY ?

Thanks for your help !!

suresh_datti
Active Contributor
0 Kudos

if its working I wouldn't touch it.. like they say if ain't broke don't fix it...

About the BAdI, go to SE19 & create an implementation for the BAdI definition HRPAD00INFTY. You can put your code in methods BEFORE_OUTPUT (for PBO related validations) & in AFTER_INPUT or IN_UPDATE (for PAI related validations). Inside the method, the code you put is pretty much similar to what you would do in the User exit. In se18, you can display the available parameters for each method & use them in your code to meet your requirement.

Regards,

Suresh Datti

Answers (1)

Answers (1)

Former Member
0 Kudos

This post sound familiar..hah

Object 9C?!!!!