cancel
Showing results for 
Search instead for 
Did you mean: 

Finding out logged in Org Unit?

amarnath_kathi
Active Contributor
0 Kudos

If a user is assigned to multiple org units within a single business role, he/she is given the option to select among the org units when Web UI is launched. After selecting, in the subsequent screens, how to find out dynamically which particular Org Unit he/she logged in through?

I appreciate your time. Thanks.

View Entire Topic
BGarcia
Active Contributor
0 Kudos

Hi Amar,

Try to call static method GET_ORG_UNIT of class CL_CRM_IC_SERVICES.

I think it will give the information you need

Kind regards,

Garcia

amarnath_kathi
Active Contributor
0 Kudos

Bruno,

I tried it and also CL_CRM_AUI_SERVICE. They don't return anything. I am calling them in message.htm in component CRMCMP_IC_FRAME/Message. Is this because the method is static?

BGarcia
Active Contributor
0 Kudos

Hi Amar,

In that particular view, I've already had some difficulties to read the org. unit. At the time, I was trying to display the org.unit name in the message area. Since the time wasn't much, we leaved that idea, and only displayed the user name. Seems when the applications loads that view, it loads in a separate process where you don't have any information about the webui user.

In other components, the code I've supplied to you, works perfectly.

Maybe someone else can help you, with a different approach for there.

Kind regards and good luck,

Garcia