HCM forms - User Events

hi,
I have added a push button in the form.  I have written $record.CONTROL_PARAM.ISR_EVENT = "USER_EVENT_CHECK", as i wanted to fill up some fields related to a position upon entering the same.
Wanted to know what else should be done, so that when the user enters the postion no and then clicks on this push button it should fill up the related fields.
Thanks,
Nikhil

HI Chris,
I had seen your previous blogs nad had done exactly like that, but still it was not working.
In the form i had used 'USER_EVENT_CHECK'. Then in HRASR_DT under 'Other Attributes' i had created an operation 'USER_EVENT_CHECK'  and created a new field group FG1. In this field group i assigned one field F1, the field which the user will enter. I kept the processing type here as CHECK. then created another field group FG2 and assigned all the other related fields to the field F1 and kept the processing type as initialise.
I had created a generic service nad written the code for population of other fields under DO_COPERATIONS method. But while debugging on clicking of the button, the code doesnt stop in this method.
I now copied SOC1 form and added all my fields into that standard form. i only kept the Derive data button from the standard form. I removed all the confiuguration done in 'Other Attributes', all the field groups and operations etc whcih i had created as mentioned above. And now its working. On clicking of the button the DO_OPERATIONS method is called.
Not sure what was my mistake. In the above method we are creating opeartions and assigning field groups. ok i understand that but, where do we write the data population code.
Thanks, Nikhil

