cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Selected position display in webui. How to

tmathieu0278
Explorer
0 Kudos
1,114

Dear Community.

We implemented OSS 2139001 - Header System Information. Yet, we would like to enhance the displayed message with another info which is the selected position.

For one WEBUI ROLE, the user may have to choose one position from the org model. We would like to display this selected position (R_WHF_FOC MANAGER for instance)

we are currently struggling to get this info without having a "confirmed partner" (we use IC scenarios/roles). Any ideas on how to proceed ?

Thanks

Regards

Accepted Solutions (0)

Answers (3)

Answers (3)

tmathieu0278
Explorer
0 Kudos

Hi Nicolas

We tried suggested approach (breakpoint in SET_ORG_UNIT OBJECT)

(didn't find SET_ORG_UNIT)

Yet, we use IC role only as you know ...

After position selection :

There is a first access to

info is ok. This is the position we are looking for. The one selected by the user.

A second access : ok as well:

Then, we try to read this info for displaying it : -> empty

we tried both levels : get_org_unit & get_current_org_position ...

😞

Any ideas ?

Regards

Thierry

tmathieu0278
Explorer
0 Kudos

first selection screen

nicolas_busson
Active Contributor
0 Kudos

Hi Thierry,

I tested it on our sandbox system using a NON IC business role and got an entry filled-in:

So either you log-in to CRM without using the organizational model (maybe you set parameter CRM_UI_PROFILE = xxx on your user), or you should probably set a watchpoint on some attributes of class CL_CRM_UI_USER_CB to see who is removing the values set by CL_CRM_UI_PROFILE_DETERM->SET_PROFILE_IF_ASSIGNED( ) after login.

Regards.

PS: even better => set a breakpoint in CL_CRM_UI_USER_CB->SET_ORG_UNIT( ). As the ORG_UNIT attribute is marked as private, no-one can change it whitout using this method.

nicolas_busson
Active Contributor
0 Kudos

Hello Thierry,

Did you try to call CL_WCF_UST_SERVICES=>GET_CURRENT_ORG_POSITION( ) or CL_WCF_UST_SERVICES=>GET_CURRENT_ORGANIZATION_UNIT( ) in your enhancement to get the information you need?

Regards,

Nicolas.

tmathieu0278
Explorer
0 Kudos

Hello Nicolas

Thanks for your feedback.

We tried both suggested methods but got a blank entry as a result. 😞

We had similar pb with cl_crm_aui_service=>get_logon_orgunit_of_agent. As the user is properly assigned & chose already one of the active assignement (valid for the active session), we would expect to be able to retrieve this info .. It seems to work only when a BP is confirmed...