Getting Employee's Complete Hierarchy In SAP HR
Hi All,
I am trying to get complete hierarchy for any one employee in SAP HR. When user enters any employee code then he must be able to get that employee's complete hierarchy i.e. Mangers till root and their respective org units.
Please help me in this
Thanks,
Shailesh
Use FM ''RH_TYPE_STRUC_INDEX' like below before using 'RH_STRUC_GET'
* root org units in the given plan version of the EO
DATA: lt_root TYPE STANDARD TABLE OF hrobject,
wa_root TYPE hrobject.
* structure information
DATA: lt_structure TYPE STANDARD TABLE OF struc,
lt_object TYPE STANDARD TABLE OF objec.
* EO structure information for a given root org unit
DATA: lt_eo_struc_tmp TYPE gty_eo_struc_t.
* get the root org units of the given EO plan version
CALL FUNCTION 'RH_TYPE_STRUC_INDEX'
EXPORTING
act_plvar = pd_plvar "plan version
srk_otype = c_otype_org_unit "VALUE 'O ',
act_wegid = 'ORGEH'
act_svect = '1'
act_begda = pd_key_date
act_endda = pd_key_date
update_index = true
TABLES
root_object_index = lt_root.
LOOP AT lt_root INTO wa_root.
* get EO structure for the current root org unit
CALL FUNCTION 'RH_STRUC_GET'
EXPORTING
act_otype = wa_root-otype
act_objid = wa_root-objid
act_wegid = 'SAPIMORG' "custom one
act_plvar = wa_root-plvar
act_begda = pd_key_date
act_endda = pd_key_date
buffer_mode = true
TABLES
result_objec = lt_object
result_struc = lt_structure
EXCEPTIONS
OTHERS = 1.
Endloop.
Similar Messages
-
How do we get complete hierarchy for a WBS element??
Hi All,
Is there any FM to get complete hierarchy for a WBS element??
Or any other method that would achieve this requirement ??
Eg:
C.00103.1
C.00103.1.1
C.00103.1.2.3
C.00103.2
C.00103.2.1 etc
If i give C.00103.1, all the WBS elements in the hierarchy should be displayed.
Any pointers are of great help.
Regards
PrathimaHi,
Available Methods
Getinfo : Read detailed information about WBS [ BAPI_PROJECT_GETINFO ]
Maintain : BAPI: Project maintenance [ BAPI_PROJECT_MAINTAIN ]
SaveReplica : Replicate work breakdown structure (ALE) [ BAPI_PROJECT_SAVEREPLICA ]
The WBS hierarchy object type defines the hierarchy of the WBSelements. A project definition always has exactly one hierarchy. If theposition of a WBS element changes, the whole hierarchy has to berebuilt. Therefore, the WBS hierarchy object type has only one command:
Create. Every WBS element receives exactly one entry in the table parameter IWbsHierarchieTable with which it defines its position.
Command: Create
Use this command to create or change a WBS element hierarchy for aproject definition. Enter the WBS hierarchy object type and the Create
command in the table of the IMethodProject parameter. The commandrefers to all entries in the table of the IWbsHierarchieTable parameterthat contains the data for the data for the hierarchy. Each entry inthe IWbsHierarchieTable refers to a WBS element that describes its position relative to the other WBS elements.
Example
- Positioning WBS elements TRAINING , TRAINING.1 and TRAINING.2 . (WBS elements TRAINING.1 and TRAINING.2 are subordinate toWBS element TRAINING. WBS element TRAINING1 is positioned on the left of TRAINING.2.)
IMethodProject
OBJECTTYPE = WBS-Hierarchy
METHOD = Create
OBJECTKEY =
REFNUMBER =
OBJECTTYPE =
METHOD = Save
OBJECTKEY =
REFNUMBER = I
ProjectDefinition
PROJECT_DEFINITION = PD-TRAINING
IWbsHierarchieTable
WBS_ELEMENT = TRAINING
PROJECT_DEFINITION = PD-TRAINING
UP =
DOWN = TRAINING.1
LEFT =
RIGHT =
WBS_ELEMENT = TRAINING.1
PROJECT_DEFINITION = PD-TRAINING
UP = TRAINING
DOWN =
LEFT =
RIGHT = TRAINING.2
WBS_ELEMENT = TRAINING.2
PROJECT_DEFINITION = PD-TRAINING
UP = TRAINING
DOWN =
LEFT = TRAINING.1
RIGHT =
Notes
Further Information
For more information, see the R/3 Library under PS Project System -> Structures -> EPS Interface
Regards,
Vijetha. -
Product : Errors in attribute hierarchy structure SAP BCA 000164
Hi All ,
When ever i create /Display /Change Product in
Financial Supply Chain Management --> In House Cash > Master Data>Product Definition--> Product --> Create /Change/Display
system through below mentioned error .
I tryed to resolve problem as per below mentioned program through se38 , but still getting same error
Errors in attribute hierarchy structure SAP BCA 000164
Message no. FIPR217
System Response
An error was found in the attribute hierarchy.
In some cases, it is not possible to display the attribute hierarchy without having to correct the errors first.
Procedure
It is recommended that you run the FIPR_CLEAN_ATTRIBUTES (by using transaction SE38). This report can recognize errors, and it attempts to correct them automatically.
Caution: This report can change your table entries permanently.
Once this report has run, you need to check the hierarchy structure, and make any necessary changes.
Regards
Prakash SharmaHi,
the realignment (KEND) does not change the line item tables (CE1***, CE2***), thats why they remain unchanged.
The line items in CE1**** can not be changed. If you really want to have new line items (with the new prod. hierarchy) try in test-client if the use of report RKECADL1 and the new transfer to CO-PA for the deleted line items (KE4S, KE4SFI,...) can help you (SAPNET-note 69370 for details).
CE2**** + SQL-error: As per now, I don't have an idea how to deal with that cases.
best regards, Christian -
Product Group Hierarchy in SAP BI for 0SD_MP03
Hello Guru,
I am working on BI 7.0. I have activated Sales Infocubes, DSO and Multiprovider on BI side. I am working on 0SD_MP03 multiprovider. I have a field called 0PROD_HIER which represents Product Hierarchy which we can see for any material in MM03 t-code. how ever in MM03 t-code we can go upto 3 level (Main Group, Group and Sub group) how ever on BI side we can see only 1 level.
I want to see all 3 levels when i click on 0PROD_HIER because i want to see a relation of a material and it belongs to which main group and group but i see that there is no standard content for Product Hierarchy in SAP BI or ECC . Can any body help me on how to get this hierarchy on BI side ?
Regards,
Komik Shah
Edited by: komik shah on Nov 30, 2010 7:51 AMHi Mti,
Thanks for your reply.
I have done 2 scenarios which is mentioned below..
1, I created a hierarchy for 0MATERIAL info object with 0MATERIAL_LPRH_HIER data source. I ran infopackage and it showed a popup "DATA WAS REQUESTED" but when i went to Hierarchy symbol -> Maintain Hierarchies, i am not able to see any hierarchies there.. am i missing something ?
2. I have activated 0PROD_HIER_LPRH_HIER dat sorce ECC. replicated it on BI side and created transfer rules wit 0PROD_HIER infoobject. I created infopackage and it has shown me hierarchy in selection. I ran infopackage and it said that "DATA WAS REQUESTED" but i din't see any hierarchies in RSH1... am i missing something here as well ?
You help is much appeciated in advance.
Regards,
Komik Shah -
How to get an user field in a sap form
SBO2004
I'm trying to get an user field in a sap form(651).
My code is:
Dim FrmT As SAPbouiCOM.Form
Dim Itm As SAPbouiCOM.Item
FrmT = GestorSAP.SBO_Application.Forms.GetForm("651", 1)
If (Not FrmT Is Nothing) Then
Itm = FrmT.Items.Item("U_Project")
End If
Frmt is not nothing, but itm is ever nothing and gives me an exception(item not valid). If i go to sap and look at this form, with debugging info activated, i see:
Form=651 Itm=U_Project Variable=1 OCLG,U_Project
What am i ding wrong?Hi Miguel Angel.
Try with form "-651".
UDF form is the negative sap form.
HTH
Juli
P.S:I'm not sure your code works, I never work with GetForm method, but yes with UDF form -
I can't seem to update my software, every time I do it says that there is a problem and to close everything that is open. Once I close everything it still doesn't work. How do I get it to complete?
Make sure there's enough free space on the startup disk to install software updates...
Right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see Capacity and Available. Make sure there's a minimum of 15% free disk space.
Freeing Up Hard Disk Space - Mac Guides -
How to get the list of materials from Sap r/3
Hi Experts,
I have one doubt, here iam implementing
HTTP TO RFC scenario.
My doubts are------
1. Should we create DT MT MI and all (OR) not
2.In Request DT how the message structure wil be to get the list of materials from sap r/3 system as Response(Ex: Fields in the source structure).
3.Or the second thing is how to get the list of materials start with some alphabate.
Please reply me for each and every questions mentioned above. Please clarify me.
Helpful answers wil be rewarded.
Reagards
khannaHi Khanna,
<i> 1. Should we create DT MT MI and all (OR) not</i>
Yes U need to create for HTTP site...for RFC U need to import..
<i>2.In Request DT how the message structure wil be to get the list of materials from sap r/3 system as Response(Ex: Fields in the source structure).</i>
You create your own structres for Request and respoce.. and Map it with RFC..
<i>3.Or the second thing is how to get the list of materials start with some alphabate.</i>
I think it will come with acending order....
for more help go through this link
/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit - File to RFC
regards,
Ansar. -
After upgrading to Mountain Lion, I repurchased Garageband and I can't get passed the complete installation. I've read through several posts that all reference the "com.apple.garageband.plist" solution. I don't seem to have the referenced .plist. Any solutions or suggestions?
Did you upgrade from SnowLeopard?
I can't get passed the complete installation
What exactly is happening? Is GarageBand trying to download over and over again?
all reference the "com.apple.garageband.plist" solution. I don't seem to have the referenced .plist.
The property list stores your preferences, but also the settings from the last run of the application. If that file is corrupted in some way, you might see third behaviour.
You must have this file, for it will be recreated automatically, if it is missing, or you have a permissions problem with your user library.
Perhaps you did look in he wrong place.
in MacOS 10.7. or later the User Library is hidden. To find the Preferences Files use the Finder's "Go" menu:
Quit GarageBand, if it is running.
Click onto you Desktop to bring the Finder forward.
In the Finder Menu press "Go" and hold down the "option/alt" key, until your user library appears in the drop-down menu
Select "Library" and in the Finder window that opens navigate to the "Prederences" folder; move com.apple.garageband.plist to the Desktop.
Log off and on again (don't skip that step!). Retry GarageBand and see if it GarageBand is now downloading the missing content properly.
If that does not fix the problem, post back and explain in more detail what the download problem is.
Why did you "repurchase" GarageBand? If you already owned GarageBand '11, it should be unnecessary.
Regards
Léonie -
How to get Employee Picture in Smartforms
Hi Experts
Please help me out in getting employee picture in Smartforms
I have used the following FMs
1. HR_IMAGE_EXISTS
2. SCMS_DOC_URL_READ
By using these two FM i got the URL and i am able to get the picture in my Report Program,by using FM 'ISM_URL_SHOW'.
But Please tell how to get this picture in Smartform .
As i am generating Employee Biodata and in that i need employee Picture.
Please HELP me ....
Thanks & Regards
Shaveta PrabhakarHi,
U need pictures in smartforms for that just try this one I think so it will help full to u.
First Upload that picture in the se78 that photo must be in the bitmapformat(picture.bmp).
steps are:
goto se78>graphics->import--->it asks the file path here,fill those details
Then goto Smartform--->In which page u want to put the picture,
there click that page and goto Background picture,
here give the name of that picture and select the resolution and positin of the picture there.
Then u will get the picture in the output.
Regards,
Surya -
So for the last 36 hours I have attempted to install Adobe Pro with no luck. Creative Cloud is the app I am forced to use to install. I have windows 7 OS, as the installing begins all is working just fine. As the installations gets about 50% complete, it seems to stall out and then Windows interrupts and says "Creative Cloud is not responding, Windows will find a solution and fix the problem" Mind you Windows never comes back with anything close to an solution. Has anyone seen this?? Do you have an fix?? It would be greatly appreciative
Hi,
Could you please retry after restarting the system.
If this issue does not get resolved even after restart then please share the following details :
1. Do you have any previous version of Acrobat installed?
2. Share PDApp.log, MSI Installation log file from %temp%
Thanks,
Vinod -
Getting An Error while connecting to SAP :InComplete logon data
Hi
I trying to get the tables of SAP using Sapproxy class ,but enable to get the table from SAP Table..
and also using SAP Connector 2.0.1 to connect the .net ,I got the SAP function and I write the code for it but enable to get the data in from the SAP
I am binding the data to the data grid
it is displaying the error like:
SAP.Connector.RfcLogonException: Incomplete logon data.
How to fix the problem ? suggestion please
Thanks1.check your hibernate.cfg.xml file and make sure you use "xwiki/xwiki" as the username and password.
2.make sure you have create "xwiki" tablespace in your oracle db.
B.R
Han -
Could anyone provide the complete manual of SAP Query Creation
Hi,
Now I am learning to create SAP Query.
I viewed many questions and answers about SAP Query.
Some mentioned this,and some did that...
Could anyone provide a complete manual of SAP Query Creation for developers.
I can create SAP Queries step by step with it.http://help.sap.com/saphelp_46c/helpdata/en/35/26b413afab52b9e10000009b38f974/content.htm
http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Introduction.asp
Step-by-step guide for creating ABAP query
http://www.sappoint.com/abap/ab4query.pdf
ABAP query is mostly used by functional consultants.
SAP Query
Purpose
The SAP Query application is used to create lists not already contained in the SAP standard system. It has been designed for users with little or no knowledge of the SAP programming language ABAP. SAP Query offers users a broad range of ways to define reporting programs and create different types of reports such as basic lists, statistics, and ranked lists.
Features
SAP Query's range of functions corresponds to the classical reporting functions available in the system. Requirements in this area such as list, statistic, or ranked list creation can be met using queries.
All the data required by users for their lists can be selected from any SAP table created by the customer.
To define a report, you first have to enter individual texts, such as titles, and select the fields and options which determine the report layout. Then you can edit list display in WYSIWYG mode whenever you want using drag and drop and the other toolbox functions available.
ABAP Query, as far as I Believe, is the use of select statements in the ABAP Programming. This needs a knowledge of Open SQL commands like Select,UPdtae, Modify etc. This has to be done only by someone who has a little bit of ABAP experience.
To sum up, SAP queries are readymade programs given by SAP, which the user can use making slight modification like the slection texts, the tables from which the data is to be retrieved and the format in which the data is to be displayed.ABAP queries become imperative when there is no such SAP query existing and also when there is a lot of customizing involved to use a SAP Query directly
use either SQ02 ans SQ01
or SQVI tr code
for more information please go thru this url:
http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Create_The_Query.asp
http://goldenink.com/abap/sap_query.html
Please check this PDF document (starting page 352) perhaps it will help u.
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVQUE/BCSRVQUE.pdf
check the below link will be helpful for u
Tutorial on SQVI
once you create query system generates a report starting with AQZZ/SAPQUERY/ABAGENCY2======= assing this report to tr code for the same
useful
http://www.erpgenie.com/abap/code/abap47.htm
regards,
Prabhu
reward if it is helpful -
I Got a new iPad last month and sent up in the usually way and syncd to iCloud. However it has ever since shown a comment saying:
Restoring from from I cloud backup
i I have no idea how to get it to complete. Or do I need to re-set and start again?
Help!Where do you see this message? I know it can take a few hours to restore from an iCloud backup if you had lots of apps, data, movies, camera roll photos etc on it, but it should not take days and daus to finish.
Have you restarted or reset your iPad since you got it? Not the reset that you are talking about - I mean the system reset. Try either or both and see if the message goes away.
Restart or reset your iPhone, iPad, or iPod touch - Apple Support -
How to get the field COMPLETION in extract layout
Hi,
Does anyone knows How to get the field COMPLETION in extract layout? i have not been able to find it and it is imperative to have it for implementing a new evaluation.
Thanks a lot for your help.
CAMILO URIBEHi Neil,
The following steps describe what we did to get the new evaluation:
1. Define Attributes and Object Types for Evaluations: here we added a new field for evaluation. The field was COMPLETION (degree of processing in percent), with relevant object "TASK". "No Summarization" was configurated as Rule for Summarization
2. Define Extract Layouts: here we created a new extract layout for evaluation. The objects and attributes to be used were defined (the field COMPLETION was defined as attribute).
3. Assign Extract Layouts to Project Types.
4. Define Evaluations: the new layout for evaluation were created using the attributes.
5. Define Severity.
6. Define Threshold Values. In the new evaluation the field COMPLETION was used in the formula.
After configurating and testing, we have noticed that the values of field COMPLETION are not taking into account. It does not matter which value it has, evaluation always take 0.
Thanks for your help,
CAMILO URIBE -
How can I get Itunes to complete IOS 5.0.1 download?
I have tried to download update IOS 5.0.1 for my IPad into Itunes but it times out during the processing stage. How can I get it to complete?
disable your firewall/security software/anti-virus and try again.
Maybe you are looking for
-
Is it safe to store the downloaded movies from iTunes in my Macbook Pro or do I need to store those separately in an external hard disk ? Please advice.
-
Wmv export directly from Shake?
hi caused off short production time, i need to export wmv´s directly out of shake. For a recoding in Quicktime won´t be time at the end of the production workflow. The clips i generate will be part of an realtime »PC« 3d engine. That´s why it must be
-
Hi All, I'm trying to Use Service Call Functionality in Web Dynpro Component to use the class method for the context. When running the wizard I'm only getting the option of Function Module RADIO BUTTON ONLY. I'm not getting the Class method and other
-
Hey everyone, I am having issues with my feedback form. I have followed tutorials on how to create one, and I thought I did everything correctly until I tested it. The words were not supposed to be underlined, and the color I picked was black, not gr
-
Batch rename in automator with step
I'd like to rename a large number of files in Automator with alternate numbers. For example, files 1-10 would be renamed 1,3,5,7,9,11 etc, and 2-10 would be renamed 2,4,6,8,10,12 etc. I'm familiar with rename finder items but cannot think of a way to