Dynamic Actions in Custom Development

I have a dynamic action running for an action.
But when the same action is called through BDC or in the program this doesnot work.
Can anyone suggest the reason as to why the dynamic actions are not getting called for the same process in the developments or BDC.
Thanks

Hi Manoj,
I have a seperate BDC for Dynamic action but I cannot attach this in the BDC created to run the PA40 Country assignment action as the new employee number that is created during Reassignment action cannot be called in the BDC which is created for Dynamic action.
In Dynamic action this is getting populated as it is present in the memory when the action is run in pa40.
The option that you have told i troed the same to explore but this was not working.
Some how I have to do this manually by getting the new employee number seperately and then collect the data of old number and pass it to the new number.
Santoshi

Similar Messages

  • 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

  • Custom dynamic action not firing

    Using Apex 4.2.2 on 11g
    I have a standard report A1
    There is a column link on report A1 which refreshes chart C1 using a custom dynamic action.
    The column link on report A1  has the URL set to  javascript:$.event.trigger('RefreshTrend_2', [{key_2:'#COL01#' }]);
    and there is a dynamic action D1 RefreshTrend_2 which sets the value of the chart filter P17_KEY_2 to the value of the javascript variable key_2 and then refreshes chart C1
    The dynamic action is custom with a type DOMObject of document and no condition
    This works fine but when I add another report/chart (report A2, chart C2)  combination with a similar dynamic action (D2), D2 is a copy of D1 with the values for the variables and chart region changed.
    The A2/C2 functionality works fine on its own, D2 gets fired when I click the column link, but not when there are 2 dynamic actions of custom/document on the page.
    This column link on A2 only fires the dynamic action D2 if dynamic action D2 has a higher sequence than D1 (if i move it above D1 in the list it will fire, but then D1 does not fire for the column link on A1
    Am I missing something?
    Thanks
    Kathryn

    Here is my page source from the browser (i put in some blank lines here to separate the 3 dynamic actions)
    <script type="text/javascript">
    apex.da.initDaEventList = function(){
    apex.da.gEventList = [
    {"triggeringElement":"P17_IS_OK","triggeringElementType":"ITEM","triggeringConditionType":"NOT_NULL","bindType":"bind","bindEventType":"change",actionList:[{"eventResult":true,"executeOnPageInit":true,"stopExecutionOnError":true,"affectedElementsType":"BUTTON",javascriptFunction:apex.da.enable,"action":"NATIVE_ENABLE"},{"eventResult":false,"executeOnPageInit":true,"stopExecutionOnError":true,"affectedElementsType":"BUTTON",javascriptFunction:apex.da.disable,"action":"NATIVE_DISABLE"}]},
    {"triggeringElement":"document","triggeringElementType":"DOM_OBJECT","bindType":"live","bindDelegateTo":document,"bindEventType":"RefreshTrend_2",actionList:[{"eventResult":true,"executeOnPageInit":true,"stopExecutionOnError":true,"waitForResult":true,"affectedElementsType":"ITEM","affectedElements":"P17_KEY_2",javascriptFunction:apex.da.setValue,"ajaxIdentifier":"3BB4667C9E25BFB8DCF63639507A062A88F713A193C0D30DDF1CEA8D6875A7F9","attribute01":"JAVASCRIPT_EXPRESSION","attribute05":"this.data.key_2","attribute09":"N","action":"NATIVE_SET_VALUE"},{"eventResult":true,"executeOnPageInit":true,"stopExecutionOnError":true,"affectedElementsType":"REGION","affectedRegionId":"R2959102626294614",javascriptFunction:apex.da.refresh,"action":"NATIVE_REFRESH"}]},
    {"triggeringElement":"document","triggeringElementType":"DOM_OBJECT","bindType":"live","bindDelegateTo":document,"bindEventType":"RefreshTrend_1",actionList:[{"eventResult":true,"executeOnPageInit":true,"stopExecutionOnError":true,"waitForResult":true,"affectedElementsType":"ITEM","affectedElements":"P17_KEY_1",javascriptFunction:apex.da.setValue,"ajaxIdentifier":"51D6B9673F7096076392A95D9D00B417D49DEB96D878B419FC6D1E482D0AB2F0","attribute01":"JAVASCRIPT_EXPRESSION","attribute05":"this.data.key_1","attribute09":"N","action":"NATIVE_SET_VALUE"},{"eventResult":true,"executeOnPageInit":false,"stopExecutionOnError":true,"affectedElementsType":"REGION","affectedRegionId":"R2925517394066336",javascriptFunction:apex.da.refresh,"action":"NATIVE_REFRESH"}]}];
    </script>
    Only the first "document" dynamic action will fire, even though I fire them by name using
    javascript:$.event.trigger('RefreshTrend_1', [{key_1:'#COL01#' }]); from the column link.
    Kathryn

  • Session Timeout and Dynamic Actions

    Did anybody ever use the Session Timeout feature in APEX successfully?
    I have set an idle session timeout and provided an url to redirect to once the session is expired: Home > Application Builder > Application nnn > Shared Components > Edit Security Attributes > Session Timeout
    It works so far during the page rendering and page processing phase. But I have major problems with dynamic actions and custom ajax requests.
    Dynamic actions will just hang and simply don't return. Even worse, when I execute the dynamic action once the session is expired, the session seems to be physically deleted and thus the next click on a tab will not redirect to the expiration page but go straight to the login page.
    Did anybody make it work or is the best way to implement a custom session timeout?
    Thanks,
    Dietmar.

    Hi All,
    Check out the Session Timeout plug-in available here:
    http://skillbuilders.com/plugins
    Let me know if that helps.
    Regards,
    Dan
    blog: http://DanielMcghan.us/
    work: http://SkillBuilders.com/APEX/

  • Custom program for Dynamic Actions

    Iam using BDC’s for Actions and Org.Assignment infotypes. The dynamic actions are planned to be carried out by using separate function modules.
    My query is, On the plausibility check conditions lots of structures are referred (eg: PSPAR,RP50D etc). How do i perform this condition check in the custom program (for dynamic actions) as these structures do not have any data?
    Thanks
    Message was edited by: SShenoy

    1. PSAVE-FIELDNAME will use the old values in the FIELD. It will be used in cases when we have to do plausibility checks on the basis of new as well as old value, eg, we want to use dynamic action for employees whose status changes from 'inactive' to 'active'
    2. Sequence no represents sequence no. If for a particular Infotype and FCode, we have to specify which step has to be performed first. Sequence no tells the system exactly this thing.
    Regards
    Lincoln

  • Custom program for dynamic actions in BDC

    Hi all,
    Did anyone work on dynamic actions in BDC. I got a method of doing, but looking out for a simpler one.
    Thanks..

    Hi,
    Any updates that happen via dynamic actions in online mode must be explicitly included in the BDC session since dynamic actions are turned off during the execution of batch input sessions.this is a standard behavior.
    Regards,
    Manoj.

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

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

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

  • Problem setting a hidden item value when button clicked with dynamic action or pl/sql process

    Apex 4.1
    Oracle 11g
    I have a page that consists of a main region and several sub regions.  I have a pl/sql process in After Header SET_DISPLAY(:P400_DISPLAY :='MAIN';)
    Three subregions have a contional display where P400_DISPLAY = STORE.  This works in hiding the sub regions.
    Now I want to change the P400_DISPLAY value to STORE to show the subregions when I hit a button.
    I tried creating a dynamic action for on click of the add button but get the following error:
    The selected button uses a 'Button Template' that does not contain the #BUTTON_ID# substitution string
    I went to the templates and found:
    Substitution Strings
    Substitution strings are used within sub templates to reference component values. This report details substitution string usage for this template.
    Substitution String
    Referenced
    From
    Description
    #LINK#
    Yes
    Template
    To be used in an "href" attribute
    #JAVASCRIPT#
    No
    To be used in an "onclick" attribute
    #LABEL#
    Yes
    Template
    Button Label
    #BUTTON_ATTRIBUTES#
    No
    Button Attributes
    #BUTTON_ID#
    No
    Generated button ID will be either the button's Static ID if defined, or if not will be an internally generated ID in the format 'B' || [Internal Button ID]
    I then tried creating a page process, pl/sql, :P400_DISPLAY :='STORE'; when the appropriate button is pressed.  The button action is submit page. However, it does not change the P400_DISPLAY value and the subregions stay hidden.
    Suggestions please on how to fix the template or change the P400_DISPLAY value?

    The root issue is that, although you change the value of your page item, it isn't visible to other areas of the page until it is in the session. So, any other action based on the value of your page item; the visibility of a control, a report based on the item's value, etc. will all be unaffected by changing the value of the page item until it has been changed in the session. Even after this the items are stored in the session, you must thereafter do something to cause the value to be reevaluated. To see the effect of this, observe that your page loads and evaluates the value of your page item, it sees that is "MAIN" and hides the regions. However, it doesn't reevaluate them after this.
    So; your choices to get this value set in the session are to either Submit the page, or use JavaScript to set the value in the session. If you use the latter of these, you'll have to do some further work to cause the visibility tests to be re-run, So, let's stick with with the submit method.
    What you've done above sounds correct for this but, there are a lot of decisions you could have made that might have caused things not to happen in the correct sequence.
    Firstly, let's confirm that what I describe above is your problem. From the development environment, load the page, click the button to change the value and submit. Now, click the link labelled Session. Is it still set to MAIN? If so; this is your issue.
    Let's start with the your After Header computation. Did you set it to *only* run if the current value of your page item is NULL??? If not, that's your problem.
    Load Page -> Item set to 'Main' by Computation -> Click Button -> Item set to STORE -> Submit -> Load Page -> Item set to 'Main' by Computation
    See the problem?
    Assuming this isn't the issue, you created a Branch to the same page, right? What is your process point for the Branch? Is it *After* Validation, Computation etc? Because if not, you aren't changing the value before the submit happens.
    I bet it is the first issue but, take a look at these.
    Cheers,
    -Joe

  • Dynamic Action, validation check, on an Item, could not use Change event

    I am learning how to use Dynamic Actions in a 3.2.x app that was upgraded to 4.0.x. I wanted to share what I learned adding client side validation with these actions. Perhaps an Apex guru could suggest an easier method to use this feature.
    I have an existing function where a user selects multiple rows in a report page, and then assigns a single status and enters justification text for the selected rows in another page, then saves changes (via submit).
    One item, justification, is required. I replaced my JavaScript validation of an empty value, e.g., P10_JUSTIFICATION.value, with a dynamic action. The Change event was a candidate for this item, with the "is not null" Condition. However, it is possible to initiate this screen to review the status, overlook the justification text and immediately select a button to save changes. No Change event has fired. The Before Page Submit event was applicable here. This Event selection in the wizard does not provide the Item for definition and then the Condition wasn't the right context though available for selection. I selected JavaScript expression for the Condition, actually entered my original JS test expression, and created one True Action. The True action displays an Alert to tell the user that required text is missing.
    Test of this DA was not completely successful. The alert appeared but the page went on to submit anyway. I found I had to add another True Action, Cancel Event, to stop the submit. The DA was then successful.
    The Apex site examples, [http://st-curriculum.oracle.com/obe/db/apex/r40/apexdynactions/apexdynactions_ll.htm] , do a great job showing use of Change and Set Value events for Items but a user may not always navigate through items. These features were promoted for developers with no to little knowledge of JavaScript to use Apex for application development. This DA required using/understanding JS anyways.
    My next step is to implement actions on a tabular form that that has required values. It is disconcerting that I have read in the forum that the column value references such as f0x and its row number are required to get it all working (as a DOM or JQuery selector). I have already found that tabular form columns can be re-ordered from v3.2.1 to 4.0.x. I was hoping I could declare dynamic actions or simpler Javascript methods that would not rely on f0x array references.
    Thanks,
    Kelly

    It is disconcerting that I have read in the forum that the column value references such as f0x and its row number are required to get it all working (as a DOM or JQuery selector).Not necessarily. One possibility is to use descendent jQuery selectors to attach the dynamic action event handler by column heading:
    td[headers="HIREDATE"] input

  • Dynamic Action in APEX 3.1.2

    Hi All,
    I am trying to achieve dynamic action in apex 3.1.2 without refreshing the page. I have 2 pages, In page 1 I am opening page 2 which returns an html text to an hidden value which is working fine up to this part. I am trying to show the return html tag using display item. So I am trying achieve this using following code, but is not working please help me.
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
    <script type = "text/javascript" >
    function refreshdata()
    {  var tmp = new htmldb_Get();
    tmp.add('P123_DISPLAY_HTML'', $v('P123_DISPLAY_HTML''));
    tmp.get();
    $('#DISPLAY_HTML').trigger('apexrefresh');
    </script>
    I have added “DISPLAY_HTML'” as div in of display item like this.
    Pre element text
    <div id="DISPLAY_HTML">
    Post element text
    </div>
    It is displaying text if I manually refresh the page which I want to avoid.
    Anyone’s help is much appreciated.
    Regards

    Hi,
    Your code just set item P123_DISPLAY_HTML value to session state.
    It do not call any on demand process that could return something.
    Below code do not do anything else than trigger custom event in APEX 3.x. There is nothing out of box that bind to that event.
    $('# DISPLAY_HTML').trigger('apexrefresh');Maybe this old Carl's blog post help you to right direction
    http://carlback.blogspot.com/2007/12/apex-ajax-reports-and-you-and-bit-of-31.html
    Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0

  • Dynamic action on tabular forms fields

    Hello guys.
    As I can see on the tabular form's fields I can't perform dynamic actions. What I want is to have a select list item when at the event Change it changes the values for all the records in that report. For example if I have 40 records in that tabular form and I change the value from "Open" to "Close to the field called Status, I want to see that change (Status value from "Open" to Close") reflected in all the rows of that tabular form. Is that make sense?
    Thank you, Bernardo.

    Hi Bernardo,
    There are several ways to accomplish what you want.
    - You can create a PL/SQL procedure to handle an update on all rows based on the value of your changed column value. I once wrote a blog post that might help you with that:
    http://vincentdeelen.blogspot.nl/2013/06/custom-multi-row-processing-using.html
    -You can create a dynamic action with javascript or jQuery to handle the change event.
    The first option is more secure since it's handled by the database, the second one is simpler and can instandly set all the entire column for all displayed rows, without the need to refresh your tabular form, or your entire page. For a secure working you should however have some validation at the database end. Also I think it is not possible to set the values for rows that are not displayed, that again would require some PL/SQL for handling.
    If you need any help setting up the dynamic action, please put up an example on apex.oracle.com.
    Regards,
    Vincent

  • Dynamic actions in creation of infotype

    HI,
    i have a requirement wherein i need to create a custom infotype.
    In the new infotype which i  have created, i need to update the records dynammically upon the modification of data  in the standard infotype.
    Thanks in advance.

    Naveen,
    Follow this link to make your dynamic action successfull.
    http://help.sap.com/saphelp_40b/helpdata/es/51/5184ab7b35d111950d0060b03c6b76/content.htm
    - Ashish

  • IT0009: payment method "cheque" and dynamic actions

    Hello,
    I need your help on this issue.
    I have looking for answers on the different posts but i didn't found any similar problems.
    For a customer, i have to settle, in case of departure (leaving) action , the creation in background of an infotype 0009 from infotype 0000 with payment method 'C' - Cheque and the BEGDA equal to the first day of the month. It is a payroll need.
    The dynamics action is easy to do but i have an error which makes appears the infotype. Actually, the information City is mandatory in SAP standard (?) in case of payment 'C' - Cheque.
    I did the test and when i create infotype 0009, the name of the person, from infotype 0002 i guess, is put in the field but not the adress, city and postal code. If i select payment cheque, an errror alerts me that the city is mandatory for this payment method. If i put something, no problem, but i would like to automate it and retrieve data from IT0006. That is strange is when i delete the payee information (last and first name field) and validate the screen, no more error, even if i select payment cheque. And if i save and go back on the record, data from IT0006 (city, postal code and payee) have been automatically put in the infotype.
    I would like to reproduce the same thing by the dynamic action but i can't access these fields because they are not part of the P0009 table but the Q0009 structure and i don't access it through dynamic action
    Do you have some experiences to share on this topic ?
    Thanks in advance.

    hi
    To replace a check or to create a check instead of a bank transfer, the system must be able to access the
    correct payment method. The standard system contains predefined payment methods. However, you can
    also specify your own values.
    The standard system contains the following methods of payment:
    - C (Check)
    - D (Transfer)
    - M (Check with manual assignment of check number)
    Reward points

  • Dynamic action in column of classic report

    Good day master!
    Hi im new in apex,, so im dynamic ondering if its posible to create a dynamic action in the column of classic report in apex?
    i'm trying but its not working my problem goes like this..
    i have a classic report stock_replenish
    columns
    item_code
    price
    supplier_name
    item_code is a pop-up loved by sql
    what i want to do is when the user choose a item_code it will also return the price and supplier_name
    i can do that in apex form but i dont know if iits posible to clasic report?
    please help!
    ty
    Myke;l

    Dynamic action on report columns is possible but not as straigth forward as on items.
    First you can't select "report colum" as selection type for the dynamic action. Use jQuery Selector instead.
    See the [url http://api.jquery.com/category/selectors/]jquery documentation  on possible selectors.
    I prefer to use something like[name='f01'].
    Use the developer tools of your browser to see the name of your report column.
    Because you can't submit a single report cell value with the action "Set value".
    You have to use a combination of a action "Execute javascript" and a ondemand process.
    The javascript code is something like
      var elementId,idParts,row;
      /*Determine the id of the element that has triggered the dynamic action*/
      elementId = String(this.triggeringElement.id);
      /*The id of a item in a report column consists of to parts the name and the rownumber*/
      idParts = elementId.split('_');
      /*The second part is the rownumber we need that to set the value in the right row later on*/
      row = idParts[idParts.length-1];
      /*This calls the ondemand process*/
      apex.server.process ( "MANAGER_EMAIL", {x01:$v(this.triggeringElement),x02:row}, {success: function( pData ) { $s(pData.r,pData.d) }} );apex.server.process(name ondemand process,values to be submitted,options)
    {x01:$v(this.triggeringElement),x02:row}
    This submits the values of the triggering element and the row on which all the action is happening.
    x01 refers to apex_application.g_x01
    {success: function( pData ) { $s(pData.r,pData.d) }}
    The succes option defines a function that is executed upon succefull completion of the ondemand process.
    The ondemand process returns a json object. Which we can refer to in the javascript function with pData.
    In our ondemand process we are defining the json object as having to properties.
    d and r . d is the display value and r is the id of the element to be set.
    $s(r,d) is a [url http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/javascript_api.htm#CDEEIGFH]apex javascript function that sets the value d to item with id r.
    Now the server side code. This is an application process with process point Ondemand.
    Which is something like this.
    declare
      cursor c_emp(b_employee_id in number)
      is
        select emp.email
        from   oehr_employees emp
        where  emp.employee_id = b_employee_id
      col_emp_email oehr_employees.email%type;
      v_regel       number;
    begin
      /*Get the employee email*/
      open  c_emp(apex_application.g_x01);
      fetch c_emp
      into  col_emp_email;
      close c_emp;
      /*Calculate the rownumber do this only if the triggering element is a popup lov*/
      v_regel := to_number(apex_application.g_x02) + 1;
      /*Create the json header*/
      APEX_PLUGIN_UTIL.PRINT_JSON_HTTP_HEADER;
      /*Print out the json object*/
      sys.htp.p('{"d":"'||col_emp_email||'","r":"f03_'||lpad(to_char(v_regel),4,'0')||'"}');
    end; For specification of the JSON notation see [url http://www.json.org/]http://www.json.org/
    To see this in action I have set up a [url http://apex.oracle.com/pls/apex/f?p=VANBAREN_FORUM_TRY_OUT:TBDA:0&c=VANBAREN]demo.
    Change the manager and the manager email will change.
    I hope this is enough to get you started.
    If you have a problem in translating the above code to your specific situation set something up on apex.oracle.com. Then the help can be more specific to.
    Nicolette

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

Maybe you are looking for

  • Keyboard & Mouse Settings - Mouse Tracking Problem

    Whenever I change the tracking setting for my mighty mouse in system preferences it works fine, but as soon as I close system preferences the tracking setting reverts to the default setting. I tried altering various settings and they all remain as I

  • Cloud Protection??? Taken over my computer.

    I downloaded from the internet and now Cloud Protection has taken over my screen and will not go away unless I purchase it.I have uninstalled everything and it's still there.  I would like to do system recovery to take it back to factory setting and

  • XML form Submit Button

    Hi, I was trying to create one form which includes the employee details and I need to send that information to one email address. I created one button called SAVE and I select the action as SEND TO.  When I was running the form, I am getting an error

  • Recovering Windows password from fingerprint reader

    Hello, I have used fingerprint reader for a long time and forgotten my windows password. However, I need it now. I'm running Windows 8 on Lenovo E530 with Fingerprint reader 6.0.200.75. Is it possible to reveal your windows password in the same way t

  • Zen stone plus not holding a cha

    I just got this a couple of months ago. About 0 days ago I fully charged it. I didn't use it since then and went to use it tonight and it was completely dead. Is it normal for it to do that? And btw I had it plugged into the USB and waited literally