Info group being not called while using Dynamic Actions

Hi,
I am facing a scenario that, while we execute some action from PA40 like termination, then it will call my subroutine for dynamic actions which will be calculating the last day worked and updating the same in Info Type 0041.
For updating the IT 0041, i am using the function module HR_MAINTAIN_MASTERDATA. and IT0041 is getting updated properly. But now the problem is coming that when the control comes out of subroutine, it is going back to the PA40 Screen and not to the next screen of the Info group.
What can be the cause for the same.
RND I have done on my part: I have commented/uncommented the return parametre RP50D-Date1, commented/uncomented the use of function modules to lock and Unlock the pernr.
Please give ur comments.
Thanks in Advance.

Hi Nisha,
Not sure if I have understood correctly, but if you just wanted to calculate leaving date and write the same date in IT0041 then you don't need a function module:
1. Create a small program, as follows:
REPORT  ZHR_PY_R0008                           .
INCLUDE MPPDAT00.
TYPE-POOLS HRQTA.
TABLES: P0000,
        RP50D,
        T001P.
ROUTINE CALLED BY TABLE T588Z
FORM CHANGE_DATE.
  RP50D-DATE1 = P0000-BEGDA - 1 .
ENDFORM.                    " CHANGE_DATE
This program will give you the last working day written to RP50D-DATE1
2. Simply enter the following lines into table T588Z:
0000 04 499*- LEAVING ACTION - Populate Infotypes with leave date -*
0000 04 500 P T001P-MOLGA='08'
0000 04 501 P PSPAR-TCLAS='A'
0000 04 502 P PSPAR-MASSN='*'/X   (* equals your leaving action types)
0000 04 503 P PSPAR-MASSN='*'/X   (* equals your leaving action types)
0000 04 504 F CHANGE_DATE(ZHR_PY_R0008)
0000 04 505 ******** INF.0041  ********
0000 04 506 I COP,0041,,,(P0000-BEGDA),(P0000-ENDDA)/D
0000 04 507 W P0041-DAR07='*'   (* equals your date type)
0000 04 508 W P0041-DAT07=RP50D-DATE1
or if you are simply looking to delimit IT0041 with the leave date then replace lines 506-508 with:
0000 04 506 I MOD,0041,,,(RP50D-DATE1),(RP50D-DATE1)/D
0000 04 507W     P0041-ENDDA=RP50D-DATE1
This will solve your problem : - )

