cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic action

Former Member
0 Kudos

Dear Eperts,

I am stuck with a problem in Dynamic actions,

There is a requirement of my client that if an employee is promoted from M5 level to M4 level, his retirement date should automatically change to 58years.

Now at present the retirement date for all is 60years.

For this i wrote a dynamic action as

* MOD,0041,,,(P0041-BEGDA),(P0041-ENDDA)/D

* GET_RET_DATE(ZHR_DYNACT)

* RP50D-DATE1<>'00000000'

* P0041-DAR02='04'

* P0041-DAT02=RP50D-DATE1

this is chaning the date but if any other date type is there in DAR02, my condition is replacing that date and there is lose of data,

Please suggest me what should be the condition like to select retirementdate i.e. date type '04' from the IT0041 and replace the date with respect to the rule,

Here the date is fetched from the function: ZHR_DYNACT.

Please help me in solving this.

Regards,

Vijay

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Vijay,

You can multiplex the code as follows:

P P0041-DAR02='04'

...

P0041-DAT02=RP50D-DATE1

P P0041-DAR01='04'

...

P0041-DAT01=RP50D-DATE1

P P0041-DAR03='04'

...

P0041-DAT03=RP50D-DATE1

By this way, whichever has '04' sate type, date of that respective field is gonna be changed.

Regards,

Dilek

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

You can follow the bellow link:

Cheers

Anwi