‎2009 Aug 26 1:40 PM
Hi,
i must use FM RH_OBJID_REQUEST for a F4 help field. This FM must display the organisationnal structure, but i would like disable some objects ; this object should be displayed but disabled, so can i do this with this FM ? if yes, can you give me an example ?
Cheers
‎2010 Sep 15 11:14 AM
I was also able to disable the unwanted org-units by using the BASE_OBJECTS table of the FM.
The problem is that this table must contains all the org-units you want to disable (meaning, filling 1 org-unit will enable only this org-unit and not the subordinate org-units).
I wrote an FM that receive org-unit/s and return all the subordinate org-units.
The whole code of the FM is too complicated, but basically it is a recursive call for this code:
* Pull releated Org-units.
SELECT varyf FROM hrp1001
INTO CORRESPONDING FIELDS OF TABLE lt_hrp1001
WHERE otype = 'O'
AND objid IN lt_org_units_in1
AND rsign = 'B'
AND relat = '002'
AND begda LE pv_date
AND endda GE pv_date.This FM allows a quick fill the BASE_OBJECT table and your problem is solved.
Enjoy.
Ayal.
Edited by: Ayal Telem on Sep 15, 2010 12:17 PM