on 07-11-2012 12:08 PM
Hi Experts,
Pls let me know your thoughts on the below scenario:
IT0041 should update automatically through dynamic action when ever hiring action takes place. I have created one date type (OR), this needs to be updated in IT0041. Actually IT0041 should update with the date one year more than the hiring date (for ex: Employee hired on 01.01.2012, IT0041 record should update with date type (OR) as 01.01.2013).
Could you pls let me know whether this condition can be satisfied through dynamic action.
Thanks in advance!!!
Rajesh
Hi Rajesh,
This can be achieved with dynamic actions but will also need a little bit of ABAP support.
Similar to the example given by Rameshwar above,
0000 | 06 10 **DEFAULT DATE SPECIFICATION FOR TERM | ||
0000 | 06 20 P P0000-MASSN='HR' | ||
0000 | 06 30 I INS,0041,,,(P0000-BEGDA),(P0000-ENDDA) | ||
0000 | 06 40 W P0041-DAR01='OR' | ||
0000 | 06 50 F ACTION_DATE_PLUS_ONEYR(ZHPADYN) | ||
0000 | 06 60 W P0041-DAT01=RP50D-DATE1 |
You will have to create a ABAP program (Subroutine pool) with the name ZHPADYN and it should have subroutine action_date_plus_oneyr.
PROGRAM zhpadyn.
TABLES : rp50d.
FORM action_date_plus_oneyr.
** Calculate P0000-Begda + 1 yr and assign to rp50d-date1
ENDFORM.
- Puneet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajesh,
Kindly write dynamic action as mentioned below:
***CREATE INFOTYPE 0041 WHEN HIRE A NEW EMPLOYEE***
T001P-MOLGA='40'
P0000-MASSN='01'
INS,0041,,,(P0000-BEGDA),(P0000-ENDDA)/D
SUB_GET_ANNIV(Y_DYACT_ANNIV)
P0041-DAR02='0C'
P0041-DAT02=RP50D-DATE1
P0041-DAR01='01'
P0041-DAT01=P0000-BEGDA
Hope this will help.
Regards,
Rameshwar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Give the another condition in dynamic actions to default the date as 01.01.2012,
or in it 0041 maintained as your hiring date.
as your wish you can choose your best.
Regards
Pavani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.