Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How does 'RHPH_STRUCTURE_READ' work ?

Former Member
0 Likes
1,523

Hi all,

I am using function RHPH_STRUCTURE_READ to find my system objects, but I don't understand how it exactly works, on attribute WEGID precisely !

Here is the list of what I need to find :

- O objects

- SM linked to O

- SE linked to SM

- E linked to SE or E linked to CE

For the first one, I use wegid 'O-S-P' (but I don't see what it does mean).

For the two followers, I use otype 'O' and resp. wegid 'O-SM' and 'O-SE'. Is there a way to do from SM to SE without using otype 'O' and this wegid ?

For the last one, I didn't find how to perform it !

Someone can explain me how does it works ? My way to test it is really risky !

Last question, is there a way to find all my O objects without notify an objid ?

Thanks for your help

Regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
986

DATA: v_wegid LIKE t778a-wegid.

DATA: T_PLVAR LIKE P1000-PLVAR,

T_OTYPE LIKE P1000-OTYPE,

T_OBJID LIKE P1000-OBJID,

T_BEGDA LIKE P1000-BEGDA,

T_ENDDA LIKE P1000-ENDDA,

  • get data for 2 levels

CALL FUNCTION 'RHPH_STRUCTURE_READ'

EXPORTING

plvar = t_plvar

otype = t_otype

objid = t_objid

wegid = v_wegid

begda = t_begda

endda = t_endda

  • PUP_INFO = 'X'

  • WITH_STEXT = 'X'

tdepth = '3'

TABLES

stru_tab = orgstru_tab

EXCEPTIONS

catalogue_problem = 1

root_not_found = 2

wegid_not_found = 3

OTHERS = 4.

3 REPLIES 3
Read only

Former Member
0 Likes
986

Use WGID SM-SE. Maybe you need to customize this wegid

Read only

0 Likes
986

To Jorge Hernandez => I've already tried it.

How could it be customized ?

Edited by: CoinCoin on Dec 15, 2009 5:14 PM

Read only

Former Member
0 Likes
987

DATA: v_wegid LIKE t778a-wegid.

DATA: T_PLVAR LIKE P1000-PLVAR,

T_OTYPE LIKE P1000-OTYPE,

T_OBJID LIKE P1000-OBJID,

T_BEGDA LIKE P1000-BEGDA,

T_ENDDA LIKE P1000-ENDDA,

  • get data for 2 levels

CALL FUNCTION 'RHPH_STRUCTURE_READ'

EXPORTING

plvar = t_plvar

otype = t_otype

objid = t_objid

wegid = v_wegid

begda = t_begda

endda = t_endda

  • PUP_INFO = 'X'

  • WITH_STEXT = 'X'

tdepth = '3'

TABLES

stru_tab = orgstru_tab

EXCEPTIONS

catalogue_problem = 1

root_not_found = 2

wegid_not_found = 3

OTHERS = 4.