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

Similar Messages

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

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

  • Dynamic Action to Send Mail

    Hi,
    I'm trying to set up a dynamic action so that during the separation process when a certain infotype (IT0040) is delimited that a mail should be sent to a distribution list. I've had a look at some other posts on here but so far none of these have helped solve the problem.
    I have set up a dynamic action as below..  The separation actions are 20 or 22.
    0040                   02     900     **GENERATE MAIL DURING SEPARATION*
    0040                   02     901     P     T001P-MOLGA='13'
    0040                   02     902     P     P0000-MASSN='20'/X
    0040                   02     903     P     P0000-MASSN='22'/X
    0040                   02     904     M     M0001
    In feature M0001 I have it set up:
    If TCLAS = A
    & INFTY = 0040
    IDTXT ZTEXT
    DISTR SEPARATION
    Do I need more arguements in the feature as I can't seem to get it to trigger.
    Thanks
    Tom

    Hi Regi,
    Thanks for the reply, sorry this task got lost behind a host of other ones. I've tried using the standard text and still nothing is produced.
    With the dynamic action I have put the code for this on IT0040 as this code should only be triggered if this infotype is changed by the actions also specified.
    I've checked that the mail set up is correct as I'm able to send an mail from my SBWP to myself, which is the only one in the distribution list.
    I've updated the Feature to have a few more arguements, but these are mostly blank as the email should only go to the distribution list.
    IDTXT MAIL_FOR_I0001_A
    RECV1
    SUBTY
    OUTBX X
    DISTR DIST
    NAME1
    NAME2
    Many thanks
    Tom

  • Issue in execution of Dynamic action on change event

    Hi,
    Greetings.
    I have scenario, where I have one select list (P_CATEGORY) and one shuttle control (P_ROOMS) on page.
    The values of the shuttle list is being populated based on the selected value in select list.
    The left pane of shuttle control's value based on LOV and source of the shuttle item is a plsql function, which returning colon separated value list.
    So that returned values shown in the right pane of shuttle.
    The LOV values are getting being populated using cascading LOV i.e based on the of Select List item. But the Shuttle source values not getting auto refresh and for achieving that I've created a dynamic true action on change event of Select list.
    The dynamic action is with :
    Action : Set Value
    Set Type : PL SQL funciton body
    Page items to submit : P_CATEGORY (this is select list)
    Escape Special Character : Yes
    Suppress Change event : Yes
    Affected Elements -
    Selection type : Item(s)
    Item(s) : P_ROOMS
    This is perfectly working on Firefox but not working on IE9 & Google Chrome.
    I've debugged in both IE9 & Google chrome and found the dynamic action get executes ajax call and the values get back but not rendering on the screen. i.e not assigning to the item.
    So can you please advice me what will be a workaround for this issue?
    I am using Application Express 4.1.0.00.32 .
    I'll appreciate your prompt response.
    Thanks & Regards,
    Jaydipsinh Raulji

    I don't understand why this is not working withouth seeing an example, there might be multiple processes working on the item.
    Anyway if the value is returned check if the value is in the session aswell. If it is in the session but not on the page that means you will need to find a way to bring it from the DB to the page. You can do this by adding an action to your DA:
    Action: Execute PL/SQL code
    PL/SQL code: NULL;
    Page Items to Return: your shuttle item

  • 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

  • Refresh report title with dynamic action

    Hi all,
    I have a report that is refreshed with an dynamic action. When the refresh is performed, first the value of two hidden variables are set (P2_ID and P2_NAME) and are submitted (using a dynamic action type 'pl/sql', with code 'null;' and page items to submit: P2_ID,P2_NAME).
    In the query of the report, i use :P2_ID in the where-clause. That's all working like a charm! The one thing that doen't work, is the title of the region: that's defined as 'Properties of &P2_NAME.', but the title isn't refreshed when the report gets refreshed.
    Is there a solution for this? I hope I'm clear enough.

    See Re: Dynamic action - Refresh
    So you are right; the native Refresh action just refreshes the report content, it does not perform &ITEM. substitutions everywhere in the region.
    What you could do is use a named SPAN as the title like <span id="my_title">&P2_NAME.</span> and add a TRUE action to your Dynamic Action to set the title using Execute Javascript code $s('my_title',$v('P2_NAME'));Hope this helps.

  • HR PA Dynamic Actions: Generate mail to the admin when 0002 & 0021 changed

    Hi gurus!
             My client wants us to generate a mail to the Admin when an employee changes his 0002 or 0021 infotype
    through ESS. I believe we could do this is Dynamic Actions. Can you please tell me how we do it?
    Thanks and Regards,
    Soniya

    Hi,
    Some good write-ups :
    http://wiki.ittoolbox.com/index.php/Dynamic_Action
    http://www.sapconfig.com/index-3.html (look for "Dynamic Action Mail for Infotype". This will require registration but free.
    Thanks.
    Regards
    Kir Chern

  • Dynamic action on text box change does not working

    i have a page with following components.
    a report that has and edit link.
    a text box to catch the primary key from report link when it is clicked
    a number of elements (text boxes, check boxes and LOVs) which are used as data entry form.
    Now my design is that user enter values save them and no sooner did they save, the report depicts new
    values. if user want to edit any record, they click on edit link and the data entry form elements
    should now bring all those values from DB on page. i m successful to pick primary key and bring
    it in a hidden text box and wrote a dynamic action on its change event that will bring values from
    DB and set all page elements. but but but.........the change event doesnt work. it only work
    when focus is lost from the text box...!! offcourse user wont want to click in that "hiddent" text
    box and then click some where else to bring values in page data entry form......
    help is humbly requested from forum or if any other solution approach is to be used easier than
    one i m using, would be appreciated.
    thanks in advance for reading my bore question :)

    bundles of thanks for reply. i m going to elaborate.
    1. My page no is 3.
    2. Hidden Item name is P3_EDIT_ACTIVITY_ID
    3. Data entry form, hidden item and the report are on the same page.
    4. on the edit link of report, i have used following settings.
        Target: Page in this application
         Page: 3
         and i set hidden item as follows......
         Item 1   P3_EDIT_ACTIVITY_ID         Value #ACTIVITY_ID#
       well, when i click the link on report it does bring Activity_Id in the hidden box (which is not yet hidden for debugging purpose)
    Next i wrote Dynamic action which fires on the change event of P3_EDIT_ACTIVITY_ID and run PL/SQL code with in it which is as follows
      declare
      Dept varchar(50);
    begin
       select my_dept into Dept from activity_main ACTIVITY_ID = :P3_EDIT_ACTIVITY_ID;
       :P3_Dept := :Dept;          (i did use :P3_Dept := Dept also but this wont work)
      insert into testdynamic (stamp) values (Dept);  (I did this to check whether correct value is brought from DB, yes it works correctly, correct Dept is being inserted in stamp column)
    end;
      i have created another true action to check when the dynamic action is fired. its very simple alert. and the problem is, it only fires when focus is lost from the P3_EDIT_ACTIVITY_ID. i mean, when u keep changing value inside the text box, nothing happens, when u go outside, the alert is fired and so the pl/sql procedure. but the line
        :P3_Dept := :Dept;       OR      :P3_Dept  := Dept;         arent working which is the actual requirement.
      I m not using set value here as i have to set a lot of values on page not one. further. plz let me get rid of this lost focus thing as i want the form to be populated with correct values related to P3_EDIT_ACTIVITY_ID as the user click on any edit_link in the report.
    Thanks for persistence. i hope i have provided all the details.
    looking forward.

  • Leaving a Page fires "Page Unload" dynamic action?

    Hi,
    Which Dynamic Action fires when I am leaving a page.
    I have a page with lot of items, I want to fire alert based on some condition when user leaving that page (suppose user clicks to say some TAB), I used *"Page Unload"* dynamic action, but somehow it's not working.
    Is there any other Event I have to use?
    Thanks,
    Deepak

    Thanks.. VC
    but I cannot use that plugin as I have a Page which call other pages using iFrame and I am facing some issue..
    I have created a separate Post for this but not able to resolve it till now.. Here is the Link.
    Re: "IFrame Region" Plugin / Save Before Exit (3.0.2) - Dialog box - Question
    Thanks,
    Deepak

  • Dynamic Action with KeyCode check for ENTER button pressed

    Hi,
    I want to create a dynamic action which executes if the ENTER button of field P1_NAME is pressed.
    I thought about this type of DA:
    Event: Key Press
    Selection Type: Item(s)
    Item(s): P1_NAME
    Condition: Javascript expression
    Value: this.triggeringElement.keyCode == 13
    That unfortunately doesn't work! Dynamic action doesn't get executed...
    Hope for help! :)
    Tobias

    I found the solution in my own blog: :)
    Event: Key Press
    Selection Type: Item(s)
    Item(s): P1_NAME
    Condition: Javascript expression
    Value: this.browserEvent.keyCode == 13

  • Dynamic action with interactive report region refresh

    Hi!
    I'm using APEX 4.02
    I've got a page with 2 regions.
    Region1 is a (input) form
    Region2 is an interactive report on the same table as region 1
    When entering values on the form I'm trying to dynmically lookup similar records in the table with the interactive report.
    I've made a dynamic action on the change of the form fields which should refresh the interactive report region. I can see this one fires if I add a alert to debug if it fires.
    The dynamic report is based on a query with bind variables pointing to the form fields, for example
    where
    field1 = :P2_FIELD1
    This works great on the page load, so no dynamic action is fired but I can see the rows in the report region are the ones I am looking for.
    But the refresh of the report region is not working, it is never refreshing and/or showing the correct data after a change of the form fields, so it looks like the dynamic action "refresh region" is not working on the interactive report.
    Any ideas why this can go wrong ?
    I would like to solve this using standard dynamic actions and preferrably not via PL/SQL or JS, shoudl be possible if I should believe the documentation... ;)
    Cheers
    Bas
    Edited by: bklerk on 26-apr-2011 3:07

    Hi,
    When you change value to item, I assume you do not set value to session state.
    Use interactive report advanced attributes "Page Items to Submit" , set items session state before report is refreshed.
    http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/app_comp.htm#sthref1235
    Similar post/issue here
    Hide and show region - hides on refresh
    Regards,
    Jari

  • Dynamic Action with field DIVGV not working

    We have built the dynamic action below to default values from infotypes 0007 and 0008 behind the screnes in infotype 0491 Payroll Outsourcing. The issue that we are having is that the dynamic action will not work for field P0008-DIVGV, but will work with all the other fields.
    The only difference between the DIVGV field and the rest of the other fields mentioned in this dynamic ation is that it seems to be a free text field (which you can modify), even though the values are pulled from the work schedule rule in infotype 0007. We have also hidden the DIVGV field in 0007 per client requirement.
    Does anyone have any suggestions on how to get this working. Do we need to populate these values in any of thh HR tables first?
    06     10     *     *** COP 0491 US PAYROLL OUTSOURCING ***
    06     12     P     T001P-MOLGA='10'
    06     14     I     COP,0491,,,(P0008-BEGDA),(P0008-ENDDA)/D
    06     16     W     P0491-OTF06='PS TYPE'
    06     18     W     P0491-OTV06=P0008-TRFAR
    06     20     W     P0491-OTF07='PS AREA'
    06     22     W     P0491-OTV07=P0008-TRFGB
    06     24     W     P0491-OTF08='WORK SCHEDULE RULE'
    06     26     W     P0491-OTV08=P0007-SCHKZ
    06     27     W     P0491-OTV09='WORK HOURS/PERIOD'
    06     28     W     P0491-OTV09=P0008-DIVGV

    Hi Damas,
      it seems to be no specific reason for not updation P0008-DIVGV only.Please cross check whether field is populating or not in Infotype 0008, before dynamic action triggered, other that that there is no reason.

  • Dynamic action with function works, doesnt refresh textfield

    Hi all,
    experimenting with dynamic actions so I got the following setup:
    I've built a screen with 2 text boxes
    P7_input
    P7_output
    The goal is to put some tet in P7 input and have it returned with additional text in P7_OUTPUT
    CREATE OR REPLACE PROCEDURE PRC_ECHO
      P_INPUT IN VARCHAR2  DEFAULT 'LEEG'
    , P_OUTPUT OUT VARCHAR2 
    ) AS
    BEGIN
      p_output := 'Ingevoerd: ' || p_input;
    END PRC_ECHO;I've created a dynamic action on the LOSE FOCUS event of item P7_INPUT.
    The true action executes PL/SQL (sequence number 10)
    Begin
    eigen_apps.uga_prc_echo (:p7_input, :P7_OUTPUT);
    end;"Page items to submit" are set to P7_INPUT, P7_OUTPUT
    (and I tried with just P7_INPUT).
    The second true action (sequence number 20) does a REFRESH on ITEM P7_OUTPUT (and I tried refresh region and other things I thought would make it work.)
    When I enter something in P7_INPUT and tab, click or enter away from the P7_INPUT field, nothing changes in my P7_OUTPUT textfield.
    Only when I hit the refresh button in my browser P7_OUTPUT is filled with 'Ingevoerd: <P7_INPUT value>.
    So. The procedure does return the value into P7_OUTPUT, but I cant get an instant refresh of the P7_OUTPUT to work.
    Can any of you help me?
    Robin

    Getting some other errors now, will look into this tomorrow.
    1 error has occurred
    ORA-06550: line 4, column 18: PLS-00382: expression is of wrong type ORA-06550: line 4, column 7: PL/SQL: Statement ignoredNeed to check my procedure...
    Robin

Maybe you are looking for

  • Is there any way to have a smart mailbox search sub-folders

    My wife uses Mail.app for her business in which gets hundreds of emails a day and managing them all is quite a challenge. One important goal of e-mail management is archiving certain emails in folders (and sub-folders) without creating duplicates.  W

  • How do I fix Windows Vista crashing after Lion 10.7.1 update

    I have OS X Lion 10.7.1. I just tried to use my Windows Vista for the first time. It keeps crashing. How do I fix that problem?

  • Suddenly can't open PDFs

    I have a Dell about a year old that came with Windows 8. I open PDFs on a regular basis and suddenly it just stopped. Reader comes up and the screen goes dark and the blue circle circles but nothing ever opens.

  • Screen corruption in openbox

    Switched from KDE to openbox today and getting weird screen corruption (not sure that's the correct term but never mind) in loads of applications, on things like the terminal if I scroll up then back down it dissapears but in things like deluge there

  • Business role of user

    Hi, How do we find what business role is associated with the user in crm sap 2007? Regards Shilpi