Skip to Content
0
Sep 11, 2014 at 12:34 PM

How can I get all org. units that a BP belongs to?

69 Views

Hello,

I use in my reports this function module to get all BPs that belong to an org.unit (provided in lv_plogi-objid below):

CALL FUNCTION 'RH_STRUC_GET'
EXPORTING
act_otype = 'O'
act_objid = lv_plogi-objid
act_wegid = 'OO-S-BP' "or DISPO_BP
TABLES
result_objec = gt_objects
EXCEPTIONS
no_plvar_found = 1
no_entry_found = 2
OTHERS = 3.

But I don't know any function module to go the other way around: get all org. units that a given BP belongs to. Maybe it is the same function, but with a different value for parameter act_wegid?

Do you have any ideas?

Thanks!

Calin Barbat