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

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

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

  • HCM form hangs on some machine

    Hi,
    We are having problem that HCM forms hangs only on certain machines. Its spins forever. No standard or custom event can be submited. Exactly same forms from the same location works fine on other machines. it looks like setting on some machines blocking request.
    Does anyone have any ideas of what's wrong?
    Thanks,
    Oleg

    We also did some client trace and on the client machine we see the trace
    15:07:43.879 Got a message from Adobe Reader: log 1: error: Adobe Acrobat Professional: 2010-02-15T20:07:43.859Z: Error installing message handler: message:HostContainerDisclosurePolicy is not defined fileName:Doc:Init lineNumber:769 stack:RegisterMessageHandler()@Doc:Init:769 RegisterMessageHandler()@:0 @XFA:data[0]:ready:13 name:ReferenceError 2: 3:
    on the working machine instead of this we see
    15:12:27.925 Got a message from Adobe Reader: zciReady 1: 2: 3:
    also then on broken one we see
    15:07:44.631 onError: number: 0 description: message: Target document not disclosed. name: MessageDocNotDisclosedError
    Any idea what might cause this kind if error on some machines.
    Thanks,
    Oleg
    Edited by: Oleg Sokolov on Feb 15, 2010 9:17 PM

  • Issue with SAP_PD Service in HCM Forms

    Hi Experts,
    I am facing this issue when trying to create/update a Position using HCM Forms.
    We have the HCM_ASR_CL_2 Business Function Activated
    We are on EHP4.
    I am trying to create/update a position using forms - SAP_PD Service and facing the below mentioned issue -
    When I am trying to add the Object Type S in the LEAD_OBJECT_ID, I get the error - Object type S not supported.
    As a workaround that I got from a help.sap - 3.In the navigation pane, go toValidity Period.Enter Start Object Type as S = Job, enter Application Type as PD. - Even this workaround doesnt work!
    Am  I missing some config here?
    Also, once we activate the Business Function - do we get the node for SAP_PD in IMG just as we have for SAP_PA and SAP_PT service?
    Please help!!!
    Thanks

    Any reponses?

  • Return function module result to HCM form using backend service

    Hi
    I'm trying todo something very simple.
    I would like to call a FM using a backend service and return the result of the FM to the HCM form.
    I'm using USER_EVENT_CHECK on button to initiate the call.
    Here is my dooperations, I have omitted the calling of the FM.  I just want to return the changed text to the form in this example.
    I have stepped through code using external breakpoint and the field gets changed succesfully in the service_dataset
    method IF_HRASR00GEN_SERVICE~DO_OPERATIONS.
      DATA service_operation_wa TYPE hrasr00genserv_operation.
      DATA service_dataset_wa TYPE hrasr00gensrv_dataset.
      DATA dummy TYPE string.
      DATA message TYPE symsg.
      FIELD-SYMBOLS <service_dataset_wa> TYPE hrasr00gensrv_dataset.
      DATA inputText TYPE string.
      LOOP AT service_operations INTO service_operation_wa.
        CASE service_operation_wa-operation.
          WHEN C_CVRT_OPERATION_NAME.
            LOOP AT service_datasets INTO service_dataset_wa WHERE fieldname = c_oldText_fieldname.
              inputText = service_dataset_wa-fieldvalue.
             MODIFY service_datasets INDEX sy-tabix  FROM service_dataset_wa TRANSPORTING fieldvalue.
              exit.
            ENDLOOP.
            LOOP AT service_datasets ASSIGNING <service_dataset_wa> WHERE fieldname = c_newText_fieldname.
              EXIT.
            ENDLOOP.
            IF sy-subrc = 0. "entry found; must not necessarily exist
              CONCATENATE inputText '-TEST-' inputText INTO <service_dataset_wa>-fieldvalue.
            ENDIF.
        ENDCASE.
      ENDLOOP.
    endmethod.
    Any help will be appreciated.

    You could use 'CU_READ_RGDIR_NEW' to get payroll directory RGDIR, 'PYXX_READ_PAYROLL_RESULT' to read results (RT, CRT, ...) from specific entry in payroll drectory.
    Rgds.

  • Error: Organizational Assignment created via Orgnizational Management in HCM form

    Hi All,
    I am getting below error while moving an EE to certain position via HCM form.
    I have cheked and found that if an org unit is to be assigned to another cost center in Organizational management from a certain date, this action generates a new record in infotype 0001 for integrated persons from the date of assignment to the new cost center and if we perform any action which would be deleting the new record (created from OM) in IT0001 then this error would populate.
    Here is the the same case a new Cost Centre has been assigned with the orgunit and a new record is creaed in IT0001 from the OM but when I am performing the same action via PA40 then I not getting any error, the error is occuring from the form only.
    Can you please help me to resove this error and provide me the reason why it is not occring when I am performing the same action from PA40.
    Regards,
    Mayank

    Hi Mayank,
    I think you will be triggering Job Salary Form for the action you have mentioned. Please check in the Tcode HRASR_DT for the form name as I have show below from my development system. In Back-End services - SAP_PA - Infotypes and Operations and for Infotype 0001 check what is the operation that you have maintained.. It should be "change" to avoid the error message.
    For PA40 action you would have configured the same as "change" thats why you are not getting error message in PA40.
    Thanks,
    Sriram

  • Form Events in Acrobat 9 Standard

    I'm trying to programatically have my form fields highlighted when opened by a user in Reader.  I've seen some other posts recommending setting the app.runtimehighlight event to true but I can't find the form events.  Any help would be appreciated.

    Acrobat 9 Standard does not have direct access to the document level scripts. So with a one page form you could add the code to the open page action. You will need to open the 'Page' or 'Thumbnail' navigation page, select the page, right mouse click and select the 'Page Properties" and add the script using the 'Actions' tab.

  • How to Edit a custom HCM form directly after Employee selection?

    Hi All,
    As per the requirement, the Manager should have a tab in Portal called "Forms and Processess"  and on click of that he should see a Page with few hyperlinks . Each hyperlink is the name of a HCM Form.
    So,  the Manager will click on one of them to start a particular form. ex. One time payment
    After clicking, he should have the Employee search result having Direct reports under STEP "Select Employees".. But the next STEP has to be "Edit" instead of "Select Process" and the Form "One time payment" should directly Open for him to work on.
    Please help me providing the relevant information and the approach. Let me know if you need any additional information.
    Regards
    DK
    Edited by: DIPENDRA MOHANTY on Mar 11, 2011 12:05 AM
    Edited by: DIPENDRA MOHANTY on Mar 11, 2011 12:06 AM

    we do have selection of employees or search and you can choose a form?
    If you want to change it, then only option is WD ABAP Iviews custom
    But i still didnt fathom the need of teh approach above, does the standard doesnt meet the requurement? Please check it
    which is pretty flexible

  • Attachment Buttons not coming in Task TS17900101 of HCM Forms and Process

    Hi ,
    We are using HCM Forms and process for changing employee organization unit which is linked with workflow for approvals.
    In this workflow we are calling standard task TS17900101 .Till now every thing is working fine but the problem is with attachments as their is a requirement to show attachments button with this Approve and Reject Task. But as per my knowledge SAP has not given any option to attach documents with this task which is however only possibe through TS17900100.
    So can u suggest any way to attach documents with Approve and Reject Task which is TS17900101.
    Thanks,
    Rahul

    Hi,
    i have the same problem and no idea how to solve it.
    Please let me know, what enhancing module pool code helped you
    Thanks,
    Galina

  • 8.1 equivalent of portlet:form event=bea.portal.framework.internal.refresh

    I've got a portlet with an edit JSP that allows the user to set some portlet settings. The edit JSP uses a form defined with the tag <portlet:form event="bea.portal.framework.internal.refresh" >. This in essence allowed the edit JSP to submit the form to itself, so it could then process (store) the settings.
    This tag is no longer supported in 8.1. I haven't been able to find what the equivalent is. Am I going to be able to do the same thing, or am I going to have to rewrite the Edit piece as a page flow?

    I've already tried that and it's not working in my current portal.
    The other things I've tried are <render:postBackUrl/> and <render:windowUrl> for the form action, and they weren't working, either. But since then I've discovered that in a new vanilla portal installation, the <render:postBackUrl/> action works fine (I assume the controller would, too, but I didn't try it).
    It seems I now have a different problem to work through to figure out why <render:postBackUrl/> works in a new installation, but not in my current one. The same goes for the controller.

  • Time taking to open HCM Forms on portal.

    Hi,
    The entire development of HCM Forms and Process has successfully completed. Now this interactive form is taking too much time to open, for example time taking is from 30 sec to 60 sec. But client bench mark time to open any adobe form is 6sec. Actually does client benchmark is right? Second, how can we avoid this issue?
    Regards,
    nspkumar.

    Nikhil,
    Thanks for the response, but I didnot get replacing existing form template with the new one in LiveCycle Designer.
    Can you please elaborate in more detail.
    Regards,
    nspkumar.

  • Standard HCM & forms Process development using WD4A

    Hello All,
    We are planning to implement applications of Standard HCM & forms Process using WD4A same like standard create Position u2026etc. to avoid Adobe forms.
    Could you please share your advises, suggestions and approach to be followed. Best feasible solutions.
    To meet the same like standard solution what are the precaution need to take into the consideration?
    Can you any provide how the standard HCM & forms Process  technical flow and logic.
    Where I can find the technical information of the Webdynpro Component: HRASR00_PROCESS_EXECUTE. If you any please share the same.
    Thanks in Advance.
    Regards
    SS

    If i understand you correctly you want to replace adobe with WD4A
    it was done here
    refer here
    /people/brad.pokroy/blog/2010/10/05/web-dynpro-forms-using-hcm-processes-and-forms
    While investigating and figuring out the best way to classify a form as a "Web Dynpro form" opposed to an "Adobe form", that was one of the routes I looked into. in transaction QISRSCENARIO I started going the route of a fixed value append to domain QISRDPROCESS_TYPE and adding a new value fixed value 'W' - Web Dynpro Forms. It ended up that it would need a bit more work than just that. And I was advised that much of the data in view V_SCENARIOVERSN was populated automatically via transaction HRASR_DT opposed to QISRSCENARIO, so it wasnt the best way to do it via that field.
    Edited by: Siddharth Rajora on Apr 27, 2011 6:03 PM

  • Using Digital Personnel File for HCM Forms & Processes

    Hi,
    We would like to use Digital Personnel File for HCM Forms & Processes to save forms and attachments using record case management. For this to be done record case management needs to be customized. Can you provide the steps for record case management customization and integrating digital personnel files with HCM forms.
    Regards,
    Amit

    http://help.sap.com/erp2005_ehp_03/helpdata/en/43/1d63953fce3566e10000000a11466f/frameset.htm
    Refer here

Maybe you are looking for

  • Downpayment of 20% of a  vendor's  PO

    Dear experts, Is there a way to define a downpayment request (F-47) by a percentage of a vendor's PO without specify any line, and as a result SAP will calculate and assign downpayment to each PO line by this percentage ? Thanks Yaacov

  • Smart motors program

    Hi, This Sam,I am quite new to labview (have been using it for about a week) I have recieve a project for making a program for Smart motors. I was unable to write a program to my smart motors . I have searched this forum and found little tidbits to h

  • Cpufreq error message after updating to udev 084-3

    Since the update to udev 084-3 i get a new message in /var/log/errors.log : Feb 12 11:54:28 julius cpufreq: No nForce2 chipset. I have a VIA KT-266 chipset, so the message is correct. However, i have not installed cpufreqd/cpufrequtils. Anyone have a

  • 5233 camera unable to open.

    Hi i am using nokia 5233 nd i cnt able 2 open it ....so guys pls help me... Solved! Go to Solution.

  • Question about "SAP for Consumer Products"

    In our contract with SAP, I have license to "SAP Customer Service Management for Consumer Products" and "SAP Sales Execution for Consumer Products". I would like to Know, Where I can find in my SAP system that I realy have this solutions instaled ? R