12-15-2009 2:45 PM
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
12-15-2009 4:09 PM
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.
12-15-2009 3:29 PM
12-15-2009 4:13 PM
To Jorge Hernandez => I've already tried it.
How could it be customized ?
Edited by: CoinCoin on Dec 15, 2009 5:14 PM
12-15-2009 4:09 PM
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.