Similar Messages

  • In HCM form & process Workflow event linkage changed to inactive status.

    Hi,
    In HCM  form & process event linkage is activated in HRASR_DT and workflow object .
    Now once we complete the process from EP portal ,reference number is generated and enteries are created in  table T5ASRPROCESSES .
    In SWEL,event is triggered and linked with the same workflow.
    Now the problem is,thesre is no workitem in SWIA with this workflow numbmer and the event linkage also changed to inactive status ( both in proces and  workflow )after we complete the process from EP.
    Thanks
    Manoj

    Hi
       When you are delaing workflows with HCM Process and form the behaviour is slightly different from the normal.. In order to check why the event linkage is inactive the possibilities are
    1. Either there are some chnages done in the workflow  and it is not activated from the transaction HRASR_DT.
    2. The other possibility is that you might have directly actovated the workflow from SWDD transaction and if you have done in this way then it is a wrong way of generating and activating the workflow
    Follow the below steps to find the error
    1. Execute HRASR_DT txn and try to activate the workflow from here. If you try to activate the workflow from this transaction the check function module which is linked to the workflow will be knowing that for which specific process which workflow has to be triggered..
    so in HCM process and forms frame workf it is always suggestable that try to create the workflow from HRASR_DT transaction using forward navigation and activate the respective event linkages.
    The other point you need to check is make sure that all the respective program exit classesare included in the basic data of the workflow other wise even if you miss the program exit classes in the basic data the workflow will not be able to start its process/execution.
    Regards
    Pavan

  • HCM P&Forms:How to create a user event and scenario step mapping

    Hi Friends
    I have a problem with Form Scenarios --> Other Attributes -->User Events:
    At present the values are: Operation :- the_operation_name
                                               Field Groups :- Field Group assigned
                                               Usable from scenario step :- Emp_Req_scenarion_stepname1
    I need to enter a new mapping here so that the operation is available in another scenario step as well.
    But in the edit I can enter only the operation name, not able to enter the scenario step.
    Can someone please suggest a solution or work around. Your inputs are appreciated.
    Thanks!
    Sajimol.
    Edited by: Sajimol Unni on Mar 2, 2010 11:54 PM

    Not quite true. A "user event" looks at what fields you selected for your "field group" for the event. Then ANY operation that has that field associated with it will get called (unless a "rule" stops it). User Events in HCM P&F are REALLY BAD in my opinion (I have ranted on them in many threads, blogs etc.). There are ways to deal with them and also ways around using them (see my blogs). I think this is one area in HCM P&F that needs a major overhaul/re-thinking.

  • Interactive Form for HCM Processes & Forms: Custom Event not firing ?

    ECC6
    EP7
    Adobe Reader: 8.1.2
    I am currently developing several Adobe interactive forms as part of an HCM Processes and Forms process. I have started to try to utilize custom form events. Following the documentation, I defined a custom event on the backend...lets say "USER_EVENT_S1". I assigned it a field group of fields and gave it the operation for "check". On the form side, I defined a pushbutton and changed it's "mousedown" FormCalc code to:
    //Set ISR_EVENT for BAdI processing in backend
    $record.CONTROL_PARAM.ISR_EVENT = "USER_EVENT_S1"
    I then activated the form and went to test it. When clicking the button tied to this event, it does absolutly nothing. I have external breakpoints set on the backend to my custom service that should fire for those fields that are part of the field group. The breakpoints trigger correctly as the form itself loads and hits the "initialize" and "F4 value help" methods. However, it is not doing anything when I press the assigned button to trigger my own user event.
    Any help ?!?!? I see only one implementation from SAP in their standard content and their own user event is not even implemented in the form! (form scenario S_HRPA_DE_REHIRE_1). That's not very reassuring or helpful. haha

    I figured it out this morning. It seems I was using the wrong (older?) button control.
    The one that did NOT work had the following for the "click" event....
    //Trigger call to backend for BAdI user command processing
    app.eval("event.target.SAPSubmit();");
    However, the one that DOES work has this:
    //Trigger call to backend for BAdI user command processing
    ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
    Both are called an "ISR_FormEventButton" however, I guess mine was from an older "library". Anyways...works great now! Back to development....
    (points to the reply for trying to help at least! Thanks!)

  • HCM Form events

    Hi,
    We are developing the HCM forms. Our requirement is populating the Country values in one dropdown list and based on the country we need to populate the city's in other dropdown list. The city values will come from the backed (BADI logic). The event is triggering and the city values also getting but the complete form getting refreshing when ever event is triggering, i don't want to refresh all the form, only related fields need to refresh.
    The below events are added to my Country dropdown exit event
    $record.CONTROL_PARAM.ISR_EVENT = "USER_EVENT_INITIALIZE"
    app.eval("event.target.SAPSubmit();");
    Please can any one help me on this.
    Thanks
    Nag

    Hey Nag,
    Are you using the ZCI format for the forms, because if you are, you are using the wrong dropdown list box.  The list box you are using is for the ACF style of form.
    I'd first suggest downloading the ISR ZCI library from the Service Marketplace
    [Note 1104060 - Adobe LiveCycle Designer - ZCI template update|https://service.sap.com/sap/support/notes/1104060]
    [Note 947675 - ISR/Adobe: Layout category ZCI (composite SAP note)|https://service.sap.com/sap/support/notes/947675]
    [Note 947633 - Current ISR Control libraries|https://service.sap.com/sap/support/notes/947633]
    [Note 973170 - New library for "SAP Interactive Forms by Adobe"|https://service.sap.com/sap/support/notes/973170]
    The last one has the dropdown that has the correct code for use within the ZCI form template usage.
    This is what the code is to look like, and can only be executed when the event language is Javascript:
    xfa.record.CONTROL_PARAM.ISR_EVENT.value = "CHECK";
    ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
    You have to replace CHECK with the name of the operation in the backend that you want to call.  Also, another thing that you have to do is Insert Web Dynpro Script when using ZCI form template.  This can be done by selecting the Utilities option from the SAP GUI menu bar, not the form designer menu bar, and it should be right above the Versioning option.  After selecting this, you will notice that you have an addition to your Hierarchy tab in the Form Designer that says
    (variables)
            |-----ContainerFoundation_JS
    This contains the code needed to make reference to your operation in the DO_OPERATION method of your BAdI.
    Hope this helps...
    Cheers,
    Kevin

  • How to handle form close event or escape key press event for user defined f

    Experts,
    Please let me know how to handle form close event or escape key press event for user defined form...
    Thanks & Regards,
    Pravin.

    Hi
    You can catch the form close event like this
    If ((pVal.FormType = 139 And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_CLOSE)) And (pVal.Before_Action = True)) Then
          Try
                   SBO_Application.SetStatusBarMessage(pVal.EventType.ToString())
          Catch ex As Exception
                    SBO_Application.SetStatusBarMessage(ex.Message)
            End Try
          End If
    Hope this helps
    Regards
    Arun

  • How to Trigger SY-UCOMM User Event  in ALV

    Hi Folks,
    Currently I have a classic ALV report where I need to remove all the standard ALV buttons and replace it with one custom button.  Given that, there is a parameter in REUSE_ALV_GRID_DISPLAY that deals with the user command event.  But during the debug/execution of the custom button, the value of sy-ucomm(R_UCOMM in my example below), is always blank.
    Moreover, I did some relevant search here in SDN also before I paste my F1 here.  If you're going to take a look at my code below, it's exactly the same as what the other relevant topic in user event in ALV.
      PERFORM pf_status_kanban  USING rt_extab.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = w_repid
          i_callback_top_of_page   = 'F_TOPOF_PAGE'
          i_callback_pf_status_set = 'PF_STATUS_KANBAN'  "Exclude ALV standard buttons      
          i_callback_user_command  = 'F_USER_COMMAND'     "Subroutine for SY-UCOMM
    *      i_callback_top_of_page   = 'TOP_OF_PAGE'
          is_layout                = t_alv_layout
          it_fieldcat              = t_alv_fcat[]
          it_sort                  = t_alv_sort
          is_variant               = t_gs_variant
          it_events                = t_events            "Events for AT USER-COMMAND
    *      IT_EVENT_EXIT            = 'AT USER-COMMAND'
        TABLES
          t_outtab                 = t_output.
    FORM F_USER_COMMAND  USING    p_r_ucomm   LIKE sy-ucomm
                                  rs_selfield TYPE slis_selfield.
      CASE r_ucomm.
        WHEN 'DOWNLOAD'.
          PERFORM f_generate_col USING t_output.
        WHEN OTHERS.
      ENDCASE.
    ENDFORM.                    " F_USER_COMMAND
    FORM F_USER_COMMAND  USING    p_r_ucomm   LIKE sy-ucomm
                                  rs_selfield TYPE slis_selfield.
      CASE r_ucomm.
    *    WHEN 'EXCEL'.
    *      PERFORM f_generate_col USING t_output.
        WHEN 'DOWNLOAD'.
          PERFORM f_generate_col USING t_output.
        WHEN OTHERS.
      ENDCASE.
    ENDFORM.                    " F_USER_COMMAND
    Thanks and regards,
    Jaime

    Hi Martin,
    Yes, I ensure that the function code in my custom button is exactly the same as the condition for the sy-ucomm.
    The call routine for the PF_STATUS_KANBAN is just a test since it seems like Iu2019m chasing a phantom issue here.
    Yes, w_repid is set correctly.
    DATA:
    w_repid LIKE sy-repid.                                              "Report ID.
    INITIALIZATION.
      w_repid = sy-repid.
    It seems like the documentation im reading
    Parameter R_UCOMM contains the function code triggered. is not happening as expected...
    Thanks.
    Jaime
    Edited by: Jaime Cabanban on May 7, 2009 10:16 AM

  • Standard backend service data vanishes on click of a button in HCM Forms

    Hi,
    I have a form which displays data from standard backend service SAP_PA and also from custom generic service.
    When I click on a button in the form, the data from SAP_PA is disappearing.
    Error message 'Please enter Personnel Number' is displaying.
    Please help me to resolve the issue.

    Hi Aravind,
    Thanks for your reply...
    Data is from standard backend service which is independent of user events..
    Data is displaying for the first time when form is dispalyed on the portal but when user clicks on any button, data is disappearing...
    Can you tell us the patch level of the system required for ESS MSS ??
    As of now our system patch level is 11,,
    This might be a  problem for data vanishing?

  • Opening /Attaching a BDS document to an HCM form (Adobe interactive)

    Hi Experts,
    We have a requirement to attach a document in the Adobe Interactive form used for Employee recruitment process.
    The document will be stored in the user's local machine.
    We are using HRASR_DT to design the recruitment process.
    We are not able to open the document from HCM form.
    Can anybody help us resolving the same?
    ~BiSu

    Hello,
    I don´t understand when/who/how do you attach files. I also don´t understand what does not work: who cannot read the attachments? The machine/SAP system or the user? In the step after the step when the attachments were attached? Orin any stpe? Please elaborate a little. This seems like a difficult problem (at least for me) and any additionl info could help a lot here.
    Regards Otto

  • HCM forms and Processes - Adobe

    Hi,
    I am working on HCM forms and processes( not QISRs ). I want to populate a drop down list based on the selection of another dropdown list, how can we acheive this in Adobe forms. Should I go about configuring some back end generic service? if so how will the backend service get triggered based on my selection.. Any idea on this is highly appreciated
    Thanks.

    Hi
    To archive  above functionality we can use  below simple method, if u r expectig same functionality through operations and custom event give me some time i need to recall some functioality(At present i am unable to acces MY SAP)
    Let my BADI name is   Z_Positions .
    Letu2019s define two attributes in my BADI like E_DATE and DD1.
    For to understand better create one methods as same as input and out parameters of Get_Help_Values method.
    So my methods is F4_Vac_Pos
    Method:- F4_Vac_Pos
                Read the entered  value of the Effective date (by reading service datasets with passing key as filename =E_Date)
    Once if we able to read the Effective date, cheek is initialize are not(value is there or not).
         If it is not initialize go ahead else return.
         If it is not initialize fill all vacant positions in DD1  based on by passing key as readied 
                       Effective date.
    Call this methods in get_help_values  method.
    From Configuration side:-
    Created Effective_date  and  F4_DD1attributes.
    Add your custom generic service to form (let assume  service no is 200 ).
    Go to the assignment of custom generic service; map the F4_DD1 form attributes to the BADI attribute DD1 and cheek default value and value help.
    The same way map form Effective_date attribute to BADI E_date (donu2019t select value help option)
    Now adobe java script:-
    Write the below piece of code on click method of button
    xfa.record.CONTROL_PARAM.ISR_EVENT.value = "USER_EVENT_CHECK";
    ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
    Data Flow:-
    Once the date is selected, click on the Button. As we know already for every round trip get_help_values method will call. Now it will call.
    As already effective date value is mapped to one of the custom badi attribute, so we are able to read this value through service data set.
    While filling DD1 values we are filtering data based on effective date. Now at badi level we are filtered vacant position based on effective date.
    As this one is mapped to F4_DD1 form attribute, once round trip is completed u will see filtered vacant position based on effective date.

  • HCM forms & process  loss of information after server roundtrip

    Hi  all,
    We recently updgraded our ECC system  to sap abap sapka70018, ADS 7.0 sp19.
    Our forms have stopped working, the issue is when the update information button is clicked to display information, all entered  information is lost. All forms were updated using sfp_zci_update and the script was updated. fp_pdf_test_00 was executed and the result is a different version than that updated in the scripts. Several notes have been applied.
    1. What is the relationship between the form script version and ADS, should it be the same and how to accomplish that task.
    2.  How to debug and find the user event called by the badi once the button is clicked ( button is embedded on the form and    called  by javascript)
    3. what is a possible solution?
    Regards,
    LM

    Hi Sridhar,
    Check this.. might helps..
    http://help.sap.com/erp2005_ehp_05/helpdata/EN/4f/202423bbde4f3ebbb2654069378ecd/content.htm
    http://help.sap.com/erp2005_ehp_05/helpdata/EN/aa/d4e0064cd0499f8d05bd587907f764/content.htm
    WD component HRASR00_PROCESS_EXECUTE - HCMPF
    http://www.surfingincognito.com/index.php?q=aHR0cHM6Ly93ZWJsb2dzLnNkbi5zYXAuY29tL3B1Yi93bGcvMjA5MDU%3D
    Cheers,
    Kris.

  • Drop down lists in Interactive forms:HCM Forms&Processes

    Hi Experts,
    I am working in HCM Forms and Process.
    I have 2 dropdown lists in my  interactive form such as COUNTRY, STATE. The STATE dropdown should be populated based on the COUNTRY field dynamically.
    I have written the logic for STATE dropdown in the method GET_STATES of  Custom Generic Service Implementation Class and that method is used in the OPERATION of FIELDGROUP in Form Scenario.
    The Java Script in the EXIT event for COUNTRY is as follows.
    xfa.record.CONTROL_PARAM.ISR_EVENT.VALUE = u201CGET_STATES";
    app.eval(u201Cevent.target.SAPSubmit();u201D);
    Still the the STATE lists is not populating in the form in Portal.
    Please provide some valuable inputs on this.
    Thanks in advance

    Hi Mukesh,
    Thanks for your response.
    It seems the script is not triggering .I didnt get the alert message.
    I am working in Citrix and SAP GUI 710 has been installed now. Still, I can't insert Webdynpro Script. It is showing one error "Error while inserting Webdynpro script".
    Earlier, in SAP GUI 640, I was able to see with the Data view with the interface import parameters. Now  the Data view(Left side of Layout)  has no elements , although the form is linked with an Abap dictionary based interface.
    Do you have any idea why these kind of errors are coming? Is this the problem with Citrix ?

  • Removing an invalid(disabled) domain user form user roles will cause vmmservice crash

    Removing an invalid(disabled) domain user form user roles will cause vmmservice crash

    SCVMM 2012 SP1
    Sorry, I can't find the error type, but only find some log:
    The System Center Virtual Machine Manager service terminated unexpectedly.  It has done this 1 time(s).  The following corrective action will be taken in 100 milliseconds: Restart the service.
    detailed xml info:
    - <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    - <System>
      <Provider Name="Service Control Manager" Guid="{555908d1-a6d7-4695-8e1e-26931d2012f4}" EventSourceName="Service Control Manager" />
      <EventID Qualifiers="49152">7031</EventID>
      <Version>0</Version>
      <Level>2</Level>
      <Task>0</Task>
      <Opcode>0</Opcode>
      <Keywords>0x8080000000000000</Keywords>
      <TimeCreated SystemTime="2014-02-18T03:09:32.149403100Z" />
      <EventRecordID>39151</EventRecordID>
      <Correlation />
      <Execution ProcessID="844" ThreadID="12512" />
      <Channel>System</Channel>
      <Computer>POV.europe.corp.microsoft.com</Computer>
      <Security />
      </System>
    - <EventData>
      <Data Name="param1">System Center Virtual Machine Manager</Data>
      <Data Name="param2">1</Data>
      <Data Name="param3">100</Data>
      <Data Name="param4">1</Data>
      <Data Name="param5">Restart the service</Data>
      <Binary>5300430056004D004D0053006500720076006900630065000000</Binary>
      </EventData>
      </Event>

  • Custom Workflow for custom HCM form - reg

    Hi,
    We have a custom form designed and having a workflow for that. We have developed the workflow like any other workflow for appraisals for example or in SD. But here while test run of process we are getting error saying 'Work Item not found' though the work item is present in SWI1.
    We have below steps.
    Header
    Importing form container
    User Desicion (Approve/Reject)
    If approved update database.
    Can any one correct me if am wrong.
    Raj

    Hi,
    For workflows involving HCM forms, there some standard tasks which should be made use of:
    Task Group TG17900001: Components for HCM Processes & Forms
    Task Group TG17900002: Interactive Components
    Standard Task TS17900100: Edit Form
    Standard Task TS17900101: Approve Form
    Standard Task TS17900102: Form Is Edited Again by Author
    Standard Task TS04000018: Process PD Form
    Standard Task TS04000019: Approve PD Form
    Standard Task TS04000020: PD Form Is Edited Again by Author
    Workflow Template WS17900260: Save Form with Error Handling
    Workflow Template WS17900404: Draft for Process Start
    Workflow Template WS17900418: Forward: Process Start with Errors
    Task Group TG17900003: Background Components
    Standard Task TS17900106: Check Existence of PA Infotype
    Standard Task TS17900107: Check Form Data
    Standard Task TS17900108: Save Form Data
    Standard Task TS17900110: Import Field Value to WF Cont. Element
    You can use TS17900110, TS17900101/TS04000019 and TS17900107. Please make sure you read some documentation before you use these tasks.
    Let me know, whether this is helpful.
    Thanks,
    Sukumar.

  • Can I create an HCM Form without involving any workflow steps?

    Hi Experts,
    Can I create an HCM Form without the involvement of any Workflow steps ? I tried to create a simple form to save the User id( IT0105) of a person. I tried to simulate the process through program RPASR_TEST_PROCESS_EXECUTION. But, finally it failed saying "No workflow assingned. Process not successfully completed" . How should I proceed if I dont want any workflow steps to be included?
    I just want the form to update the infotypes directly when I save.
    Pls advice,
    Thanks in advance!
    Mahesh

    Yes. This is undocumented for some reason (I learned it from SAP folks! haha). Set the workflow to:
    NO_WORKFLOW
    You're welcome. haha

Maybe you are looking for