on 09-22-2008 12:38 PM
Hi Experts...
I am new to CRM SAP....
I need help regarding Infotype HRP1001....
i am trying to implement search help for partner number...
It stores the relationships...but my requirement is to get
details of users of Specific Positions...like Name,ID etc from BUT000 using the data available(like SOBID) from HRP1001..
Is it possible?
All I need is to first get Users assigned to Positions and then
display their BP details ...Is it possible to link the two tables?
Or is there any other table that would be of some help ?
Kindly help me out...
Thanks in advance...
Hi,
first you get the all connected partners to a position by selecting SOBID from hrp1001 (with OTYPE / OBJID of position, RELAT = 008, SCLAS = CP).
With this SOBID go again to HRP1001 and fill the SOBID into OBJID (with OTYPE = CP, SCLAS = BP) and the SOBID of the result is the connected partner number.
You can also use FM 'CRM_CENTRALPERSON_GET' instead of the last SELECT-Statement. Here IV_PERSON_ID = SOBID (of first select). You get the partner guid and can get data of the partner from but000.
Regards,
Claudia
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
as I understand you want to use the values in a search help popup for a field on the UI (V_GETTER).
One possibiltiy is you create an own valuehelp and refer to it or you can create a class that implements the interface IF_BSP_WD_CUSTOM_F4_CALLBACK (help_id = class and help_id_kind = A).
Regards,
Claudia
Hi..
Yes, That is true..i need to implement value help for a UI field...
But i am stuck as i don't know where to implement the method.
How could i identify the correct class?
Or can i use any class that implements the method IF_BSP_WD_CUSTOM_F4_CALLBACK ?
Should i include the method IF_BSP_WD_CUSTOM_F4_CALLBACK in context node class or controller class?
Where do i write my own select statements?
Will the selected values be displayed automatically?
Thanks a lot...
Hi,
you can create a new class, that implements the interface.
You can also add the interface to your context node class / controller class.
If you want to use the help more than once, you should create a new class.
Be sure to redefine the method RETRIEVE_CUSTOM_VALUES. Here you can add your own coding and fill the ct_result_tab with your values.
In the V_GETTER of your UI field place following code:
DATA:
lv_fieldname TYPE name_komp,
ls_map TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
lt_inmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
DATA:
lv_fname_prefix TYPE string,
lv_idx_string TYPE string.
CONCATENATE 'STRUCT' lv_fieldname INTO ls_map-context_attr SEPARATED BY '.'.
ls_map-context_attr = 'FIELD'. "fieldname of context node
ls_map-f4_attr = 'KEY'. "#EC NOTEXT
INSERT ls_map INTO TABLE lt_outmap.
INSERT ls_map INTO TABLE lt_inmap.
CREATE OBJECT rv_valuehelp_descriptor
TYPE
cl_bsp_wd_valuehelp_f4descr
EXPORTING
iv_help_id = 'ZCL_CUSTOM_HELP' "class name (implementing the interface)
iv_help_id_kind = if_bsp_wd_valuehelp_f4descr=>help_id_kind_callback
iv_input_mapping = lt_inmap
iv_output_mapping = lt_outmap.
If you open the valuehelp of the field, the method RETRIEVE_CUSTOM_VALUES is called and you get the list with the filled values in a popup.
Regards,
Claudia
User | Count |
---|---|
8 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.