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

Similar Messages

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

  • 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

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

  • 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

  • Dynamic actions and PA-PD integration a problem

    Are you aware of an update problem with MSS and PA-PD integration?  This information was made available in a presentation to us last year.  Was this issue resolved in mySAP ERP 2004?
    Dynamic actions and PA-PD integration a problem
    Dynamic actions and PA-PD integration are not
    processed on updates made from the web (but in the
    background through a batch or call transaction session)
    That’s why most standard PCRs require HR to process
    the transaction using the SAP GUI in the foreground
    This normally affects changes to infotypes 0000 &
    0001
    Then the next slide states:
    Workaround for dynamic actions
    Review dynamic actions in table T588Z (use SE16 to
    display) and document the infotypes and values that
    trigger dynamic actions
    Incorporate those infotypes into your background
    processing and web forms (if necessary)
    Workaround for PA-PD integration
    Include the integration steps for these infotypes in your
    background processing (just as in conversions)

    Hi John,
    Not sure if it is fixed.. or can be fixed.. we are still in 47  & Use custom code to account for Dynamic Actions.. the PCR processes use the function module HR_MAINTAIN_MASTERDATA to update the infotypes. This function mimics a BDC & hence cannot handle Dynamic Actions... Basically, the issue is not with MSS but it is the way Dynamic Actions work.. to quote SAP  "Dynamic actions are not correctly processed in batch input sessions since in batch input the sequence of the screens needs to be predefined correctly. To be able to process dynamic actions in batch input, the checks of the dynamic actions need to be programmed when creating the batch input session. To avoid errors when programming and running the session, the static actions  only are processed in batch input. Calls of infotypes that are triggered by dynamic actions should be realized by separate Transaction calls.
    Please take a look at OSS Note #386027 for additional info about Dynamic Actions.
    Regards,
    Suresh Datti

  • 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

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

  • How to Send Notification to Manager of the Employee using Dynamic Action..

    Hi All,
    I am sending a notification using the Dynamic Action for an Infotype.. I am able to send mail using distribution list but I have a requirement to send the notification to employee manager. I am able to determine the Line Manager ID calling the subroutine in the dynamic action. But I am not sure how to send the notification to the manager.
    If the email's are maintained in distribution list if I specify the text id in the feature M0001 and distribution list the notifications are sent. I am not sure how to pass the line manager id to get the same notification..
    I have seen the option REC1 but infotype 0001 in not having the line manager id..

    Used the Function Module RH_GET_LEADING_POSITION.
    Thanks..

  • Using HR_INFOTYPE_OPERATION in external subroutine for Dynamic Actions

    Hi,
    I am calling an external subroutine in the Dynamic Actions of an Infotype. In this external subroutine, I am using HR_INFOTYPE_OPERATION to modify OTHER records of the same Infotype number.
    However, when I tried to trigger the Dynamic Actions in PA30, the other infotypes get modified as intended. But when I refreshed the PA30 screen, the changes were reversed back as if the HR_INFOTYPE_OPERATION were not carried out at all. I have COMMIT WORK after the HR_INFOTYPE_OPERATION, refreshed the buffer. But it doesn't seem to work.
    My question is: Can i use HR_INFOTYPE_OPERATION in an external subroutine which is called during dynamic actions? As I have some complicated logic, I do not want to embed the coding in the Dynamic Actions. Is there a way for HR_INFOTYPE_OPERATION to work in the external subroutine with the changes being committed to the database?
    Thank you.

    Hi,
    I remember the same problem being faced by some of the forum members.
    Suresh Datti had replied that "Call the subroutine in a nother program using a SUBMIT statement. This will create two sessions and will update the DB". This was working fine for the users.
    Hope you can try this.
    Just call a program using SUBMIT statement and code your form routine inside that.
    Hope this helps you.
    Regards,
    Subbu.

  • Calling earliest record in a dynamic action

    Hi all,
    I am using dynamic actions to call infotype 0016 when user creates a new record in infotype 19. I am opening this infotype 0016 in change mode.
    Now,  I want that the earliest record of infotype 0016 should come in the change mode and not the latest one.
    Please suggest what to do for that?
    Thanks
    Ribhu

    Hi Do in this way..
    Call a routine...
    There is a structure RP50D which is accessible in dynamic action...
    Structure is : 
    FIELD1
    DATE1
    DATE2
    FLAG1
    .INCLUDE  CI_INCLUDE
    in side that routine find out the record for ur particular date..
    and pass BEGDA and ENNDA for that record to RP50D-DATE1 and RP50D-DATE2.
    and in dynamic action call :
    COP,0016,,,(RP50D-DATE1),(RP50D-DATE2)
    if u want more fields then u can include in CI include..
    Hope it will work
    reward if helpful
    Regards
    Prax

  • 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

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

Maybe you are looking for

  • IOS 5 tethering vagaries

    When I was running iOS 4.x on my iPhone 4 and my iPad 2, tethering the latter to the former was child's play. Since iOS 5, it's been a different story. The tether never happens without a lot of fiddling (restarting either device or both, toggling wif

  • Am I putting to much pressure on my laptop?

    I'm running a macbookpro with a lot of stuff plugged in to it a lot of the time, I was just wondering if it's to much and might it be damaging the battery or anything else. Whats almost always plugged into it is the following; . usb powered midi keyb

  • Xntpd on Solaris 10 gets synchronised with a higher stratum NTP server

    The Solaris 10 machine has the following configuration in etc/inet/ntp.conf server 10.24.179.33 prefer server 127.127.1.0 fudge 127.127.1.0 stratum 8 The Linux Fedora Core 4 test machine(10.24.179.33 ) configured as NTP server running ntpd V4 has the

  • JFormattedTextField demo not working

    Hi there, I just executed the JFormattedTextField demo provided at http://java.sun.com/docs/books/tutorial/uiswing/examples/components/index.html#FormattedTextFieldDemo However, it is possible to enter any character into the textfields (such as asdf)

  • MB51 should come in ALV format

    Hi, When we are running the Transaction MB51 with a Material, it displayed the output in a standard format. In this screen, one icon is showing i.e. Detail List. After click on it, it shows the output in ALV format. We want that when we execute the M