on 07-22-2008 8:02 AM
Hi HR Experts,
I need help in creating a dynamic action to retain both the hire date and the termination date. To explain it further, I have created a dynamic action when hiring someone that defaults Q1 or the hire date to the correct date. But how do I create a dynamic action wherein when running a termination action against an employee and when it reaches IT0041, both dates should show? Meaning both Q1 (Hire Date) and Q4 (Termination Date) should show in IT0041 when running termination action. It is because I need this when running a report and it should show both hire and termination dates. Please help. =(
Regards,
Arvin
Hi Santiago.
In this case, to u have this dates without lost any date type at infotype 0041, you need use a BADI (SE19-> Definition HRPAD00INFTY, Method IN_UPDATE).
You need create a report. This report will called inside "IN_UPDATE" method, to create this infotype correctly...
At report, you have use the function HR_INFOTYPE_OPERATION. Before the creation, you need read the infotype 0041, and store the date types gived in the new structure (used to gennerate this infty). After this move (to new structure), you have include your date type and exec this BAPI (HR_INFOTYPE_OPERATION).
In this case, dynamic actions is not better because you lost ours date type.
Regards!
Marcello
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
call 0041 in copy mode through dynamic actions or in the infogroup.
Regards,
Divya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for your responses. For now here is how my dynamic actions look like:
This is what I created for the hiring action with IT0041 defaulting to the hire date:
P P0000-MASSN='01'<----hiring action type
P T001P-MOLGA='13'
I INS,0041,,,(P0000-BEGDA),(P0000-ENDDA)/D
W P0041-DAR01='Q1'<-----date type
W P0041-DAT01=P0000-BEGDA
This is what I created for the termination action with IT0041 defaulting to the termination date:
P P0000-MASSN='11'<-----termination action type
P T001P-MOLGA='13'
I INS,0041,,,(P0000-BEGDA),(P0000-ENDDA)/D
W P0041-DAR04='Q4'
W P0041-DAT04=P0000-BEGDA
My question is how do I include date type Q1 (hire date) to the dynamic actions I created for termination action? I want to create it in a way that when IT0041 shows up during termination action, it will show both the dates for Q1 (hire date) and Q4 (termination date). Please help.
Thanks,
Arvin
User | Count |
---|---|
100 | |
11 | |
10 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.