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

Similar Messages

  • 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.

  • Please give me one example of following. it is written in msdn.

    hi,
       http://msdn.microsoft.com/en-us/library/ms191007.aspx
    "An operation that filters data based on some complex constraint that cannot be expressed in a single scalar expression can be expressed
    as a function. The function can then invoked in the WHERE clause to reduce the number or rows sent to the client."
    yours sincerely

    You can already find an example in one of the follow-up links:
    Create User-defined Functions (Database Engine)
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • 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.

  • 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

  • Re: Dynamic Action is not triggering in LSMW Recording

    Hello All,
    In SAP HRMS personnel actions if i do using LSMW Recording it is not triggering  the dynamic actions.
    Is there any mechanism to Trigger dynamic action in LSMW Recording ?
    How to find the differences in process with and with out recording ?
    Small help is also highly appreciated.
    With Regards,
    Sunil,
    +91-9903695384.

    Yes. Do one  thing. First study the dynamic action. Try to understand what the dynamic action is doing. Is it creating data in other infotype or is it updating some other table. Once it is clear what the dynamic action is doing then you can try to implement the same logic in LSMW. In LSMW there is a provision to add more than one recording and this recording can be called based on some logic..
    Thanks & Regards,
    Sandip

  • Logic for Dynamic Actions

    Can any one tell me the logic for implementing Dynamic Actions.
    Regards
    vamsi.

    What are dynamic actions and how to configure it?
    Ans) Dynamic actions are performed automatically by the system, depending on certain conditions. If maintaining one infotype has an effect on another infotype, the system automatically displays the second infotype for processing.
    Dynamic actions can run in the background i.e. the user does not see the run on the screen.
    A change in one field of an infotype might require, that certain other infotype be updated at the same time. The details can be specified as a dynamic event. It is automatically triggered by the system.
    *Examples: *
    The Personal Data infotype is newly created, and the Number of children field is filled. Once the record is saved, the system automatically displays the Family/Related Person (0021) infotype and the Child subtype (2) for processing. An employee is hired, and the probationary period is entered in infotype Contract Elements. Once this information is saved, the system automatically displays a record from the Monitoring of Dates (0019) infotype and the subtype Expiry of probation (1) for processing.

  • Sending mail of infotype record using dynamic actions

    Hi
    How can we send mail of info type record using dynamic actions if possible give me one example
    Mail to me: [email protected]
    Thanks & Regards
    santhosh reddy

    Hi..
    Already Standard Entries exists for the same.. pls check T588Z

  • How to clear grey loading screen and animated gif (Dynamic Action with "Show Processing" on submit)

    APEX V4.2.3
    DB 11.2
    I have a classic report on page 1.  I have a region button called "Export" (defined by a submit dynamic action with "show processing=Yes") that submits the page and then via a branch directs me to page 2 which has a slightly different version of the report on page 1 (i.e. no breaks) which I want to capture as a CSV export.  Therefore I've set the report template on page 2 to " Export:CSV".
    Now when I click on the page 1 export button the grey screen and loading gif appears indicating that the report is executing and then as expected, page 2 doesn't appear but instead the standard open/save window's dialog box appears asking to open or save the generated CSV file.  All good..but the grey loading screen remains.  How do I clear this loading screen and get back to the context of page 1 ?
    thanks in advance
    PaulP

    Hi PPlatt,
    We would love to help but you left out one crucial part of the puzzle: namely how does your CSV report get exported. With the way it is setup (a redirect to another page), I'm going to assume you do that because you have some PL/SQL on that page that prints the CSV.
    Now there are two questions that are crucial here:
    - How do we stop the icon from bugging us on the screen
    - How do we communicate with the browser that it should no longer display the loading icon
    The first question is rather easy, two simply lines of codes can do that:
    $('#apex_wait_popup').hide();
    $('#apex_wait_overlay').hide();
    But when do we use this code? Quite simple when the document is downloaded. When is it downloaded? At the end of the PL/SQL code that prints the document to the browser.
    What you could do is at the end of that code give an application item a certain value. For example :AI_PRINTED := 'Y';
    Then all you need to do is let the browser ask for the value. You could do this by using JavaScript to continuously fire AJAX to the server using a JS timing event:
    http://www.w3schools.com/js/js_timing.asp
    Better would be a Server send event, but since you left out another crucial piece of information: your browser, I will not go deeper into this.
    Start this timing event when someone asks for the document, and end it as soon as the process returns that :AI_PRINTED equals 'Y'.
    Despite the lack of information, I hope I have given, or at least inspired you to get to the solution.
    Regards,
    Joni

  • Info group being not called while using Dynamic Actions

    Hi,
    I am facing a scenario that, while we execute some action from PA40 like termination, then it will call my subroutine for dynamic actions which will be calculating the last day worked and updating the same in Info Type 0041.
    For updating the IT 0041, i am using the function module HR_MAINTAIN_MASTERDATA. and IT0041 is getting updated properly. But now the problem is coming that when the control comes out of subroutine, it is going back to the PA40 Screen and not to the next screen of the Info group.
    What can be the cause for the same.
    RND I have done on my part: I have commented/uncommented the return parametre RP50D-Date1, commented/uncomented the use of function modules to lock and Unlock the pernr.
    Please give ur comments.
    Thanks in Advance.

    Hi Nisha,
    Not sure if I have understood correctly, but if you just wanted to calculate leaving date and write the same date in IT0041 then you don't need a function module:
    1. Create a small program, as follows:
    REPORT  ZHR_PY_R0008                           .
    INCLUDE MPPDAT00.
    TYPE-POOLS HRQTA.
    TABLES: P0000,
            RP50D,
            T001P.
    ROUTINE CALLED BY TABLE T588Z
    FORM CHANGE_DATE.
      RP50D-DATE1 = P0000-BEGDA - 1 .
    ENDFORM.                    " CHANGE_DATE
    This program will give you the last working day written to RP50D-DATE1
    2. Simply enter the following lines into table T588Z:
    0000 04 499*- LEAVING ACTION - Populate Infotypes with leave date -*
    0000 04 500 P T001P-MOLGA='08'
    0000 04 501 P PSPAR-TCLAS='A'
    0000 04 502 P PSPAR-MASSN='*'/X   (* equals your leaving action types)
    0000 04 503 P PSPAR-MASSN='*'/X   (* equals your leaving action types)
    0000 04 504 F CHANGE_DATE(ZHR_PY_R0008)
    0000 04 505 ******** INF.0041  ********
    0000 04 506 I COP,0041,,,(P0000-BEGDA),(P0000-ENDDA)/D
    0000 04 507 W P0041-DAR07='*'   (* equals your date type)
    0000 04 508 W P0041-DAT07=RP50D-DATE1
    or if you are simply looking to delimit IT0041 with the leave date then replace lines 506-508 with:
    0000 04 506 I MOD,0041,,,(RP50D-DATE1),(RP50D-DATE1)/D
    0000 04 507W     P0041-ENDDA=RP50D-DATE1
    This will solve your problem : - )

  • 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

  • Dynamic actions

    Hi Gurus,
    I have coded a perform in a report for a dynamic action to be performed for while updating IT0416.
    Could you please tell me that if I am making an entry in the table T588Z will this be accomplished ? Or if not what else I have to do.
    Please give a detail reply or if you have something to share in this regard.
    Regards,
    Binay.

    Hi,
    I think instead of updating the Database Table directly you must try and use the step provided in IMG(T Code SPRO) to create a dynamic action.
    The path in IMG to be followed is
    Personnel Management->Personnel Administration->Customizing Procedure-> Dynamic Actions
    Make use of the Documentation provided there for better clarity of steps to be followed.
    Reward if helpful.

  • How to include dynamic action in bdc

    Hi All,
    I want to update infotype 17 when an employee has joined through PA40 (Joining action).So i have written a dynamic action for this .But this dynamic ation does not get called in bdc for joining action.
    So infotype 17 is not maintained if we do joining through bdc.
    I have tried with user-exit zxpadu02 also, calling hr_infotype_operation on saving infotype 0001.But it gives return as 'Employee does not exist'.
    Since that infotype 0001 is still not saved.
    So what to do.
    Yogesh

    Hi Amit,
    For your information we can call dynamic action from BDC.
    go through this link
    how to include dynamic actions in bdc

  • Mail not send when subroutine is call in dynamic actions

    Hi Friends,
    I have facing a problem in sending a mail through dynamic actions . In this mail is not send to specific user mail-id.
    Suggest me . What to be exactly done .
    Regards,
    Anish

    First you have to understand what should be done...
    ask your functional consulatant where exactly the Mails need to be retrived For example...
    in infotype 0105 subtype '010'  generally we have email ids avaialable of the employeee....
    may be this helps or not give full specification some one can revert back.
    Regards
    sas

  • 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

