How my opportunity works - my team and my group

125 阅读1分钟

I log on with WANGJER and can see those opportunities not only belong to me but also from my other colleagues. Why?

clipboard1

First get CP ID 50064160 from User WANGJKER via FM CRM_CENTRALPERSON_GET:
clipboard2
The CP id is query based on relationship table HRP1001 by specify SOBID = WANGJER
clipboard3

We can find this CP in table HRP1000:

clipboard4
Then find this CP’s organization unit via function module in line 63:
clipboard5
From result we knows CP 50064160 belongs to organization unit 50000003:
clipboard6

This unit could be found from WebUI:
clipboard7

clipboard8
From HRP1001 we can also find which positions this CP are in ( relationship 008 ):
clipboard9
For example, position 50001701:
clipboard10
We can double confirm in webUI that my user is assigned to this position:
clipboard11
Here find all other CPs who are also in the same organization unit with WANGJER:
clipboard12
156 CP are found:
clipboard13

Then Opportunities belong to these 156 CP are searched.