cancel
Showing results for 
Search instead for 
Did you mean: 

Help needed...Infotype HRP1001--Getting details OF Position Users...

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi

I am working in web UI enhancement.

I am trying to implement it using search help/views....Is it possible to loop in search help/views?

Thanks ...

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi...

Which is the superclass from where i should be inheriting the interface?

Can i use any superclass having the interface?

Does the output window depend on the std. class ?

Thanks..

Former Member
0 Kudos

Hi,

you do not need a superclass.

Just create a new class a go to the tabstrip "Interfaces". Here add the interface and your class will get a new method from the interface.

Double-click on the method and now you can do your coding.

Regards,

Claudia

Former Member
0 Kudos

Hi..

Thanks a lot for sharing the valueable info.....problem solved!

Thanks...

Answers (0)