Dynamic Actions with multiple infotypes.

Hi,
I have the following business requirements where I am supposed to trigger a function call when the users creates an action via PA40 and the Action Type = 'X1' and subsequently saves IT0001 and IT0019.
Both IT0001 and IT0019 are configured as part of the infogroup in Personnel Actions. The function call is supposed to be triggered if the above 3 conditions are met.
Please advise how it can be done via Dyanmic Actions or how it can be done.
Points will be rewards.
Thanks in Advance.

Hi,
You can use programs within a dynamic action like in standard T588Z (example):
0005                   00     3     FHIRE_P0311(HNZCHIR0)
There you can more flexibly check if the conditions are met by accesing database.
hope it helps!,
Carlos.

Similar Messages

  • Dynamic Actions with Multiple Actions Capability

    Dynamic Actions with Multiple Actions Capability
    How can I get Dynamic Actions to work on Actions that are stored solely on IT0302 due to the multiple relationship to a previous Action that is stored on both IT0302 and IT0000?
    When multiple actions on a given day are executed, the dynamic action from the first action entered is executed twice - when it should only execute the first time with the second actions dynamic action triggering the second time.
    Thanks

    When there are multiple actions with the same effective date the wrong dynamic action is triggered.  For example, if I have an Expat Return To Home action followed by an Internal Move action with the same effective date the below events occur:
    1.  IT0001 is updated due to Expat Return to Home - triggering the Dynamic Action off of IT0000 which is Expat Return to Home (Correct)
                -  Action is stored on IT0000 and IT0302
    2.  IT0001 is updated due to Internal Move - triggering the Dynamic Action off of IT0000 which is Expat Return to Home (Incorrect - background processing creates data not needed)
                -  Action is stored only on IT0302
    Question:
    How can we leverage Multiple Actions with the same effective date while continuing to use Dynamic Actions?

  • Dynamic actions on OM Infotypes

    Hi All,
    Can we use dynamic actions for OM infotypes?

    Hi
    for dynamic actions for OM infotypes try with
    include the required infotypes in V_T582A     Infotype attributes (Customizing)
    and write your code in V_T582A     Infotype attributes (Customizing)
    Regards
    Sri

  • Dynamic action with set value on date field

    Hi,
    I'm using APEX 4.02
    I'm trying to calculate the age based on the date of birth dynamically on a form. I'm trying to do this with a (advanced)dynamic action with set value.
    I'm able to get this kind of action working based on a number field etc, but NEVER on a date field.
    I've read all posts on this subject but so far no solution. Even if I try to simply copy the value over to another date field or typecast it to a string ( to_char function ) it does not work. So for me the problem seems to be in the source field being a date field.
    I've tried using the source value as is in a select statement :
    select :P33_GEBOORTEDATUM from dual;
    and also type casted based on the date format :
    select TO_DATE(:P33_GEBOORTEDATUM,'DD-MON-YYYY') from dual
    but still no luck.
    On the same form I don't have any issues as long as the calculation is based on number fields, but as soon as I start using dates all goes wrong.
    Any suggestions would be greatly appreciated. If you need any extra info just let me know.
    Cheers
    Bas
    b.t.w My application default date format is DD-MON-YYYY, maybe this has something to do with the issue .... ?
    Edited by: user3338841 on 3-apr-2011 7:33

    Hi,
    Create a dynamic action named "set age" with following values.
    Event: Change
    Selection Type: Item(s)
    Item(s): P1_DATE_OF_BIRTH
    Action: Set value
    Fire on page load: TRUE
    Set Type: PL/SQL Expression
    PL/SQL Expression: ROUND( (SYSDATE - :P1_DATE_OF_BIRTH)/365.24,0)
    Page items to submit: P1_DATE_OF_BIRTH
    Selection Type: Item(s)
    Item(s): P1_AGE
    Regards,
    Kartik Patel
    http://patelkartik.blogspot.com/
    http://apex.oracle.com/pls/apex/f?p=9904351712:1

  • 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

  • Provide syntax with multiple infotypes?

    Hi,
    If i take one infotype data we are taking like this...
    PROVIDE * FROM P0002 BETWEEN PN-BEGDA AND PN-ENDDA.
    WRITE: P0002-PERNR, P0002-NACHN, P0002-VORNA.
    ENDPROVIDE.
    But i want multiple infotypes data like 0000,0006,0008....?Give me the syntax of that provide stmt with multiple infotypes?
    Thanks
    Sree

    PROVIDE * FROM P0000
    FROM P0002
    FROM P0006
    FROM P0008
    BETWEEN PN-BEGDA AND PN-ENDDA.
    WRITE:/ P0000-STAT2, P0002-PERNR, P0002-NACHN.
    WRITE:  P0002-VORNA, P0006-STRAS, P0008-ANSAL.
    ENDPROVIDE.
    Reward for useful answer
    Regards
    Pradeep

  • 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 Actions in Custom Infotype

    Hi,
    We have a requirement where we need to default the field values from Infotype IT0001, IT0315, IT0041 to custom infotype 9030 which has similar fields.
    I am trying with the below code in dynamic actions
    9030                            04        1           I          INS,9030
    9030                            04        2          W        P9030-KOSTL=P0315-KOSTL
    9030                            04        3          W        P9030-MSTBR=P0001-MSTBR
    9030                            04        4          W        P9030- DAR01=P0041-DAR01
    But the values are not getting defaulted. What could be the reason. Please suggest.
    Edited by: siddhesh kandalgaonkar on Mar 3, 2010 3:59 PM

    Hi Siddhesh,
    What you are actually doing with this set-up for a Dynamic Action is telling the system to create an IT9030 when you create an IT9030!  You should set it up to process after another infotype is created as the trigger.  For example:
    0001   06      1   I     INS,9030,,,(P0001-BEGDA),(P0001-ENDDA)
    0001   06      2   W  P9030-KOSTL=P0315-KOSTL
    0001   06      3   W  P9030-MSTBR=P0001-MSTBR
    0001   06      4   W  P9030-DAR01=P0041-DAR01
    This way if IT0001 is created or changed, a new IT9030 will be created. 
    Also, you should verify that your fields are set up properly in your custom infotype to match the size and type of the fields from the reference infotypes. 
    Paul
    Edited by: Paul Davidson on Mar 3, 2010 9:25 AM

  • Dynamic Page with Multiple Checkboxes

    I am trying to get a dynamic page to pass the checked value of multiple checkboxes to the submit proceedure. Can anyone tell me what I am doing wrong?
    Thanks in advance,
    Pam -------------------------------------------------------------------------
    Dynamic Page:
    <HTML>
    <FORM action="scott.brsubmit" method="POST">
    <TABLE border CELLPADDING=0 CELLSPACING=0>
    <ORACLE>begin
    for c1 in (SELECT rowid,ename, job, bonus from scott.bonus_approval where approved is null)
    loop
    htp.p('<tr><td><FONT FACE= ARIAL SIZE=1>');
    htp.p(c1.ename);
    htp.p('</TD><td><FONT FACE= ARIAL SIZE=1>');
    htp.p(c1.job);
    htp.p('</TD><td><FONT FACE= ARIAL SIZE=1>');
    htp.p(c1.bonus);
    htp.p('</TD><td><FONT FACE= ARIAL SIZE=1><B>');
    htp.p('<input type="hidden" name="p_ename" value='||c1.ename||'>');
    htp.p('<input type="checkbox" name="p_cb" value="Y">');
    htp.p('</TD><td><FONT FACE= ARIAL SIZE=1><B>');
    htp.p('<input type="checkbox" name="p_cb2" value="N">');
    htp.p('</td></tr>');
    htp.p('<br>');
    htp.p('
    end loop;
    HTP.P('</table>');
    htp.p('<p>');
    htp.p('<input type=submit value="Save" name="p_action" >');
    end;
    </ORACLE>
    </form>
    </BODY>
    </HTML>
    Procedure:
    (p_ename in portal.wwv_utl_api_types.vc_arr, p_cb in portal.wwv_utl_api_types.vc_arr, p_cb2 in portal.wwv_utl_api_types.vc_arr, p_action varchar2)
    as
    begin
    if p_action = 'Save' then
    for i in 1..p_ename.count loop
    if (p_cb(i) = 'Y') then
    update scott.bonus_approval set approved = p_cb(i) where ename = p_ename(i);
    COMMIT;
    else
    if (p_cb2(i) = 'N') then
    update scott.bonus_approval set approved = p_cb2(i) where ename = p_ename(i);
    COMMIT;
    END IF;
    end if;
    end loop;
    end if;
    htp.print('<script language="JavaScript">');
    htp.print('function display() {
    var msg = "\nRecord Saved Successfully\n";
    alert(msg)');          
    htp.print('}');
    htp.print('display()');
    htp.print('</script>');
    exception
    when others then
    htp.print('<script language="JavaScript">');
    htp.print('function display2() {
    var msg = "\nRecord Not Saved.\n";
    alert(msg)');          
    htp.print('}');
    htp.print('display2()');
    htp.p('Not saved');
    htp.print('</script>');
    end;

    Hi.
    I have a dynamic page, with a bind variable :v_day. On the customization screen the user can select one or more days of the week, or all days. I use this also in a report and then it works ok. In the where clause i use:
    and rtrim((to_char(date_time,'DAY'))) IN :v_day
    Date_time is a tablecolumn (date).
    When i add this line in the select script from the dynamic page, i get error:
    : ORA-06550: line 1, column 2443:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    The symbol "(" was substituted for "" to continue.
    ORA-06550: line 1, column 2606:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    . ( ) , * @ % & - + / at mod rem <an exponent (**)> and or ||
    The symbol ")" was substituted for ";" to continue.
    ORA-06550: line 1, column 3236:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    The symbol (WWV-11230)
    Critical Error in wwerr_api_error.get_errors! SQL Error Message: ORA-06502: PL/SQL: numeric or value error: character string buffer too small (WWV-)
    Thanks.

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

  • Dynamic page with multiple select in where clause

    Hi,
    I have a dynamic page and in the where-clause, i have a bind variable. In a report i use for instance
    and rtrim((to_char(date_time5,'DAY'))) IN :v_day
    That works ok in a report. But it does not work in a dynamic page.
    what code is needed to work with a multiple select box on the customize screen for a dynamic page?
    Thanks.

    Hi.
    I have a dynamic page, with a bind variable :v_day. On the customization screen the user can select one or more days of the week, or all days. I use this also in a report and then it works ok. In the where clause i use:
    and rtrim((to_char(date_time,'DAY'))) IN :v_day
    Date_time is a tablecolumn (date).
    When i add this line in the select script from the dynamic page, i get error:
    : ORA-06550: line 1, column 2443:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    The symbol "(" was substituted for "" to continue.
    ORA-06550: line 1, column 2606:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    . ( ) , * @ % & - + / at mod rem <an exponent (**)> and or ||
    The symbol ")" was substituted for ";" to continue.
    ORA-06550: line 1, column 3236:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    The symbol (WWV-11230)
    Critical Error in wwerr_api_error.get_errors! SQL Error Message: ORA-06502: PL/SQL: numeric or value error: character string buffer too small (WWV-)
    Thanks.

  • Dynamic actions for 1000 infotype

    Hi all,
    Is it possible to create a dynamic action for Org management infotypes like 1000? If so, pls let me know.
    Thanks and regards,
    prasad

    hi
    From SPRO
    GO TO T-CODE OOMT
    THEN CREAT YOUR OWM ACTION LIKE JOB..
    REWARD POINTS

  • Dynamic Actions - Delimiting an infotype

    Hi All,
    I have to delimit an infotype using dynamic action. How do i set the Delimit Date in this case. I am using the command
    LIS9,0008
    Where should i mention the Delimit date
    Thanks,
    Divya

    Hi Divya,
    if you pick F1 in the "Variable function part" the SAP documentaion
    looks like the following:
    I - Calling an Infotype                                                                               
    You can call an additional infotype for processing. You must enter the    
      step, infotype, subtype, object ID, start and end dates of the record to  
      be selected. <b>Possible operations here are INS, COP, MOD and DEL.</b> If you   
      want the action to run in the background, enter the appropriate           
      indicator (D) at the end of the line. The following entry rules apply:   
    So LIS9 isn't possible, isn't it?
    Regards
    Bernd

  • Success message in dynamic action with pl/sql

    Hi, I want to know how to display the message "action proceed" in the "inline notification" from my block pl / sql is a dynamic action.
    Like this :
    Declare
    Begin
      Delete RSCLASSE_ACTIVITE
       Where ROWID = :P_DELETE_ROWID;
    -- here --->
    -- I want display a info message in notification message "This recors is deleted". --
      Exception
         When NO_DATA_FOUND Then
              Pck_Suivi_Traitement.Prc_Log_Erreur('APEX Application : ' || :APP_ID || ' Alias:' ||  :APP_ALIAS || ' page :' || :APP_PAGE_ID  ,Null,
                                              'Erreur dans la suppression d''un enregistrement RSCLASSE_ACTIVIE No_data_found '
                                              ,Substr(Sqlerrm,1,200));
         When Others Then
             Pck_Suivi_Traitement.Prc_Log_Erreur('APEX Application : ' || :APP_ID || ' Alias:' ||  :APP_ALIAS || ' page :' || :APP_PAGE_ID ,Null,
                                              'Erreur dans la suppression d''un enregistrement  RSCLASSE_ACTIVIE '
                                              ,Substr(Sqlerrm,1,200));
    End;
    I found only APEX_ERROR.ADD_ERROR....in the api.

    If you want to do this from a DA, does that mean you don't want to refresh the page?
    If the page won't be refreshed and you want to make the message display you could do this technique taken from Dan McGhan's Modal plugin.
    $('#messages')
      .hide()
      .append("Your Success Message Here")
      .slideDown('slow');
    This approach is dependent on the Theme you're using. Here your inline notification is inside an ID of #messages, you may need to change this.
    The code finds your messages div/section/element, then hides it, in case there's an old one.  Then the new message is added and displayed with slideDown.
    You may also want to add more to your message to style it in the same fashion as your themes message.
    For example: <div class="success">Your message here</div>
    Let me know if this doesn't get you close.
    Thanks
    -Jorge
    http://rimblas.com/blog/

Maybe you are looking for

  • TS3991 how to retreive deleted voice memos file via ICloud?

    I  have "voice memos" on my Iphone 5 and I deleted an important voice file in it yesterday. I have Icloud and I try to find it in Icloud or other Icloud devices (a mini Ipad, an Ipad 2 and an ipod touch) but without success. Help!

  • How do I make all my apple devices play the same song at the same time?

    I went to a party once and one of their family members was in charge of music. They used iTunes on a laptop and used their wifi hub with itunes, they then had all Apple devices connected to the laptop (through wifi) and played the same song in every

  • Displaying an alert (Applescript or otherwise) from shell script?

    I have a point in a shell script where I'd like to put up an alert dialogue on a particular error condition. The script runs in the background and doesn't have a terminal window. I tried writing a little applescript that uses the applescript alert co

  • Purchase order condition type price is changed

    Hi Experts, After the GR has completed.. through work flow batch job ,the main condition type ZRUP( Roll up price) is changed ....Now for invoice verfication system using the new price not the price in which GR has been done. Basically a subcontract

  • Decentral adapter engine questions

    Guru's, My customer's XI 3.0 system has interfaces to 30 partners, almost all using the SOAP adapter. It turns out that when XI sends  a high volume of messages to one partner and this partner is not responding (system down, network issues, etc.) all