cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Action-IT0041

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Puneet_Gupta
Contributor
0 Kudos

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

Former Member
0 Kudos

Thank you so much Puneet.

I will do accordingly and will get bac to u if I struck up any where.

And regarding PMS query still I am unable to find out that, any idea further on that.

Rajesh

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Rameshwar,

Thanks for the inputs

Rajesh

Former Member
0 Kudos

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