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 table
This 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.
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 the lines where messages are raised?
Hi experts,
I have a great difficult to find some points where a message is raised.
In GUI interface, we can use the u201CUsed-Listu201D option and the system show us the lines where the message is raised.
In web-client, some good SAP programmers wrote the code u201Cif 1=2 message u2026u201D after he/she input message in the message manager classes (cl_bsp_wd_message_service, cl_crm_genil_global_mess_cont, etc). So the u201CUsed-Listu201D resource manages to find those points.
However, some bad programmers didnu2019t do that and it is almost impossible to know where the message is raised in certain situation, though I have its message class name and its number, for instance, COM_PARTNER u2013 559.
Is there any tip about how to find a calling point?
Regards,
AndréThis will tell you the directory that contains the running program:
System.getProperty("user.dir") -
How to find departments under manager
Hi,
please suggest any fm for to finding departments under manager.
Thanks & Regards
RaoIt's solved, thanks for all, Now I know how powerfule "RH_STRUC_GET" function, Its really cool and When I read following link
http://help.sap.com/saphelp_erp2005/helpdata/EN/1b/16a7375de78668e10000009b38f889/frameset.htm
See the Link "Reports in Organizational Management " in Tree view. We know abot all type reports we can do above function module.
once again thanks all.
Thanks & Regards
Rao -
Error line number given by validate template, How to find that line
In word, after loading xml, when I press validate template, it gives:
[072707_111450130][][ERROR] [Line 727.165] Illegal closing table XSL context for: xsl:for-each-group
Here, How can I find the line 727.165?Could anyone give answer?
-
How to find open line items from the BSID table
Hello Guru's
I need some fever from you......... please any one tell me that How to find the open line items from the BSID table .
please replay ASAP..
Regards,
Raghunath.SHi Raghunath
BSID and BSAD are Secondary Index tables for Customer line items. All customer open items are stored in BSID table and Cleared items are stored in BSAD table.
Regards,
Venkat -
How to assign a line manager to a employee
Hi,
I want to assign a line manager to a employee. Kindly help me.
Thanks,
SarojHi Saroj,
You can to use the transaction code PPOCE/PPOME to create/change the Organization Unit and assign the manager to a employee. Verifiy the transaction code "PO13".
Following the link below:
http://help.sap.com/erp2005_ehp_04/helpdata/EN/05/dfba3692dc635ce10000009b38f839/frameset.htm
Regards,
Alexandre Tomazini. -
How to find the xi server wheather it is present or not
hi all,
i have one doubt regarding xi server,how to find out wheather the xi server is there or not in our sap server.
thanks & regards,
subba reddyHi
What u mean by SAP Server (Hope u r saying SAP ECC R/3)
XI / PI is a Seperate Server installation which doesnot come with ecc
ECC >= 6.2 only has Integration Serve inbuilt which allows it to communicate with XI in Proxy langauge.
Still u want to check if u r x System is having XI r not then
Transaction SXMB_IFR ---> IE opens --> Press IR Design , if it opens IR u r in XI
Srini -
How to find a line/edge that starts at the same point as the end of another
I have an edges table of Lat/Lon data and for a specific edge I want to find any other edges that have the same start point as the end point of the given edge.
I tried the following query:
select geo_street_id from geo_street s2
where SDO_LRS.GEOM_SEGMENT_START_PT(s2.geom) =
(select SDO_LRS.GEOM_SEGMENT_END_PT(s.geom) as geom from geo_street s
where geo_street_id = 122978214)
but it gets the following error:
ORA-22901: cannot compare nested table or VARRAY or LOB attributes of an object type
Any Ideas?1. to compare geometry to be equal you should use appropriate function (SDO_GEOM.RELATE http://download.oracle.com/docs/html/B14255_01/sdo_objgeom.htm#sthref1561) or operators (sdo_relate http://download.oracle.com/docs/html/B14255_01/sdo_operat.htm#i78531) with specific mask EQUAL.
2. to filter down the resultset in first place you can use the operator SDO_RELATE with mask TOUCH as this will return already the set of lines sharing endpoints, but will also include lines touching eachother not at endpoints (endpoint intersecting the otherone's interior)
something like
select geo_street_id from geo_street s2, geo_street s
where
s.geo_street_id = 122978214
AND
sdo_relate(s2.geom, s.geom,'mask=touch') = 'TRUE'
AND
sdo_geom.relate(SDO_LRS.GEOM_SEGMENT_START_PT(s2.geom),
'EQUAL',
SDO_LRS.GEOM_SEGMENT_END_PT(s.geom),0.005)='EQUAL'
3. if you would do this for the full table, an SDO_JOIN (http://download.oracle.com/docs/html/B14255_01/sdo_operat.htm#BGEDJIBF) might be more appropriate.
4. you might also consider 4 cases:
start = start
start = end
end = start
end = end
5. alternative would be to take only the endpoints of your selected geometry and perform a touch with the edges. using the sdo_util.APPEND on the startpoint en endpoint of your geometry will return a multipoint. although there might some specific cases that this would not return respected result I think
something like:
select geo_street_id from geo_street s2, geo_street s
where
s.geo_street_id = 122978214
AND
sdo_relate(s2.geom,
SDO_UTIL.APPEND(
SDO_LRS.GEOM_SEGMENT_START_PT(s.geom),
SDO_LRS.GEOM_SEGMENT_END_PT(s.geom)
,'mask=touch') = 'TRUE'
Let us know how it works.
Luc -
How to find a line number when using cfinclue
Hi, I have a cfset causing an error on line 143 the problem
is that the index.com is made of includes, how do I find which
include CFSET is causing the error (the error code doesn't include
the text that is making up the error.... only says coldfusion was
looking at http - which I have in many places...) dreamweaver isn't
including the documents to look up their code either....
ThanksSometimes it's quicker to just do the dumb thing. Number of
lines before first include + number of lines in first include +
number of lines between first include and second include + number
of lines in second include + ... till you get to around 147. I say
"around" because you only have to know you're, say, between lines
140 and 155. Your error message should give you a clue which line
is the likely culprit. -
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,
MaheedharMaybe 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 -
hi all,
I am using the FM REUSE_ALV_GRID_DISPLAY_LVC to display ALV which has one column as edited.
it allows users to mass update that particular field. for eg: there are 100 rows in which user changes 5 rows. at user command SAVE i could see the entries modified in final internal table. but how coould i find only those 5 entries which are changed so that i can process only those records.
Any pointers reg this would be appreciated.
Regards,
Sreekanth....take a copy of your internal table before you display the ALV and compare like this:
if table1[] NE table2[].
endif. -
Hi,
I have a spatial table with geom type as 2002.
I have a set of line (for example lets say it is 5 rows) attach image.
I need to find line that is inner connecting to these 5 rows. What I mean is a boundary line has inner line.
I am unable to get inner lines of a boundary.
If I query spatial table I get boundary line but i want inner lines.
attach is snapshot for ref.
thanks in advance
saazThanks B Hall and Stefan Jager @@for your inputs.
Actually, in my database that has spatial geometry information has SDO_GTYPE is 2002 for ids that are connected to each other.
and I have a second table that has no spatial geometry by a polygon information (more than one line).
so for example in my poly_tab and line_tab
poly_tab
poly_id line_id
46951 1001
46951 1005
46951 1009
46951 1032
46951 1036
56102 1072
56102 1079
56102 1082
39024 1050
39024 1045
........ and so on (note no spatial geometry column here and line_id is fk to line_tab and this table has line geom)
also to be noted here that 1002 and 1003 has no record in poly_tab table.
line_tab
line_id mdsys.geometry(sdo_gtype
1001 2002
1005 2002
1009 2002
1032 2002
1036 2002
1072 2002
1079 2002
1082 2002
1050 2002
1045 2002
1002 2002
1003 2002
1019 2002
lets says if I query poly_tab where poly_id = 46951
it should display
line_id
1001
1005
1009
1032
1036
1002
1003
note 1002 and 1003 are inner lines for this polygon but in poly_tab this line does not exits. (in poly table only boundary line exists)
@Stefan Jager
thanks in advance
saaz -
How to find the line no.
I am parsing an xml document and doing its custom validation (i.e putting in my own constraints).so can i notify on which line no. of the xml document is the error present?if yes how?
Rather than worry about a Locator, if you know the row number and column number where the problem occurs, how about using the non-locator constructors, such as:
public SAXParseException(String message,
String publicId,
String systemId,
int lineNumber,
int columnNumber)
Create a new SAXParseException.
This constructor is most useful for parser writers.
If the system identifier is a URL, the parser must resolve it fully before creating the exception.
Parameters:
message - The error or warning message.
publicId - The public identifer of the entity that generated the error or warning.
systemId - The system identifer of the entity that generated the error or warning.
lineNumber - The line number of the end of the text that caused the error or warning.
columnNumber - The column number of the end of the text that cause the error or warning.
Then you can do something like:
String msg = "complaint about the problem";
String fn = file.getPath(); /* or some string description of the file/stream you
are processing */
throw new SAXParseException( msg, fn, fn, row, col );Then, in your ErrorHandler implementation, you can use code like:
/** Returns a string of the location. */
private String getLocationString(SAXParseException ex) {
StringBuffer str = new StringBuffer();
String systemId = ex.getSystemId();
if (systemId != null) {
int index = systemId.lastIndexOf('/');
if (index != -1)
systemId = systemId.substring(index + 1);
str.append(systemId);
str.append(':');
str.append(ex.getLineNumber());
str.append(':');
str.append(ex.getColumnNumber());
return str.toString();
}Dave Patterson -
How to find CC Application manager update on Adobe wesite
My Creative Cloud application manager on my desktop always comes back with an "Error" message when trying to update the CC Applications manager to download and install the new Adobe software updates. (I'm using a Mac OS) Is there a quick (obvious) link on the Adobe website where I can go to update the CC Applications Manager since I'm not able to this this from the adobe CC icon on my desktop? I always have to hunt around the Adobe website for a while before I can find the the link to download the update the CC app. I'm wanting to download the CC update manager....not each of the individual apps.
For direct access, you can download any part of Creative Cloud – including the Desktop app or any of the individual tools – using the Adobe CC direct links.
Maybe you are looking for
-
How do I DUMP this POS Firefox 23.0 and go back to a good stable Firefox version?
The POS 23.0 is unstable, and does not function with most of the websites, Java, JavaScript, most of the players for videos... Just generally a POS!!!! I enjoy using FireFox, but this new version is JUNK!!
-
What is the best External Hard Drive for video edition?
Hi guys, I'm looking for a good firewire external hard drive for video edition. I have 2 HD already but the bigest is a Seagate and is a trouble cause this one have an auto sleep system that is impossible to put out and when I'm printing to tape this
-
Communication Channel not Processing Successfuly
Dear All, I am using file adapter at receiver side. i have sent some records from ECC. In MY CChannel Monitoring Message processing started but it is not showing successfull prcossing message . i have refersh the cache and refresh the CC Monitoring
-
Running a DOS program before an ABAP program
Hello we have Z_Order ABAP program which load order to SAP, we need to run a DOS program to get file to the correct folder. Is it possible to run this DOS program every time user run Z_Order program Thanks
-
[SOLVED] FontConfig Update and Anti-Aliasing
After doing upgrade of fontconfig exactly like explained on news here; http://www.archlinux.org/news/fontconfi - -required/ Font became too thin, I think anti-aliasing is working wrong now. I've even added this: https://wiki.archlinux.org/index.php/F