Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SAP HR - How to Give access to expats and Impats PERNR through a structural profil ?

Former Member
0 Kudos

Dear all,

I have some difficulties to make a structural profil to give access to employee (P) through Central Person (CP)

In our Company, some employees are expatriates to another country.

These employees have two pernr.

One pernr for expatriate.

One pernr for impatriate.

These pernr are linked with the Central person (relationship A209/B209)

The HR users have geographical perimeter. (Derivation by country)

When a employee is impatriate to host country, The local HR user request to access to the expatriate Folder (PA30) of this employee, but this folder is out of the HR perimeter.

I created a new role, a new structural profil and the evalution path below :

Object     Relationship                                             Priority     Rel.Object.type

Type         

O                B 003      Incorporates                               *           S

S                A 008      Holder                                        *           P

P                A 209      Is filled by                                   *           CP

CP             B 209      Has employment contract           1           P

When I launch the programs RHBAUS02 and RHBAUS00

In the result (HRAUTH), I have all the objects for Central Person.

I have the Impatriate pernr.

But I don't have the expatriate pernr.

I have the first PERNR

O                B 003      Incorporates                               *           S          --> OK

S                A 008      Holder                                        *           P           --> OK

I have the impatriate PERNR

CP             B 209      Has employment contract           1           P          --> OK

But I don't have the expatriates PERNR

CP             B 209      Has employment contract           1           P          --> KO

In the transaction PP01 or PPSS, I am able to see the relationships between CP and P (or P to CP)

In the PPOSE, the first PERNR and the expatriate are not in the same view.

I am not sure if this is the problem, and I don't know how to give access to expatriate pernr.

Have you ever had this issue.

Have you any advices to help me ?

Thanks in advance.

Mickael.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Mickael

In the last line of the evaluation path you state you only want relations mark with priority 1. If the relation is not marked  with 1 then it will not grant you anything, but if you remove it you will most likely end up with loop. Have you controlled if the priority is set on any B209 relations in HRP1001?


CP             B 209      Has employment contract           1           P

In case of evaluation paths, where I need to go back and forth the same object type, I would create either a function module, which generated the result and then add this to a structural profile or create an external relation, which picks up the chain P-CP-P and delivers all those P objects which is related to a specific CP object.

BR Niels Knuzen

2 REPLIES 2

Former Member
0 Kudos

Hi Mickael

In the last line of the evaluation path you state you only want relations mark with priority 1. If the relation is not marked  with 1 then it will not grant you anything, but if you remove it you will most likely end up with loop. Have you controlled if the priority is set on any B209 relations in HRP1001?


CP             B 209      Has employment contract           1           P

In case of evaluation paths, where I need to go back and forth the same object type, I would create either a function module, which generated the result and then add this to a structural profile or create an external relation, which picks up the chain P-CP-P and delivers all those P objects which is related to a specific CP object.

BR Niels Knuzen

0 Kudos

Hi Niels.

Thanks a lot for your advices.

BR

Mickael