Skip to Content
avatar image
Former Member

Problem to see the backend values within dropdown list. HCM P&F

Hi all,

I'm implementing an HCM process with HCM Process & Form. My question is I linked the value help to the generic service for the Employee Group and Employee Subgroup field in Form scenario config. The problem is that I cannot see the dropdown default values.

I.e.: when I do a preview of my form within adobe live cycle designer, I only see the dropdown button without getting any values from the backend. I miss steps...

I'm wondering if I need to program something within generic service badi??? Defining Employee group and Employee Subgroup fields in methods Get_field_info ? should I create any operation for that??

As I said what I required is when I do a preview of my form I want to see the default backend values for my dropdowns list.

Any idea?

thanks in advance,

Louis

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Sep 28, 2009 at 07:22 AM

    Hi,

    You can test the values via the http://<server>:<port>/sap/bc/webdynpro/sap/asr_process_execute.

    The PDF preview is useful to check the layout and scripts.

    Kind Regards,

    Mukesh

    Add comment
    10|10000 characters needed characters exceeded

    • You can't do this. Form Preview does not do that. At most, you can set it up to run your Javascript (or what not) but not to do anything related to running the HCM P&F config (ie. calling service operations). There is WAY too much going on during run time for this to be possible during design time (ie. form layout/preview). It's not too much work to simply run your process though and see what your form does in run time.

  • avatar image
    Former Member
    Sep 29, 2009 at 08:18 AM

    Hi Louis,

    You can test your backend services using transaction code

     hrasr_test_process 

    .

    Just Put in process name, employee number, and role of initiator and test the dropdown value using initalize or check button.

    for your information.

    Initialize button will trigger the backend services initialize method, it behave exactly the same as you trigger round trip with isr_event = 'INITIALIZE'

    Check button will trigger the backend services IF_HRASR00GEN_SERVICE~DO_OPERATIONS and method, it behave exactly the same as you trigger round trip with isr_event = 'USER_EVENT_CHECK '

    This is fast and useful to check the logic and data populated from backend service is correct with involve the form.

    Let me know if you need further help.

    regards,

    Prakesh

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Loius,

      I must populate the dropdown values in the "if_hrasr00gen_service~get_help_values" method, in order to see the dropdown values when I will test it via transaction hrasr_test_process? I thought it's automatically done since I linked the field with the backend service SAP-PA ??

      Could you provide an example for the get_help_values method pls?

      Generic service and SAP_PA (backend services provided by SAP) are 2 different sources to manage the field.

      For get_help_values example, please refer CL_IM_HRRCF_REQUI_REQUEST advanced generic service from SAP.

      This is generic service used in create requisition form. Generally idea is, you need to populate the value for dropdown list and assign the table to correspond record in HELP_DATASETS.

      As i said before, hrasr_test_process is to test the process without form involvement. This is to make sure your process is behave correctly before you actually use it through a form.

      Secondly coul you tell me if the standard checks are automatically taking into account??

      E.g: in pa40 hiring action when you enter fulltime salary, the system calculates automatically the part time salary based on the employment percentage. The same for the "Total amount working hours per year" field.

      So the question if the standard sap operation or checks are taking into account otherwise if we need to reprogram... no sense.

      Agree with Chris, nothing is free. You need to implement this in generic service. Normally we implement this in do_operation method of generic service, and populate the field value (eg part time salary value) by changing correspond record in SERVICE_DATASETS.

      You can go through Chris blog to see which article may related to this implementation. Else, give me your requirement here, i will try to help as much as i can.

      regards,

      Prakesh.

      Edited by: Prakesh Gupta on Oct 5, 2009 7:22 AM

  • Sep 29, 2009 at 05:36 PM

    For your questions...

    1. I don't think you understand what is going on there. DEPENDING on where you help values come from....either your OWN generic service or a SAP standard service.....it will be handled accordingly. You still have to set this up in configuration. a. set the help value (value help) to come from the selected service. b. set the DEFAULT value to come from your selected service. If you do NOT set "b", then you will NOT see values at the beginning (ie. during Initialization). If you don't set this, then ONLY the "check" event (or possibly if you set up a user event) would your service's operation be triggered to set the help values for you. Make sense? And lastly....I have NEVER used the "help values" operation.....I take care of this in a normal "do operation" operation....which the documentation will tell you to use one or the other but never both. I find the "do operation" version more flexible for me.

    2. Simple answer...NOTHING is automatic (unless set up in your decoupled infotype framework config). More here in one of my blogs...

    /people/christopher.solomon/blog/2009/06/24/hcm-processes-forms-user-exits-dynamic-actions-change-pointersplease-check-your-expectations-at-the-door

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Teja,

      Are you using dropdown component from OSS note 973170?

      regards,

      Prakesh

      Edited by: Prakesh Gupta on Mar 17, 2010 7:28 AM