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

Customization to allow for Employee's Supervisor to appear in PA20

Hello Experts,

We have just implemented PA and OM in our company. We do have the link between PA and OM turned on. The business would like to research a custom solution that will allow the employee's supervisor to show in the employee's PA20 record. Does anyone have any suggestions? We already have adhoc queries and custom ABAP reports to do this. We are looking for a custom solution to show the supervisor directly in the employee's PA20 record. Is there a user exit that can be utilized? Any other ideas?

Any help would be greatly appreciated.

Regards,

Kurt

Add a comment
10|10000 characters needed characters exceeded

Related questions

7 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 27, 2009 at 04:13 PM

    Appreciate the attempts to answer the question here on how to show the Supervisor's name on PA20. Unfortunately, the solutions posted here are when IT0001 has the Supervisor already stored in the field MBSTR. The problem here is that Supervisor in this system is setup using the HRP1001 relationship to infotype A002. This means the solutions noted here cannot be used to solve the issue. With this in mind, does anyone have some ideas or what they've seen used?

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Kurt:

      As i mentioned in one of my response.. change the screen header of IT0001, rather than trying to get custom field to store the information on Infotype 0001.

      The field OMNGR_NA( OM Manager Name) is available for screen header configuration. If this does not work, i will be curious to know what is the requirement you are trying to meet.

      cheers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2009 at 03:32 PM

    This is what I have done.

    Add two cusotm fields to IT0001 called PERNR and name.

    In the PBO of this new screen retrieve the manager PERNR and name using the PD and PA tables.

    Ensure that there is no reporting done on this two custom fields

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2009 at 08:41 PM

    You can edit the infotype screen header to show a field called OMNGR_NA( OM Manager Name) under field list for infotype 0001.

    This works well for most of the customers. This will show up on screen header under PA20 TCode.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2009 at 09:32 PM

    Hi,

    First go to PM01 => Go to the third Tab "Enhance Infotype" => Enter 0001 => Select CI_Include => Create => Mention your new field over there => Activate. Come back and click "Create All". Now the new field is created and a Module Pool Program ZP000100 is created. Now go to SE51 => ZP000100 => Screen 200 => Change => In the PBO Logic "Module_PBO_0001", write the logic to retrieve the supervisor of the Pernr ( by using p0001-pernr ) and default it to the new field.

    Hope this helps.

    Thanks!

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 13, 2009 at 08:34 PM

    There is actually an OSS note on this topic, but here is what you do. The logic is in the infotype 0001 screen already. It is just inactivated.

    To activate it, edit module MSTBR in program include MP00012U like this below:

    *{ DELETE DEVK960807 1

    *\ IF PLOG-ACTIVE = 0. \

    *\ "VQLK106332

    *\ LOOP AT SCREEN. "

    *\ CHECK SCREEN-NAME EQ 'Q0001-MSTBR'. "

    *\ SCREEN-INVISIBLE = 1. "

    *\ MODIFY SCREEN. "

    *\ ENDLOOP. "

    *\ ELSE. "

    *} DELETE

    CLEAR Q0001-ENAME.

    MOVE P0001-MSTBR TO Q0001-MSTBR.

    IF Q0001-MSTBR NE SPACE.

    PERFORM GET_SUPERVISOR_NAME.

    ENDIF.

    *{ DELETE DEVK960807 2

    *\ ENDIF. \

    *\ "VQLK106332

    *} DELETE

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Kenneth,

      We are experiencing the same problem from this post. Your code changes seem to be the fix to show the Supervisor field on Infotype 0001, but you mention an OSS Note. And we cannot find an OSS Note that provides these code changes. I realize this is a very old post, but do you know the note number?

      Thanks and regards,

      Tom

  • author's profile photo Former Member
    Former Member
    Posted on Oct 27, 2009 at 07:27 PM

    SCORE!!! Yes, Uma is right on this one, the first time I'd put OMNGR_NA in the header, it didn't show correctly, but a little trial and error and voila! This is a definite solution to our problem.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 27, 2009 at 10:37 PM

    Sure! The toughest part is not that adding the new fields, it's that space on the header is premium, so one must ultimately then decide where to put other things.

    First remember supervisor for this solution is coming from the relationship of the Position to their manager's position, and then the supervisor's PERNR is coming through the SAP delivered functionality of the OMNGR field as something added I think in the logical database to help in Ad Hoc Query (to derive the Supervisor's information).

    So my line 3 reads:

    <blockquote>

    Head Mod Line Column Infotype Field Nm FieldType

    60 3 01 0001 OMNGR_NA DD1

    60 3 10 0001 OMNGR_NR DAT

    60 3 20 0001 OMNGR_NA DAT

    60 3 55 0001 KOSTL DAT

    60 3 66 0001 KOSTL DTX

    </blockquote>

    You'd see this eliminates EE Subgroup from Line 3, as well as the words, "Cost Center".

    I've moved ESG into line 2, though without a definition and shorted the Pers.Area to DD4 which is simply PA.

    Now to see if the business owner will accept the truncation of ESG.

    Cheers, Albert W Perkins

    Edited by: Albert W. Perkins on Oct 27, 2009 11:44 PM

    Edited by: Albert W. Perkins on Oct 27, 2009 11:47 PM

    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.