RH_STRUC_GET STRUC
Hi,
the function RH_STRUC_GET returns an structure of type struc wich contains 2 date pairs:
(VBEGDA, VENDDA) and (SBEGDA, SENDDA).
Does anyone know which dates do they correspond with?
I suppose that VBEGDA and VENDDA corresponds with the dates of the link between an object and its predecessor, but i don't know it for sure and i don't know what are SBEGDA and SENDDA.
Can anyone help me?
I have tried to read the RH_STRUC_GET code but i don't speak german and this makes it difficult to understand the comments in the code.
i have answered myself making several tests with PPOME transaction
Similar Messages
-
is there any documentation for structure STRUC of log. database PCH?
Meaning of the fields etc.Hello Volker
Not able to get any detailed documentation on the structure. But from my experience of using this structure for quite a while now, i am giving you a brief explanation on the important fields,
SEQNR - This will be a unique number for each Org. Object
LEVEL - This will provide the level of Org. Objid in the tree structure of the organization
OTYPE - Object Type Of the Related Object
PDOWN - PDOWN stands for Obtect Type Down, which actually hold the sequence number (SEQNR) of the immd. downward Org Object for Botton Down evaluation ath
PNEXT - PNEXT stands for Object type Next, if there are multiple Org. Objects in the same level it will hold the sequence (SEQNR) of the next Org. Object which was retrieved based on the evaluation path
PUP- - PUP stands for Pointer Up which mean it will hold the Sequence number (SEQNR) of the Org. Object parent to the current Org. Object for Top Down Evaluation path
PPREV - PPREV Stands for Pointer Previous. if there are multiple Org. Objects in the same level it will hold the sequence (SEQNR) of the previous Org. Object which was retrieved based on the evaluation path
May be if you can execute the FM "RH_STRUC_GET" for a Particualr Object ID and Evaluation path, it will return a table of STRUC type which can show more information on the points mentioned before.
Please let me know if you need more information regarding anyother fields.
Regards
Ranganath -
Testing FM RH_STRUC_GET
Hi All,
i will like to test this FM RH_STRUC_GET. i thought it is used to get the position and organizational unit the user is linked to
I proceed as follow:
Se37
i filled:
0type:S
0BJID:persnr.
WEGID:A008
Flag:?
PLVAR:01
Begda:24.08.2010
ENDA:24.08.2010
TDEPTH (What does that mean?):?:?
TFLAG (What does that mean?):?:?
TVFLAG (What does that mean?):?:?
Authority Check (What does that mean?):?:?
Text_Buffer-fille (What does that mean?):?:?
Buffer_Mode (What does that mean?):?
Could anyone help?
Thanks
giloHi Gilo,
Please check this example :
DATA: IOBJEC LIKE OBJEC OCCURS 0 WITH HEADER LINE,
ISWHACTOR LIKE SWHACTOR OCCURS 0 WITH HEADER LINE,
ISTRUC LIKE STRUC OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'RH_STRUC_GET'
EXPORTING
ACT_OTYPE = 'S'
ACT_OBJID = MGR_POS ---> <Position>
ACT_WEGID = 'ZSPS' -
> Relation
ACT_PLVAR = '01'
ACT_BEGDA = PCHBEGDA
ACT_ENDDA = PCHENDDA
ACT_TDEPTH = 2
TABLES
RESULT_TAB = ISWHACTOR
RESULT_OBJEC = IOBJEC
RESULT_STRUC = ISTRUC
EXCEPTIONS
NO_PLVAR_FOUND = 1
NO_ENTRY_FOUND = 2
OTHERS = 3.
Note : The Variable ACT_TDEPTH denotes -->To indicate how many levels of an organizational structure should be processed in an inquiry/report, enter the appropriate level numberFor example, if the field contains a 3, the system processes three levels of the structure, beginning from the organizational unit you select as the root object, down.
The below fields always used default values unless for special cases.
HRRHAS-TFLAG - is checked if you need to fetch the texts
HRRHAS-VFLAG - is checked if you need to fetch the relation ship information
HRRHAS-AUTHY - is checked if you need to check the authorization
TEXT_BUFFER_FILL - denotes a test run
Remember the Objid is position based on the object type and relation you selected.
Thank you,
Kumar
Edited by: Kumar B on Aug 24, 2010 12:37 PM -
FM RH_STRUC_GET and buffer_mode
Hi,
The FM RH_STRUC_GET offer an importing parameter called BUFFER_MODE. I have come across severel buffer modes i existing coding, like X, F and D.
My problem is that we are using the FM a lot. And I have a performance problem, that the FM doing a lot of identical selects on dababase.
Is there a place where I am able to get a list of all possible buffer modes, and som documentation on the differences of the modes.
Best regards,
Martin MolzHi Gilo,
Please check this example :
DATA: IOBJEC LIKE OBJEC OCCURS 0 WITH HEADER LINE,
ISWHACTOR LIKE SWHACTOR OCCURS 0 WITH HEADER LINE,
ISTRUC LIKE STRUC OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'RH_STRUC_GET'
EXPORTING
ACT_OTYPE = 'S'
ACT_OBJID = MGR_POS ---> <Position>
ACT_WEGID = 'ZSPS' -
> Relation
ACT_PLVAR = '01'
ACT_BEGDA = PCHBEGDA
ACT_ENDDA = PCHENDDA
ACT_TDEPTH = 2
TABLES
RESULT_TAB = ISWHACTOR
RESULT_OBJEC = IOBJEC
RESULT_STRUC = ISTRUC
EXCEPTIONS
NO_PLVAR_FOUND = 1
NO_ENTRY_FOUND = 2
OTHERS = 3.
Note : The Variable ACT_TDEPTH denotes -->To indicate how many levels of an organizational structure should be processed in an inquiry/report, enter the appropriate level numberFor example, if the field contains a 3, the system processes three levels of the structure, beginning from the organizational unit you select as the root object, down.
The below fields always used default values unless for special cases.
HRRHAS-TFLAG - is checked if you need to fetch the texts
HRRHAS-VFLAG - is checked if you need to fetch the relation ship information
HRRHAS-AUTHY - is checked if you need to check the authorization
TEXT_BUFFER_FILL - denotes a test run
Remember the Objid is position based on the object type and relation you selected.
Thank you,
Kumar
Edited by: Kumar B on Aug 24, 2010 12:37 PM -
Hi,
I have a function that returns me table Struc. I am trying to create another table by going through this table. The new table would contain the ObjectID and the ObjectID of its parent.
In order to find the parent first we have to look at the PUP column corresponding to the Object. This PUP is then matched with another column in the same table SQNR. If PUP = SQNR then we grab the ObjectID corresponding to that SQNR and this is the parent.
What would be an efficient way of achieving this? I would really appreciate the help!!
Thanks.Hi Stephan,
Thanks for your reply. I am actually very new to ABAP programing. Could you please explain it a bit more. The function that I am calling is
CALL FUNCTION 'RH_STRUC_GET'
EXPORTING
act_otype = otype
act_objid = objid
act_plvar = plvar
act_wegid = pathid
TABLES
result_struc = result_struc
EXCEPTIONS
no_plvar_found = 1
no_entry_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
RAISE no_roots_found.
ENDIF.
I am trying to make a new table with only two fields. The employeeID and the parentID. The table result_struc which is a type STRUC has a lot more fields that I do not require.
I would really appreciate your help.
Regards,
Mark -
Preli cost compo struc of production orders to sales orders -Non valuated
Hi experts
We use Non valuated sales order cost/settlement and assembly order processing. So production order is created from sales order and prel cost estimate is created in the production order. Now we notice that the cost component struc in production order is not copied into sales order. Only the EK02 is copied with total cost.
How to bring cost compo struc from production order to sales order ?
This may be a special cost estimate with costing and Is it possible to bring cost compo struc to copa record type A or F.
I know standard cost compo mapping in copa but I could not see the costing variant used in production order in copa master data configuration.
regards
KTIf the sales order is not a cost object, you cannot cost in it, and you can therefor also not see the cost component split.
When you sell the material, you can pull through the cost component to PA, via the material master using the COPA valuation strategy. However, only the info for the material in the sales doc line item.
You don't link to a costing variant, you link using the above valuation strategy and the costing key. The costing variant sits inside the costing key. -
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 -
Disable authorization check RH_STRUC_GET
hi,
is there a possibility to use FM
RH_STRUC_GET and to disable authorization check similar to 'HR_READ_INFOTYPE_AUTHC_DISABLE' for fm HR_READ_INFOTYPE?
thanks for helpstupid question - solved by myself.
-
Add update rule for new key figure in one info struc
Hi, everyone
I would like to know how to add update rule for new key figure in one info struc.
Thanks ahead.
Eric1)I have created the update rule for one info structure
2)add one key figure in the info structure due to business requirement
3)then I use MC25 to add update rule for the new key figure, but I find that there no relevant menu to do such operation.
Can anybody tell me how to do with it?
Any answer will be appriciated. -
Transfer Struc, Comm struc, Extract Struc,
Hey All!
I am working on a project of Business content development
& i have the following question.
Can somebody let me know how comm struc, Transfer Struc & extract struc& info source are maintained in the physical level. I ofcourse know that comm & transfer Struc are group of info 0bject. In which table is this maintained in the database?. It sounds more basis but i want to get some of ur views too thats why i write this post in this forum too.
while we choose some business content objects and activate them then the tables in the databases are created for the respective objects
Can somebody give an idea where can i get this physical table information from. For cubes i can trace out F,E tables & dimensions but this sort Infosource relationships
and query details in the DB level is difficult for me to get. Can anyone help with your insights!?
Rgds
Karthik Krishna.RSZCOMPDIR Directory of reporting components
RSZCOMPIC Queries on cubes
RSZELTATTR Attribute selection per dimension element
RSZELTDIR Directory of the reporting component elements
RSZELTPROP Reporting component elements properties
RSZELTTXT Texts of reporting component elements
RSZELTXREF Directory of query element references
RSZGLOBV Global Variables in Reporting
Best regards,
Eugene -
Is there a place where I can find all the field values for RH_STRUC_GET
Hello Gurus,
I there a place or maybe some documentation that will explain or give the different values for the FM RH_STRUC_GET fields ?
Thank you,
JZHi Jorge
In this link you have an example .
RH_STRUC_GET Performance
Now when I needed that for crm I used to a class
'CL_CRM_PPM_UM_TOOLKIT.
In sdn you can find examples about used the FM or class -
How to find Job relationship using the Function Module RH_STRUC_GET
Hi Experts,
I am getting O-S-P relation ship using for an org unit using the function module RH_STRUC_GET.
Further If I want the job relation ship, how it can be found out.
Thanks in Advance,
IrfanHello Irfan,
Have a look at the table T778A for evaluation path you require and pass this to the function module.
Regards,
Manoj. -
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 PMReena,
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. -
Funtion RH_STRUC_GET
Dear all,
I have a question about the function RH_STRUC_GET.
CALL FUNCTION 'RH_STRUC_GET'
EXPORTING
act_otype = 'P'
act_objid = employee number
act_wegid = 'B025'
act_plvar = '01'
act_begda = '1900/01/01'
act_endda = '2010/01/01'
act_tflag = space
act_vflag = 'X'
authortiy_check = space
what i want to get is the begda in the result_object,
i can get a record from the result_object,but the begda
and endda is blank,and actually the record in the table
HRP1001,its begda and endda is not blank,
can anybody help me ?
thank you very muchHello,
Please try Function Module HR_EHS00_READ_HRP1001.
Regards
Sabu. -
Delimited objects displayed in RH_STRUC_GET
Hi,
I am calling RH_STRUC_GET for a org unit ad trying to get all org units under it.
The issue is its getting even delimited org units even though I have specified today's date as begda and endda. I assumed the begda and endda were to display org units active in between this date.
Is this a bug? Has anybody encountered it before?
PrakashYes - we see the same behaviour. I raised a ticket in OSS for it, and they claim it is 'as designed'. To me it is definetely a bug, or at best very unwanted behaviour. It really messes up the users - as the FM is used eg. when they should pick positions during hiring.
It would be good if more people would raise issues with SAP on this. Maybe some of us will get through. My experience with OSS is that the quality of the answeer is very dependent on who picks up your ticket.
/Kirsten
Maybe you are looking for
-
Hi, I want to know if a parameter ID of "export/import to memory" instruction is available in two differents session with different user's login? tks Carlos
-
What docking station will work with 4s
I cannot find a docking station that will allow me to listen through the docking station speakers with my iphone 4s?
-
I have an error msg when itunes starts up, saying registry settings used by itunes drivers for burning cds/dvds are missing. It wants me to uninstall and reinstall itunes software. If I do, will I loose all the song's on my computer that were stored
-
We are implementing a new Asia plant into our global ECC6.0 deployment. Our company uses APO-DP but not SNP. We release PIRs from DP to ECC and run MRP. We use cross-plant planning so MRP must be sequenced where predecessor plant results drive oth
-
Apex with Database XE behind Firewall?
Hi. I have an Apex application that I would like to put up on the Internet. The associated database must be protected with a firewall between it and the HTTP server. I would like to use the Express Edition (XE) version of the database, at least initi