cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Action - create Infotype with another date

Former Member
0 Kudos
109

Hi everybody!

Does anyone knows how to change BEGDA date for infotype according to probation period set in IT 0016?

I mean, when I hiring new employee I want to make new record in IT 0008 with date equal to IT 0000 + probation period (IT 0016) + 1 day.

So, I can make a record with new salary automatically.

In dynamic actions I am inserting two IT in hiring:

INS,0016,,,(P0000-BEGDA),(P0000-ENDDA)

and then

INS,0008,,,(P0000-BEGDA),(P0000-ENDDA) and here I need change P0000-BEGDA to another date (mentioned above).

Thank you for any help!

Cheers,

Kanat

Accepted Solutions (1)

Accepted Solutions (1)

suresh_datti
Active Contributor
0 Kudos

you can put the code to read 0016 in a subroutine & call it from the Dynamic Actions and pass the date to 0008..

~Suresh

Former Member
0 Kudos

Dear Suresh,

Thank you for your reply.

May be you can show me how can I calla subroutine from Dynamic Actions and pass the date to IT 0008?

Because I have no idea how this works in Dynamics Actions.

Thank's a lot!

Kanat

suresh_datti
Active Contributor
0 Kudos

I am not connected to SAP now.. but you can check this <a href="http://72.14.209.104/search?q=cache:-kkYXsE37YoJ:www.hrexpertonline.com/downloads/Rehan%2520Zaidi%2520Online%2520Portion.docDynamicActionsinSAP+HR&hl=en&gl=us&ct=clnk&cd=2">Link</a> for details on Dynamic Actions..

You will have to put the subroutine in a Report Program..

~Suresh

Former Member
0 Kudos

Dear Suresh,

Thank's once again!

Anyway, I know this article, but it does not operates with subfuncions and date.

Cheers,

Kanat

Former Member
0 Kudos

Hi,

******

Ignore my message,I haven't seen that this thread is already answered.

******

perhaps this works, you could use structure RP50D to return data.

INS,0016,,,(P0000-BEGDA),(P0000-ENDDA)

Call F GET_DATE(ZPUDYN01)

INS,0008,,,(RP50D-DATE1),(P0000-ENDDA)

The routine GET_DATE in programm ZPUDYN01 calculate the date and save it in field RP50D-DATE1.

I haven't test it yet.

Hope this helps

Regards

Bernd

Message was edited by:

Bernd Köhn

Answers (0)