HR - Dynamic Actions help required

Hi,
We have a requirement like this:
Each Org unit is attached to a Work Address and the same is stored in Infotype 1028.
Whenever hiring action takes place the dynamic action should read the Infotype 1028 for the Org unit to which the employee is assigned and fetch the Work address details.
These details should be stored in Infotype 0006 under Work Address subtype.
Request your help as this is a very urgent requirement for us.
Title edited by: Alvaro Tejada Galindo on Jun 12, 2008 7:05 PM

In the dynamic actions, you can specify the name of a subroutine of a program.
Create a subroutine, and write code inside that

Similar Messages

  • Dynamic Action-help needed

    Hi ,
    My requirement is in dynamic Action I need to delimit all records in a Subtype of an Infotype and create New record for these records with BEGDA as ENDDA + 1 of the delimited records.
    Iam able to delimit all records in the Subtype but , Iam not able to create new records.
    My code for delimiting is as given below, in T588Z,
    9901 2 06 801 P P9901-SUBTY='2'
    9901 2 06 802 P PSYST-IOPER='MOD'
    9901 2 06 803 P P9901-STATS='X'
    9901 2 06 804 P P9901-PREAS='91'
    9901 2 06 805 F DELIMIT_DTE(ZHSRAS_T588Z_9901)
    9901 2 06 806 W P9901-ENDDA=RP50D-ZZDATE3
    9901 2 06 807 I MOD,9901,3
    9901 3 06 808 P SY-UCOMM='UPD'
    9901 3 06 809 F DELIMIT_DTE(ZHSRAS_T588Z_9901)
    9901 3 06 810 W P9901-ENDDA=RP50D-ZZDATE3
    The above code is working fine.
    My code for creating new record is as given below, even though the control is oing to the subroutine, INS statement is not working, and hence new record is not getting created.
    9901 3 06 811 P SY-UCOMM='UPD'
    9901 3 06 812 P PSAVE-ENDDA<>P9901-ENDDA
    9901 3 06 813 P P9901-STATS<>'X'
    9901 3 06 814 I INS,9901,3
    9901 3 06 815 F BEGIN_DATE(ZHSRAS_T588Z_9901)
    9901 3 06 816 W P9901-BEGDA=RP50D-ZZDATE3
    9901 3 06 817 W P9901-ENDDA='99991231'
    Kindly help me on this.
    Thanks in Advance

    hi,
    thankyou for all ur valuable replies.
    Time constraint for this custom infotype is 2.
    It is not allowing to create a new subtype record if 1 exists.
    Here scenerio is
    Each Subtype ,ie, Subtp 2 ad 3 has got 4 records each with distinct OBJPS field.
    when STATS field of subtype 2 is changed for any 1 record in Subtype 2, corresponding record in Subtype 3 should get delimited .
    And, rest of the records of Subtype 3 should get created again with new start date.
    The code I have written for this is ,
    9901     2          06     800           *BEG*****DEATH OF WIDOW*****************
    9901     2          06     801     P     P9901-SUBTY='2'
    9901     2          06     802     P     PSYST-IOPER='MOD'
    9901     2          06     803     P     P9901-STATS='X'
    9901     2          06     804     F     DELIMIT_DTE(ZHSRAS_T588Z_9901)
    9901     2          06     805     W     P9901-ENDDA=RP50D-ZZDATE3
    9901     2          06     806     *     ****PSAVE-ENDDA<>P9901-ENDDA
    9901     2          06     807     F     LOCK_REC3(ZHSRAS_T588Z_0015)
    9901     2          06     808     I     <b>MOD,9901,3,P9901-OBJPS,(P9901-BEGDA),(P9901-ENDDA)</b>
    9901     2          06     812     *     *BEGCREATE NEW REC FOR SURVIVING WIDOWS******
    9901     2          06     813     *     *
    9901     2          06     814     P     P9901-STATS<>'X'
    9901     2          06     815     F     BEGIN_DATE(ZHSRAS_T588Z_9901)
    9901     2          06     816     W     P9901-BEGDA=RP50D-ZZDATE3
    9901     2          06     817     W     P9901-ENDDA='99991231'
    9901     2          06     818     I     <b>COP,9901,3,P9901-OBJPS,(P9901-BEGDA),(P9901-ENDDA)</b>
    9901     2          06     819     *     *ENDCREATE NEW REC FOR SURVIVING WIDOWS*****
    9901     2          06     830     *     ***END*****DEATH OF WIDOW*****************
    Control is going to all routines, but
    MOD,9901,3,P9901-OBJPS,(P9901-BEGDA),(P9901-ENDDA)  and
    COP,9901,3,P9901-OBJPS,(P9901-BEGDA),(P9901-ENDDA) is not working.
    Message was edited by: Shahana Shahul
    Message was edited by: Shahana Shahul

  • Dynamic Action help please

    Good day
    I am a new user to SAP (roughly 6 weeks), focussing on the HR side. I have been asked to attempt to compile the code for the following requirement:
    Capture IT9007 (Service History) for new employees, or those who have a change in Position The fields required are Start Date; To Date; Employee Type; Status; Workplace; Grade; Position.
    Please help me understand how to go about gathering the data. Explanation of the syntax too would be appreciated too.
    Thanks for the help
    P.s. I have put together the following code, but my colleague has just informed me it does nothing...
    IType     STy.          Field Name     FC     No.     S     Variable function part
    0                    6          P     SY-TCODE='PA40'
    0                    6          P     PSPAR-BUKRS='5005'
    0               MASSN               P     P0000-MASSN='Z1'/X
    0               MASSN               P     P0000-MASSN='Z2'/X
    0               MASSN               P     P0000-MASSN='ZA'/X
                        0          I     COP,P0001-PLANS
                                  W     P9007-PLANS=P0001-PLANS
    0               MASSN               P     P0000-MASSN='12'/X
    0               MASSN               P     P0000-MASSN='Z9'/X
    0               MASSN               P     P0000-MASSN='ZAZ5'
                        0          I     COP,P0000-BEGDA
                                  W     P9007-BEGDA=P0000-BEGDA
                        0          I     COP,P0000-ENDDA
                                  W     P9007-ENDDA=P0000ENDDA
                        0          I     COP,PSPAR-PERSG
                                  W     P9007-EMPLOYEE_TYPE=PSPAR-PERSG
                                       EMPLOYEE STATUS
                        0          I     COP,P0001-WERKS
                                  W     P9007-WORKPLACE=P0001-WERKS
                        0          I     COP,P0001-PERSK
                                  W     P9007-GRADE=P0001-PERSK
                        0          I     COP,P0001-PLANS
                                  W     P9007-PLANS=P0001-PLANS

    Hi KNaidoo,
    Welcome to swim the SAP ocean:).
    Dynamic actions are actions that is triggered during infotype maintainance.
    lets say you enter some details in infotypes and save it (PAI ) ,it has to populate an email or populated another inoftype,its intended for this purpose.
    There are standard infotypes and customer infotypes(9000-9999).If you see in your case it IT9007(customer infotype)
    http://www.hrexpertonline.com/downloads/Rehan%20Zaidi%20Online%20Portion.doc
    tcode pa30 lets say you are opening IT0001  for one employee and when you go to view the infotype details.click system->under SAP data you will find MP000100(MPXXXX) its module pool program .when you double click on that will take you to abap editor.every module pool program of the infotype will have a standard program MPPERS00(standard include) and it wil have the routine that checks if there is a dynamic action maintained for that infotype be refering T588Z.
    Rehan zaidi power of dymamic action is an execllent one for understanding .please download the doc from the link shared.
    No Worries
    KG

  • Configure Dynamic Actions

    Hi All,
    How to configure Dynamic actions?..I know that you need to create dynamic actions in Spro-PA-Dynamic actions. .what are the steps to be done after that ?.
    Kindly provide with an example.
    Regards
    Eliz

    HI Eliz,
    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: 
    The maintenance of dynamic actions is done via the view V_T588Z, as shown in Figure 1 (IMG menu path Personnel Management>Global Settings in Personnel Management>Basic Settings>Infotypes>Create Dynamic Actions).
    Requirement: When the postal code or the city of an employeeu2019s permanent residence is changed in infotype 0006, an email should be sent to the administrator.
    INFTY    SUBTY    FIELDN    FC          NO.    STEP       VARIABLE FUNCTION
    0006           1             ORT01      06             001           V               PSTLZ            
    0006           1             PSTLZ      06             002           M               M0001
    The V statement on line 001 is used to link the two fields to the M statement. The statements relevant to field PSTLZ are also applicable to the ORT01 field.
    When a record is created or changed in infotype 0006 of permanent address, an email is sent using the feature M0001. Information such as the recipient address, subject, and content of the mail is derived from M0001
    Warm Regards,
    Kapil Kaushal

  • Need help in Dynamic Actions

    Hi Experts,
    I have a requirement to create Additional Payments for two wage types 591 and 691 for a particular Employee subgroup and for three personnel areas whenever a person is hired. I have written the code like this
    400           *BEK047.01 RECURRING PAYM 591 / 691
    401     P     PSPAR-MASSN='01'
    402     P     P0001-PERSK='AA'
    403     P     P0001-WERKS='037'
    404               P                    P0001-Werks='039'/X
    405               P                   P0001-WERKs='041'/X
    406     I     INS,0014/D
    407     W     P0014-LGART='0591'
    408     W     P0014-BETRG='109'
    409     W     P0014-ZANZL='1'
    410     W     P0014-ZEINZ='012'
    411     W     P0014-ZDATE=P0001-BEGDA
    412     W     P0014-BEGDA=P0001-BEGDA
    414     W     P0014-ENDDA=P0001-ENDDA
    Apparently above code doenst work . I removed the OR condition and write the code three times for diff personnel area and that works. So i wanted to know what is wrong in above code. Also when records are created they should be defaulted with the amount mentioned in the code i.e. 109 .....but somehow some other value is coming which i havent entered.
    Please help
    Regards,
    Navneet.

    Dear Navneet
               your dynamic action shows that you want to default the valued in the Recurring Payment and Deductions but not the Additional Payments. Usually the Indicator /X is used with the condition is endup with Logical OR.
    Try out the following values and test
    IT            FC     Num     Indi     Variable Function Part
    0001     04     101     P     T001P-MOLGA='40'
    0001     04     102     P     P0000-MASSN='01'
    0001     04     103     P     P0001-PERSK='AA'
    0001     04     104     P     P0001-WERKS='037'
    0001     04     105     P     P0001-WERKS='039'
    0001     04     106     P     P0001-WERKS='041'
    0001     04     107     I     INS,0014,,,(P0001-BEGDA),(P0001-ENDDA)/D
    0001     04     108     W     P0014-LGART='0591'
    0001     04     109     W     Q0014-BETRG='109'
    0001     04     110     W     P0014-ZDATE=P0001-BEGDA
    0001     04     111     W     Q0014-ZANZL='1'
    0001     04     112     W     Q0014-ZEITX='Months'
    If the above coding is not working, Tryout individually for every condition seperately starting from 3rd line and followed by I like followes.
    0001     04     101     P     T001P-MOLGA='40'
    0001     04     102     P     P0000-MASSN='01'
    0001     04     103     P     P0001-PERSK='AA'
    0001     04     107     I     INS,0014,,,(P0001-BEGDA),(P0001-ENDDA)/D
    0001     04     108     W     P0014-LGART='0591'
    0001     04     109     W     Q0014-BETRG='109'
    0001     04     110     W     P0014-ZDATE=P0001-BEGDA
    0001     04     111     W     Q0014-ZANZL='1'
    0001     04     112     W     Q0014-ZEITX='Months'

  • Dynamic actions required for IT0021 - child subtype 2.

    Hello ,
    Can someone help me  with required dynamic actions to delimit the child subtype in infotype 21,
    when any new subtype is created in IT0021?
    Best Regards,

    The scenario actually is like :
    After the Save of subtype XX, we could use table T588Z (Dynamic Action Table) and let the automatic calling of this table drive bringing up the IT0021 subtype 2 (Child) and even  put the End date on the IT0021 child.  The user would then click the Save button.  The advantage here is we donu2019t do any direct update of the Child IT0021.
    Regards.

  • Help using a dynamic action to update tabular form items (specifically radio button) based on collection

    Hi Everyone, I have posted this question in the past and made huge progress with Denes Kubicek's help:  https://apex.oracle.com/pls/apex/f?p=31517:294:115851992029365::::: based on my earlier question posted: https://forums.oracle.com/forums/thread.jspa?threadID=2537494
    I am struggling with one item in my tabular form.  It is a radio button.  The choices all appear properly, but the value is not saved in the collection (and hence, not saved in the table).  All other items in the tabular form save properly.
    here is what I have for the query.   It is item c024 (which maps to ;'f03'), which is defined as a radio LOV based on an existing LOV.
    Currently I have:
    2 page items:
    P110_ID
    P110_VALUE
    Dynamic action called CHANGE COLUMN:
    event: CHANGE
    selection type: jQUERY Selector
    jQuery:
    jQuery Select = input[name='f03'],select[name'f08'],select[name='f09'],input[name='f10'],input[name='f11'],input[name='f12'],select[name='f40'],input[name='f21'],input[name='f22'],input[name='f23'],input[name='f50']
    event scope: Dynamic
    true action#1: set value P110_ID javascript expression this.triggeringElement.id
    true action#2: set value P110_VALUE javascript expression this.triggeringElement.value
    true action#3: execute pl/sql code
    declare
      v_member number;
      v_seq number;
    begin
      v_member := TO_NUMBER (SUBSTR (:p110_id, 2, 2));
      select ltrim(substr(:p110_ID,5,4),'0') into v_seq from dual;
      safis_collections.update_column(v_seq,
                                    v_member,
                                    :p110_value);
    true ation#4 refresh region :LANDINGS_COLLECTION
    the tabular form is based on the query:
    SELECT
    apex_item.text(1,seq_id,'','','id="f01_'||seq_id,'','') "DeleteRow",
    seq_id,
    seq_id display_seq_id,
    apex_item.text_from_LOV(c004,'SPECIES')||'-'||apex_item.text_from_LOV(c005,'GRADE')||'-'||apex_item.text_from_LOV(c006,'MARKETCODE')||'-'||apex_item.text_from_LOV_query(c007,'select unit_of_measure d, unit_of_measure r from species_qc') unit,
    apex_item.select_list_from_LOV(8,c008,'DISPOSITIONS','onchange="getAllDisposition('||seq_id||')"','YES','0','  -- Select Favorite --  ','f08_'||seq_id,'') Disposition,
    apex_item.select_list_from_LOV(9,c009,'GEARS','style="background-color:#FBEC5D; "onFocus="checkGearPreviousFocus('||seq_id||');"onchange="getAllGears('||seq_id||')"','YES','3333','-- Select Favorite --','f09_'||seq_id,'') Gear,
    apex_item.text(10,TO_NUMBER(c010),5,null, 'onchange="setTotal('||seq_id||')"','f10_'||seq_id,'') Quantity,
    apex_item.text(11,TO_NUMBER(c011),5,null,'onchange="getPriceBoundaries('||seq_id||')"','f11_'||seq_id,'') Price,
    apex_item.text(12, TO_NUMBER(c012),5,null, 'onchange="changePrice
    ('||seq_id||')" onKeyDown="selectDollarsFocus('||seq_id||',event);"','f12_'||seq_id,'') Dollars,
    decode(c013,'Y',apex_item.text(14, c014,30,null,'style="background-color:#FBEC5D;" onClick="onFocusAreaFished('||seq_id||');"','f14_'||seq_id,''),'N','N/A') Area_Fished,
    decode(c017,'Y',apex_item.text(18, c018,4,null,'style="background-color:#FBEC5D; "onBlur="setUnitQuantity('||seq_id||')"','f18_'||seq_id,''),'N','N/A') UNIT_QUANTITY,
    decode(c017,'Y',apex_item.text(19,'CN',3,null,'readOnly=readOnly;','f19_'||seq_id,''),'N','N/A') UNIT_COUNT,
    c024 hms_flag,
    decode(c050,'Y',apex_item.checkbox(21,'Y','id="f21_'||seq_id||'" style="background-color:#FBEC5D; " onClick="alterYes('||seq_id||');" onKeyPress="alterYes('||seq_id||');"',c021),'N','N/A') FinsAttached,
    decode(c050,'Y',apex_item.checkbox(22,'N','id="f22_'||seq_id||'" style="background-color:#FBEC5D;" onClick="alterNo('||seq_id||');" onKeyPress="alterNo('||seq_id||');"',c022),'N','N/A') FinsNotAttached,
    decode(c050,'Y',apex_item.checkbox(23,'U','id="f23_'||seq_id||'" style="background-color:#FBEC5D;" onClick="alterUnk('||seq_id||');" onKeyPress="alterUnk('||seq_id||');"',c023),'N','N/A') FinsUnknown,
    decode(c050,'Y',apex_item.textarea(28,c028,3,null,null,'f28_'||seq_id,''),'N','N/A') Explanation,
    decode(c024,'N',apex_item.select_list_from_LOV(29,c029,'HMSNATURE','onchange="saveNature('||seq_id||')"','YES','A','-- Select Nature of Sale --','f29_'||seq_id,''),'U',apex_item.select_list_from_LOV(29,c029,'HMSNATURE','onchange="saveNature('||seq_id||')"','YES','A','-- Select Nature of Sale --','f29_'||seq_id,''),'Y','N/A') Nature_Of_Sale,
    decode(c020,'Y',
    apex_item.select_list_from_LOV(40,c040,'HMS_AREA_CODE','style="background-color:#FBEC5D;"',null,null,null,'f40_'||seq_id,''),
    'N','N/A') HMS_AREA_CODE,
    c020,c050,
    decode(c020,'Y',
    apex_item.text(41,TO_NUMBER(c041),5,null,null,'f41_'||seq_id,''),
    'N','N/A') Sale_Price
    from apex_collections
    where collection_name = 'SPECIES_COLLECTION' order by seq_id
    I have noticed the following:
    when I change column C011 (price) the following values are set in the dynamic action:
    P110_ID = f11_1
    P110_VALUE = whatever I change the price to.
    when I change the column C024 (hms_flag), the following values are set:
    P110_ID = f03_0001
    P110_VALUE = whatever I change hms_flag to.
    the region is refreshed in my dynamic action, and the change for hms_flag does not hold.  I have tested the SQL query that generates the value for v_SEQ in the dynamic action.   In both a change to price and HMS_FLAG it appears valid
    select ltrim(substr(:p110_ID,5,4),'0') into v_seq from dual;
    if f11_1, v_seq:= 1
    if f03_0001, v_seq := 1
    thank you!

    solved.  sort of. 
    field c024 references f03.
    the Dynamic ACtion, step 4 calculates v_member by taking a substring of P110_ID...and in all other fields, the column and the field (fxx) are the same value....except for c024.
    I am not certain exactly how to resolve, but see the problem.

  • Need Help calling Dynamic Action from Link in Interactive Report

    Hello I have an Interactive Report. I would like to have a Dynamic Action called when the user selects a row (Clicks a Link).
    I am running Application Express 4.0.2.00.07 on Oracle 11gR1.
    Any help would be great.

    Hi VANJ,
    Sorry for the poorly written original post. I will be much more specific.
    I have a Interactive Report on page 40. That report has a column named X_UID that is a link back to page 40 and sets a text item named P40_X_UID in a Region we will call "Form X" with the value of the column. That page refresh also then calls a Automated Row Fetch process to fetch all the values needed for the rest of the page items in the "Form X" region. Also "Form X" region has a conditional display on to only display when P40_X_UID is not null.
    What I would like to do:
    When the user clicks on link in the IR for X_UID instead of the "Form X" region becoming visible I would like to become modal. I am trying to use a Plug-In named "ClariFit Simple Modal - Show". I have it working with a Dynamic Action when you click a Page Item. But I would like to to work when the link is clicked and the data populated.
    I hope that helps some.

  • Dynamic Actions...Help

    Hi Guys,
    During a new hire, standard SAP process is to pop up Benefits Enrollment screen immediately after we maintain IT 171.
    In my case, i would like to be taken to IT 378 (Benefits Adjustment reason) immediately after i maintain IT 171 (general benefits info), and then i should be taken to Benefits Enrollment screen (1st IT 171, 2nd IT 378, 3rd Enrollment Screen).
    I guess we could do it through Dynamic Actions, but i am not sure how we do it.
    Can someone help me step by step.
    Thank a lot!

    instead, You can add those infotypes in the infogroup used for your hiring action. Try that

  • Urgent help on a dynamic action

    Hi,
    I am working on SAP 4.6C and have an issue with a dynamic action. I started having this problem since a month. We did not customize this new dynamic action. I dont understand how it entered in my SAP R/3 system.Support packs were added last month can they be responsible.I am entering the discription of the dynamic action.
    0041 04 1 * --- BEI NEUANLAGE/EINTRITT IT2006 MIT 10 VORSCHLAGEN ---
    0041 04 3 I INS,2006,10,,(P0041-BEGDA),
    0041 04 4 W P2006-ENDDA=P0041-BEGDA
    0041 04 5 W P2006-ENDDA+4(4)='1231'.
    I did compare the table T588Z with the T-Code SCMP and can see that above dynamic action is newly added but need to know how.
    ASAP help would be appreciated.
    Thanks and Regards
    Swati.

    .

  • HELP Filtering and IReport with Dynamic Actions

    Hi all,
    Now that I've upgraded to 4.0, I'm trying to make more use of Dynamic Actions. I followed the example at: http://anthonyrayner.blogspot.com/2010/07/report-filtering-with-apex-40-dynamic.html and it works fine. The thing is that it is based on a select list which kind of takes away from the effect. What I want is to have an interactive report which is filtered by the value in a text box. I want to use a dynamic action that when a user types a search string, the IR is filtered down based on each character typed. I used the "Change" Event on the text box and the Refresh action on the report region for the IR, but it only refreshes when I "Enter" (submit). Any ideas on how I can get an AJAX-like action using dynamic actions?
    Thanks!!!

    Hi,
    See this post
    APEX 3.2 Refresh interective report
    It works also for Apex 4.
    You can call javascript that set your item session state and refresh IR like in that post
    Regards,
    Jari

  • Help with Dynamic Action Construction

    I want to create a dynamic action that will disable a field called P1_TBRN when any of the following conditions in the form are true:
    :P1_TRIAL_STATUS in ('Off-Trial','Unknown') or
    :P1_DIAGNOSIS_MAJOR ='UNKNOWN' or
    :P1_INSTITUTION ='Unknown' or
    :P1_CONSENT_EXISTS <> 'Y';
    I assume I use a "Change" event but I can't work out how to enter the 4 condtions so that they are all checked each time. If I create 4 separate dynamic actions, when I change one of the fields, it does not take into consideration the other field values.
    An alternative I've tried is to set up a Read Only condition on P1_TRIAL with the above condition. The only problem is that I have to submit the page each time there is a change in one of the 4 fields above. It would be better if I didn't have to submit the page each time so I'd like to use a Dynamic Action.
    thanks in advance
    Paul P

    Hi Paul.
    If you want to evaluate 4 variables in 1 dynamic action you have to post the value of these 4 items on each change of one of these items as far as I know.
    I had a form with multiple checks of this kind and ended up having serieus performance issues.
    My way around was to evaluate in javascript. You creat a dynamic action on change of any of these 4 fields and set the condition to a javascript expression. The expression looks something like (quick edit so there might be some typos):
    $v('P1_TRIAL_STATUS')=='Off-Trial'||
    $v('P1_TRIAL_STATUS')=='Unknown')||
    $v('P1_DIAGNOSIS_MAJOR')=='UNKNOWN'||
    $v('P1_INSTITUTION') =='Unknown'||
    $v('P1_CONSENT_EXISTS') == 'Y'
    If this evaluates to true the true action of the dynamic action is executed, otherwise the false action.
    Cheers
    Bas

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

  • IT0071 Dynamic Action does not overwrite Pension Scheme Calculation Rule

    I am trying to write a dynamic action to create IT0071 with default values for the Employee contribution (0%) and Employer contribution (4%). However when IT0071 is created the default values from the associated Pension Scheme Calculation Rule (4% and 8%) are not being overwritten by the dynamic action. Is there a way to get the dynamic action to override the Pension Scheme Calculation Rule values?
    This is the dynamic action u2026
    0171              BENGR     06     10     P     T001P-MOLGA='08'
    0171              BENGR     06     15     P     PSPAR-MASSN='01'/X
    0171              BENGR     06     20     P     PSPAR-MASSN='12'/X
    0171              BENGR     06     25     P     P0171-BENGR<>NOBN
    0171              BENGR     06     30     P     P0171-BSTAT<>NOBN
    0171              BENGR     06     300     I     INS,0071,SS7,,(P0171-BEGDA),(P0171-ENDDA)
    0171              BENGR     06     315     W     P0071-PCTEE='0.0000'
    0171              BENGR     06     320     W     P0071-PCTER='4.0000'
    Any help much appreciated.
    Regards,
    Janet

    Hi Brian,
                  In standard SAP physical sample planning requires sample drawing procedure.
    Link: [http://help.sap.com/erp2005_ehp_05/helpdata/EN/2d/3521b6448c11d189420000e829fbbd/frameset.htm]
                  And drawing procedure is advised with partial sample numbers.
    Link: [http://help.sap.com/erp2005_ehp_05/helpdata/EN/2d/3521b6448c11d189420000e829fbbd/frameset.htm]
                 Generally when we use partial sample numbers, we also use a drawing procedure. And in that scenario SAP describes the calculation as shown in
    Link: [http://help.sap.com/erp2005_ehp_05/helpdata/EN/2d/3521b6448c11d189420000e829fbbd/frameset.htm]
                 What you have done (partial samples for MICs and not having for others, all without drawing procedure) is not generally done. I think our observations in this context should be confirmed only if we try more of such examples.
    Regards
    Sm.

  • Dynamic Action not triggering on Radio Group change

    I have a form that contains a text item, a radio group item and a display-only item. I have created a single dynamic action "CHANGE SUBJECT" associated with both the text and radio group items that updates the display-only item's value whenever either is changed. The action fires properly when the text item is changed, but not when the radio group is changed. If I set the radio group item's "Page Action when Value Changed" property to "Redirect and Set Value", than everything works, but that is not the desired behavior as that requires a refresh of the entire page. Any suggestions on how to make this action work? Is there a different action for the radio-group that I should be using instead of CHANGE? Thanks for your help.
    -Jeff
    Edited by: jritschel on Sep 1, 2010 2:05 PM

    OK, then change it to JavaScript Expression instead of SQL and put this code in the value :
    "Radio Group Value= "+ $v('P65_RADIO_GROUP')+" - Text Box Value= "+ $x('P65_TEXT').value I tried it and it work!
    Sam
    Update:
    I tried the same code you had before (plsql Expression) but there is something that you need to do to make it work, in the TRUE action setting , there is a "Page Items to Submit" field, you need to put your text item and radio in it as follows:
    Page Items to Submit : P65_RADIO_GROUP,P65_TEXTThis should make your code work in addition to the other way I provided.
    Thanks,
    Sam
    Edited by: Sam_06 on Sep 1, 2010 2:27 PM

Maybe you are looking for

  • IMac or Power Mac G5?  Moving from PC to Mac

    I'm a PC user now and am fed up with Windows. I just recently went to a Mac store and am now a changed man. Here's my delemma. I am an amature photographer and love to use Photoshop Elements. I also do a lot of multitasking for my day job and need po

  • Regarding studying for ABAP HANA

    Hello Gurus,      I have been working as a ABAP SRM techno-Functional Consultant for 5 years. Now I feel like to switch into something new and increase my knowledge. Can someone help me regarding learning of HANA for ABAP. Also can SAP HANA somehow b

  • I recently lost all my files on my computer. is there any way I can download all my songs from my ipod to my computer.

    can someone tell me if i can download all my music from my ipod through my itunes into my computer. I recently lost all my files on my computer along with my music folder

  • Tecra 8000 Laptop

    Hi, Has anyone had any success or even tried to install on this laptop? It goes fine until the display settings, I can only choose the default 640 screen, and I don't want that. in the specs sheet from toshiba it states Intel 440BX that is the chipse

  • Looking for a Resizable Window with No Titlebar

    I have a requirement for a Window with no title bar - but it needs to be resizeable and draggable. Anyone know where I can find an example of such a window class?