cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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?

Former Member
0 Kudos

Hi Kurt,

In PA, please note that the MSTBR field is a Supervisor Area field.. its better you create a custom field in IT0001 representing Supervisor ID.

Basically in OM, you will be having Position to Position (Supervisor) relationship maintained...

To Create this Manual Integration of PA & OM Data, Create a custom program to retrieve the OM Relationship (S-S).....and run a LSMW to populate the relationship into IT0001 custom field.

Hope this works !!!

Kumarpal Jain.

Former Member
0 Kudos

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

Answers (6)

Answers (6)

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanks Albert..!!

Former Member
0 Kudos

Thanks Albert.

Donnie

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi Albert,

Can you share with us the entries you made in T588J?

Thanks,

Donnie

Former Member
0 Kudos

Hi Albert,

Can you please share how did you get Supervisor field (OMNGR_NA) in the screen header. I have similar requirement.

Thanks.

kmoore007
Active Contributor
0 Kudos

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

tomstephenson
Discoverer
0 Kudos

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

Former Member
0 Kudos

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!

Former Member
0 Kudos

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.

Former Member
0 Kudos

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