Working of 'RH_STRUC_GET'
Hello,
I have a following Org structure
O (Org1)
|_ S
| |_ P (P1)
|
|_ S
| |_ P (P2)
|
|_ O (Org2)
|_ S
|_ P (P3)
I want to get P1 and P2
I am using RH_STRUC_GET function module to retrieve the same.
This is how I am passing the parameters
CALL FUNCTION 'RH_STRUC_GET'
EXPORTING
act_otype = 'O'
act_objid = Org1
act_wegid = 'O-S-P'
act_plvar = '01'
act_begda = sy-datum
act_endda = sy-datum
act_tdepth = 3
TABLES
result_tab = it_sw
result_objec = it_objec
result_struc = it_struc
EXCEPTIONS
no_plvar_found = 1
no_entry_found = 2
OTHERS = 3.
This way the FM returns P1, P2 and P3, but I want only P1 and P2.
Why is it happening so?
Are the depth and evaluation path I mentioned correct?
How is the level considered. Since I am passing Org1, is that org unit considered as level 1? Or is it that the level 1starts from Org2?
Where can I get the documentation for the function module 'RH_STRUC_GET'?
Please help me out.
Thanks & Regards,
Reena
Edited by: Reena Kandula on Aug 18, 2009 2:16 PM
Edited by: Reena Kandula on Aug 18, 2009 2:21 PM
Reena,
The values you have passed in 'RH_STRUC_GET' are correct.
You wont be able to get 'P3' if you give 'Depth' as 3.
Level 1 starts from Org1.
In your structure Org1- level 1,
S - level 2,
P1 - level 3,
Org2 - level 2,
P3 - level 4 (won't be displayed).
You can check this structure level in table RESULT_STRUC , check the 2nd column which contains level number.
Regards,
Thyagu.
Similar Messages
-
Evaluation path in CRM - RH_STRUC_GET not working !!
Hi all,
I created a new evaluation path in CRM 4.0 to determine the business partners in an organizational unit.
If I test it in PPSS it works absolutely perfect, however I have to use it in an ABAP and there I found out that FM RH_STRUC_GET doesn't work (maybe BP is excluded somewhere)
Is there another FM working in CRM, or do I have to fill some HR table to get this to work, otherwise I have to do it manually by selecting from HRP1001 tables.
Kind regards, Rob DielemansSorry,
It had something to do with buffers.
RH_STRUC_GET uses buffers and ppss doesn't.
It now works as planned.
Kind regards, rob Dielemans -
Error in FM RH_STRUC_GET
Hi all,
I have an error FM RH_STRUC_GET,
I have entry in Pa0001,
pernr 81328
start date 02.05.2008 ,enddate 31.12.9999
position :20050130 MANAGER
MANAGER SUPPORT
org unit: 00022828 SDH
SDH Consulti
But when i run STRUC_GET
using parameters
ACT_OTYPE P
ACT_OBJID 81328
ACT_WEGID P-S-O
ACT_INT_FLAG
ACT_PLVAR
ACT_BEGDA 22.05.2008
ACT_ENDDA 22.05.2008
ACT_TDEPTH 10
ACT_TFLAG X
ACT_VFLAG X
AUTHORITY_CHECK X
TEXT_BUFFER_FILL
BUFFER_MODE
The below error shows..
Runtime: 17.907 Microseconds
Exception NO_ENTRY_FOUND
Message ID: 5W Message number: 170
Message:
Structure 01 P 81328 P-S-O: No agent found.
If the relationship is there in HRP1001, will get the same result in STRUC_GET ....what wrong whith the FM??
regards
JoseIt should work exactly as transaction PPSS (apart from the buffer)
RH_STRUC_GET uses the HR-buffer and PPSS retrieves the data directly from the HR tables.
You can synchronise the HR-Buffer with SWU_OBUF.
If you can find no differences, then look at how you populate the parameters, Person 81328 shouldn't this be Person 00081328, for instance
Kind regards, Rob Dielemans -
How to get users from Organizational Unit and with worker's subgroup
Hi
I am looking for a f. module to get the list of users from specific Organizational Unit and with specific worker's subgroup.
I found f. module SWI_GET_USERS_OF_ORG_UNIT but it seems not working and only returns the users, how can I narrow the selection to get only from specific worker's subgroup?
Thank youHi,
Try with FM RH_STRUC_GET with following parameters:
ACT_OTYPE = O
ACT_OBJID = worker's subgroup
ACT_WEGID = SBESX
Most important is to specify OBJID as the workers's subgroup, values for the others parameters may vary.
Cheers. -
Rh_struc_get authorization
Hi,
rh_struc_get function module is failing for a user.Its working fine for other users.
Its a authorization problem.
i am using evalution paths like a008,etc.
Any specific HR authorizations to be given for this??
please provide any details or links that are helpful.
Thanks in advance for the help.
Nuthan.to check if an authorization check failed use transaction su53 to see if this is the case.
Also rh_struc_get uses the HR buffer, so if you use it after changes are made you probably don't see anything, using swu_obuf will clear this problem.
Kind regards, Rob Dielemans -
'RH_STRUC_GET' having issues after upgrade
Hi Wokflow experts,
I have a program tha uses the FM 'RH_STRUC_GET' to get users from work centers. The FM interface is as below. It was working fine in SAP enterprise, but in ECC 6.0 this FM has stopped returning any values. It returns the exception Structure 01 A 50000100 WF_ORGUS: No agent found.
CALL FUNCTION 'RH_STRUC_GET'
EXPORTING
ACT_OTYPE = OTYPE
ACT_OBJID = OBJID
ACT_WEGID = 'WF_ORGUS'
AUTHORITY_CHECK = ' '
Can anyone suggest a solution to this problem.
Regards,
Kartik N.Hi Kartik,
Check the values you are passing to the FM. Also fetch the output of table RESULT_TAB and see if you are getting values.
CALL FUNCTION 'RH_STRUC_GET'
EXPORTING
ACT_OTYPE = <enter value>
ACT_OBJID = <enter value>
ACT_WEGID = <enter value>
AUTHORITY_CHECK = 'X'
TABLES
RESULT_TAB = result_tab
EXCEPTIONS
no_plvar_found = 01
no_entry_found = 02
OTHERS = 99.
Try passing the following values and check.
Regards,
Saumya -
Can anyone suggest a function module that returns all work centers assigned to a pernr (via the organization model).
I have tried function modules RH_STRUC_GET and BAPI_ORGUNITEXT_DATA_GET with various evaluation paths (including ALLASSGN) but can not get the work centers.
Many thanks.
IanHi Ian,
try fm COI2_PERSON_OF_WORKCENTER
Example:
IN_OBJECT
OBJTY "P"
OBJID "4711"
Best regards
Stephan -
RH_STRUC_GET example
Hi,
Does anyone have sample code that I can pinch. I want to get all the employee numbers that report to a manager.
I assume the best way is using RH_STRUC_GET but there may be a better way?
Thank you.Hi Satish,
this FM works only under Organizational management. I suppose that the BW has it's own instance.
I think that there are 2 options for transfer OM into BW
as data to datacubes for reporting
as OM for use it maybe as background for authorizations
As I have only little experiences with transfer OM through standard ALE to BW I only test to transfer objects O (Organizational Unit), S (Position) and C (Job). For me I wasn't able transfer objects P (person) into BW. And in this cause you will be able to use this RH_STRUC_GET functional module.
If you will have the OM transferred through extractors into BW then not. This is my experiences that I have from transferring OM across systems (from HR own instance to own instances of ERP, CRM, SolMan and BW systems).
BR -
Not work tablet UI on Prestigio 5080 PRO tablet
I read that browser.ui.layout.tablet = "1" can fix this problem. But it not works. I can work only in pnone interface that is not good for my 8'' tablet.
Would it be possible for you to share the problematic pdf and OS information with us at [email protected] so that we may investigate?
Thanks,
Adobe Reader Team -
Apple Mini-DVI to Video Adapter - Can't get it to work!
Bought the Apple Mini-DVI to Video Adapter to hook up my Macbook to my TV. I tried it when it first arrived and it worked within minutes of setting up. Great! I go to set it up and use it again a week later, and it wouldn't work at all. I went through every possible setting I could to try and get it to work, nothing. Do these things have a tendency to go out or short out or something? I'm getting nothing but scrambled screens, grey screens, etc. Nothing seems to work.
http://store.apple.com/us/product/M9319G/A?mco=MTY3ODQ5OTY
Any other solutions for playing my laptop on my TV?Hey Rob,
Is your profile information accurate? The MacBook 2,1 was introduced in November of 2006 and discontinued in May of 2007, so the mini-DVI to video adapter ought to work.
What, exactly, do you see on your screen? Are all of the connections nice and snug? Do you have another RCA cable you can try? You can use a white or red one if you want; they all will work as long as you're connecting the video adapter to the yellow port on the TV.
~Lyssa -
Apple Mini DVI to Video Adapter is not working. Please Help...
I bought an Apple Mini DVI to Video Adapter to connect my Macbook to a TV using normal video cable. When I connect the cable, my Laptop DIsplay gives a flickr once and then it shows nothing. I checked Display in the system preference where I don't get a secondary monitor option. My TV is panasonic and it's an old one. I work on Final Cut Pro and it's very very important to see my videos on a TV. What am I doing wrong with the connection? Anyone Please Please help...
Your probably not doing anything wrong. There are thousands of users with Similar issues and it seems to be with many different adapters.
We have Mini DP to VGA (3 different brands) and they all fail most of the time. This seems more prevalent with LCD Projectors. I've tested some (50+) with VGA Monitor (HP) and they all worked, LCD Projector (Epson, Hitachi, and Sanyo) and they all fail, DLP Projector (Sanyo) and one worked.
My Apple Mini DP to DVi works most of the time. My Mini DP to HDMI (Generic non Apple) works every time.
The general consensus is that Apple broke something in the OS around 10.6.4 or 10.6.5 and its not yet fixed. As we are a school we have logged a case with the EDU Support group so will see what happens.
Dicko -
IPod no longer works with car stereo since upgraded MBA & iTunes
My iPod classic has worked just fine connected to my car stereo since i bought it last june. I just bought a new Macbook Air (OS 10.7.3) & installed ITUNES 10.6.1. After I synched my ipod for the first time its recognised by the car but i get a "can't read data" message. I re-formatted my ipod but its exactly the same. Do you think its the upgrade- or the cable? Has anyone else found a bug with this version of Itunes or the OS? I have my doubts a cable would make the difference, and my old ipod nano that i haven't synched for a while works fine.
If standalone works fine, then, most likely the 30 pin connect may have some dirt or lint, prevent data transfer.
You can try to blow it clean, if you have a can of compressed air or gas.
Alternatively you can connect it to the car stereo and do the RESET, while connnected.as follows
Toggle the Hold switch, make sure you dont see the red mark when you do the next step
Reset the iPod -> Press Menu and Center button simultaneously for about 10 secs or till the Apple Logo comes ON
Then release the buttons
Select your preferred language.
Here is the Apple support Article on the 5Rs
http://www.apple.com/support/ipod/five_rs/classic/
The Reset sequence may send a signal to the Car stereo to do the right thing -
PCS no longer working with contacts and 6086
I have applied the latest release of PC Suite 6.84.10.3.
Previously the installed level was 6.83.14.1
The send/read/write message still doesn't work but hangs the Windows Explorer for a while (this hang didn't occur previously)
But now, the contact facility no longer works. It is no longer possible to edit a contact, to store it locally or to send it to the phone even a message says everything is OK
(translate it from french: The contact has been well recorded into the phone)
Folder browsing still works correctly, either the phone folder or the memory card folder
Need a fix or a way to install the previous version, at least for the contacts...
This is a really negative feedback!
PhilI guess what I learned is that sometimes the best solution is to do nothing and wait for the problem to solve itself! Funny, this has never worked for me before.
WOT is now working for me but often for only the first few rows of images. That's cool that it is also working with bing images.
Boudica, thanks for understanding. I am new contributor/ question-asker here on mozilla and may not understand how things are done. I was just frustrated, getting an email saying that my question was answered, logging in to find that it wasn't.
Now we have the functionality that we wanted, right? -
Brand new IPOD Touch Apps no longer work after upgrading software
I got a Ipod touch for my wife Today at Wal-Mart. I brought it home, connected to wifi and downloaded some apps and also payed for some. They all worked fine. Then I connected to computer to transfer songs. It told me to upgrade the Ipod software so i Did. After it restarted none of the downloaded apps work anymore. I have read MANY MANY MANY discussions on this and there is no fix. I am not wiping out all the songs and reload everything all over again. It will take forever. My wifes BD is Friday and this is making me so mad after I just dropped $300 on this thing. APPLE!!! Where is the fix? I deleted the apps and reinstalled they still don't work. Anybody got this figured out? I am getting ready to get my money back and tell everyone to avoid buying ipod until they get this upgrade bug fixed.
Message was edited by: 2009 IPOD TOUCHI have the same problem. Brand new two days ago. I synched the touch with Itunes but wasn't hooked up to the internet at the time so didn't do the software upgrade right away. Then I downloaded about a dozen apps (free and paid) with wifi directly to the touch. They all worked fine. Then I plugged it back in to Itunes and had it upgrade it to 3.1.2. It locked up Itunes several times since then and the downloaded apps no longer work (they start to open then disappear).
The problem is, no one is listening to this problem (including Anna above)! Everyone says "just do a hard reboot, or restore to factory settings, reload the apps, etc." I've tried all the standard troubleshooting but none of it fixes this. It sure seems to me this is a problem with 3.1.2 but Apple isn't helping out here. Where are you APPLE? Use some of those outrageous profits you're making to fix the problem you have created. Here's $300 of my hard earned dollars pretty much down the drain.
Message was edited by: IPatronius -
Itunes incurred an error and no longer works?
Hello, I have windows XP one day while snycing my Ipod 160G I tunes stopped working and now gives me a message everytime I try to open it saying
"iTunes has encountered a problem and needs to close.
We are sorry for the inconvenience."
Send error report? or Dont send?
Does anybody know how to go about working on this error without loosing all the music I've already downloaded? HELP ME!!!!My iPhone is having a similar problem, but I think it is caused by a different module. It will sync everything except my music library. It starts to sync and crashes. Over and over. Any ideas would be greatly appreciated. This is the error report:
Product
iTunes
Problem
Stopped working
Date
9/4/2010 10:44 PM
Status
Report Sent
Problem signature
Problem Event Name: APPCRASH
Application Name: iTunes.exe
Application Version: 10.0.0.68
Application Timestamp: 4c7e6c10
Fault Module Name: QuickTime.qts
Fault Module Version: 7.67.75.0
Fault Module Timestamp: 4c61425e
Exception Code: c0000005
Exception Offset: 0082e666
OS Version: 6.0.6002.2.2.0.256.6
Locale ID: 1033
Additional Information 1: 9c79
Additional Information 2: 18d391556384f03f39cb1810be4919d6
Additional Information 3: cbd8
Additional Information 4: 7823eb2f440e23b0eb8dcc58dcf1c44e
Extra information about the problem
Bucket ID: 2015804932
Maybe you are looking for
-
I have an old Nano that I have about 300 songs on. I no longer have the PC with the library that this device was linked to. I have a new iPhone 5 and opened a new iTunes library to purchase songs for the new phone. How can I get the songs from the
-
Controlling the misuse of FD ( free of charge Deliveries) sales document
Hello SD Gurus, I am using the free of charge deliveries (FD) sales document type for one of the business scenarios. Any material that i enter in this document becomes free (by virtue of the item ct. KLN) I want to restrict the use of this document t
-
Do you want me to post a picture of my wall? The video that I want off is ****--that's why I want it off.
-
I am running CS4 with RAW v 5.0 and trying to update to later version. Download OK. Run installer, which reports installation done but on opening Bridge I am still using v5.0. I tried 2 different updates. If I double click on PLUG-IN message comes up
-
Coverting a Row into Columns values
Hi SQL Expert Friends, I have a row which contains 6 columns where I want that data to be shown in the form of columns as shown here: From: select item1, item2, item3, amt1, amt2, amt3 from item_table where sno=1; <----- returns 1 row as below ITEM1