Reg dynamic actions in abap-hr

Hi Gurus ,
What is dynamic actions in abap-hr ,can any body explains it
with an example ...
Thanks & Regards
Suman

hi dynamic actions changes or create the infotype record on maintainance  of another infotype.
like after hiring a person if u want to default joining date in 0041 infotype.
then u will check molga.
p too1p-molga=40
p is used to check conditions.
then u will insert the records in 0041
i ins,0041,,,(p0000-begda),(p0000-endda)/d
/d is for processing in background.
then u will default values in 0000
w p0041-dar01 = 'hd'
w p0041-dat01 = p0000-begda.
w is for defaulting value.
go to spro-personnel management - personnel administration-customizing procedures-dynamic action .
here u have documentation.

Similar Messages

  • Dynamic actions in abap-hr?

    What is dynamic action?
    Why dynamic actions?
    Give me example for that.
    Regards,
    Thrimu

    Dynamic actions:
    Here, you control the initiation of actions when maintaining an infotype
    record. This can be the maintenance of an additional infotype record or
    performing a routine.
    For each action, you can determine whether it is always
    carried out when you change an infotype or a subtype or whether it is only
    carried out if you change certain fields.
    You can state whether the action is
    to be carried out for "Change", "Create" and/or "Delete" record.
    You can store the conditions for executing the action, for example, the comparison of
    the old and new value of a field.
    Finaly, you can also specify default values for a record that is to be created.
    Example
    When you create the infotype Contract Elements (0016), you predefine a
    period for the probation period. The system creates a date/deadline record so
    that you can invite the employee to an employee inteview.
    Read more help document in SPRO node at path SPRO -> Personal Management -> Personal Administration -> Customizing Procedures ->Dynamic Actions

  • Reg dynamic action?

    HI freinds
    I Have to create Dynamic actions when ever employee location has been changed
    suppose in infotype 0001 if employee location changed i need to update a record in IT0588
    Subtype As '0003' and PTXEL = 1.
    Pls help me with the above requirement
    Thanksin Advance

    0001          6     10           ***588
    0001          6     11     P     T001P-MOLGA='40'
    0001          6     12     I     INS,0588,003,,(P0001-BEGDA)/D
    0001          6     13     W     P0588-BEGDA=P0001-BEGDA
    0001          6     14     W     P0588-PTXEL='1'
    Hi i was trying with the above code but nothing being updated , pls look into the aboce code

  • Reg Dynamic actions?

    HI freinds
    I Have to create Dynamic actions when ever employee location has been changed
    suppose in infotype 0001 if employee location changed i need to update a record in IT0588
    Subtype As '0003' and PTXEL = 1.
    Pls help me with the above requirement
    Thanksin Advance

    0001                   04     101     P     P0001-BTRTL='BOM'
    0001                   04     102     P     PSAVE-0001<>SPACE
    0001                   04     103     I     INS,0588
    0001                   04     104     W     P0588-SUBTY='0003'
    0001                   04     105     W     P0588-BEGDA=P0001-BEGDA
    0001                   04     106     W     P0588-PTXEL='1'
    I used the above code but nothing being updated , can you help me with the solution

  • Configuring DYNAMIC ACTIONS - 0002 TO 0105

    i want to know step by step detailed procedure of configuring dynamic actions in abap-hr.
    my requirement is that if any change is done in (first name or last name) in (personal data infotype 0002), or (any new entry is added) in infotype 0002 for fields (first name, last name), then........
    dynamic actions should be trigerred in (0105 communication infotype) for (e-mail subtype) creating (e-mail in communication 0105 infotype) based on first name and last name given in 0002 infotype.
    i mean want whenever personal details (first name/last name) of any candidate is entered in 0002 infotype, e-mail id should automatically be generated in 0105 infotype based on first and last name given in 0002,
    any e-mail id format can be used.
    i am new to abap-hr so please give me step by step, detailed procedure for this IN SIMPLE WORDS.
    thanx

    You are from programming or Functional ?
    The dynamic actions are configured by the Functional consultant .
    yes its T588Z  where the dyanmic actions are configured .
    Vijay.

  • In HR ABAP WHAT IS DYNAMIC ACTIONS? GIVE ME ONE EXAMPLE?

    DEAR EXPERTS
    in HR ABAP WHAT IS DYNAMIC ACTIONS? GIVE ME ONE EXAMPLE?

    Dynamic actions are nothing but calling one more Infotype when trying to Create/Change or Delete a perosnnel number.
    Lets take an example company want that whenever an employee Communication data Fax/mobile no entered then immediately they want to make their email IDs depending upon VORNA NACHN of the personnel numbers data.Then at this point they will configure dynamic actions.But as a technical consultanat u will be given a Program name and the subroutine name in which u need to write the coding.
    Dynamic actions are a great tool to make infoytpe maintenance easier. When you create an infotype you can create another one automatically for example. Dynamic actions work for both master data and applicant data infotypes. It is basically a view on table T588Z you can reach via IMG - Personnel management - Personnel administration - Customize procedures - Dynamic actions.
    The table view looks like this:
    Infotype - Subtype - Field - Function code - Number - Step - Variable function part
    The infotype, subtype and field determine what should be created, filled, modified and so on. 
    The function code determines when something should happen. It can have the following values:
        * 02 - Change record
        * 04 - Create record
        * 08 - Delete record
    These values can be added so e.g. 06 means change record + create record. Remember - this only tells us when something should be done.
    The number simply tells us which step is first and which next. I recommend to go by 10's (10, 20, 30,40...), this makes it easier if you later on want to fill something in.
    The step determines what should be done. It can have 6 values:
        * P - check conditions under which something is done
        * I - maintain infotype record
        * W - set default values for new record
        * V - Reference to another step
        * F - call a routine
        * M - send mail
    Reward if found Helpful

  • HR Abap ques - Process Dynamic Actions in BDC mode

    Hi friends.
    We are using HR_INFOTYPE_OPERATION to update some infotypes. The problem is that dynamic action does not get triggered as SY-BINPT = 'X' when we use this FM or BDC to update.
    Now, is there any workaround so that we can process dynamic actions via our program?
    Can somehow we call the subroutine DYN_ACTION from our program? Can the values of PSAVE etc be availabe in our program?
    Has someone done it before -> calling Dyn actions from your program?
    Thanks in adv!

    One more input -> I tried to include the MPPDAT00 in my main program and then call DYN_MEASURE in program <MPxxxx00>. But the values of PSAVE, DYNMEAS, etc don't seem to be there still.

  • Reg: SAP HR ---how to apply Dynamic actions

    Hi Gurs,
    Whenever subgroup RH to RS or RS to RH change then only it will create the infotype 8.Otherwise it will create the COPY for the infotype 8.
    We did the configartion but whnever RH is coming then only it was showing as create.it was not comparing..But we need whenever to change subgroup RH to RS  or RS to RH then only it will create the infotype 8 otherthan these two it will copy for the infotype 8.
    Ex: if we change RH to CB then it will Copy the infotype..If we change CB to RH then it will create the infotype..
    Can you please advise me whether we need to do any dynamic actions..bcease recently moved to functional..I dont have much idea about the functional side...
    Can you please suggest me if we need to dynamic actions please provide me the steps how to follow..
    Waitng for your response...
    Regardds,
    Kiran.

    hello Kiran..
    Is this requirement  when  you try to change any employee in PA30 ?
    If yes, I think we can do this using BADI
    BADI:    HRPAD00INFTY
    In this we  have a method called AFTER_INPUT ...I think here we can read the current employee subgroup  value from the
    parameter I503  and read the old value of subgroup from the infotype 0002  and then compare from RS to RH or RH to RS..
    then if it changes create infotype 8....for creation or copy use HR_INFOTYPE_OPERATION function module....
    Hope this helps...please let me know

  • How to make a default value by using dynamic actions

    Hi,
           I want to default a field nationality in infotype 0002 as a great britan, using dynamic actions but unable to go ahead. Any help regarding this really appreciate.
    Regards
    Niranjan

    Hi,
    I need some guidance around creating dynamic action with default value, Please guide me through.
    I am aware I can set default values for new infotype, but I need to set default value for same infotype, let me explain the scenario.
    Currently employee is on one pension scheme which is called NE1 and now we are moving this employee to CRESP Pension Scheme.
    When employee is in NE1, his IT0071 has got a opt in field with a flag on, when the same employee is moved from NE1 pension scheme to CRESP Pension scheme, his new IT0071 record should have the same opt in field with a flag on, I want it to set this flag automatically using dynamic action. I dont want to update this field manually, while moving from NE1 to CRESP.
    Currently the below dynamic  action is coded when employees are being moved form NE1 to CRESP, but now they will have a opt in flag which should appear automatically, What needs to be done to make this happen?
    Please let me know if I set default value for the Opt in field for the same infotype.
    . When employees are being moved from NE1 to CRESP pension scheme we currently use a dynamic action as show below:
    0071                      04      10      I        INS,0069
    0071                      04      20      W       P0069-BEGDA=P0071-BEGDA
    0071                      04      30      W       P0069-ENDDA=P0071-ENDDA
    0071                      06      1        F        DYNACT_PAE031(ZHRPROG016)
    Also if it is not possible via dynamic action could you please explain how to create it using user exit, I am not an ABAPer.
    Your help is very much appreciated.
    Kind Regards,
    SK

  • Get infotype data in e-mail/sapscript - Dynamic action-

    Hello,
    we developed a dynamic action sending a mail if an employee leave the company.
    We can catch data in infotype 0000 and 0001 in the sapscript used in the mail, but we would like also fetch data from other infotypes.
    We tried to generate an ABAP code from an ad hoc query, but it was impossible to get the return tables in the sapscript.
    Are there other solutions to get infotype data in saps scripts?
    Kr,

    Hi ,
    you can follow the below solution .
    1. Create a custom report for the leaving/terminated employees by using the action in infotype 0000 with field massn, massg.
    2. you will get all the employees from table pa0000 who are laving between a date interval .
    3. by using the personnel numbers from pa0000 get other infotypes information.
    4. create a smartform/script for your requirement.
    5. using the program you can send the data to the employees.
    another way .
    if you know the name of the script you can create some variables for the other fields from other infotypes in that script and you can populate the variable values using perform in program command using a custom program in that script.

  • Dynamic actions - how to create an infotype with a date - 1 day.

    Hi everyone,
    I need a requirement to change an infotype through dynamic action with ENDDA = BEGDA of maintaned infotype(0000) - 1 day.
    In other words when a  personel action is performed, another infotype (2001) should appear for change, and in the validity period of this infotype should end with the day before the start of the personel action.
    is it possible to achieive this using dynamic actions? how?
    Thanks!
    Stanislaw Adamski

    Hi Adamski,
    A dynamic action has the following components.
    Infotype Number (INFTY): specifies the infotype for which you want the dynamic action triggered
    Subtype (SUBTY): narrows the focus to a specific subtype
    Field Name (FIELDN): starts your action when a maintenance function is performed on a particular field
    Function (FC): specifies the various maintenance operations to which your dynamic action would respond. They are 02 (change); 04 (create); 06 (create and change); 08 (delete); 10 (change and delete); 12 (create and delete). Dynamic actions are only applicable in maintenance operations, not in display functions.
    Sequence Number (NO): refers to a sequential number.
    Step (A): specifies a particular type of action. No dynamic action is executed if the function character has a value other than one of the following:
                 P: Plausibility checks, which allow you to check certain conditions.          
                 I: Calls an infotype for processing
                 W: Called after the I statement and used to assign values to screen fields while creating or copying another infotype record through the I statement 
                  F: Calls a FORM routine (subroutines in ABAP) during your action. The routine may reside in or out the module pool MPNNNN00.
                 V: Lets you treat collectively a number of fields for which you want to define a common dynamic action
                  M: Sends SAP Office mail
    Variable function part: The variable function part along with the step indicator forms the core part of your action. It specifies the processing details when the dynamic action is triggered. For example: 
    you have to look for the scenario what you are planning tyo create .
    The maintenance of dynamic actions is done via the view V_T588Z, as shown in 1 (IMG menu path Personnel Management>Global Settings in Personnel Management>Basic Settings>Infotypes>Create Dynamic Actions
    Here you havev to use conditions INS for the infotype what you want to create..
    Please brief the light on the scenario.
    Warm Regards,
    Kapil Kaushal

  • Dynamic Action - Clarification

    Hi All,
    I have a quick que regarding dyanmic actions. 
    When we insert a record using dynamic action, I would like to add 1 day to the beg date, do you know how it could be done??
    As you could see.....In the below example I am defaulting IT0169 with It0041 date, but I would like to add one day to begdate. Ex if the date value in the iT0041 is 12312009, I would like the P0169-BEGDA to be 01012010.
    P0169-BEGDA=P0041-DAT02
    Is this possible, can someone please advice?
    Thanks!

    Hi,
    Fisrt query:
    Its better to create a subroutine program as our expert said.
    You can ask abaper to create a program
    Say for eg. ZHRBEGDA_169.
    In the Program you create asubroutine and get
    Date from infotype 41 and add 1 .
    Eg.
    FORM GET_BEGDA.
    RP50D-DATE1 = Date from Infotype 41 + 1.
    ENDFORM.
    In the Dynamic cation,call this subroutine
    like
    F GET_BEGDA(ZHRBEGDA_169)
    W P0169-BEGDA = RP50D-DATE1
    Second query.
    have you tried with infotype Screen Control ?try in table V_T588M displaying this field.
    another Option is You can use enhancement PBAS0001
    Component -EXIT_SAPFP50M_001.
    Cheers,
    Manoj.

  • BADI, User Exit or Dynamic Action for Infotype 24

    Hello,
    in PA30, our HR admin team want me to write an Infotype 19 record when a user amends or creates an Infotype 24 record.
    I spent all day yesterday trying to find a solution to this.
    Can anyone please tell me:
    1) Do dynamic actions work for IT0024? - our HR admin suggest that they don't as there is no 'subtype'.
    2) Should user exit PBAS0001 (function EXIT_SAPFP50M_002) work for IT0024? I have tried putting in a test display which should appear on save of IT0024 and this does not appear to work.
    3) Will BADI HRPAD00INFTY work? If so, does anyone have an example of code that tests the 'old' IT0024 record before modification - the documentation does not help too much with a good example. I'm planning to use this as a last resort due to the need for an access key.
    Many thanks in advance,
    Keiron.

    The BADI is probably the best way to go.  You should not need an access key - you do not put your code in the BADI, but instead create an implementation of it in a Z name range.  Go to SE18 for the BADI and display it, and select menu option implementation--->create.  Give a Z name and then you will have a place to put your code.  You can double click on the methods shown in your implementation to get to the ABAP code editor.
    Exit PBAS0001 should also work - put a breakpoint in it to see if it is called.
    Both the BADI and Exit are called at almost the same point in the SAP PA30 code - however the BADI is called in some cases when the exit is not.  It is outside an additional IF test in the SAP code.
    Andrew

  • Dynamic actions user execute the Hiring action, IT 0105 dynamically adjust

    Hello Any body can guid me for the below requirement..
    Whenever the user execute the Hiring action (action type: Z1-Hiring cPA) the system should adjust the infotype 0105 dynamically during executing the hiring process, in the same way the subtype (0010 : E-mail )for the userid in SAP HR should be adjusted.  The HR Services should not have to do this manually.
    The e-mail account can be composed from the fields first name, name prefix and birth name. The fields have to be separated by dots. When the name prefix contains more words they have to be separated by a dot.
    When company code is 003 the value email atthe rate xx.comhas to be adjusted at the end.
    When company code is 004 the value email atthe rate yy.com has to be adjusted at the end.

    Hello Donnie Freako
    Thanks for the the information, As i am a HR-ABAP consultent. I am not much femiler on this dynamic actions..
    for this case: the  DESCRIPTION:  In the dynamic module pool ZXXXM000 has to be changed. - so for this where exactly i need to check the transcation, i think its in SE51..
    please provide me the steps for the same... and if possible please provide the breaf detaild explination for the below code where exactly i need to place the below, i think we need to place this in T588Z table against fields and values and whatis the meaing of P and I and F and W .. as a technical person i dont know much about this please help me on the same..
    P PSPAR-MASSN=u2019Z1u2019
    P P0001-BUKRS=u2019003u2019
    I INS,0105,0010/D
    F Z_003_EMAIL (ZEMAIL)
    W P0105-USRID_LONG=RP50D-FIELD1
    P P0001-BUKRS=u2019004u2019
    I INS,0105,0010/D
    F Z_004_EMAIL (ZEMAIL)
    W P0105-USRID_LONG=RP50D-FIELD1
    clear explination would be appreciated

  • About the dynamic actions

    hi folks,
                   wat is meant by dynamic actions? where it will be usefull..................................... in hr-abap,,,,,

    Hai..
    https://forums.sdn.sap.com/click.jspa?searchID=8181617&messageID=4436420
    https://forums.sdn.sap.com/click.jspa?searchID=8181617&messageID=4504716
    https://forums.sdn.sap.com/click.jspa?searchID=8181617&messageID=4594318
    https://forums.sdn.sap.com/click.jspa?searchID=8181617&messageID=4353060

Maybe you are looking for