Similar Messages

  • On call sound volume is not working while using ha...

    The volume control does not work on call while using hands free on my Lumia 800..is that a known issue?

    Hi,
    this is a JDeveloper and ADF forum, not an OA framework forum. We don't have the "OAGlobalButtonBean" class and thus wont be able to help
    Frank

  • Some email images do not show while using the icloud web app.  I can see the images on my IOS devices and in gmail but I only see a small gray box in the icloud web mail app.  Load HTML images is checked in preferences.

    Some email images do not show while using the icloud web app.  I can see the images on my IOS devices and in gmail but I only see a small gray box in the icloud web mail app.  Load HTML images is checked in preferences.  Is there a solution to this issue?

    I've seen the opposite issue.  My wife recieved an email with jpg attachments.  She couldn't see or print them on her iPhone 4S but they showed up fine in iCloud or in the mail app.  I had her forward the email to herself and then they showed up.  I assume there is an issue with how Apple is processing the attachments and resending causes them to get reformatted in a way that makes them easier to handle.
    So yeah.  Seems like some bugs.  Hope Apple fixes them soon.

  • ERD not determined while using plain http adapter as Sender

    Hi All,
    ERD is not determined while using Plain Http Adpter as Sender.Is there any way to determine ERD table by using Http adapteras Sender?
    Regards,
    Rajesh

    Are you doing synchronous scenario???
    if yes should have leaving the value for the Software Component Version empty for Receiver determination .
    /people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16
    /people/jin.shin/blog/2007/12/11/sap-netweaver-process-integration-enhanced-receiver-determination-for-synchronous-scenarios

  • I have just put a link to my web site but it does not appear while using Firefox but it does if using Internet explorer or Chrome why would this be?

    I am using Window 7 I have just put a link to my web site but it does not appear while using Firefox but it does if using Internet explorer or Chrome why would this be?
    It does appear on a friend's computer using Firefox.
    Barossa Vintage Festival ... this is the missing link on my computer just under the link named ... Autumn photo collection

    No problems here with the tree links:
    View photos
    Friends gather for breakfast
    Friends take an Autumn drive
    Photos of the Barossa Festival
    Reload the web page and bypass the cache.
    * Press and hold Shift and left-click the Reload button.
    * Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    * Press "Cmd + Shift + R" (MAC)

  • Microphone not working while using handset

    microphone not working while using handset
    But it is working when loud speaker is On
    Y
    Wat to do??
    Kindly revert with your comments

     Repair the phone with PCC and report back  PC Companion (PCC)  Bridge (for Mac)   Alternatives on How to backup Xperias http://talk.sonymobile.com/thread/36355  

  • My autofill does not work while using Safari. Have checked both Safari and Apple settings.

    My Autofill does not work while using Safari. I have checked both my Safari settings and my Apple settings but don't know what else to do.

    Hi Eustace....yes, I did reset Safari but it didn't help. I'm running Mac OS X Lion 10.7.5...which might be the problem...my Safari is Version 6.1.1.

  • How to make a default value by using dynamic actions

    Hi,
           I want to default a field nationality in infotype 0002 as a great britan, using dynamic actions but unable to go ahead. Any help regarding this really appreciate.
    Regards
    Niranjan

    Hi,
    I need some guidance around creating dynamic action with default value, Please guide me through.
    I am aware I can set default values for new infotype, but I need to set default value for same infotype, let me explain the scenario.
    Currently employee is on one pension scheme which is called NE1 and now we are moving this employee to CRESP Pension Scheme.
    When employee is in NE1, his IT0071 has got a opt in field with a flag on, when the same employee is moved from NE1 pension scheme to CRESP Pension scheme, his new IT0071 record should have the same opt in field with a flag on, I want it to set this flag automatically using dynamic action. I dont want to update this field manually, while moving from NE1 to CRESP.
    Currently the below dynamic  action is coded when employees are being moved form NE1 to CRESP, but now they will have a opt in flag which should appear automatically, What needs to be done to make this happen?
    Please let me know if I set default value for the Opt in field for the same infotype.
    . When employees are being moved from NE1 to CRESP pension scheme we currently use a dynamic action as show below:
    0071                      04      10      I        INS,0069
    0071                      04      20      W       P0069-BEGDA=P0071-BEGDA
    0071                      04      30      W       P0069-ENDDA=P0071-ENDDA
    0071                      06      1        F        DYNACT_PAE031(ZHRPROG016)
    Also if it is not possible via dynamic action could you please explain how to create it using user exit, I am not an ABAPer.
    Your help is very much appreciated.
    Kind Regards,
    SK

  • About creating an AJAX page with DML procedures  using dynamic actions

    About creating an AJAX page with DML procedures in APEX using dynamic actions. Help with limitations.
    I want to share my experience, creating AJAX procedures in APEX 4.0.
    LIMITATIONS
    •     How Can I Hide UPDATE button while I press NEW button. ??
    •     How Can I Hide CREATE button while I’m UPDATING A RECORD. ??
    •     How can I avoid multiple Inserts or Updates. ??
    Here are the steps to create an AJAX Updatable Form using the sample table DEPTS. You can see the demo here: [http://apex.oracle.com/pls/apex/f?p=15488:1]
    1)     Create a blank page
    2)     Add a Report Region for departments (It shows the columns deptno, dname and loc).
    3)     Add an HTML Region and create the elements to edit a Department.
    a.     P1_DEPTNO (Hidden to store PK)
    b.     P1_DNAME (Text Field)
    c.     P1_LOC (Text Field)
    4)     You also have to create a hidden element called P1_ACTION. This will help to trigger dynamic actions to perform DMLs.
    5)     Open Page Attributes and in the HTML Header Section include the following code.
    <script>
         function doSelect(pId){
              $x_Value(‘P1_DEPTNO’,pId);
              $x_Value(‘P1_ACTION’,’SELECT’);
    </script>
    6)     Modify the column DEPTNO in the report, to add column link. In the link text you can use #DEPTNO# , in target you must select ‘URL ‘ and in the URL field write javascript:doSelect(#DEPTNO#);
    7)     Create the following Buttons in the Form Region.
    CANCEL     Redirects to URL: javascript:$x_Value(‘P150_ACTION’,’CANCEL’);
    NEW          Redirects to URL: javascript:$x_Value(‘P150_ACTION’,’NEW’);
    SAVE          Redirects to URL: javascript:$x_Value(‘P150_ACTION’,’UPDATE’);
    CREATE          Redirects to URL: javascript:$x_Value(‘P150_ACTION’,’CREATE’);
    8)     Create the following Dynamic Action to Select a Department
    Name:     Select Dept
    Event:     Change
    Selection Type:     Item(s)
    Item(s):     P1_ACTION
    Condition:     equal to
    Value:     SELECT
    Action:     Execute PL/SQL Code
    PL/SQL Code:     
    SELECT dname, loc
    INTO :P1_DNAME, :P1_LOC
    FROM dept
    WHERE deptno = :P1_DEPTNO;
    Page Items to Submit:     P1_DEPTNO, P1_DNAME, P1_LOC     
    Don’t include any false action and create the Dynamic Action.
    The first limitation, the value of page elements don’t do refresh so I added the following true actions to the dynamic action AFTER Execute PL/SQL Code.
    Action:     Set Value
    Unmark *‘Fire on page load’* and *‘Stop execution on error’*
    Set Type:     PL/SQL Expression
    PL/SQL Expression:     :P1_DNAME
    Page Items to submit:     (none) (leave it blank)
    Affected Elements: Item P1_DNAME
    Action:     Set Value
    Unmark *‘Fire on page load’* and *‘Stop execution on error’*
    Set Type:     PL/SQL Expression
    PL/SQL Expression:     :P1_LOC
    Page Items to submit:     (none) (leave it blank)
    Affected Elements: Item P1_LOC
    These actions allow refresh the items display value.
    9)     Create the following Dynamic Action to Update a Department
    Name:     Update Dept
    Event:     Change
    Selection Type:     Item(s)
    Item(s):     P1_ACTION
    Condition:     equal to
    Value:     CREATE
    Action:     Execute PL/SQL Code
    PL/SQL Code:     
    UPDATE dept SET
    dname = :P1_DNAME,
    loc = :P1_LOC
    WHERE deptno = :P1_DEPTNO;
    Page Items to Submit:     P1_DEPTNO, P1_DNAME, P1_LOC     
    Don’t include any false action and create the Dynamic Action.
    Include the following True Actions BEFORE the Execute PL/SQL Code true Action.
    Action:     Set Value
    Unmark ‘Fire on page load’ and ‘Stop execution on error’
    Set Type:     PL/SQL Expression
    PL/SQL Expression:     :P1_DNAME
    Page Items to submit:     P1_DNAME
    Affected Elements: Item P1_DNAME
    Action:     Set Value
    Unmark *‘Fire on page load’* and *‘Stop execution on error’*
    Set Type:     PL/SQL Expression
    PL/SQL Expression:     :P1_LOC
    Page Items to submit:     P1_LOC
    Affected Elements: Item P1_LOC
    These actions allow refresh the items display value.
    Finally to refresh the Departments report, add the following true action at the end
    Action:     Refresh
    Affected Elements: Region Departments
    10)     Create the following Dynamic Action to Create a Department
    Name:     Create Dept
    Event:     Change
    Selection Type:     Item(s)
    Item(s):     P1_ACTION
    Condition:     equal to
    Value:     CREATE
    Action:     Execute PL/SQL Code
    PL/SQL Code:     
    INSERT INTO dept(deptno,dname,loc)
    VALUES (:P1_DEPTNO,:P1_DNAME,:P1_LOC);
    Page Items to Submit:     P1_DEPTNO, P1_DNAME, P1_LOC     
    Don’t include any false action and create the Dynamic Action.
    Include the following True Actions BEFORE the Execute PL/SQL Code true Action.
    Action:     Set Value
    Unmark *‘Fire on page load’* and *‘Stop execution on error’*
    Set Type:     PL/SQL Function Body
    PL/SQL Function Body:     
    DECLARE
    v_pk NUMBER;
    BEGIN
    SELECT DEPT_SEQ.nextval INTO v_pk FROM DUAL;; -- or any other existing sequence
    RETURN v_pk;
    END;
    Page Items to submit:     P1_DEPTNO
    Affected Elements: Item P1_DEPTNO
    Action:     Set Value
    Unmark *‘Fire on page load’* and *‘Stop execution on error’*
    Set Type:     PL/SQL Expression
    PL/SQL Expression:     :P1_DNAME
    Page Items to submit:     P1_DNAME
    Affected Elements: Item P1_DNAME
    Action:     Set Value
    Unmark ‘Fire on page load’ and ‘Stop execution on error’
    Set Type:     PL/SQL Expression
    PL/SQL Expression:     :P1_LOC
    Page Items to submit:     P1_LOC
    Affected Elements: Item P1_LOC
    These actions allow refresh the items display value.
    Finally to refresh the Departments report, add the following true action at the end
    Action:     Refresh
    Affected Elements: Region Departments
    11)     Create the following Dynamic Action to delete a department
    Name:     Delete Dept
    Event:     Change
    Selection Type:     Item(s)
    Item(s):     P1_ACTION
    Condition:     equal to
    Value:     DELETE
    Action:     Execute PL/SQL Code
    PL/SQL Code:     
    DELETE dept
    WHERE deptno = :P1_DEPTNO;
    Page Items to Submit:     P1_DEPTNO
    Don’t include any false action and create the Dynamic Action.
    Include the following True Actions AFTER the Execute PL/SQL Code true Action.
    Action:     Refresh
    Affected Elements: Region Departments
    Action:     Clear
    Unmark ‘Fire on page load’
    Affected Elements: Items P1_DEPTNO, P1_DNAME, P1_LOC
    12)     Finally Create the following Dynamic Action for the NEW event
    Name:     New Dept
    Event:     Change
    Selection Type:     Item(s)
    Item(s):     P1_ACTION
    Condition:     equal to
    Value:     NEW
    Action:     Clear
    Unmark *‘Fire on page load’*
    Affected Elements: Items P1_DEPTNO, P1_DNAME, P1_LOC

    I need some help to solve this issues
    •     How Can I Hide UPDATE button while I press NEW button. ??
    •     How Can I Hide CREATE button while I’m UPDATING A RECORD. ??
    •     How can I avoid multiple Inserts or Updates. ??

  • Is it possible to change LOV definition using dynamic action?

    Hi,
    I have a multi-select LOV page item, P27_MULTI_CLASS_CODE, defined as below.  On page load, this list only contains values based on what has been passed to P27_OLO_CODE or P27_OLO_CODE_SW.
    SELECT DISTINCT c.class_code d, c.class_code r
      FROM ORGANIZATION o,
           POSITION p,
           CLASS c
    WHERE o.org_wk = p.org_wk
       AND p.class_wk = c.class_wk
       AND o.org_active_flag = 'Y'
       AND p.pos_active_flag = 'Y'
       AND c.class_active_flag = 'Y'
       AND (o.olo_code = :P27_OLO_CODE
            OR o.olo_code = :P27_OLO_CODE_SW)
    ORDER BY c.class_code ASC
    Before submitting the page, I would like the LOV definition of P27_MULTI_CLASS_CODE to change to the following (similar query without reference to P27_OLO_CODE or P27_OLO_CODE_SW) based on whether the user selects checkbox item, P27_ALLOW_SW.   By doing this, P27_MULTI_CLASS_CODE would contain a full range of values rather than limited values.
    SELECT DISTINCT c.class_code d, c.class_code r
      FROM ORGANIZATION o,
           POSITION p,
           CLASS c
    WHERE o.org_wk = p.org_wk
       AND p.class_wk = c.class_wk
       AND o.org_active_flag = 'Y'
       AND p.pos_active_flag = 'Y'
       AND c.class_active_flag = 'Y'
    ORDER BY c.class_code ASC
    I wanted to avoid writing Javascript.  Is this possible using dynamic actions...or at least somehow refresh P27_MULTI_CLASS_CODE so that it ignores P27_OLO_CODE and P27_OLO_CODE_SW?
    I've tried creating a dynamic action to clear the value of  P27_OLO_CODE or P27_OLO_CODE_SW, in hope it would trigger P27_MULTI_CLASS_CODE to display all values, but it has not been successful.  Any ideas?
    APEX 4.2

    I was able to resolve by changing the SQL statement to P27_MULTI_CLASS_CODE.  Note:  I also included an additional condition.
    SELECT DISTINCT c.class_code d, c.class_code r
      FROM ORGANIZATION o,
           POSITION p,
           CLASS c
    WHERE o.org_wk = p.org_wk
       AND p.class_wk = c.class_wk
       AND o.org_active_flag = 'Y'
       AND p.pos_active_flag = 'Y'
       AND c.class_active_flag = 'Y'
       AND (:P27_ALLOW_SW = 'Y'
            OR (o.olo_code =  :P27_OLO_CODE
                OR o.olo_code = :P27_OLO_CODE_SW)
       AND (:P27_PAY_PLAN IS NULL
             OR p.pay_plan = :P27_PAY_PLAN)
    ORDER BY c.class_code ASC
    I also changed the Cascading LOV Parent Item(s) value to:  P27_OLO_CODE,P27_OLO_CODE_SW,P27_PAY_PLAN,P27_ALLOW_SW.  Optimize Refresh = No, since a change in any one of these values should trigger refresh of LOV.
    The Dynamic Action was also modified to NULL out P27_OLO_CODE,P27_OLO_CODE_SW when P27_ALLOW_SW was enabled.
    So far, so good!  Thanks for your suggestions Tom and Howard!

  • Sending mail of infotype record using dynamic actions

    Hi
    How can we send mail of info type record using dynamic actions if possible give me one example
    Mail to me: [email protected]
    Thanks & Regards
    santhosh reddy

    Hi..
    Already Standard Entries exists for the same.. pls check T588Z

  • Send mail using Dynamic actions

    Hello experts,
    How to send  a mail using Dynamic Actions??
    Requirement : Lets say one employee is hired on 26th Aug, so after 10 days he will be confirmed. so on 8th day need to send a mail to concerned person reminding the confirmation date.
    so how do i do that using dynamic actions??
    Thanks in advance.
    Saurabh

    Hi,
    In dynamic actions there is an option for calling sub-routine from any program or subroutine pool. So u can make subroutine for sending mail according to ur requirement. An call on th same from dynamic actions.
    if u want sample code for this, pls let me know.
    <removed_by_moderator>
    Regards,
    Ranjith
    Edited by: Julius Bussche on Aug 26, 2008 3:25 PM

  • How to use dynamic action to fill multi item on a page ?

    Hi..
    I want to fill multi items on a page so I build a dynamic action ( Execute PL/SQL Code ) to do it .The problem is that when the page loads I can't see any data and I tried to see the session values using debug and I found data. Moreover when I save the row I got these data saved.
    So what is the magic there?
    Thanks

    Firstly, to get the multi-select populated with "pre-selected" values the easiest approach is to use Computation or Process at a process point On Load Before Header or After Header or Before Regions.
    All you need to do is populate your "Select List " page Item with : (colon) separated list of selected values. E.g is you want A,B and C out of A,B,C,D,E selected then get A:B:C into the Page Item.
    If you have used Dynamic Actions, what is your event on which the action fires? For Dynamic-Actions the page (HTML DOM) needs to be existing , so it must fire after the page has loaded.
    Regards,

  • Why we are using dynamic actions in HR

    why we are using dynamic actions in HR?? main purpose of it>>

    Check the link -
    Re: Dynamic Actions
    Re: dynamic actions
    Re: Dynamic Actions
    www.hrexpertonline.com/downloads/Rehan%20Zaidi%20Online%20Portion.doc
    Regards,
    Amit
    Reward all helpful replies.

  • Sending mails using dynamic actions

    Hi
    How we can send mails using dynamic actions.
    Regards
    Santhosh

    Hi,
    Sending mails is possible by using the feature M0001. This is to be coded in the dynamic action depending on the requirement with function code "M".
    Hope this would help you to explore further. Incase of any specific query you can post back.
    Regards
    Tharak

Maybe you are looking for

  • Legality questions about Home Sharing

    I have some legality questions about Apple's Home Sharing technology. As I understand it, you can share (that is, copy it from one computer to another) your music, movies, applications and other iTunes-managed files amongst five computers. The only '

  • USB ports don't work

    I just purchased a G72t laptop Aug. 23 and 2 or the 3 USB ports do not recognize any devices. I have a wireless mouse plugged into the 3rd USB and it works fine. I tried to install a printer (HP 4280) and it would not work on either of the other 2 po

  • SAP BW development user guide links

    Hi - I'm new to SAP BW development. I'm looking for user guides which will help to understand the Info cubes, DSO, creating a BEx query in Query designer, step by step instructions etc. I went through SAP help forum but not sure where to start and wh

  • Create new oracle database

    I ve installed Oracle 10g Express Edition on mi PC, but I dont know how to create a database, also I m using SQL DEVELOPER, but I dont find any "Create DataBase" option, or I have to do it through sql sentences?? Another question is : where can I get

  • BOM Product Structure

    Hi Gurus,              I have multi-level assembly ,in which some of the BOM components are text items. In tcode CSMB- BOM product structutre display the text items are not shown. I tried to change the layout,but could not figure it out. Is there is