Getting direct reporting and indirect reporting employee
Hi,
In one of my development, their is a requirement to have a screen of type Tcode PPMDT.
My screen will be having tab strip for direct and indirect employee and on both tabs org structure will be displayed.
I am using function module RH_STRUC_GET to get the org structure details. I need to know the logic of separating direct reporting employee from indirect reporting employee from the data returned from function module.
Thanks
Vishal Kapoor
Hi,
In one of my development, their is a requirement to have a screen of type Tcode PPMDT.
My screen will be having tab strip for direct and indirect employee and on both tabs org structure will be displayed.
I am using function module RH_STRUC_GET to get the org structure details. I need to know the logic of separating direct reporting employee from indirect reporting employee from the data returned from function module.
Thanks
Vishal Kapoor
Similar Messages
-
Hello,
Our requirement is, we are developing a custom screen on portal(MSS No ESS) . On this we required employee search option. When manager select employee search it will only bring direct report employee not all the employee who belongs to his org unit or sub org unit.
Evaluation path (MSSDIREC) used by MSS to identify direct employee.
Can you please put some more light on it to achieve it.
Thanks
ShaktiShakti,
There is no standard FM.
But here you can find the code
function zhrpm_get_objects.
""Local Interface:
*" IMPORTING
*" REFERENCE(BEGDA) TYPE BEGDA DEFAULT SY-DATUM
*" REFERENCE(ENDDA) TYPE ENDDA DEFAULT SY-DATUM
*" REFERENCE(USER) TYPE SY-UNAME DEFAULT SY-UNAME
*" TABLES
*" T_OBJECTS STRUCTURE HRWPC_S_KEYOBJEC
*" T_OBJECTSTRUCTURE STRUCTURE HRWPC_S_KEYSTRUC
*" EXCEPTIONS
*" NOT_VALID_USER
*" NO_MANAGER
tables pa0002.
data litab_objec type table of objec with header line.
data litab_objec1 type table of objec with header line.
data litab_struc1 type table of struc with header line.
DATA litab_objec1_t TYPE TABLE OF objec WITH HEADER LINE.
data litab_struc1_t type table of struc with header line.
data litab_struc1_t1 type table of struc with header line.
data litab_objec1_f type table of objec with header line.
data litab_struc1_f type table of struc with header line.
data litab_objec1_m type table of objec with header line.
data litab_struc1_m type table of struc with header line.
data l_objid type hrobjid.
data: begin of litab_low occurs 0,
seqnr type int4,
end of litab_low.
data: begin of litab_low1 occurs 0,
seqnr type int4,
end of litab_low1.
data: l_pup1 type int4,
l_pup2 type int4,
l_leader_type type otype,
l_leader_id type realo,
l_pernr type persno.
data: itab_manager like objec occurs 0 with header line,
l_subrc type sy-subrc.
validate given user
select single pernr
into l_pernr
from pa0105
where usrid = user
and begda le begda
and endda ge begda.
if not sy-subrc is initial.
raise not_valid_user.
endif.
get the user managing org id
call function 'RH_STRUC_GET'
exporting
act_otype = 'US'
act_objid = user
act_wegid = 'SAP_MANG'
act_plvar = '01'
act_begda = begda
act_endda = endda
tables
result_objec = litab_objec
exceptions
no_plvar_found = 1
no_entry_found = 2
others = 3.
if not sy-subrc is initial.
raise no_manager.
endif.
loop at litab_objec where otype = 'O'.
get the below org units and all persons
call function 'RH_STRUC_GET'
exporting
act_otype = 'O'
act_objid = litab_objec-objid
act_wegid = 'O-S-P' "
act_plvar = '01'
act_begda = begda
act_endda = endda
tables
result_objec = litab_objec1
result_struc = litab_struc1
exceptions
no_plvar_found = 1
no_entry_found = 2
others = 3.
delete litab_objec1 where objid = 'S'.
delete litab_struc1 where objid = 'S'.
litab_objec1_T] = litab_objec1[.
litab_struc1_t] = litab_struc1[.
litab_struc1_t1] = litab_struc1[.
append lines of litab_objec1 to litab_objec1_f.
loop at litab_struc1 where otype = 'O'.
l_tabix = sy-tabix.
if litab_struc1-objid = litab_objec-objid.
move litab_struc1-seqnr to l_pup1.
move all persons under root
loop at litab_struc1_t where pup = litab_struc1-seqnr.
if litab_struc1_t-otype = 'P' and litab_struc1_t-objid ne l_pernr.
litab_struc1_f = litab_struc1_t.
append litab_struc1_f.
endif.
endloop.
else.
if litab_struc1-pup = l_pup1 .
get manager
CALL FUNCTION 'ZRH_GET_LEADER'
EXPORTING
plvar = '01'
keydate = begda
otype = 'O'
objid = litab_struc1-objid
IMPORTING
leader_type = l_leader_type
leader_id = l_leader_id
MULTIPLE =
EXCEPTIONS
no_leader_found = 1
no_leading_position_found = 2
other = 3
OTHERS = 4
move litab_struc1-objid to l_objid.
call function 'HRCM_ORGUNIT_MANAGER_GET'
exporting
plvar = '01'
otype = 'O'
objid = l_objid
begda = begda
endda = begda
path_id = 'BOSSONLY'
tables
manager_info_table = itab_manager
exceptions
path_error = 1
root_error = 2
nothing_found = 3
others = 4
move sy-subrc to l_subrc.
read table itab_manager with key otype = 'P'.
if sy-subrc 0 or l_subrc 0.
CHECK itab_manager-objid ne l_pernr.
if no leader move all persons
l_pup2 = litab_struc1-seqnr.
litab_low-seqnr = litab_struc1-seqnr.
append litab_low.
do.
loop at litab_low.
loop at litab_struc1_t where pup = litab_low-seqnr.
if litab_struc1_t-otype = 'P'.
litab_struc1_f = litab_struc1_t.
append litab_struc1_f.
elseif litab_struc1_t-otype = 'O'.
get manager
CALL FUNCTION 'ZRH_GET_LEADER'
EXPORTING
plvar = '01'
keydate = begda
otype = 'O'
objid = litab_struc1_t-objid
IMPORTING
leader_type = l_leader_type
leader_id = l_leader_id
MULTIPLE =
EXCEPTIONS
no_leader_found = 1
no_leading_position_found = 2
other = 3
OTHERS = 4
refresh itab_manager.
clear l_subrc.
move litab_struc1_t-objid to l_objid.
call function 'HRCM_ORGUNIT_MANAGER_GET'
exporting
plvar = '01'
otype = 'O'
objid = l_objid
begda = begda
endda = begda
path_id = 'BOSSONLY'
tables
manager_info_table = itab_manager
exceptions
path_error = 1
root_error = 2
nothing_found = 3
others = 4
move sy-subrc to l_subrc.
read table itab_manager with key otype = 'P'.
if sy-subrc is initial.
IF l_leader_type = 'P'.
read table litab_struc1_t with key objid = itab_manager-objid.
litab_struc1_f = litab_struc1_t.
append litab_struc1_f.
ENDIF.
IF litab_struc1_t-otype = 'P'.
litab_struc1_f = litab_struc1_t.
append litab_struc1_f.
ENDIF.
else.
litab_low1-seqnr = litab_struc1_t-seqnr.
append litab_low1.
endif.
endif.
endloop.
endloop.
refresh litab_low.
litab_low] = litab_low1[.
refresh litab_low1.
if litab_low[] is initial.
exit.
endif.
enddo.
else.
move only leader
IF l_leader_type = 'P'.
check itab_manager-objid ne l_pernr.
read table litab_struc1_t with key objid = itab_manager-objid.
if sy-subrc is initial.
litab_struc1_f = litab_struc1_t.
append litab_struc1_f.
endif.
ENDIF.
endif.
else.
endif.
endif.
endloop.
endloop.
loop at litab_struc1_f.
read table litab_objec1_f with key objid = litab_struc1_f-objid.
if sy-subrc is initial.
move-corresponding litab_objec1_f to t_objects.
append t_objects.
endif.
move-corresponding litab_struc1_f to t_objectstructure.
append t_objectstructure.
endloop.
endfunction.
Thanks
Bala Duvvuri -
How to Default 'Directly reporting employees' in Team Viewer
Hi,
Currently Team viewer in MSS has 'All Employees' by default. We have a request to change it to 'Directly reporting employees'. Can anyone suggest how we can acheive this?
Thanks,
SwapnaHi Prashant,
We are in 46c and view V_TWPC_ORGVWGRP does not exist in our system. I changed the order in view V_TWPC_VG. Order is changed in Tem viewer, but still defaulting 'All Employees'.
Thanks,
Swapna -
Team Viewer - How to default to Directly reporting employees
Hi,
May I know is it possible to default the Team Viewer to "Directly reporting employees"?
Thanks and regards,
Siew KuenHave you checked if it is possible via configuration? I have not played with it to that level in a while, but I thought I remembered being able to set that in some way...also, I thought you could set the org. limits as well...ie. make it so that ONLY direct reports show up versus all subordinates. I would poke around and check on the backend config first and/or the biz pkg config before looking for a programmatic way of doing it. Just my $0.02. Hope this helps.
-
What is the difference between Direct Taxes and indirect Tax. In which Cases those are both are applicable .
please give to me details
regards
RAMHi
a direct tax is one paid directly to the government by the persons (juristic or natural) on whom it is imposed (often accompanied by a tax return filed by the taxpayer). Examples include some income taxes, some corporate taxes, and transfer taxes such as estate (inheritance) tax and gift tax.
an indirect tax or "collected" tax (such as sales tax or value added tax (VAT)); a "collected" tax is one which is collected by intermediaries who turn over the proceeds to the government and file the related tax return.
assign points if useful -
Direct procurement and Indirect Procurement in SAP AFS
Hi,
Can you diffrentiate between Direct procurement and Indirect Procurement in SAP AFS.
thanks
AkiHi Aki,
Direct Procurement
Raw Material and Production Goods
Order Qty: Large
Value: Industry specific (Like shirt in apparel industry)
Direct procurement supports the conversion of planned requirements to purchase orders.
Primary Processes-Direct Procurement
1. Determination of the materials and services required.
2. Create requisition.
3. Request for the quotation.
4. Quotation Management.
5. Vendor selection.
6. Create Purchase Order.
7. Goods Receipt and Invoice Receipt.
8. Invoice Verification/ Vendor Payment.
Indirect Procurement
Maintenance, Repair and Operating (MRO) Supplies
Order Qty: Low
Value: Generic (Machine Spare Parts in any industry)
Indirect procurement supports the purchasing of indirect materials and subcontracting.
This process can be dealt with using standard functions such as material requirements planning, purchase requisition, stock transport order, transportation planning and the handling of internal deliveries.
The cross-plant, internal procurement of materials can be carried out within one company code (intercompany) or by using several company codes (cross company).
Primary Processes-Indirect Procurement
1. Requisitioning
2. Purchase Order Management
3. Receiving
4. Financial Settlement
Hope it helps.
Regards,
Anirban Roy -
Direct Purchasing and Indirect Purchasing in AP ?
Hi Experts
Please let me know what is direct purcdahsing and Indirect purchasing inlcuding the T codes and what are the implications in both cases on FI?
Thanks in advance and points assigned accordingly.
Meenakshi.NDear Meenakshi,
We can relate indirect purchasing & direct purchasing to PO based material procurement & with out PO based procurement resp.
In case of indirect purchasing, a procurement cycle starts from generating the PR -> PO -> Goods receipt -> Invoice verification.
Where as in direct purchasing no PO is generated & invoicing is done directly in FI.
Hope this of help to u.
Regards,
Ajay -
Direct Procurement and Indirect Procurement
Please explain the different between direct procurement and Indirect procurement??
Hi,
Direct Procurement
Raw Material and Production Goods
Order Qty: Large
Value: Industry specific (Like shirt in apparel industry)
Direct procurement supports the conversion of planned requirements to purchase orders.
Primary Processes-Direct Procurement
1. Determination of the materials and services required.
2. Create requisition.
3. Request for the quotation.
4. Quotation Management.
5. Vendor selection.
6. Create Purchase Order.
7. Goods Receipt and Invoice Receipt.
8. Invoice Verification/ Vendor Payment.
Indirect Procurement
Maintenance, Repair and Operating (MRO) Supplies
Order Qty: Low
Value: Generic (Machine Spare Parts in any industry)
Indirect procurement supports the purchasing of indirect materials and subcontracting.
This process can be dealt with using standard functions such as material requirements planning, purchase requisition, stock transport order, transportation planning and the handling of internal deliveries.
The cross-plant, internal procurement of materials can be carried out within one company code (intercompany) or by using several company codes (cross company).
Primary Processes-Indirect Procurement
1. Requisitioning
2. Purchase Order Management
3. Receiving
4. Financial Settlement
Hope it helps.
Regards
KK -
Direct material and indirect material
please explain the what is direct material and indirect material and its different between them
Hi.
Direct materils: These material are bulkly needed and regularly needed for that orgnization to have their end product. these materials usually raw materials ....
Indirect materials: these materils are needed with direct materlias for the manufacture or to produce end product.
Ex: If your orgn's is cement Industry.
Direct materials: Silica Sand. etc..
Indirect matrials:BAG. Gypisum.....
Hope you are Understand with these example...
Regards
S B H -
What is direct PO and indirect PO?
Dear Gurus,
What is direct PO and indirect PO?
Thanks in advance..Hello,
Direct materials are used directly in the production process and thus have influence on the value of the final good. This material is mostly held in stock and needs to be kept in inventory management.
Indirect material, also known as MRO material, could be office supplies or machine parts, for example. In most cases, indirect material is characterized by high-volume and low-dollar transactions
Ordering a direct material means ordering a product that will be received into stock. Account Assignment information is blank at the time of creating purchase order whereas for Indirect PO, Account Assignment is mentioned as appropriate K or F (Cost center, order, WBS etc.)
Hope this helps.
Ashutosh -
What is direct procurement and indirect procurement?
Dear Gurus,
What is What is direct procurement and indirect procurement from purchasing point of view.
Pls briefly explain with examples.
Thanks in advance..Direct procurement. Direct categories are all goods purchased by the company which directly enter into the production process of that company. For the food industry as an example, ingredients and packaging will be the key direct procurement categories.
Indirect Procurement. Indirect categories are all the goods and services that are bought by the company to enable its activity. This entails a wide scope, including marketing related services (media buying, agencies), IT related services (hardware, software), HR related services (recruitment agencies, training), facilities management and office services (Telecoms, furniture, cleaning, catering, printers), or utilities (gas, electricity, water)...etc
Regards
Lakshminath Gunda -
Query to get direct report and anyone under them.
Hello
Does anyone have a query that would give me a supervisor and his/her direct reports and any direct reports of someone that reports to that supervisor?
For an example if Kim reports to Jon and Jon reports to Doug and Doug reports to Steve.
Example
Steve's direct reports, would be Jon, Doug and Kim
Jon's direct report, would be Kim.
Any Idea's
Thanks,
KREPlease check previous threads -
Re: How to find loop in Supervisor Hirarchy.
Supervisor Hierarchy
Re: Query for Supervisor Hierarchy for top most manager
Cheers,
VB -
Direct Quote and Indirect Quote
Hi,
If i m trying to post a transaction in foregin currrency, what difference does it make, if there is direct or indirect exchange rate maintained for that curreny and local currency in OB08 (TCURR)
Thanks
BallaHi,
the two methods calculate the rate in two ways (directly & inversely).
In direct quotation, one unit of the foreign currency is converted into equivalent value units of your local currency. whereas in indirect quotation, one unit of your currency is converted to units of foreign currency. -
Infopath - Get information about direct reports users without code
Hi, Is it possible to do this?
Thanks in advance!Hi Hemendra,
he needs to get direct reports users field to figure out if current user have anyone reporting to him, which as a field if NOT null then current user is a manager to someone.
unfortunately direct reports users OOTB can't be retrived by UserProfileService, where only the following user data are retrivable:
UserProfile_GUID
FirstName
LastName
PreferredName
WorkPhone
AccountName
Department
Title
Manager
AboutMe
Office
PersonalSpace
PictureURL
UserName
QuickLinks
WebSite
PublicSiteRedirect
SPS-Dotted-line
SPS-Peers
SPS-Responsibility
SPS-Skills
SPS-PastProjects
SPS-Interests
SPS-School
SPS-SipAddress
SPS-Birthday
SPS-MySiteUpgrade
SPS-DontSuggestList
SPS-ProxyAddresses
SPS-HireDate
SPS-LastColleagueAdded
SPS-OWAUrl
SPS-ResourceAccountName
SPS-MasterAccountName
Assistant
WorkEmail
CellPhone
Fax
HomePhone
hope this helps
If a reply helps you Vote As Helpful, if a reply solves your problem don't forget to Mark As Answer. Aabed Yassine. -
RFC / BAPI for getting Directly Subordinate Employees
Hi Experts,
I have a simple query. Do we have any standard RFC or BAPI in ABAP which will take the pernr of Manager as input and return list of all subordinate employees.
In fact, I am developing one MSS report. In this report, I have to display directly subordinate employees of the manager.
If standard RFC or BAPI is not available, then kindly let me know how to know the directly subordinate employees of a manager.
Please help.
Regards,
GaryHi Bernd,
I followed the below mentioned steps:
1) Read orgeh from pa0001
2) Passed following parameters in RH_STRUC_GET
ACT_OTYPE O
ACT_OBJID value obtained from orgeh-pa0001
ACT_WEGID o-o-s-p
ACT_INT_FLAG
ACT_PLVAR 01
ACT_BEGDA 26.04.2011
ACT_ENDDA 26.04.2011
ACT_TDEPTH 5
ACT_TFLAG x
ACT_VFLAG x
AUTHORITY_CHECK x
TEXT_BUFFER_FILL
BUFFER_MODE
The RFC is returing 2118 records. The Manager have only 13-14 direct report. I changed the value of act_tdepth to 3 and 4. However the RFC is still giving wrong no of records.
I am wondering why SAP does not have a standard RFC for getting direct reports. This is a very common functionality needed for any MSS development/
Regards.
Gary
Maybe you are looking for
-
while installing adobe creative cloud , getting the following error msg " There seems to be a problem with the download process. Error code:201"
-
Image Processor Jpg Files Cause LR to Stop Working
Photoshop CS3 and Lightroom 1.4.1 Vista Ultimate 64 / 8 Gig Ram / Lots of Hard Drive space on Scratch Drive nVidia 8800 GTS w/640 MB Ram Image files processed in Photoshop Exported via: File > Scripts > Image Processor (IP) IP settings are default ex
-
HT201209 i want to re-gift an itunes card, how can i tell if it is still valid?
i want to re-gift an itunes card, how can i tell if it is still valid?
-
Comparisons on Flex MVC Frameworks
Hi, I have been doing a comparison Cairngorm, Swiz, Mate, and PureMVC. I plan on presenting my analysis to the developers at my company and my blog. Before I do so, I want to reach out to the maintainers of each project for comments. I feel offering
-
"Partially working" remote and no Speaker menu on Nano with HiFi
I just received a new HiFi - I docked my Nano (4gb) and it works fine... however: • Apple remote only controls the volume. Forward, Back, Menu, Play/Pause do not. The green light on the HiFi goes on when these buttons are pressed (Amber for the Menu