How to trigger dynamic action

hi all,
i am using HR_INFOTYPE_OPERATION to update or insert data in infotype 0000. it has been updated but i am also want to insert data in P0001 for same employee number(pernr) and same data. i want to do this with dynamic action. is it possible?????
thanks
Sachin

Hi Ajay,
When you use BDC or FM to update infotype, you can not call dynamic action as it wont be supported by SAP.
So if you wnat to meet your requirement you have to create one RFC FM inside which you can call from the user exit or after your code had executed the FM operation and got the success message you can call the same FM for updating other infotypes.
The best approach can be to create BDC sessions for updating each infotype after you have done with update of IT0000.
Hope this will help you in resolving your queries.
Regards,
guds

Similar Messages

  • How to include dynamic action in bdc

    Hi All,
    I want to update infotype 17 when an employee has joined through PA40 (Joining action).So i have written a dynamic action for this .But this dynamic ation does not get called in bdc for joining action.
    So infotype 17 is not maintained if we do joining through bdc.
    I have tried with user-exit zxpadu02 also, calling hr_infotype_operation on saving infotype 0001.But it gives return as 'Employee does not exist'.
    Since that infotype 0001 is still not saved.
    So what to do.
    Yogesh

    Hi Amit,
    For your information we can call dynamic action from BDC.
    go through this link
    how to include dynamic actions in bdc

  • How to create dynamic action

    hi friends,
    could u plz tell me how to create dynamic action? 
    with regards,
    Priya.S

    Hi
    I u need to write the dynamic action as below
    0002     ANZKD     06     3     P     PSPAR-TCLAS<>'B'
    0002     ANZKD     06     4     P     T001P-MOLGA='12'
    0002     ANZKD     06     5     P     P0002-ANZKD>='1'
    0002     ANZKD     06     6     I     INS,0021,2,,(P0002-BEGDA),(P0001-ENDDA)
    This should help you.  rewards
    Regards
    Suresh

  • How to trigger an Action

    Hello,
    I need help to find out how to trigger an Action (Action Definition) from an ABAP program. The program should trigger the Action used to create a follow-up transaction from an existing Contract.
    Thanks in advance,
    Jonas

    Hi! Every one
    I am using codes mentioned in this tread but getting one exception at the time when SAP is trying to save the changes for the change process action data. I am able to run the change process action programmatically ( successfully ) and when i enter some data for the change process action and press the execute button, I am getting one exception. I have attached the exception in this text. Can any one please give any clue why this exception is coming and what else I need to do?
    Thanks
    Yogesh
    Runtime Errors         UNCAUGHT_EXCEPTION
    Except.                CX_OS_OBJECT_NOT_FOUND
    Date and Time          13.03.2007 16:14:30
    Short dump has not been completely stored (too big)
         Short text
              An exception occurred that was not caught.
         What happened?
              The exception 'CX_OS_OBJECT_NOT_FOUND' was raised, but it was not caught
               anywhere along
              the call hierarchy.
              Since exceptions represent error situations and this error was not
              adequately responded to, the running ABAP program
               'CL_METHODCALL_PPF=============CP' has to be
              terminated.
         Error analysis
              An exception occurred that is explained in detail below.
              The exception, which is assigned to class 'CX_OS_OBJECT_NOT_FOUND', was not
               caught in
              procedure "IF_MEDIUM_PPF~EXECUTE" "(METHOD)", nor was it propagated by a
               RAISING clause.
              Since the caller of the procedure could not have anticipated that the
              exception would occur, the current program is terminated.
              The reason for the exception is:
              Could not find the referenced object with the OID
              "00000000000000000000000000000000" (instance GUID) and
              "BECA3BF12720D411AB61009027C3C00A" (class GUID)
         Missing RAISING Clause in Interface
             Program     CL_METHODCALL_PPF=============CP
             Include     CL_METHODCALL_PPF=============CM009
             Row     1
             Module type     (METHOD)
             Module Name     IF_MEDIUM_PPF~EXECUTE
         Trigger Location of Exception
             Program     CL_METHODCALL_PPF=============CP
             Include     CL_METHODCALL_PPF=============CM001
             Row     32
             Module type     (METHOD)
             Module Name     IF_OS_STATE~HANDLE_EXCEPTION
         Source Code Extract
         Line     SourceCde
             2     ***BUILD 020501
             3          " importing I_EXCEPTION type ref to IF_OS_EXCEPTION_INFO optional
             4          " importing I_EX_OS type ref to CX_OS_OBJECT_NOT_FOUND optional
             5     ************************************************************************
             6     * Purpose        : Handles exceptions during attribute access.
             7     *
             8     * Version        : 2.0
             9     *
            10     * Precondition   : -
            11     *
            12     * Postcondition  : -
            13     *
            14     * OO Exceptions  : CX_OS_OBJECT_NOT_FOUND
            15     *
            16     * Implementation : If an exception is raised during attribut access,
            17     *                  this method is called and the exception is passed
            18     *                  as a paramater. The default is to raise the exception
            19     *                  again, so that the caller can handle the exception.
            20     *                  But it is also possible to handle the exception
            21     *                  here in the callee.
            22     *
            23     ************************************************************************
            24     * Changelog:
            25     * - 2000-03-07   : (BGR) Initial Version 2.0
            26     * - 2000-08-02   : (SB)  OO Exceptions
            27     ************************************************************************
            28     * Modify if you like
            29     ************************************************************************
            30     
            31       if i_ex_os is not initial.
         >>>>>         raise exception i_ex_os.
            33       endif.
            34     
            35     endmethod.

  • How to Use Dynamic Action ?

    Dear All,
    i am using Apex 4.1 Ver.
    i need return value in text Area Item when i select any Value in Select List.
    i have One select List Item :p1_template_id and one text Area Item P1_template_description .
    Select List Code
    SELECT TEMPLATE_NAME D, TEMPLATE_ID R FROM TEMPLATE_MAS  ORDER BY TEMPLATE_NAME
    Table Name
    CREATE TABLE  "CRM_CAM_TEMPLATE_MAS"
       (     "TEMPLATE_ID" VARCHAR2(50) NOT NULL ENABLE,
         "TEMPLATE_NAME" VARCHAR2(500) NOT NULL ENABLE,
         "DESCRIPTION" CLOB
          CONSTRAINT "CRM_CAM_TEMPLATE_MAS_PK" PRIMARY KEY ("TEMPLATE_ID") ENABLE
    /i want to Value of DESCRIPTION Column in to Text Area Item when i select Template ID from Select List .
    How can i do this with Dynamic Action or any other Way ?
    How can i do this ?
    Thanks
    Vedant

    Hi Kiran,
    i have done it with Text Area but when i change text Area with Rich Text Editor then it's not Working.
    How can i do this with Rich Text Editor.
    My Code
    Application Process
    DECLARE
       v_mgr  VARCHAR2(4000);
       CURSOR cur_c
       IS
    SELECT DESCRIPTION FROM TEMPLATE_MAS WHERE TEMPLATE_ID =:TEMPLATE_ITEM ;
    BEGIN
       FOR c IN cur_c
       LOOP
          v_mgr := c.DESCRIPTION;
       END LOOP;
       OWA_UTIL.mime_header ('text/xml', FALSE);
       HTP.p ('Cache-Control: no-cache');
       HTP.p ('Pragma: no-cache');
       OWA_UTIL.http_header_close;
       HTP.prn ('<body>');
       HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
       HTP.prn ('<item id="P1_SUMMARY">'||v_mgr|| '</item>');
       HTP.prn ('</body>');
    EXCEPTION
       WHEN OTHERS
       THEN
          OWA_UTIL.mime_header ('text/xml', FALSE);
          HTP.p ('Cache-Control: no-cache');
          HTP.p ('Pragma: no-cache');
          OWA_UTIL.http_header_close;
          HTP.prn ('<body>');
          HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
          HTP.prn ('<item id="P1_SUMMARY">'||SQLERRM||'</item>');
          HTP.prn ('</body>');
    END;
    Java Script
    <script language="JavaScript" type="text/javascript">
    <!--
    function pull_multi_value(pValue){
        var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
        'APPLICATION_PROCESS=TEMPLATE_ITEM1',0);
    if(pValue){
    get.add('TEMPLATE_ITEM',pValue)
    }else{
    get.add('TEMPLATE_ITEM','null')
        gReturn = get.get('XML');
        if(gReturn){
            var l_Count = gReturn.getElementsByTagName("item").length;
            for(var i = 0;i<l_Count;i++){
                var l_Opt_Xml = gReturn.getElementsByTagName("item");
    var l_ID = l_Opt_Xml.getAttribute('id');
    var l_El = html_GetElement(l_ID);
    if(l_Opt_Xml.firstChild){
    var l_Value = l_Opt_Xml.firstChild.nodeValue;
    }else{
    var l_Value = '';
    if(l_El){
    if(l_El.tagName == 'INPUT'){
    l_El.value = l_Value;
    }else if(l_El.tagName == 'SPAN' &&
    l_El.className == 'grabber'){
    l_El.parentNode.innerHTML = l_Value;
    l_El.parentNode.id = l_ID;
    }else{
    l_El.innerHTML = l_Value;
    get = null;
    //-->
    </script>
    HTML Form Element Attributes
    onChange="pull_multi_value(this.value)";
    For Riich Text Editor i have changed these value in Application Process and table column data Type
    v_mgr  clob;
    DESCRIPTION Column Type Clob
    How can i do this with Rich text Editor /
    Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to make dynamic actions using Set Value work in all browsers?

    I’m having a cross-browser incompatibility issue with dynamic actions using Set Value.  The dynamic action works like a charm on Chrome but has no effect on either IE or Firefox.  The code in oracle.apex.com and here are the credentials:
    Workspace: DDBA
    Username: [email protected]
    Password: redtruck12
    These code is on page 3 and here are the details:
    There are two report lists (Standard and Special) and some of the reports require additional information supplied in either select lists or text boxes.
    If the user selects a Standard report requiring a select list/text box, then the dynamic action sets the value of Special Reports to NULL (and vice-versa).
    The dynamic action is to prevent a simultaneous selection of both the Standard and Special reports.  To see how it works on Chrome, do this:
    Run Page 3
    Select the ‘Report for Search Criteria’ option from the Standard Report list.  A ‘Search Criteria’ text box appears
    Select the ‘Report by Release’ option from the Special Reports list.  A select list appears and the ‘Search Criteria’ text box disappears.
    If you do the same things on IE or Firefox, the text box does not disappear. 

    Hi,
    Things are going wrong with setting the item values to NULL. If you check your session state, you'll see that in chrome your items values indeed will be set to null, but in firefox they won't.
    Also I've noticed that you don't reset the other input fields, so their values persist in the session state. Since you submit your page every time you change one of the report select lists, this might lead to unexpected behaviour. Lastly, I've noticed you use a sql exists expression to manage the display/hide of your page items. A condition of type "Value of  expression 1 = expression 2" causes less overhead as you don't need to switch to the db sql engine for every item to validate.
    I'd suggest you rethink your specs and try to create:
    - One dynamic action (since a value of standard select excludes the value of special select, and vice versa)
    - Set the values for hidden items to null, also in session state
    - Use a refresh of region as extra event in your dynamic action, instead of submitting your page for every change.
    Regards,
    Vincent
    http://vincentdeelen.blogspot.com

  • Not able to trigger dynamic action

    hi all,
    i am using HR_OPERATION_INFOTYPE to update or insert data in infotype 0000. it has been updated but i am also want to insert data in P0001 for same employee number(pernr) and same data. For this i am maintaining table "T588Z".
    but dynamic action is not triggering
    what should i do now
    thanks
    Sachin

    Dynamic action won't trigger by using the FM HR_INFOTYPE_OPERATION. You have do write a BDC for PA40 for a given action to have the dynimic actions to run.
    Regards
    Ranganath

  • How to maintain Dynamic Action for Infotype 2 .

    Hi SAP-HR Experts .
    I want to maintain Dynamic Action for Infotype 2 .
    If Employee's No. of Children exceeds then System immediately ask for maintenence of IT-21 also at the same time .
    How to maintain code in table V_T588Z .
    Please elaborate it .
    Thanks & Regards : rajneesh .

    Hi kanupriya .
    your reply was Very helpful for me u2026But i unable to achieve the desired result . I maintained the entries in View V_T588Z like this .My Objective is when some body update the Infotype 2 for a employee , and his/her no. of Childrens exceeds by 2 then system should jump into IT-21 for
    updation of IT-21 at the same time . I think this what Dynamic Actions work out .
    ==========================================================
         ANZKD 04 500 P PSPAR-TCLAS='A'
         ANZKD 04 175 P T001P-MOLGA='40'
         ANZKD 04 176 P P0002-ANZKD>='2'
         ANZKD 04 177 I INS,0021,2,01
         ANZKD 04 178 I INS,0021,2,02
    ==========================================================
    Please suggest me what to do , as the above entries are not workout .
    Your help will be very appreciated.
    Regards ,
    rajneesh(9873607039)

  • Reg: SAP HR ---how to apply Dynamic actions

    Hi Gurs,
    Whenever subgroup RH to RS or RS to RH change then only it will create the infotype 8.Otherwise it will create the COPY for the infotype 8.
    We did the configartion but whnever RH is coming then only it was showing as create.it was not comparing..But we need whenever to change subgroup RH to RS  or RS to RH then only it will create the infotype 8 otherthan these two it will copy for the infotype 8.
    Ex: if we change RH to CB then it will Copy the infotype..If we change CB to RH then it will create the infotype..
    Can you please advise me whether we need to do any dynamic actions..bcease recently moved to functional..I dont have much idea about the functional side...
    Can you please suggest me if we need to dynamic actions please provide me the steps how to follow..
    Waitng for your response...
    Regardds,
    Kiran.

    hello Kiran..
    Is this requirement  when  you try to change any employee in PA30 ?
    If yes, I think we can do this using BADI
    BADI:    HRPAD00INFTY
    In this we  have a method called AFTER_INPUT ...I think here we can read the current employee subgroup  value from the
    parameter I503  and read the old value of subgroup from the infotype 0002  and then compare from RS to RH or RH to RS..
    then if it changes create infotype 8....for creation or copy use HR_INFOTYPE_OPERATION function module....
    Hope this helps...please let me know

  • How  to call  DYNAMIC ACTIONS

    hi experts,
          i have an subroutine for dynamice action for creating IT2006 with me.
    but i dont no where to call that subroutine can anyone plz tell me how to do this.
    where should i write perform statement.
    for eg. i want to call that action while creating /changing the record in IT0001.
    plz do ASAP.
    thanks in advance.
    vinod.

    HI,
    Go to IMG>Personnel Management>Personnel Administration>Customizing Procedures>Dynamic Actions
      Or Use table T588Z.
    Have a look at these links
    http://wiki.ittoolbox.com/index.php/Dynamic_Action
    http://www.hrexpertonline.com/downloads/Rehan%20Zaidi%20Online%20Portion.doc
    Reward points if Helpful.
    Regards,
    Manoj.

  • How to Handle Dynamic actions in batch mode???

    Hello Experts,
    We have a requirement where we need to automate PA40.  The data would be sent in csv file and we need to perform the required steps to insert data into Infotypes.
    The issue is in batch mode (background mode), the dynamic actions wouldn't be called and the business wants the dynamic actions to be considered as well. 
    Pls let me know if there is any way we can interpret the dynamic actions dynamically; meaning the prog should be able to handle the newly created dynamic actions as well.
    Any pointers to this are highly appreciated.
    Regards
    RK

    Hi.
    As far as i know, the limitation comes from the BDC execution itself, it doesn't really matter whether the execution is online or in batch mode.
    * dynamische Massnahme
        IF sy-binpt EQ space.
    *      befinden wir uns im ALE-Eingang ?
          CLEAR: ale_flag.                                   "XFYAHRK063273
          call function 'RHAP_ALE_FLG_GET'                   "XFYAHRK063273
            importing                                        "XFYAHRK063273
              ale_flg = ale_flag.                            "XFYAHRK063273
          IF ale_flag IS INITIAL.                            "XFYAHRK063273
            IF pspar-vinft NE space.  "infotype view         "XYLPH9K007065
              PERFORM dyn_measure IN PROGRAM (view_repid).   "XYLPH9K007065
            ELSE.                                            "XYLPH9K007065
              PERFORM dyn_measure.
            ENDIF.                                           "XYLPH9K007065
            PERFORM process_m
    One thing you could try to do to avoid this and get the dynamic measures executed is to use the NOBINPT variable of the OPTIONS structure in CALL TRANSACTION
      DATA opt TYPE ctu_params.
      opt-dismode = 'A'.
      opt-nobinpt = 'X'.
      CALL TRANSACTION 'PA30' USING bdcdata OPTIONS FROM opt.
      PERFORM close_group.

  • How to trigger so action when ServerletOuput stream writes all data as byte

    Hi ,
    I have a servlet which accepts the index , size of a .3gp file in bytes as input parameters.
    If index=0 ...i am reading whole file into buffered input streame and writing to client as Servlet output steam as bytes.
    If index !=0 , or index=100 ...say suppose
    im ommiting first 100 bytes and rading101 byte to till the end of file in to buffered input streame and writing to client as Servlet output steam as bytes.
    Here i would like to trigger some action when the servlet writes entire bytes to the client .
    But im not able to notify exactly when the connection can close between client and server.
    Can any one help me to overcome this.
    Thanks in advance.

    Hi ,
    Thanks for reply..
    But reallu i couldnt get you.
    please go though the code snippet i have...and suggest me.
    try{
    File fFile = new File (fileName);
    BufferedInputStream bif = new BufferedInputStream(new FileInputStream(fFile));
         bif.skip(Integer.parseInt(((DownloadFileForm)o).getIndex()));
    int byteSize = (bif.available() < Integer.parseInt(((DownloadFileForm)o).getSize())) ? bif.available() : Integer.parseInt(((DownloadFileForm)o).getSize());
    byte[] b = new byte[byteSize];
    bif.read(b, 0, byteSize);
    sosStream = response.getOutputStream();
    sosStream.write(b);
    // here i have to do something
    sosStream.close();
    logger.info("file has been downloaded from Server is sending out to client");
    }catch(Exception e)
    // e.printStackTrace();
    logger.info("Exception :"+e.toString());
    regards,

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

  • How to process Dynamic Action in BDC

    Hi friends.
    We are using HR_INFOTYPE_OPERATION to update some infotypes. The problem is that dynamic action does not get triggered as SY-BINPT = 'X' when we use this FM or BDC to update.
    Now, is there any workaround so that we can process dynamic actions via our program?
    Can somehow we call the subroutine DYN_ACTION from our program? Can the values of PSAVE etc be availabe in our program?
    Thanks in adv!

    Hi
    Its kind of complicated to code dynamic actions in your BDC code. However , I would try my best to make you understand.
    1. Make a BDC recording of the source screen.
    2. Dynamic actions are stored in table: T588Z. Now during your screen processing of BDC data, you have to check the conditions yourself whether this was the condition which triggers the dynamic action.
    3, Make another BDC recording of the target screens which are called due to dynamic actions. Now if the condition in the source screen is fullfilled and you have to call a dynamic action then direct your program flow to the BDC recording of the target screen and update all the fields which would be updated by Dynamic Actions in the normal user interaction of that screen.
    In short, you have to program all those things which Dynamic action does since BDC does not support dynamic actions.
    Reward points, if helpful.
    Regards
    Waz

  • How to write dynamic actions for delimiting child subtype of IT0021

    Hi ,
    I need the dynamic actions for the below scenario:
    In IT0021 , there is a child subtype '02'. This needs to be delimited to a new subtype 'XX' when the child reaches a certain age.
    The above process needs to be automated..as in when the new subtype 'XX' is created, it should check the fields like date of birth , last name and on saving it , the corresponding child subtype screen should be called where the user can modify the end date and delimit the child subtype.
    Please help me with the required dynamic actions..
    Thanks.

    Hi,
    Just try this.
    INFTY     SUBTY      FIELDN      FC NO.      STEP VARIABLE FUNCTION
    0021      02      Field Name      P       TabName-FldName>=age
    0021     XX               I         INS, 0021,XX/I
    Regards,
    Srini.

Maybe you are looking for

  • How do i restore data after hard drive replacement

    I recently had to have my HD replaced (failed after nearly six years). the data was recovered and is sitting on my desktop in a folder. How do I restore that data (login, passwords, photos,etc) so it is the default login on my mac?

  • Best Practice - Changing description for Org Unit/Position or creating new?

    Hello Freinds, I just want to know from your experience what's normally practiced in your implementations for OM :- For scenarios where there is a need to change the description of a particular org unit or position, do u 1. just change the descriptio

  • How to generate the reports in each process

    Dear Experts, In my client i am having 4 different process. client want each process wise report. One of our colleague  is telling that one account is sufficient for all the Process. i am having a doubt 1. How he could generate the reports each proce

  • PDF to

    Hello everyone, I've been using Adobe Acrobat Pro 9 to convert PDF files to PDF/a and recently added a batch process to take care of the task. Anytime the process is executed, a copy of the original file (the file being converted) with "_A1b" tagged

  • RESTORE - Can't Find HPMedia Server- Help

    I have a D499t Pavilion that crashed and has been restored with windows 7.  I am using the restore PC disk from my HP Media Server EX495 to try to get to the restore function in the EX495 to restore the Pavilion.   For some reason, I am not able to g