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

Similar Messages

  • Triggering Dynamic actions when updating an Infotype using a FM

    Hi all,
    This is the scenario.
    I am trying to run a Transfer action, (80), which updates the Infotype 0000 and Infotype 0001. When the entry in the Infotype 0001 is saved, a dynamic action is triggered and a custom infotype is updated automatically. I need to find a FM that takes care of any dynamic actins associated to an Infotype.
    I tried using a BDC, but I was not successful. While using the FM HR_INFOTYPE_OPERATION, I am able to update the data into the infotyes 0000 and 0001 but the dnamic action is not triggered. Can someone please suggest a solution.
    Thanks,
    Amar

    Hi,
       Thanks for you r reply. Well I am new to dynamic actions, but this is the Dynamic action that has been written.
    GET_DU(ZHRDUDYNCALL)
    COP,9009,,,(P0001-BEGDA),(P0001-ENDDA)/D
    ----P9009-SEQNR=P0001-SEQNR ---***
    P9009-AEDTM=P0001-AEDTM
    P9009-UNAME=P0001-UNAME
    P9009-DU_CD=RP50D-FIELD1
    --END OF ENTRY IN TABLE PA9009--
    --CREATE ENTRY IN TABLE PA9009----
    SY-DATUM=SY-DATUM
    GET_DU(ZHRDUDYNCALL)
    DEL,9009,,,(P0001-BEGDA),(P0001-ENDDA)/D
    P9009-DU_CD=RP50D-FIELD1
    --END OF ENTRY IN TABLE PA9009--
    The FM that I am using goes like this:
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
      EXPORTING
        infty                  =  '0001'
        number                 =  lv_pernr
      SUBTYPE                =   wa_0000-MASSN
      OBJECTID               =
      LOCKINDICATOR          =
       VALIDITYEND            = lc_endda
       VALIDITYBEGIN          = wa_source_data-begda
      RECORDNUMBER           = 1
        record                 =  wa_0001
        operation              = 'COP'
       TCLAS                  = 'A'
       DIALOG_MODE            = '0'
      NOCOMMIT               =
      VIEW_IDENTIFIER        =
       SECONDARY_RECORD       = proposed_values0001
    IMPORTING
      RETURN                 = return
      KEY                    =
    Please let me know if there is anything more I need to do?
    Thanks,
    Amar

  • 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

  • Testing Dynamic Actions

    Hello,
         I had created a dynamic action for a custom infotype 90X9 in which I am comparing a field(FIELD1) if it is initial i am maintaining a record in 90Y9 infotype.
        Through PA30 I created a NULL entry for the FIELD1 for a employee (EMP1) for infotype 90X9 and then I checked 90Y9 hoping that maintained value in dynamic action will fill the infotype 90YP, But this had not happend.
         Is this the correct way to TEST it? Please suggest a TEST method if it is wrong method to test this dynamic action scenario.

    Hello
    You know what is the most interesting thing about your test case? You are trying to copy the NULL value between infotypes. Well, is the test case not working only for NULL values or all values?
    Can you also mention following about your dynamic action?
    Infotype:
    Subtype:
    Field Name:
    Function Character:
    Sequence Number:
    Indicator for Step: 
    Variable Function Part:
    Thanks
    Anand

  • Call a transaction code in dynamic action

    Hi
    How can we call a transaction code in a dynamic action.
    TC XD01 is populated when changes is happen in IT0006 subtype 03.
    Regards
    WS

    Hi,
    Please find the below threads which may help you.
    Problem in calling dynamic actions in BDC
    Create Dynamic Action
    Triggering Dynamic actions when updating an Infotype using a FM
    Thanks & Regards,
    Sandip Biswas.

  • Dynamic Actions issue

    Hi Experts,
    Is it technically possible to know if an Infotype was updated through the Dynamic Actions or manually by an end user.
    We have a case where an Infotype is updated in the background based on certain conditions through a dynamic action.
    The same Infotype could be in certain circumstances updated manually through PA30.
    Is it possible to know how the last change was done???
    Thanks for your help.

    Thank you for your reply.
    In fact we have a custom Infotype (IT9xxx: Eligibility for certain benefit)  that we are automatically creating/updating in the background based on changes in IT0021; if a new dependant is added in IT0021, we automatically create for him a new instance in this custom Infotype etc...
    Sometimes and for some special cases, the end user should update this IT9xxx manually.
    Now, if I want to know each records in this IT9xxx were created manually and each ones were created automatically, is it possible or not ??? in other terms from a system point of view, do we have a flag or an indicator to tell us if the record was created/updated through dynamic action or manually.
    I hope that it more clear now.
    Thanks again.

  • HR - Dynamic Actions help required

    Hi,
    We have a requirement like this:
    Each Org unit is attached to a Work Address and the same is stored in Infotype 1028.
    Whenever hiring action takes place the dynamic action should read the Infotype 1028 for the Org unit to which the employee is assigned and fetch the Work address details.
    These details should be stored in Infotype 0006 under Work Address subtype.
    Request your help as this is a very urgent requirement for us.
    Title edited by: Alvaro Tejada Galindo on Jun 12, 2008 7:05 PM

    In the dynamic actions, you can specify the name of a subroutine of a program.
    Create a subroutine, and write code inside that

  • Dynamic Action help please

    Good day
    I am a new user to SAP (roughly 6 weeks), focussing on the HR side. I have been asked to attempt to compile the code for the following requirement:
    Capture IT9007 (Service History) for new employees, or those who have a change in Position The fields required are Start Date; To Date; Employee Type; Status; Workplace; Grade; Position.
    Please help me understand how to go about gathering the data. Explanation of the syntax too would be appreciated too.
    Thanks for the help
    P.s. I have put together the following code, but my colleague has just informed me it does nothing...
    IType     STy.          Field Name     FC     No.     S     Variable function part
    0                    6          P     SY-TCODE='PA40'
    0                    6          P     PSPAR-BUKRS='5005'
    0               MASSN               P     P0000-MASSN='Z1'/X
    0               MASSN               P     P0000-MASSN='Z2'/X
    0               MASSN               P     P0000-MASSN='ZA'/X
                        0          I     COP,P0001-PLANS
                                  W     P9007-PLANS=P0001-PLANS
    0               MASSN               P     P0000-MASSN='12'/X
    0               MASSN               P     P0000-MASSN='Z9'/X
    0               MASSN               P     P0000-MASSN='ZAZ5'
                        0          I     COP,P0000-BEGDA
                                  W     P9007-BEGDA=P0000-BEGDA
                        0          I     COP,P0000-ENDDA
                                  W     P9007-ENDDA=P0000ENDDA
                        0          I     COP,PSPAR-PERSG
                                  W     P9007-EMPLOYEE_TYPE=PSPAR-PERSG
                                       EMPLOYEE STATUS
                        0          I     COP,P0001-WERKS
                                  W     P9007-WORKPLACE=P0001-WERKS
                        0          I     COP,P0001-PERSK
                                  W     P9007-GRADE=P0001-PERSK
                        0          I     COP,P0001-PLANS
                                  W     P9007-PLANS=P0001-PLANS

    Hi KNaidoo,
    Welcome to swim the SAP ocean:).
    Dynamic actions are actions that is triggered during infotype maintainance.
    lets say you enter some details in infotypes and save it (PAI ) ,it has to populate an email or populated another inoftype,its intended for this purpose.
    There are standard infotypes and customer infotypes(9000-9999).If you see in your case it IT9007(customer infotype)
    http://www.hrexpertonline.com/downloads/Rehan%20Zaidi%20Online%20Portion.doc
    tcode pa30 lets say you are opening IT0001  for one employee and when you go to view the infotype details.click system->under SAP data you will find MP000100(MPXXXX) its module pool program .when you double click on that will take you to abap editor.every module pool program of the infotype will have a standard program MPPERS00(standard include) and it wil have the routine that checks if there is a dynamic action maintained for that infotype be refering T588Z.
    Rehan zaidi power of dymamic action is an execllent one for understanding .please download the doc from the link shared.
    No Worries
    KG

  • How to make use of a Badi in dynamic action on infotype?

    Hi...
    i need to create a dynamic action on infotype 6 to create a record in infotype 207.
    I have to use badi for it.
    i need to use 'f' for 'Indicator for step'. right?
    kindly help..
    Thnx and regards.
    Abhi.

    Hi,
    Using F calls a routine and not BAdI.
    If record will directly be created then there is no need to write Z program and calling it using F indicator. However, in case there is some logic which can not be written directly in the Dynamic Action then you need to write that logic in a routine and call it using F indicator.
    VK

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

  • Dynamic actions - how to create an infotype with a date - 1 day.

    Hi everyone,
    I need a requirement to change an infotype through dynamic action with ENDDA = BEGDA of maintaned infotype(0000) - 1 day.
    In other words when a  personel action is performed, another infotype (2001) should appear for change, and in the validity period of this infotype should end with the day before the start of the personel action.
    is it possible to achieive this using dynamic actions? how?
    Thanks!
    Stanislaw Adamski

    Hi Adamski,
    A dynamic action has the following components.
    Infotype Number (INFTY): specifies the infotype for which you want the dynamic action triggered
    Subtype (SUBTY): narrows the focus to a specific subtype
    Field Name (FIELDN): starts your action when a maintenance function is performed on a particular field
    Function (FC): specifies the various maintenance operations to which your dynamic action would respond. They are 02 (change); 04 (create); 06 (create and change); 08 (delete); 10 (change and delete); 12 (create and delete). Dynamic actions are only applicable in maintenance operations, not in display functions.
    Sequence Number (NO): refers to a sequential number.
    Step (A): specifies a particular type of action. No dynamic action is executed if the function character has a value other than one of the following:
                 P: Plausibility checks, which allow you to check certain conditions.          
                 I: Calls an infotype for processing
                 W: Called after the I statement and used to assign values to screen fields while creating or copying another infotype record through the I statement 
                  F: Calls a FORM routine (subroutines in ABAP) during your action. The routine may reside in or out the module pool MPNNNN00.
                 V: Lets you treat collectively a number of fields for which you want to define a common dynamic action
                  M: Sends SAP Office mail
    Variable function part: The variable function part along with the step indicator forms the core part of your action. It specifies the processing details when the dynamic action is triggered. For example: 
    you have to look for the scenario what you are planning tyo create .
    The maintenance of dynamic actions is done via the view V_T588Z, as shown in 1 (IMG menu path Personnel Management>Global Settings in Personnel Management>Basic Settings>Infotypes>Create Dynamic Actions
    Here you havev to use conditions INS for the infotype what you want to create..
    Please brief the light on the scenario.
    Warm Regards,
    Kapil Kaushal

  • Issue with Dynamic Actions - Infotype 0041 Updation

    Hi All,
    Requirement :
    I have to update the Date type-13 ( Resignation Date - DAR11 ) without Date ( DAT11 as Blank value - User will fill through Infogroup ) while performing the Termination action through PA40.
    Added below code in V_T588z (0000):
    I have added 186,188 Lines.Other lines are standard thing.
                  04     180     P     PSPAR-MASSN='10'/X  **Termination
                  04     181     P     PSPAR-MASSN='ZB'/X **Termination
                  04     182     P     PSPAR-MASSN='14'/X  **Termination
                  04     185     I     COP,41,,,(PSPAR-BEGDA),(PSPAR-ENDDA)/D
                  04     186     W     P0041-DAR11='13' **BEGIN & END OF CRA01670 CODE ***
                  04     188     W     P0041-DAR11='' **BEGIN & END OF CRA01670 CODE ***
    Issue :
    1. The above logic is not working for Finland ,other countries. For only India it is working.
    2. Some times Date type-13 is coming twice while through the Infogroup-0041 screen twice,which is incorrect. The infotype-0041 should call only once.I have checked the User parameters,MOLGA,USR. But it is not working.
    2. The standard configuration Date type -09-Last day of work - is working fine . But i could not be able to find ,from where it is coming.I have checked the Dynamic actions,but no use.
    Need your inputs to solve the issue.
    Thanks,
    N.L.Narayana

    P     P0000-MASSN='01'    Action type
    P                   P0000-MASSG="01"   Action Reaosn
    P     T001P-MOLGA='40'
    F                   here u will keep the Call Routine
    I     INS,2001,,,(P0000-BEGDA),(P0000-ENDDA)/D  (here u have pass the date of Call routine )
    W     P2001-IAWRT='01'
    But here Infotype 2001 we will give Absence type this IT is used for Booking Absence Types i did not get the Wage type 8001
    thru which IT are u processing it
    for more info Checjk Tabvke V_T588Z  here iam pasteing the sample call routine which i got from earlier thread
    Create a Program (Subroutine) using SE38. Save and activate it.
    ZZSY_DYA_TEST2
    REPORT ZZSY_DYA_TEST2.
    tables : p0000,p0001,rp50d.
    FORM getdate.
    rp50d-date1 = p0000-begda + 90.
    ENDFORM.
    FORM get_date.
    rp50d-date2 = p0000-begda + 180.
    ENDFORM.

  • Triggering of dynamic actions in infotypes!

    Hi Experts,
    I have Query regarding the triggering of dynamic actions. Have a scenario where I create a record in infotype 21
    with subtype 'XX".
    On save of this record I need the dynamic actions to be triggered , where I will write the logic to modify the end date of an  existing infotype 21 record with subtype 'YY'.
    How can I achieve this?
    Please help!!!!

    Hi,
    Just try this.
    Goto V_T588Z.
    INFTY     SUBTY      FIELDN      FC NO.      STEP VARIABLE FUNCTION
    0021     XX          I     INS,21,(P0021-ENDDA)
    Regards,
    Srini

  • Dynamic Actions in Custom Infotype

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

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

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

Maybe you are looking for

  • Does the iphone 5 comes unlock?

    I wanna know if I can use my iPhone 5 with another carrier outside the country

  • Video converter won't conv

    The video converter I got with my Zen V Plus will not convert the .avi file I want to convert. I have tried converting it into .divx and then converting it and also using another converting technique but none seem to work. Any help out there?

  • Dbstart works, but cannot connect

    Hi, this is my first post and I am new to oracle administration, but I think this is some kind of wierd: Here is dbstart output (works alright): SQL*Plus: Release 10.1.0.4.0 - Production on Mi Apr 13 19:18:19 2005 Copyright (c) 1982, 2005, Oracle. Al

  • Production order eff report

    Dear experts, I want make a production order effciency report. for that the formula is efficiency = Actual exe.time / planned exe. time . We get planned exe. time from AFKO table. While calculating actual exec. time I have a problem. I have 3 operati

  • Plz help me (important)

    I bought (half a year ago) a MSI KT4 Ultra mainboard - well first time i turned on Computer anything was good, i could see the CPU temperature, MB temperature and all the other things that are in the BIOS under 'PC Health Status' - but then i set FSB