cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Action

Former Member
0 Kudos

Hi,

I have a requirement in HCM, wherein if an employee is terminated according to action '10' and reason '19' ( Severance ) ,

The enddates of IT0377 ( subtype ADB1 ) , IT0167 (subtype WEC1) should be modififed to the date in IT0019-TERMN coresponding to IT0019-TMART = 'Z8'.

If this can be done by Dynamic Action, kindly let me know how to go about achieveing this.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Anish,

You'll need to do some ABAP coding as well as dynamic action for this purpose.

Please check the following WIKI space for reference:

http://wiki.sdn.sap.com/wiki/display/ERPHCM/HowtoCreateaDynamic+action

Regards,

Dilek

anishoommen
Explorer
0 Kudos

Thanks for your reply Dilek,

But I found out that we can use LIS9 as it is delimit operation.

I have implemented the following steps :

IType FC No S Variable Function Part

0000 06 1 P P0000-MASSN='10'

0000 06 2 P P0000-MASSG='03'

0000 06 3 F GET_DATE(ZHBN_SEV_DELIMIT)

0000 06 4 I LIS9,0167,DENT,,(P0167-BEGDA),(RP50D-DATE1)/D

In the Subroutine GET_DATE , I am populating the new enddate.

However, once i terminate the employee, the screen for Delimit of the Health Plan appears with the updated endda but the Delimit Date is not updated and I changed the above code to :-

IType FC No S Variable Function Part

0000 06 1 P P0000-MASSN='10'

0000 06 2 P P0000-MASSG='03'

0000 06 4 W RP50M-ABGRD=RP50D-DATE1

0000 06 5 I LIS9,0167,DENT,,(P0167-BEGDA),(RP50D-DATE1)/D

Still the Delmit date does not get updated and the delimit screen still appears.

This should not be the case though. I need it to be done in the background.

Can anyone point me in the right direction if I am doing something wrong here?

Former Member
0 Kudos

Hi,

You have done most of it correctly. Instead of LIS9, can you try this:

0000 06 3 F GET_DATE(ZHBN_SEV_DELIMIT)

0000 06 4 I MOD,0167,DENT,,,/D

0000 06 5 W P0167-ENDDA=RP50D-DATE1/D

I think LIS9 presents the infotype screen.

Hope this helps.

Donnie

anishoommen
Explorer
0 Kudos

MOD does not work.

Any assistance would be of great help.

anishoommen
Explorer
0 Kudos

Thanks Donnie Freako !!

Your solution helped....

Answers (0)