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

RH_OBJID_REQUEST question

Former Member
0 Likes
633

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

1 REPLY 1
Read only

yes_sapteam
Participant
0 Likes
404

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