cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

ChrisSolomon
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Chris,

Thanks for reply.

So you mean ALL the SAP standard customizing MUST be reproduce in operations.

If I understood ALL things that happened in SAP standard plus ALL user exits plus ALL dynamic actions must be reproduce??

There is too much SAP standard checks, it make NO SENSE to reproduce all the SAP standard checks??

I'm not sure that we need to do the work 2 times for the sap standard. It's irealistics....

And how can I retrieve all the standard checks.... I'm confused by those things....

My goal is to have an adobe form that will create PA infotypes, so that's mean create FORM/ISR scenario etc. BUT what about the checks on fields, in PA40 when you put a value for the FULL-TIME salary then the PART-TIME salary is calculated thanks to the employment percent. So I'm not convience that's all the standard stuff mest rewrite a second time??

If you could give me more details on that, how to do it, example it will be great.

Best regards,

Louis

Former Member
0 Kudos

Hi Chris and others too,

Your points on this post have been very useful.

We are facing a similar issue with our Adobe Forms for HCM P&F. We are trying to initialize a drop down list with values when the form loads up.

We first defined that field in generic service badi. Then we defined the field in method Get_field_info and then assigned a operation to that field in get_operations and then populated the drop down in get_help_values method. In the form scenario we used the field from this back end service. There is no link to any standard service.

Followed all the steps mentioned here to fill up the help values. We are able to see the values in the help table in debug mode as well as in the RPASR_TEST_PROCESS_EXECUTION test program.

However, there still seems to be some issue. The value list does not reflect on our form field.

In the form scenario, while including the service field we chose the field from our operation. Also, specified the generic service name in the Input Help column.

Do you think we are missing something in HRASR_DT? Any other setting to be made?

As of now, we have included an ISR DropDownList field and bound it to the same field as above. Also given that vhlist line in the 'Specify Item Values' with text and key. Do we need to do anything else on the form?

Your inputs will be really useful. Looking forward to inputs from you on this.

Thanks,

Teja

Former Member
0 Kudos

Hi Teja,

Are you using dropdown component from OSS note 973170?

regards,

Prakesh

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Prakesh,

Thanks for your answer. Yes I need some helps because I'm still confused.

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?

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Mukesh,

Thanks for reply but my question was How can I do to see the dropdown values in my form preview??

Currently when I look on my form preview I only see a dropdown button AND when I clicked on that button nothings happens.

I want to be able to see the default values coming from backend for e.g.: different Employee Group.

Hope my question is much clearer.

Thanks

Louis

ChrisSolomon
Active Contributor
0 Kudos

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.