Skip to Content
author's profile photo Former Member
Former Member

ESS Who is who

Hi,

We are implementing Who is who component in ESS. One of the fields to be displayed is not available is the infoset /SAPQUERY/HR_XX_PA_ESS. SYHR_A_P0105_AF_TEL_E will return employee's phone number, provided that standard subtype is used. Since standard subtype is not used, can I add custom additional field, which does something like SYHR_A_P0105_AF_TEL_E do, only using custom communication subtype.

EP used is version 6.0 using Java Webdynpro.

p/s: I am functionally trained consultant, so please go slow if you are trying to explain ABAP concept to me.

Thanks

Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 03, 2008 at 10:13 AM

    Hi

    if you have found a solution other than the one i am going to explain, please let me know

    the customizing steps are correct

    if you give your additional field name your own name

    example ztel it does not appear on ESS

    but you can use field names: GEBNR, 'ZIMNR, 'KFZKZ,

    TEL_EXT' ,'TEL_NR', EMAIL

    you then need to put some abap logic behind the field to fill the field

    this code will explain . this is what gets passed to ESS

    function: HRXSS_COD_GET_DETAILS

    you can run it in test mode to test

    LOOP AT wiw_detail_table INTO wa.

    IF wa-fieldname = 'GEBNR' OR wa-fieldname = 'ZIMNR'

    OR wa-fieldname = 'KFZKZ'.

    CONCATENATE p0032_prefix wa-fieldname INTO wa-fieldname.

    APPEND wa TO detail_table.

    ELSEIF wa-fieldname = 'TEL_EXT' OR wa-fieldname = 'TEL_NR'

    OR wa-fieldname = 'EMAIL'.

    CONCATENATE p0105_prefix wa-fieldname INTO wa-fieldname.

    APPEND wa TO detail_table.

    ELSEIF wa-fieldname = 'P0032-GEBNR' OR wa-fieldname = 'P0032-ZIMNR'

    OR wa-fieldname = 'P0032-KFZKZ'

    OR wa-fieldname = 'SYHR_A_P0105_AF_TEL_EXT'

    OR wa-fieldname = 'SYHR_A_P0105_AF_TEL_NR'

    OR wa-fieldname = 'SYHR_A_P0105_AF_EMAIL'

    OR wa-fieldname = 'SYHR_A_P0105_AF_CELL'

    OR wa-fieldname = 'SYHR_A_P0105_AF_FAX'

    OR wa-fieldname = 'SYHR_A_P0105_AF_PAGR'.

    APPEND wa TO detail_table.

    ENDIF.

    ENDLOOP.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 14, 2008 at 08:25 AM

    Chris,

    Thank you for the reply.

    Could you give some pointers as how to 'modify that infoset and add that field ' ?

    Do I need to create a customized structure, ie to create new structure like P0105_AF ?

    Thank you again

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 11, 2008 at 12:27 PM

    You could modify that infoset and add that field or create your own custom infoset and make that the basis for your Who;s Who. I have done it both ways in the past....the second is more flexible since it is "yours".

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 10, 2008 at 04:28 AM

    At the moment, this is the code that I have. I added additional field zsyhr_a_p0105_af_ofpn.

    IF pnp-sw-found EQ '1' and not zsyhr_a_p0105_af_ofpn is initial.

    select single usrid into zsyhr_a_p0105_af_ofpn

    from pa0105

    where usrty eq 'OFPN'

    and begda le pn-begda and endda ge pn-endda.

    zsyhr_a_p0105_af_ofpn = p0105-usrid. " earliest.

    ENDIF.

    Result is nothing. Any more help ?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2008 at 12:51 AM

    Hi all,

    Problem is solved. Instead of putting the codes into start-of-selection, I should have put them into record processing. And that solved it.

    To everyone who replied. Thanks for the effort

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.