How ti find employee's manager name
Hi All,
I tried in SDN but i am not able to find suitable thread. Anybody can tell me which function module i should use to get employee's manager name.
Thanks,
Maheedhar
Maybe this could be achieved by RH_STRUC_GET but you need to provide proper ACT_WEGID . The custom way however would be like this
DATA lt_p1001 TYPE TABLE OF p1001.
DATA lt_manager TYPE TABLE OF p1001.
DATA l_pernr TYPE persno.
DATA l_objid TYPE HROBJID.
FIELD-SYMBOLS: <wa_p1001> LIKE LINE OF lt_p1001,
<wa_manager> LIKE LINE OF lt_manager.
"get manager of EE's org unit
CALL FUNCTION 'RH_READ_INFTY_1001'
EXPORTING
plvar = '01'
otype = 'O'
objid = "EE org unit here
begda = sy-datum
endda = sy-datum
subty = 'B012' "is managed by
TABLES
i1001 = lt_p1001
EXCEPTIONS
nothing_found = 1
wrong_condition = 2
wrong_parameters = 3
OTHERS = 4.
LOOP AT lt_p1001 ASSIGNING <wa_p1001>
WHERE sclas = 'S'. "position
l_objid = <wa_p1001>-sobid.
"get person for this position
CALL FUNCTION 'RH_READ_INFTY_1001'
EXPORTING
plvar = '01'
otype = 'S'
objid = l_objid
begda = sy-datum
endda = sy-datum
subty = 'A008' "holds
TABLES
i1001 = lt_manager
EXCEPTIONS
nothing_found = 1
wrong_condition = 2
wrong_parameters = 3
OTHERS = 4.
LOOP AT lt_manager ASSIGNING <wa_manager> WHERE sclas = 'P'.
l_pernr = <wa_manager>-sobid.
EXIT.
ENDLOOP.
ENDLOOP.
Manager -> l_pernr
Manager name -> get from IT0002 for l_pernr
Regards
Marcin
Juest checked FM HRCM_ORGUNIT_MANAGER_GET which is working too. On input you can either provide EE's position or org unit.
Edited by: Marcin Pciak on Oct 28, 2010 9:12 AM
Similar Messages
-
How to find the senior manager
hi gurus ,
i am involved in the extension of the standard workflow of leave approval , i want to extend the approval level. in std the is one approval level which identifies the manger of the employee who requested for leave . my work is to extend to another appoval level to his senior manager . so when manager approves the workitem , then it should go to senior manger for final approval .
for the first approval i got the agent through RULE 0000168 . how to find the senior manager ?
Message was edited by:
arumugam shanmugamYou can also try Rule AC00000157. In this rule you get the manager by providing the Position Id. This is useful when you know only the Position Id of the user.
<b>Reward points if useful</b> -
How to find out the table name
hi,
how to find out the table name in which the data from a particular structure in a particular screen is saved,
please tell me the procedure to find out the table name for saving the structure data that is inputted at runtime.
Thanks,
chinnuHi Chinnu,
Below are the tables that are referred to find out the table names
DD02L Table contains the SAP Tables.
DD02T Table contains the SAP Table Texts.
DD01L Table contains the Domains
DD01T Table contains the Domain Texts.
DD03L Table contains the Table Fields.
DD03T Table contains the Table Field Texts. (Language Dependent)
DD04L Table contains the Data Elements.
DD04T Table contains the Data Element Texts.
DD05s Table contains the Foreign Key Fields
last words with L and T only. L->Database Fetch T-> Text
And the procedure to retrive the table name is as follows
1. Go to se11
2. Enter table name DD03T and execute
3. In the next screen you can find Tables, fields, test etc. there you can enter the field name in the fields
and execute.
4. you can get all tables which contains the field.
I hope this will solve your problem
Regards,
Chandru -
Hi,
In selection screen (parameter) user will give input TXT file from presentation server to upload to SAP. I need to capture the file name only but not the path and need to concatenate with date stamp and need to download error log in XLS file to presentation server.
How to find out the file name from selection screen?
I searched SCN threads but not found relavant solution.
Thanks,
R KumarHi
This code gets only filename from selection screen :
REPORT x.
PARAMETERS p_file(100).
DATA : gv_full_path LIKE ibipparms-path,
gv_full_path_string TYPE string,
gv_filename(100),
gv_file_ext(3).
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
Ask user to select file with a popup :
CALL FUNCTION 'F4_FILENAME'
IMPORTING
file_name = gv_full_path.
Get filename from path :
gv_full_path_string = gv_full_path.
CALL FUNCTION 'CH_SPLIT_FILENAME'
EXPORTING
complete_filename = gv_full_path_string
IMPORTING
extension = gv_file_ext
name = gv_filename.
CONCATENATE gv_filename '.' gv_file_ext INTO gv_filename.
p_file = gv_filename.
I hope it helps. -
Transaction IW32.How to find out the person name.(Last changed By)
Hi all,
When i executed the transaction IW32.Its displays changed by and created by fields. please any body can tell me how to find out the person name who had made last change with respect to the field changed by.
Please tell me the table and field name for the field last changed by......
Regards,
Munna.hi,
check the table AUFK field AENAM for the order number(AUFNR) in IW32.......... -
How to find PG.xml file name and path associated with a FUNCTION
Hi,
I am having a function:IRC_VIS_HOME_PAGE with Web HTML value as below:
OA.jsp?akRegionCode=IRC_VIS_HOME_PAGE&akRegionApplicationId=800&OAPB=IRC_BRAND
How to find PG.xml file name and path assoicated with above funtion.
Thanks,
ashokAshok,
Function IRC_VIS_HOME_PAGE will have 2 parameter defined for it which are OASF and OAHP where
OASF=<SelectedFunctionName> - this tells the Framework to select this function in the given "Home Page" menu context.
OAHP=<HomePageMenuName> - this is used ONLY with the OASF parameter, and it is used to establish the current menu context. It should point to a "Home Page" menu.
--Shiv -
How to find the Standard DFF Name In oracle apps
hi,
How to find the Standard DFF Name In oracle apps
thanks1. Open the form
2. Choose Tools--> Diagnostics
3. In the block field choose $DESCRIPTIVE_FLEXFIELD$
4. Field will show the list of all the DFF's enabled for that form.
5. Choosing one will display the name of the DFF in the value field.
Thanks
Nagamohan -
How to find HR Line manager of a PERNR present in PA0000
Dear All,
I am new to HR module. Can anyone tell me how to find the line manager of any user Id fetched from PA01005 against the pernr from PA0000 tableThis example find line manager for non-manager.
REPORT ZDYN_SELECTIONS.
DATA: user_pernr type pa0105-pernr,
user_orgid type pa0001-orgeh,
user_manager type pa0105-pernr,
managers type table of OBJEC WITH HEADER LINE.
PARAMETERS: usrid type pa0105-usrid.
end-of-SELECTION.
SELECT SINGLE pernr INTO user_pernr from PA0105
WHERE usrid = usrid
AND begda <= sy-datum
AND endda >= sy-datum .
SELECT SINGLE orgeh INTO user_orgid FROM pa0001
WHERE pernr = user_pernr
AND begda <= sy-datum
AND endda >= sy-datum .
CALL FUNCTION 'HRCM_ORGUNIT_MANAGER_GET'
EXPORTING
PLVAR = '01'
OTYPE = 'O'
OBJID = user_orgid
BEGDA = sy-datum
ENDDA = sy-datum
* PATH_ID = ' '
TABLES
MANAGER_INFO_TABLE = managers
* EXCEPTIONS
* PATH_ERROR = 1
* ROOT_ERROR = 2
* NOTHING_FOUND = 3
* OTHERS = 4
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.
LOOP AT managers.
write managers-objid.
ENDLOOP. -
How to find out the administrator name
How to find out my administrator name to unlock the parental control .
Look in the Apple Menu, in System Preferences, under the Users & Groups pane.
It should list all your users, by name. -
How to find SQLServer Virtual Cluster name
team,
if you have 2 node active/passive cluster with several named instances of SQLServer. How do you find the SQLServer Virtual name on one of the hosts? The only way to connect to SQLServer is via Virtual name and in a situation I dont have that info - how can
I find it in the registry etc etc
I know for sql 2005 - i can use configuration manager to identify the virtual name but in 2008 there is no config manager...
thanks!declare @Virtualname varchar(255)
declare @Virtual varchar(255)
create table #clusterinfo(info varchar (255))
insert into #clusterinfo
exec master..xp_cmdshell 'cluster
resource /status'
insert into #clusterinfo
exec master..xp_cmdshell 'cluster
node /status'
insert into #clusterinfo
exec master..xp_cmdshell 'cluster
group /status'
select * from #clusterinfo where info IS NOT NULL and info not like '%---%'
--drop table #clusterinfo -
How to find SAP Script Form name for an particular transaction
Hi,
I had an issue, in the transaction F110 Payment advice. They need to adjust the spacing on the cheque printing, which is overlapping the names on the cheque and hence I have forgotten how to find the form name and the driver program of the script. Can anybody suggest me how to find those. Your help will be appreciated.
Thanks in advance.>
Muralidhar Medisetty wrote:
> Hi,
>
> I had an issue, in the transaction F110 Payment advice. They need to adjust the spacing on the cheque printing, which is overlapping the names on the cheque and hence I have forgotten how to find the form name and the driver program of the script. Can anybody suggest me how to find those. Your help will be appreciated.
>
> Thanks in advance.
hey
NACE is the transaction ..for this u must know the output type..
Script for Cheque Printing and Payment Advice can be known from Transaction FBZP...
FBZP -> paying Company Codes -> u will get Script used for Payment Advice
FBZP -> Pmnt methods in company code -> u will get Script used for Cheque Print
....Give points if useful.....
Edited by: Satyabrata sahoo on Oct 14, 2008 4:42 PM -
How to find out the infospoke name for an existing infoobject?
Hi,
Could any one pls tell me how to find out the existing infospoke name for an infoobject?
i've tried with where used list but its not coming....can any one pls suggest
Thanks,
SuriHi,
Check in metadata repository for that infoObject.
If you are still not able to identify, goto RSBO tx and press F4.
You will get the list of Infospokes available.
Go in each and chk from the General Tab, if the infoObject is available in the source system.
Regards,
Balaji V -
How to find out sub site name from which sub site template is created - in solution gallery
hi,
i am having an issue in my "save site as a template". i have created a subsite few weeks back with doc libs and splists, disc.forum and based on the template subsite I have created new subsites. now
as per my new requirement i need to add new doclibs and few columns in these doc lib. But I am unable to find which sub site was taken as a template.since i have many subsites with different names, I forgott
to make meaningful names, i gave some datetime for the templatesubsites,
like project_27_jul_2pm,project_20_jul_7pm, etc etc.
So would like to know, is it possible to find out from which subsite I have taken/prepared the template subsite.
any APIs are available or any power shell scripts. such that i can find out from which subsite i have created this sub site template.check this
http://social.msdn.microsoft.com/Forums/en-US/3c492adb-e7cb-4f5c-8c29-386a21c3498e/how-to-find-out-a-list-of-sites-created-from-a-template?forum=sharepointgeneralprevious -
How to find out the printer name for the Idoc
Hi guys
I want to find out the printer name for the Idoc,,some default printer is attached for one idoc,then how can we see the printer name for this idoc.
Regards
MadhooHi,
For ALE/IDOC the medium will be either ALE or EDI but not printer.So it might be wrongly attached.As such there won't be any printer attached to idoc.
Regards,
Nagaraj -
How to find the AK Region name from JSP
I have the requirement to hide some of the fields/regions in Oracle Sales Online.
To do that from AK Developer Region Name/Code and Region Item is required. How to find this Region Code.When you are on the webpage, right click and select "VIEW SOURCE". When the notepad opens up, find the string "TOP REGION". This will give the top region for that page. Query for this page in the AK Developer resp with "Define Regions". Then click on "Region Items". This will give all the Attribute Names and Nested Regions within the TOP REGION. You just have to dig into each one of 'em to find the one you need.
Maybe you are looking for
-
HP 3330 MFP scanning function doesn't work
I have a HP 3330 MFP wirelessly networked to (2) computers via a WPSM54G. I am able to wirelessly print from both computers, but I am unable to scan from either. When I open the HP LaserJet Document Manager, and initiate a scan, I receive a message
-
I have uninstalled and reinstalled iTunes Version 11.4.1 and still cannot access. I continue to get the Error 7 Windows Error 193 and now I am getting the Apple Mobile Device failed to start. I can't access any of my music I HAVE PURCHASED. What to
-
Need help with how to call VB proceedure to open Adobe reader pdf file from differnt folders
Using MS access 9.0.2720 visual basic proceedure to call Adobe reader to open a specific flle from a folder on my c drive. useing the shell command , shellexecute is not available in the version I'm using. I can call the Reader with this code: ca
-
How to copy my Safari Bookmarks to another apple ID device
Hi all, I have my own iMac with my own Safari bookmarks. My wife used to share my bookmarks on iMac, but now she has her own iPad with her apple id, so she can't see my bookmarks on iPad. I already tried to export my bookmarks and send to her by emai
-
Transferring receivables to profit centers
hi we are using ecc 6.0, i want to transfer customer receivables to profit centers. i didnot maintain customer receivable account in 3keh. i have done f.5d, but receivables are not transferring to profit centers. <b>do we need to do 1kek in ecc 6.0 a