Maybe you are looking for

  • How can I display the range for LastFullMonth in the header of a report

    How can I display the month for LastFullMonth in the header of a report run in the past so that a report that ran sept 1 2009 selecting data for LastFullMonth (august 2009)  displays sept 2009 in the header even if there is no data selected by the re

  • How do I sync multiple google calanders on two iphones, how do I sync multiple google calanders on two iphones

    IMy wife and I have new Iphones, and we have multiple google calanders for her work schedule and kids appointments as well as one for my stuff, with our droid phones we could share, view and edit allof the calanders on each phone. can I do the same t

  • Can you choose email address for autofill?

    Hi all, Searched and could not find an answer. Can you choose which email address you would like to autofill when completing a form (that is when you have more than one email address in your address card)? Thank you. S

  • Mac Mini 2011 Sleep of Death

    I have a Mac Mini 2011 with Lion factory installed configured with an original Apple Keyboard and a LG - HDMI monitor. If the Mini goes to sleep either manually using the Apple Menu or based on Settings , it does not wake up ! Any  subsequent attempt

  • 11g DefaultAuthenticator not working

    Hi, I have two authenticators setup in weblogic, one LDAP and the other the Default authenticator. LDAP users can log in correctly. If I create a new standalone user with the default authenticator though, they cannot log in (error: authentication den