Finding out logged in Org Unit?
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.
Hi Amar
to get the Business role or profile using user name, pls use the class CL_CRM_UI_PROFILE_DETERM and use the method DETERMINE_PROFILE_VIA_ORG_MGMT.
to determin the logged in role and its organiztion unit proceed as follows
1) Get the user orgunit and roles list using the above said class - methoid which returns table
2) once you got the result get the Business role the user is currently loged in by using the parameter id CRMT_UI_PROFILE it will return the current business role.
3) now read the table in point 1 with this busineess role where u will get the orgunit.
more over there is no static method for the class CL_CRM_UI_PROFILE_DETERM so either you have to create the instance for this class or simply copy the code in the method DETERMINE_PROFILE_VIA_ORG_MGMT and use the same code some where else in the other class method.
Hope this resolves your issue.
Thanks & Regards
Raj
Similar Messages
-
How to find users logged on Org Unit
Hi All,
We are setting up printing on our CRM 5.0 system (Web interaction centre) and was wondering if anyone knows of a way to find out what Org unit the users is logged on as ??
We are using Actions to print specific smartforms off for the users and need the prints to go to an assigned printer.. We are hoping to use a printer that is assigned to the 'Default Printer' attribute in the org structure (PPOMA_BBP)
As you will be aware users can be in many positions (under the org units) in the org structure and when we log onto the Web IC we get the option of which one we would like to use... Is there a function that can read this Org unit so we can use it in the printer determination BADI to decide what printer the prints will go to ???
Many Thanks
GazIn case anyone is still looking for this solution, here is how:
data: lr_usett type ref to cl_crm_ui_user_cb.
lr_usett = cl_crm_ui_user_cb=>get_instance( ).
call method lr_usett->get_org_object
importing
ev_org_objid = lv_objid
ev_org_objtype = lv_otype. -
How to find out the main org units in the system
Hi,
I want to find out the all main org units in the system. It means that i have to know all the parent org units not the sub org units.
Can you please let me know .
Regards
RajeshHi,
As I understood about your query, go to PA30, select the position field, select the structure search tab, go to find(Ctrl+F), select the object type S-position, give the position no, then it will give position place and root org, unit of the position and it will expand the structure.
Regards
Devi -
Hi ,
How to check logs of ORG UNIT like assignment of roles, removal of roles and validity changes to ORG UNIT ???We have prod system in which role assignment is indirect.. Like roles are assigned to ORG UNIT and POSITION
We dont assign roles user based..
Structure is like this..
ORG UNIT ---> Positions -
> Users
Under ORG unit , there would be several POSITIONS and under POSITION there would be several users..
Some one has removed roles from ORG UNIT and all users under this ORG UNIT lost access....
We need to find out who did it .... -
How to find the all the org units of chief org unit
Hi All,
i have one cheif org unit which belongs to IT. i Just need to take all the org units into one internal table upto last org unit.
ex: 500000 is the chief org unit then we check that belongs to taht
550000 and 560000
and agian 550000 is having or units
556000 and 557000 ....
now requirement is now i input on 500000 on selection--screen and i need to get
550000
556000
557000
560000
I used evaluation path as o-o and used call function 'HRCM_ORGSTRUC_INFO_TABLE_GET'.
but able to get only the just next level org units.ie. 550000 and 560000 Not others ..So is there any way where we can find all the org units that comes under the MAIN ORG UNIT 5000000.
waiting for your valuable inputs...
Regards
sasHi
Use the FM: RH_STRUC_GET with the evaluation path : ORGEH.
If you are still not able to get the required results,then go to Tcode: OOAW and find the suitable evalution path for your requirement.
Hope definetely u will get the results.
Regards,
Sreeram
Edited by: Sreeram Kumar Madisetty on Apr 22, 2009 8:25 AM -
Find emloyee of the org.unit
hi,
i table itab with org.unit and i wont to find the emp of the org.unit how i can do that?
RegardsHi
You can write your select statement as follows:
This select will retrive all the positions which *belong to the given org unit into itab *t_orgpositions.
Select objid
from HRP1001
into table t_orgpositions
where otype = 'S'
and plvar = '01'
and rsign = 'A'
and relat = '003'
and istat = '1'
and begda LE sy-datum
and endda GE sy-datum
and sclas EQ 'O'
and sobid = 'XXXXXXX' (your org unit).
Using the above positions fetch the holders of these positions (PERNR) using the below query.
IF NOT t_orgpositions[] is initial.
Select sobid
from HRP1001
into table t_pernr
for all entries in t_orgpositions
where otype = 'S'
and objid = t_orgpositions-objid
and plvar = '01'
and rsign = 'A'
and relat = '008'
and istat = '1'
and begda LE sy-datum
and endda GE sy-datum
and sclas EQ 'P'.
ENDIF.
In this way you can get all the Personnel numbers which belong to an Org unit.
The other method is you can use some function modules to retreive this data. Get back if the above query does not serve your piurpose. -
How to find out log for table entry deletion.
Hi Guys,
Somebody has deleted entire MARC in one of our systems. Is there any way to find out who deleted the entries?
ThanksUse CDPOS and CDHDR to know who changed/deleted
from CDPOS .. get the OBJECTCLAS OBJECTID and
CHANGENR passing TABNAME as MARC
Pass the above OBJECTCLAS OBJECTID and
CHANGENR to CDHDR and get USERNAME -
Hi,
I got this doubt, when searching logs on the servers. I have 2 WFE's in my farm, I got an error from enduser. So in which WFE server i need to check the logs.
How to configure logs path. Is it is possible to specify logs path on our own instead of 14 hive folder.
BadriThat is a really bad idea, especially with idle disconnects and other unreliability of CIFS.
You should instead check out the command
Merge-SPLogFiles which will allow you to combine ULS logs from multiple servers into a single file.
You can certainly specify your own path, but the path must be available on all servers. For example, if you specified D:\Logs, D:\Logs must exist on all SharePoint servers within the farm.
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
Need the Org Unit till the parent node the employee is attached to
Hi,
We have a requirement to find out the Sales Org the User is attached to as well get list of all sales org above it till the main node. Basically its reporting for Org Unit to the upper chain.
I am sure there should be some standard FM or report to achieve this. If any of you are aware, pls help.
Regards,
chandra.Try
HRCA_SALESORG_GETDETAIL
HRCA_SALESORG_LIST
RH_BM_GET_TOP_NODE
<b>TIP</b>
<b><u>Go to SE37-> F4-> Function module = "RH","HR"
Max no of hits = 999999 Click "Execute"
Find "Nod" or "Sale" or "Org"</u></b>
Hope thisll give you idea!!
<b>P.S award the points.</b>
Good luck
Thanks
Saquib Khan
"Some are wise and some are otherwise" -
Table for link with BP and Org Unit
Hi experts
i'd like to know what is the table where there is inside the link beetween BP and Org Unit.
I know that the table HRP1001 links users to Org Unit but i cannot find the BP
regards
andreaHi
you can always find the link between Org unit O and its related BP in table HRP1001.
Key in Org unit ID in the table selection parameter OBJID and execute. It will list postions (S) assigned to the Org ID and its BP number. Look at the relation B207(subtype) which will show O-BP assigment. It will be the last entry in the output list.
R/Reddy. -
Retrieving Positions for Specific Org Units
Hi All,
I have a headcount report to develop. It will run for one personnel area at a time. So for the period run, I have to list out all the org units under the personnel area as well as the sub org units. For each of the org units I have to separate positions under them into two group - total of positions with holders and non-holders.
I am using the function RH_STRUC_GET by passing org unit to retrieve positions. May I know which result table to read in order to get positions and how to segregate them into 'With Holders' and 'Non-Holders'?
And also how to get the relation ship between org units because I need to display that in the report also.
Thank you in advance
Regards,
LilyHi..
Existing Organizational Units (Report RHXEXI00)
Staff Functions for Organizational Units (Report RHXSTAB0)
Organizational Structure with Persons (Report RHXSTR02)
Periods for Unoccupied Positions (Report RHFILLPOS)
Existing Positions (Report RHXEXI03)
Staff Assignments (Report RHSBES00)
Position Description (Report RHXDESC1)
Staff Functions for Positions (Report RHXSTAB1)
Vacant Positions (Report RHVOPOS0)
Obsolete Positions (Report RHVOPOS1)
Complete Position Description (Report RHXSCRP1)
Reporting Structure without Persons (Report RHSTR05)
Reporting Structure with Persons (Report RHSTR04)
Activity Profile of Positions (Report RHXSTR07)
Activity Profile of Positions with Persons (Report RHXSTR08)
Existing Objects (Report RHEXIST0)
Structure Display/Maintenance (RHSTRU00)
Reporting on an Infotype (Report RHINFAW0)
Starting an HR Report (Report RHPNPSUB) -
How to find out what type of trigger (restricted/unrestricted) you are in
I wonder if anyone has a trick to find out whether a program unit can detect whether it has been called by a trigger which allows restricted or unrestricted built-ins.
I have a program unit, which is called from WHEN-VALIDATE-ITEM triggers in the application, as well as in, say, a Popup Menu Item. The procedure currently doesn't have a parameter indicating where it was called from.
The challenge is to see if, inside the procedure, I can do a GO_FORM if and only if, I'm allowed to.
Ideally without:
1. Adding a parameter to the procedure indicating where it is called from;
2. Kicking off a timer.
I was hoping something like
BEGIN
GO_FORM(<form>);
EXCEPTION WHEN OTHERS THEN NULL;
END;
would do it but no such luck.
It would be nice if there was a :SYSTEM.CURRENT_TRIGGER or similar.If it is simply a Go_Form you want to do from the WVI, then I would create a procedure something like this, and call it from the WVI and from a when-timer-expired:
Procedure P01_Go_Form
(Form_Nam in varchar2 := null,
Mode1 in varchar2 := null) is
Begin
If Mode1 = 'WVI' then --called from validation trigger
Pkg0.Go_form_nam := Form_Nam;
Create_Timer('P01_GO_FORM',20,No_repeat);
Return;
End if;
-- This part runs if called by any other process --
Validate(Form_scope);
If not Form_Success then
Raise Form_trigger_failure;
End if;
Go_Form(nvl(Form_Nam, Pfg0.Go_form_nam));
End; -
How to find Org unit User has selected
Hi All,
We are setting up printing on our CRM 5.0 system (Web interaction centre) and was wondering if anyone knows of a way to find out what Org unit the users is logged on as ??
We are using Actions to print specific smartforms off for the users and need the prints to go to an assigned printer.. We are hoping to use a printer that is assigned to the 'Default Printer' attribute in the org structure (PPOMA_BBP)
As you will be aware users can be in many positions (under the org units) in the org structure and when we log onto the Web IC we get the option of which one we would like to use... Is there a function that can read this Org unit so we can use it in the printer determination BADI to decide what printer the prints will go to ???
Many Thanks
GazAs soon as you make the profile selection,IC sets the profile and org unit in the session.
You can read them using
Data: lv_prof type ref to if_ic_profile,
pname type string,
orgunit type crmt_ic_org_unit.
lv_prof = cl_ic_profile_service=>get_instance( ).
pname = lv_prof->get_profile( ).
org_unit = cl_crm_ic_services=>get_org_unit( ).
Thanks,
Thirumala. -
How to find out who deleted the archive logs
Hi All,
Recently some archive logs were deleted from one of our servers. Is there any way to find out which user has deleted the archive logs through OS or through database ?
OS Version :-
SunOS Generic_Virtual sun4u sparc SUNW,SPARC-Enterprise
Database Version:-
SQL*Plus: Release 9.2.0.8.0 - Production on Mon Apr 9 01:12:15 2012888132 wrote:
Hi All,
Recently some archive logs were deleted from one of our servers. Is there any way to find out which user has deleted the archive logs through OS or through database ?
OS Version :-
SunOS Generic_Virtual sun4u sparc SUNW,SPARC-Enterprise
Database Version:-
SQL*Plus: Release 9.2.0.8.0 - Production on Mon Apr 9 01:12:15 2012As explained by others, from oracle database there is no record if they are deleted from OS.
But you can probably find the history of OS command been run with history command :). You can get the date and time.
Following link can help
http://stackoverflow.com/questions/99755/how-do-i-get-the-command-buffer-in-solaris-10
http://www.cyberciti.biz/faq/unix-linux-bash-history-display-date-time/
http://www.linuxquestions.org/questions/solaris-opensolaris-20/in-solaris-command-line-how-to-get-the-previous-commands-573814/
But i suggest you to post in Sun OS forum to get more details as its nothing to do with Database(in this scenario) -
Critical abap hr req - How to find the previous org unit of the employee?
Hi Experts ,
I need small inputs from your end...
I need to find the employee org unit based on the latest one.....
i just want to know if an employe is Transfered from the org unit .....we can check it from the ORG unit.
My requirement is to now capture only the org unit of IT folks not for the employees who are transfered to NON-IT department.....
sop if an empployee 5000 org unit belongs to IT of employee 1000 and NOW he transfered out of IT with current 6000 org unit then how can we read that 5000 ?
now i am using PCH logical data base...
Based on evaluation path(Pers-0) i will pick up the pernr 1000.
now when i check the org unit it is 6000 with end da 12/31/9999.
then i loop
select * from pa0001 into itab where pernr = objec--objid and otype = 'P'.
enselect.
loop at itab where pernr = objec-objid.
Here in the loop what is the logic we need to write to pick up the previous org unit please suggest
endloop.
Regards
sas>
Faisal Altaf wrote:
> Hi,
>
> Please Test the following Sample Code hope it will solve out your problem,
>
>
TABLES: pa0001.
>
> DATA: it_pa0001 LIKE STANDARD TABLE OF pa0001 WITH HEADER LINE,
> begda TYPE begda.
>
> SELECT SINGLE begda FROM pa0001 INTO begda
> WHERE pernr = '00000001'
> AND endda = '99991231'.
>
> begda = begda - 1.
>
> SELECT * FROM pa0001
> INTO CORRESPONDING FIELDS OF TABLE it_pa0001
> WHERE pernr = '00000001'
> AND endda = begda.
>
> Please Reply if any Issue,
>
> Best Regards,
> Faisal
Hy Faisal...what is the begda value there?
Regards
sas
Maybe you are looking for
-
Which G5 for Video Editing?
Hello, I've decided not to wait for an Intel MacPro, but would like to buy a G5 in the next 5 mos (by July) for standard-definition video editing using FCP 5 Studio. I have a few questions: 1) Currently, I have a Quicksilver G4 with dual 1 Gz, 1 Gb r
-
Prevent Service PO from exceeding Service PR
Hi masters! Requirement is to display an error message or warning when Service PO exceeds Service PR in ME21n. The message "Materials of requisition XXXX item XXX alr. ordered in full" triggers when Material PO exceeds Material PR, but no such error
-
Issues opening AE CC project with CS6 despite the "save as CS6" option
Hello all, I wish I wouldn't have to bother anyone with my noob question but I tried it all. I've been through the FAQ, the Search tool, lost myself on the Net for hours and... I can't find my problem resolved anywhere. It makes me feel sooOOo lonely
-
HT204053 Do I always have to put in my password every time I purchase/download an app?
I only have the 1 iOS, the new iPad. I don't use or sync other devices. Can I somehow disable that so I don't have to write in my pw EVERY time I download something new!? It's kind of annoying. Lol I'm using the same device every time, it should reme
-
Hi, I am currently programming a 7344 motion control board in Visual C++. Right now I am using the function flex_wait_for_move_complete function but it causes an exception error when passing the pointer, moveComplete, into the function ( it is the la