Dynamic Action - Clarification

Hi All,
I have a quick que regarding dyanmic actions. 
When we insert a record using dynamic action, I would like to add 1 day to the beg date, do you know how it could be done??
As you could see.....In the below example I am defaulting IT0169 with It0041 date, but I would like to add one day to begdate. Ex if the date value in the iT0041 is 12312009, I would like the P0169-BEGDA to be 01012010.
P0169-BEGDA=P0041-DAT02
Is this possible, can someone please advice?
Thanks!

Hi,
Fisrt query:
Its better to create a subroutine program as our expert said.
You can ask abaper to create a program
Say for eg. ZHRBEGDA_169.
In the Program you create asubroutine and get
Date from infotype 41 and add 1 .
Eg.
FORM GET_BEGDA.
RP50D-DATE1 = Date from Infotype 41 + 1.
ENDFORM.
In the Dynamic cation,call this subroutine
like
F GET_BEGDA(ZHRBEGDA_169)
W P0169-BEGDA = RP50D-DATE1
Second query.
have you tried with infotype Screen Control ?try in table V_T588M displaying this field.
another Option is You can use enhancement PBAS0001
Component -EXIT_SAPFP50M_001.
Cheers,
Manoj.

Similar Messages

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

    Hi Experts,
    Please let me know if I can use Pausibility Check to compare start dates of two infotype records.
    For Ex can I use
    Case1.      P               P0008-BEGDA=P0007-BEGDA
                     W              P0008-DIVGV=P0007-MOSTD
    Case 2.     P               P0008-BEGDA<P0007-BEGDA
                     W              P0008-DIVGV=P0007-MOSTD
    Case 3      P              P0008-BEGDA<P0007-BEGDA
                     W             P0008-DIVGV=P0007-MOSTD
    I have tried but its not working. Is there any other way we can compare dates before defaulting values.
    Thanks.
    Regards
    Sairam Maharaj S

    Hi Sairam,
    For this, you will have to write a small routine in a program and then call it in the dynamic action. Consult your technical team on this. Get them to write a routine which would Check the conditions and then pass value to field RP50D-FIELD1. You would then call the routine and default the fields as shown below:
    Generally the condition would be like this...
    P0008-BEGDA=P0007-BEGDA.
    If SY-SUBRC = 0.
    RP50D-FIELD1='X'.
    INFTY     SUBTY     FNAME     OPERA     SEQNO     KENNZ     VINFO
    0000               06     10     *     *--Comparing Dates of IT0007 & IT0008--*
    0000               06     12     F     ZPROGRAM(ZDATECOMPARE)
    0000               06     14     I     RP50D-FIELD1='X'
    0000               06     26     W     P0008-DIVGV=P0007-MOSTD
    Here, ZPROGRAM is the name of the program and ZDATECOMPARE is the routine which would contain the logic to populate field RP50D-FIELD1 with concatenated value.
    Just for clarification, why do you need to write a Dynamic action for defaulting hours?? Standard SAP does it.....
    Good Luck !!
    Kumarpal Jain.
    PS: Please Close the thread if you arrived at an answer.

  • 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

  • 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

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

Maybe you are looking for

  • BPM and ESB

    Please tell the difference between BPM and ESB.

  • No Preview in the Monitor panel

    Hello all, when I start playing the images, there is no preview available in the Monitor panel (white screen). Only stopped sequenzes were shown and the sound is playing. This problem occurs independently from the used files. When starting Pre there

  • AS2 Sender configuration - Authentication Certificate

    Hello guys, We're implementing EDI with a partner with AS2. We have AS2 sender adapter configured. Everything works fine (we're able to receive data from partner and send back MDN) without signing. Now we're working on getting data signed. We have up

  • Unable to access calendar, because the web service is configured incorrectly

    When attempting to access my web based calender I recieve the following error, "Unable to access calendar, because the web service is configured incorrectly." I have both the web service and iCal server configured to use SSL. Thanks for any help

  • Using flash 8 pro with captivate

    Hi, All: I understand how to import a raw captivate file into Flash 8. Can I then export what I've imported as an .flv file? Cant find an answer to this question. Thanks, C.