Hiding fields in HCM forms

Hi Experts,
I have following requirement for  hiding fields in my form.
I have two screens MANAGER and HR screen.
now i have some input fields which has to be visible in MANAGER screen and
and should be hidden in HR screen.
please let me know how can i achieve this using form calc or java script.
any code will be helpful.
Thanks,
Santosh

Hi sushmita,
Thanks for ur reply.
The solution which you have given i have  already tried but not working.
my requirement is like MGR or HR can initiate the process.
if only MGR intiates the process the solution which u have given will work.
but here i have a diff scenario.i have created separate process for HR also but im not able
to see that process on the process list.
so i have to use only one process and resolve this.whatever im writing validation is working
only when MGR initiates the process but fails when HR initiates.
Hope u got my point.any suggestions will be helpful.
Thanks,
santosh

Similar Messages

  • Hiding fields in a form

    hiding fields in a Form is called what? How do I go about hiding fields in a form than having a button the user can click on to make the fields visible to fill out?  Thanks  Nick

    The "presence" property controls the visibility of form elements. 
    This eseminar explains the details:
    http://adobechats.adobe.acrobat.com/p87746471/
    Thom Parker
    The source for PDF Scripting Info
    pdfscripting.com
    The Acrobat JavaScript Reference, Use it Early and Often
    http://www.adobe.com/devnet/acrobat/javascript.html
    Then most important JavaScript Development tool in Acrobat
    The Console Window (Video tutorial)
    The Console Window(article)

  • Hiding Fields in Adobe Form

    Hi,
    I have some fields in my form that i want to hide. I added in some javascript into the button-click event. When previewing in the Adobe LiveCycle Designer, the fields are hidden successfully,but  when i press F8 button the fields are not able to hide.
    My JavaScript is:
    if(this.rawValue == null)
    this.presence = "hidden";
    Thanks.

    Hi,
    you can use as below,
    below Scripting can be used to ahcive this.
    1. FormCalc Scripting.
    2. JavaScript.
    Combination of both is also allowed in same form.
    Example:
    if( hasValue($) ) then
    StaticText1.presence eq u2018visibleu2019
    Else
    StaticText1.presence eq u2018hiddenu2019
    Endif.
    Thanks,
    Chandra

  • Hiding field in SAP PDF form

    Hi Experts,
    I am hiding a field in PDF form.
    But the problem is , form reserving space for that field after field hidden.
    Could any body tell how we can remove that space if we hidden the field.
    regards,
    subba
    Edited by: Shaik Basha on May 14, 2009 2:05 AM

    Hi,
    You have an option in for the field you want to hide in Palettes - > Object where you have mentioned it as invisible
    Instead of Invisible make it as Hidden (Exclude from Layout) so your space will not get reserved and it will not be printed on the form also..
    Hope this is what you have asked for.
    If not please explain the requirement more clearly.
    Thanks&Regards
    Sarves

  • Generic service to populate fields in HCM Processes and Forms

    Dear Friends,
      I am developing generic service to populate some fields in HCM Processes and Forms. Please let me know whether i need to develop a single service for each field in the form or is better to write one generic service for all the form fields.
    Thanks in Advance

    Hi Sapient,
    By right, generic service means to be generic so that it can be re-used in any HCM forms thats needed the field/validation from the generic service.
    Unfortunately in real situation, generic service are not reusable for some reasons:
    - for the same field same field might have different validation in different form.
    - there is dependency, example, to read special field
    The key thing here is all about the design and planing before development. Whereby if you have all the info and requirement HCM form to be implemented(which you wont get it for most of the cases), and you have the overall view of all HCM to be implemented and you are able to plan ahead before coding, then you can design the generic service for each/related field.
    If it is not the case, i would encourage to use 1 generic service for all the field in the HCM form. It would ease the team during support/maintenance phrase as well. For sample, please refer to HRMSSRCF_REQUISITION_ADVANCED for Create Requisition form.
    This is my humble opinion based on my experience working on HCM forms. Please do comments and discuss.
    regards,
    Xiang Li

  • Fill HCM Form fields in creation process

    Hi,
    I created a HCM Form, everything is working fine so far. i can create a form in the portal, the workflow is triggered and all buttons do what they should do.
    But i got a request, that the form should come up with some prefilled information.
    I implemented the IF_HRASR00GEN_SERVICE~INITIALIZE method and filled some fields with test information. But its not rendered.
    In this web blog
    http://weblog-42.blogspot.com/2010/04/hcm-processes-forms-howto-basic-generic.html
    I read that i have to call Transaction HRASR_DT to make the Backendservice the default. But this transaction is not available in my system. I also read that this transaction is only available in EHP 4.0 but we do not have this EHP and we do not plan to install it.
    Is there a workaround this or do i do something wrong?
    Best regards,
    Kai

    In the configuration you can make backend service as providing the default value.
    Personnel Management->HR Administrative services->Configuration of forms/processes->Configuration of forms
    ->Create form scenario
    Here in the form fields you can say default value coming from whichbackend service. For defaulting values,
    pass the value to the field in the INITIALIZE method, maintain the form scenario at the above mentioned place and
    in the form have the correct binding
    Thanks,
    Aravind
    Edited by: Aravind I on Jun 10, 2011 6:42 AM

  • Mandatory fields error messages in HCM forms and processes

    Hi,
    This may sound to be a very simple problem but I am unable to get to the root of the issue and thus need an expert advise here.
    I have created several forms in the system out of which one is an OM form using SAP_PD service for create position. There are few mandatory fields in the form scenario such as
    TITLE
    ABBREVIATION
    EMPLOYEE GROUP
    EMPLOYEE SUBGROUP
    As expected, system issues an error message if these field are left out blank but the error message is generic for all the fields and is missing the field name.
    Actual Error Message
    Complete the required entry field ""
    Expected Error Message
    Complete the required entry field "Employee Group"
    Complete the required entry field "Employee Subgroup"
    However, there are couple of fields in the form scenario which issues a correct error message
    Complete the required entry field "Object abbreviator" (P1000-SHORT)
    I am unable to identify the difference between the couple of fields that issues a correct message and rest 20 other fields which doesn't.
    Regards,
    Murtuza Kharodawala

    No, if I enter all the mandatory fields on the form then there is no problem. It allows me to move ahead and submit the form successfully.
    As recommended by Siddharth, I tried debugging the message class and what I observed was it passes the complete_fieldname value as Personnel Subarea (I1008_BTRTL) and system expects it to be I1008-BTRTL.
    SAP as a fallback tries to read description from the table T5ASRFSCNFLDT but it has a_form_scenario as blank and complete_fieldname has a concatenated value "Personnel Subarea (I1008_BTRTL)" instead of "I1008-BTRTL".
    Not sure what am I missing which causes it to have this wrong error message.
    Regards,
    MK

  • Field display in HCM form

    Hello Expert,
    Im having an issue in display of Static Text on form.
    I have a field of Work schedule in which i have to show values SCHKZ,RTEXT from IT0007.
    So i have writen below code for the field in Form calc.
    $.rawValue = Concat($record.I0007_SCHKZ.DATA[].FIELD, Space(1), $record.I0007_RTEXT.DATA[].FIELD);
    but im not able to see the value on the form.
    i have done all the Pre-requisites and infotype has the values also still im facing this issue.
    for other fields this code is working fine.but later requirement came to add this field in the form
    so i have added and done same things.atlast i tried with binding also but still its not working.
    Please provide some inputs how can i display the field on form.
    Thanks,
    Santosh

    thanks issue resolved

  • Hiding fields in phtmlb:formLayout (new thread)

    Original Thread:
    hiding fields in a bsp...
    What Kevin is talking about, is some special development we did for HR eRecruitement. Well, let us turn it around. They helped us, and we returned the favour. And yes, this is actually some of the more interesting bits and pieces of BSP. (Fresh meat to discuss:).
    Effectively, the <phtmlb:formLayout> has two functionalities. The first is a very easy way to layout a form. The second is a way via customization to dynamically have customers overwrite the visibility/required property of each field. So the SAP puts the maximum number of fields into the formlayout, and the customer can then via customization remove some, flag some as required, etc.
    (If anybody should feel like writing a long weblog on this, I will provide technical detail, plus examples offline.)
    The interesting database tables are these PHTMLB_FLI* ones. Part of the agreement was that the application itself provides for a UI to update the table. Also, the application itself controls which fields are changable.
    If you really want to play, look at SBSPEXT_PHTMLB, the formLayout example. In the top part, there are also a serious of dropdown listboxes. What these do, is that they update the customization tables first, before the formlayout is rendered. So what you are seeing is actually the formlayout as it has been programmed, plus then the effects of a (customer) customization on it.
    Also the example shows the effect of using an XML bee to dynamically add entries into the fieldLayout (if the application added these hooks).
    brian

    Hallo Thomas,
    No, unfortunately we never build something to also customize the labels. They HR colleagues did not ask for this :).
    I first started to write you here a loong text with answers. But then I got lazy, and searched my archive mailbox. Here below is the <b>draft</b> input that I wrote initially for the documentation. It describes everything pretty good. (But it is draft document, never proofread again, so read it lightly!)
    bye, brian
    <u><b>Why?</b></u>
    Typically when an application is developed at SAP, the developer must make provision for all possible fields of information that must be displayed and/or queried from the user. However, in specific business cases, or depending on specific country laws, all fields might not be required. Also in some cases, fields in one scenario can be flagged required, versus in another they are only optional.
    The typical starting point will be a complete formlayout done during the development. On top of this a customization layer is placed. The automatic reading and applying of the customization layer is automatically done by the phtmlb fL.
    <b><u>What?</u></b>
    For each field, a default behaviour is assumed. This is the behaviour that is defined by the developer during development time. For example, it could be specified that email address must be required. During the runtime it is now possible to overwrite the default behaviour with a customization entry for the field.
    The following options are supported:
    <b>As Defined:</b> The formLayoutItem in displayed as it has been defined during development.
    <b>Invisible:</b> The formLayoutItem is not placed on the formLayout. It is immediately removed. All following items below it, will be moved up to fill its position.
    <b>Hidden:</b> In this case, the formLayoutItem is placed on the formLayout, but not displayed. The item reserves its slot, and an empty slot will be displayed. However, after all items have been placed on the formLayout, a row "compression" is done, whereby all rows that contain only hidden elements are removed. Hidden is important for cases where columns next to one another must align. A typical example would be name & surname horizontally aligned. If now one item is invisible before this row, the two items will not be aligned anymore. With hidden, this alignment will be kept, and we still have the benefit of empty rows been removed.
    <b>Required:</b> Sets the required flag for the item. Label of item will be rendered an indication that it is required (usually little red asterix after the label).
    <b>Optional:</b> Can be used to customize a required field to be not required.
    <b>Read Only:</b> Field value is only displayed.
    <u><b>What is index?</b></u>
    Customization is stored for a formLayout under the key that is build from the BSP application namespace, BSP application name, plus the page/view on which the formLayout is placed. It is assumed that there will only be one formLayout per view. A typical example would be:
         SAP/SBSPEXT_PHTMLB/FORMLAYOUTSAMPLE.HTM
    In addition, a customization key must be specified. Typical examples would be to say this is the default customization for USA, or for the specific branchen Losuegn. The customization key must be supplied with the <phtmlb:fL> tag, and only then will the customization data be read from the database.
    <b><u>Tables</u></b>
    For customization there are three interesting tables.
    The first table PHTMLB_FLI is completed by the developer, and defines a list of all the formLayout items that can be customized. Only for those flItems which customization is possible, will entries be made in this table. The table contains three components:
    <b>NS_APPL_PAGE</b> This is the unique key that identies the formLayout, consisting of namespace, application and page/view.
    <b>FLI_ID</b> Id string of the specific formLayoutItem.
    <b>COMPONENT</b> This is software component to which development applies, for example SAP_BASIS for all BSP development work done by us.
    The second table PHTMLB_FLI_TEXT is just a language dependant text table that describes each item in the formLayout.
    The tables PHTMLB_FLI and PHTMLB_FLI_TEXT are not using during the runtime. They are only of interest for design time. Note that NO tools are provided to make any entries in these tables. This is considered to be in the application domain, and will usually be part of the customization process of the application.
    The third table PHTMLB_FLI_CUST is the only table that is read during the runtime. It is assumed that a customization tool has made the relevant entries for this table.
    <b>NS_APPL_PAGE</b> see above
    <b>VARIANT_KEY</b> This is the specific customization layer that is currently active. This string is equavalent to <pthmlb:fL  customizationKey>. It is used to pull a specific customization.
    <b>FLI_ID</b> see above
    <b>MODIFIER</b> This is the new value to apply. For the possible values, see DDIC domain PHTMLB_FLI_MODIFIER.
    For an example of customization, see BSP application SBSPEXT_PHTMLB, pages formLayout.htm. In this example, the customization can quickly be set via dropdown listboxes. On each request the PHTMLB_FLI_CUST is quickly updated and then the formLayout will find the set of new customization data to use.

  • F4 help for a single field in interactive form

    Hi Experts,
    I am working in HRAS process.I created a Form Scenario and an Adobe Form.  I linked my interactive form in portal using standard Start Processes iView . Now I have to create a value help(F4 help) for 'STATE' field based on 'COUNTRY' field value in adobe form.  I filled the Input value Help in the corresponding Form Scenario field. But in portal the adobe form shows the field as a single field only.
    How I can I attach the manual F4 help to 'COUNTRY' field?
    The how to  vary the F4 help values in 'STATE'  fied based on 'COUNTRY'  field?
    Do I need to code  in Java script for this?
    Please provide some inputs with code sample
    Thanks in advance,

    Lek,
    Check Nikhil's reply in this [thread|Re: Reg: value help from BADI is not displayed in the HCm form;. It should probably help you.
    Chintan

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

  • Dynamic fields in PDF form

    Hello Experts,
                           I have a requirement to design all fields in a form dynamically..!
    It means if the user selects speific fields in a custom config, the form should be genarated with only those fields.
    I know it can be done placing fields at design time and then hiding it later.. but I am looking for dynamic fields creation and position and setting its properties dynamically.
    Thanx for Ur time.. !

    hi,
    Did you try creating a composite form ?? The sap.help link to creating Dynamic forms is give below
    [link|http://help.sap.com/saphelp_nwce10/helpdata/en/44/bca11fc60b7006e10000000a155369/content.htm]
    Hope this helps
    Regards
    Manthan.

  • 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

  • TS17900100 in HCM forms and processes

    Hi All,
    For HCM forms and processes certain standatrd task and workflow templates are provided.
    Out of them of the tasks is TS17900100: Process Form. I suppose this task saves the infotypes in the backend system.
    If we see the object method for this class in PFTC, it is CLASS:CL_HRASR00_WF_COMPONENTS & METHOD: WI_EXECUTION_VIA_R3_INBOX.  But this method seems to be a dummy method. There is no ABAP code in this method.
    Would you please let me know where is the actual code which is executed for this task.
    Thanks
    Sameer Tapre

    No, if I enter all the mandatory fields on the form then there is no problem. It allows me to move ahead and submit the form successfully.
    As recommended by Siddharth, I tried debugging the message class and what I observed was it passes the complete_fieldname value as Personnel Subarea (I1008_BTRTL) and system expects it to be I1008-BTRTL.
    SAP as a fallback tries to read description from the table T5ASRFSCNFLDT but it has a_form_scenario as blank and complete_fieldname has a concatenated value "Personnel Subarea (I1008_BTRTL)" instead of "I1008-BTRTL".
    Not sure what am I missing which causes it to have this wrong error message.
    Regards,
    MK

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

Maybe you are looking for

  • Enhancement Spot BBP_ENHANCEMENT_SPOT, BADI BBP_ALERTING

    Hi Guys, BADI BBP_ALERTING is single use badi of Enhancement Spot BBP_ENHANCEMENT_SPOT. Is there any way i can have multiple implementation of this BADI and add few parameters to control the specific implementation. The above BADI is a SRM BADI. Than

  • Mailbox won't send until I quit & reopen

    Ok some very strange mailbox behavior a month ago - mail kept randomly picking up old emails from my trash & other folders and redepositing them into my inbox, and also would randomly resend some of them to users. No idea how or why that started... c

  • Is there any prize for Firefox OS apps developers?

    Hi every one, I heard that Mozilla is going to give any developer works at Firefox OS a mobile as a gift for prviding an app, is that true? And if so, how can I give theme my informations?

  • CSM Serverfarm Status OID

    Good afternoon I need your help. I´m trying to perform a snmp query to get the status of the reals of a serverfarm. Basically I´m trying to get an output that tells me if the reals of a specific serverfarm are Operation or Probe_Failed. What is the O

  • Cannot upload file to TFTP on Subscriber

    All, I have an 8.5 cluster (pub and sub). I'm trying to upgrade the phone firmware for one phone by uploading a file to tftp. I can upload the zip file successfully to the pub, but when I try the same thing on the sub in OS Administration, I get 'Wai