Skip to Content
author's profile photo Former Member
Former Member

Dynamic Actions on IT0041

Hi HR Experts,

I need help in creating a dynamic action to retain both the hire date and the termination date. To explain it further, I have created a dynamic action when hiring someone that defaults Q1 or the hire date to the correct date. But how do I create a dynamic action wherein when running a termination action against an employee and when it reaches IT0041, both dates should show? Meaning both Q1 (Hire Date) and Q4 (Termination Date) should show in IT0041 when running termination action. It is because I need this when running a report and it should show both hire and termination dates. Please help. =(

Regards,

Arvin

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 22, 2008 at 07:08 AM

    call 0041 in copy mode through dynamic actions or in the infogroup.

    Regards,

    Divya

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      Thanks for your responses. For now here is how my dynamic actions look like:

      This is what I created for the hiring action with IT0041 defaulting to the hire date:

      P P0000-MASSN='01'<----hiring action type

      P T001P-MOLGA='13'

      I INS,0041,,,(P0000-BEGDA),(P0000-ENDDA)/D

      W P0041-DAR01='Q1'<-----date type

      W P0041-DAT01=P0000-BEGDA

      This is what I created for the termination action with IT0041 defaulting to the termination date:

      P P0000-MASSN='11'<-----termination action type

      P T001P-MOLGA='13'

      I INS,0041,,,(P0000-BEGDA),(P0000-ENDDA)/D

      W P0041-DAR04='Q4'

      W P0041-DAT04=P0000-BEGDA

      My question is how do I include date type Q1 (hire date) to the dynamic actions I created for termination action? I want to create it in a way that when IT0041 shows up during termination action, it will show both the dates for Q1 (hire date) and Q4 (termination date). Please help.

      Thanks,

      Arvin

  • author's profile photo Former Member
    Former Member
    Posted on Jul 22, 2008 at 02:11 PM

    Hi Santiago.

    In this case, to u have this dates without lost any date type at infotype 0041, you need use a BADI (SE19-> Definition HRPAD00INFTY, Method IN_UPDATE).

    You need create a report. This report will called inside "IN_UPDATE" method, to create this infotype correctly...

    At report, you have use the function HR_INFOTYPE_OPERATION. Before the creation, you need read the infotype 0041, and store the date types gived in the new structure (used to gennerate this infty). After this move (to new structure), you have include your date type and exec this BAPI (HR_INFOTYPE_OPERATION).

    In this case, dynamic actions is not better because you lost ours date type.

    Regards!

    Marcello

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.