on 02-04-2014 1:06 PM
Hi Experts,
In my current project we are implementing HCM Processes and Forms(Web Dynpro UI). Technical environment : EHP6, SP10.
In one of my forms, I have a field called 'New position'. Basically the manager will enter a new position number for an employee(its like a transfer process).
Now, for the position field I have to create a search help and in that only those position should be shown which is under the mangers org structure.
The standard search help from SAP_PA shows all positions(structural authorizations not working in that.).
So I used Web Dynpro search help and assigned the standard web dynpro component "PTM_POSITION_VH". The list of positions that its showing is perfect. But the problem is when I select a position from the list and click on transfer, the window is getting closed but the value is not getting populated in the form field.
Any ideas what might be going wrong..?
Many thanks in advance.
Regards,
Saikat
Saikat,
Please refer to SAP Note 838074..
Regards,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try like this
wd_comp_controller->help_listener->f4_context_element->set_attribute( name = '<HCMPF_FIELD_NAME>'
value = <Value to be passed to HCMPF>).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Copy the component PTM_POSITION_VH into a Z component and add code at the end of method FILL_SELECTION of component controller to set attribute of context element listener-> f4_context_element with value selected. listener->F4_ATTRIBUTE_INFO-name can be used as the name of the attribute.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Manoj and Yugandhar,
Thanks for your answers on the transfer data thing. Now its transfering the selected value correctly. But I have hit another road block and so I am reopening this thread again.
The data is getting transferred correctly in the form field but after that in the debug mode I can see that the newly transferred data( the one that I selected from the search help) is not there, but the initial value is there as the value of that field.
Am i missing something guys..?
Many thanks in advance.
Saikat.
Check if this approach helps..
Use this code in set_value_help_listener
for e.g to read effective date.
wd_this->help_listener->f4_context_element->get_attribute( EXPORTINGname = 'EFFECTIVE_DATE' IMPORTING value = wd_this->gv_eff_date )
on the same lines to set the required fields set ....->set_attribute.
Check if you implemented the correct interfaces.
Refer to SAP documentation here:
As well as these resources :
http://www.saptechnical.com/Tutorials/HRABAP/Search/Index.htm
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.